![]() |
VOOZH | about |
Dogecoin is a cryptocurrency, like Ethereum or Bitcoin — despite the fact that it's totally different than both of these famous coins. Dogecoin was initially made to some extent as a joke for crypto devotees and took its name from a previously well-known meme.
In this article, we will be implementing a machine learning model which can predict the pattern or forecast the price of the coin in the upcoming days. Let us now move toward the implementation of price prediction.
Python libraries make it easy for us to handle the data and perform typical and complex tasks with a single line of code.
Now let us load the dataset in the panda's data frame. One can download the CSV file from here.
Output:
Now, let's check the correlation
Output:
Converting the string date & time in proper date & time format with the help of pandas. After that check is there any null value is present or not.
Output:
Open True
High True
Low True
Close True
Adj Close True
Volume True
dtype: bool
Now, let's check for the presence of null values in the dataset.
Output:
Open 1
High 1
Low 1
Close 1
Adj Close 1
Volume 1
dtype: int64
Dropping those missing values so that we do not have any errors while analyzing.
Now, check the statistical analysis of the data using describe() method.
Output:
Now, firstly we will analyze the closing price as we need it to perform the prediction.
Output:
The column 'Close' is our predicted feature. We are taking different factors from the predefined factors for our own calculation and naming them suitably. Also, we are checking each factor while correlating with the 'Close' column while sorting it in descending order.
Output:
Close 1.000000
Adj Close 1.000000
High 0.995104
Low 0.994575
Open 0.992514
Volume 0.588678
b 0.456479
gap 0.383333
a 0.172057
z 0.063251
y 0.063868
Name: Close, dtype: float64
By, observing the correlating factors, we can choose a few of them. We are excluding High, Low, and Open as they are highly correlated from the beginning.
Output:
Introducing the ARIMA model for Time Series Analysis. ARIMA stands for autoregressive integrated moving average model and is specified by three order parameters: (p, d, q) where AR stands for Autoregression i.e. p, I stands for Integration i.e. d, MA stands for Moving Average i.e. q. Whereas, SARIMAX is Seasonal ARIMA with exogenous variables.
Output:
(11, 5) (19, 5)The shape of the train is (11, 5), and the test is (19, 5). Let's implement the SARIMAX model and see the results.
Output:
Now, observe the prediction in time series.
Output:
Finally, plot the prediction to get a visualization.
Output:
Notebook link : click here.
Dataset Link: click here