Gold price analysis forecast 2022

How to get gold data from yahoo finance in python?

 start='2010-01-01',
 end='2021-08-11',
 adjusted=True,
 progress=False

 How to get  Gold price analysis chart?

Describe data table
<matplotlib.axes._subplots.AxesSubplot at 0x7fc7a3d08f90>

How to get gold multiplicative decomposition chart?

Multiplicative decomposition chats
Run prophet with daily_seasonality=True to override this

This is the price of gold forecsat till 2022

Now components discribe gold price weekly monthly and yearly trend
Compare 'Gold Price - actual vs. predicted charts
Gold Price - actual vs. predicted charts
[Text(0, 0.5, 'Gold Price ($)'),
 Text(0.5, 0, 'Date'),
 Text(0.5, 1.0, 'Gold Price - actual vs. predicted')]
gold actual and predicted price

ADF TEST OF GOLD PRICE

Test Statistic -1.604289 p-value 0.481439 # of Lags Used 9.000000 # of Observations Used 2887.000000
Critical Value (1%) -3.432617 Critical Value (5%) -2.862542 Critical Value (10%) -2.567303 dtype: float64

KPSS TEST

p-value is smaller than the indicated p-value

Test Statistic            1.582691
p-value                   0.010000
# of Lags                28.000000
Critical Value (10%)      0.347000
Critical Value (5%)       0.463000
Critical Value (2.5%)     0.574000
Critical Value (1%)       0.739000
dtype: float64

Post a Comment

0 Comments