Professional Documents
Culture Documents
Post Mid-Term Assignment 1
Post Mid-Term Assignment 1
Since the p value is greater than 0.05, therefore we accept NULL hypothesis and say that the stock
prices of INFOSYS follow randomness.
From ACF test (considering lag up to 5) we can conclude that there’s a correlation between the
residuals of stock prices of INFOSYS having a lag of 1 and lag 2
PACF
Form PACF test we can confirm that there is correlation between the residuals having a lag of 1.
Box Test
Since all the p-values, with lags of 1-5, have value of less than 0.05, we reject the null hypothesis
and conclude that the there is a correlation between the residuals of the stock prices of INFOSYS.
Since all the values of M2 are less than 1.96, we can conclude that stock prices of INFOSYS follow
random pattern.
Using above 3 tests we can conclude that stock prices of INFOSYS follow Random Walk.
Company 2 – SBI
R code
Run Test
Since the p value is more than 0.05, therefore we accept NULL hypothesis and say that the stock
prices of SBI follow randomness.
PACF
Form PACF test we can confirm that there is correlation between the residuals having a lag of 5.
Box Test
Since all the p-values, with lags of 1-4, have value greater than 0.05, we accept the null hypothesis
and conclude that the there is no correlation between the residuals of the stock prices of SBI.
The p-value, with lag of 5, have value of less than 0.05, we reject the null hypothesis and conclude
that the there is correlation between the residuals of the stock prices of SBI.
Using above 3 tests we can conclude that stock prices of SBI follow Random Walk.
Company 3 – DLF
Run Test-
data: as.vector(ret)
Here the p-value is 0.1608>0.05 hence, we accept the null hypothesis which means the prices are
random.
AutoCorrelation Test-
PACF
Form PACF test we can confirm that there is correlation between the residuals having a lag of 1.
Since all the values of M2 are less than 1.96, we can conclude that stock prices of DLF follow random
pattern.
Using above 3 tests we can conclude that stock prices of DLF follow Random Walk.
Company 4 – Dabur
Price
Interpretation: p-value is greater than 0.05, Hence, we cannot reject null hypothesis and the
returns follow a random walk.
Box-Pierce test
Interpretation: p-value of Auto correlation test is greater than 0.05. Hence, we cannot reject
the null hypothesis and the returns follow a random walk.
For M2, Z-value is less than 1.96 for all k values, thus p-value is greater than 0.05. Thus, we
cannot reject null hypothesis and returns follow a random walk
Company 5 – Dr Reddy’s Lab
Price
Runs Test
Interpretation: p-value is greater than 0.05, Hence, we cannot reject null hypothesis and the
returns follow a random walk.
Box-Pierce test
For M2, Z-value is less than 1.96 for all k values, thus p-value is greater than 0.05. Thus, we
cannot reject null hypothesis and returns follow a random walk