Time Series
Time Series
&
Trend Analysis
Nifty Pharma
Page | 1
NIFTY PHARMA
Regression Model => Rt = α + β(Cp)
Auto-regression Model => Rt = α0 + α1(Rt-1) + α2(Rt-2)
Descriptive Statistics
CP RT The descriptive statistics show that the mean
Mean 13476.84 0.000398 Cp is 13476.84 while the mean day-on-day
Median 13241.95 0.000181 return is 0.0398%. The highest Cp is
Maximum 16860.85 0.041176
Minimum 11514.45 -0.043262
16860.85 while the lowest is 11514.45. The
Std. Dev. 1104.438 0.009942 highest Rt obtained in a day is 4.1176%
Skewness 0.673781 0.150817 while the lowest Rt is -4.3262%. The
Kurtosis 2.837128 4.414852 skewness of Cp and Rt shows that the data
is almost normally distributed. The kurtosis
Jarque-Bera 56.88572 64.61489
Probability 0.000000 0.000000
value shows that Cp is platykurtic while Rt
is leptokurtic. The probability value of
Sum 9986335. 0.294746 Jarque-Bera test shows that the data of Cp
Sum Sq. Dev. 9.03E+08 0.073149 and Rt is not normal.
Observations 741 741
Page | 2
Correlation Matrix
In the image, the correlation coefficient
between CP and RT is 0.102734. There is a
weak positive link between CP and RT, as
indicated by this relatively minor positive
Correlation correlation. Stated differently, RT tends to
Probability CP RT grow somewhat, but not much, as CP
CP 1.000000 increases.
----- The correlation coefficient's p-value is
0.0051. It is generally accepted that a p-value
RT 0.102734 1.000000
0.0051 -----
of less than 0.05 indicates statistical
significance, indicating a statistically
significant positive association between CP
and RT.
1. Jarque-Bera test
100
Series : RT
Sample 1/01/2021 12/29/2023
80 Obs ervations 741
Mean 0.000398
60 Median 0.000181
Maximum 0.041176
40 Minimum -0.043262
Std. Dev. 0.009942
Skewness 0.150817
20 Kurtosis 4.414852
Jarque-Bera 64.61489
0 Probability 0.000000
-0.0375 -0.0250 -0.0125 0.0000 0.0125 0.0250 0.0375
H0 = Data is normally distributed As the probability value of Jarque-Bera is 0.00
H1 = Data is not normally distributed which is less than 0.05, so we will accept H1 which
indicates that data is not normal.
Page | 3
2. Correlogram
Date: 01/12/24 Time: 20:07
Sample (adjusted): 1/04/2021 12/29/2023
Included observations: 741 after adjustments
Autocorrelation Partial Correlation AC PAC Q-Stat Prob
H0 = Data is normal
H1 = Data is not normal
As the probability value of correlogram is more than 0.05, so we will accept H0 which indicates
that there is no autocorrelation and no partial auto-correlation and the data is normally distributed.
Page | 4
3. Augmented Dickey-Fuller Test
Null Hypothesis: RT has a unit root
Exogenous: Constant
Lag Length: 0 (Automatic - based on SIC, maxlag=19)
t-Statistic Prob.*
Page | 5
Normality Tests for Error
1. Jarque-Bera Test
100
Series: ERROR
Sample 1/01/2021 12/29/2023
80 Observations 740
Mean -2.27e-19
60 Median -0.000181
Maximum 0.041540
Minimum -0.043767
40 Std. Dev. 0.009934
Skewness 0.178031
Kurtosis 4.485603
20
Jarque-Bera 71.95876
Probability 0.000000
0
-0.0375 -0.0250 -0.0125 0.0000 0.0125 0.0250 0.0375
Page | 6
2. Correlogram
Date: 01/10/24 Time: 14:14
Sample (adjusted): 1/05/2021 12/29/2023
Included observations: 740 after adjustments
Autocorrelation Partial Correlation AC PAC Q-Stat Prob
H0 = Error is normal
H1 = Error is not normal
As the probability value of correlogram is more than 0.05, so we will accept H0 which
indicates that there is no autocorrelation and no partial autocorrelation and the error is
normally distributed.
Page | 7
3. Augmented Dickey-Fuller Test
Null Hypothesis: ERROR has a unit root
Exogenous: Constant
Lag Length: 0 (Automatic - based on SIC, maxlag=19)
t-Statistic Prob.*
Page | 8
4. Breusch-Godfrey LM Test
Breusch-Godfrey Serial Correlation LM Test:
Null hypothesis: No serial correlation at up to 2 lags
Test Equation:
Dependent Variable: RESID
Method: Least Squares
Date: 01/12/24 Time: 20:32
Sample: 1/06/2021 12/29/2023
Included observations: 739
Presample missing value lagged residuals set to zero.
H0 = Error is normal
H1 = Error is not normal
As the probability value of BGLM is more than 0.05, so we will accept H0 which indicates
that there is no autocorrelation, and the error is normally distributed.
Page | 9
5. Durbin Watson test
Dependent Variable: RT
Method: Least Squares
Date: 01/12/24 Time: 20:01
Sample (adjusted): 1/06/2021 12/29/2023
Included observations: 739 after adjustments
The value of Durbin Watson in auto-regression model we obtained is 1.996. As we know that
we have 2 independent variables, so the value of k=2. And no. of observations is 739, so the
value of n=739. With the help of k and n we get the value of Dl=1.75, Du=1.79, 4-Dl=2.25,
and 4-Du=2.21. So according to these values our value of DW lies between Du and 2, which
shows there is no autocorrelation.
Page | 10
Heteroskedasticity Test
Heteroskedasticity Test: Breusch-Pagan-Godfrey
Null hypothesis: Homoskedasticity
Test Equation:
Dependent Variable: RESID^2
Method: Least Squares
Date: 01/12/24 Time: 21:14
Sample: 1/06/2021 12/29/2023
Included observations: 739
H0 = There is Homoskedasticity
H1 = There is Heteroskedasticity
As the probability value of F-stat is less than 0.05, so we will accept H1 which indicates that
there is heteroskedasticity.
Page | 11
Multicollinearity
C 1.34E-07 1.002897 NA
RT(-1) 0.001357 1.002858 1.001350
RT(-2) 0.001357 1.002849 1.001350
Here, the values of centred VIF are 1.001350 for both the previous returns which means that
there is no multicollinearity in returns.
Conclusion
From the above tests for data normality and error normality, we can conclude that the data is
normally distributed, and the errors are normally distributed as well which indicates that the
model is robust.
But the heteroskedasticity test shows that there is heteroskedasticity in the error which
indicates that the model is not robust, and it is spurious.
Multicollinearity test shows that there is no multicollinearity among the current returns and
previous returns.
Overall, the regression model is not robust and is a spurious model.
Page | 12