Documente Academic
Documente Profesional
Documente Cultură
Regression report
Ordinary least square method
Research question
Using linear programming in R we will be trying to find out the relationship between the three
variables- NASDAQ, NIFTY 50 & TCS stock. NASDAQ & NIFTY 50 being the independent
variables and TCS. stock being the dependent variable.
Regression Model
Y = β0 + β1X + β2X’ + u
Where, β0 ⇒ intercept β1⇒ slope β2⇒ slope u ⇒ disturbance or error term, X ⇒ NASDAQ,
X’ ⇒ NIFTY 50 & Y ⇒ TCS. stock
The regression function of our linear model will be:
X<-lm(TCS~NASDAQ+NIFTY 50, data=a)
Hypothesis
H0: There exists no significant relationship between the three variables (NASDAQ, NIFTY
50, TCS. Stock)
H1: There exists significant relationship between the three variables (NASDAQ, NIFTY 50,
TCS. Stock)
Data
Data is of monthly and data taken are for about 3 year that is 2017 to 2020 for all TCS,
NASDAQ, and NIFTY 50 index.
Results
1. Summary of Linear Model
H0: p > 0.05 (Model is not significant)
H1: p < 0.05 (model is significant)
#Where X1 : Nifty 50
X2: Nasdaq
Y : Tcs
2. Our P value is <1.271e-11 which means alternate hypothesis is accepted, implying that our
model is significant
3. The R square of the model is 0.7915 which means that model is better by 79.15% than the
unconditional mean
4. F statistic tells how well the model is explaining than the error, higher F score is better.
5. F= Mean square Model/ Mean Square Error
6. The p-value of the model is 1.271e-11 which is less than 0.05, this means that the overall
model is significant
7. The t value for NIFTY 50 is 0.01 which is less than 0.05 which means that there is
significant relationship but for Nasdaq the t vale is 0.79 which is greater than 0.05 which
means than the relationship with TCS stock is not significant
8. This is a clear problem of multi-collinearity
9. The intercept value for NIFTY 50 is 2.652e-01 which means that with a one unit increase
in NIFTY 50, TCS will increase by 2.652e-01 & id NASDAQ moves by one unit, TCS
moves by 1.839e-01
So, From the results of running jarque bera test on the data, we get the p value= 0.4906 which is
greater than 0.05. This means we accept the null hypothesis, which implies that yes, the error terms
are following normal distribution.
After running the test on the data, we got the p value = 0.047, which is very near to 0.05. So, we
accept the null hypothesis i.e. model is homoscedastic
After running the test, we see the p value = 5.943e-06 which is substantially less than 0.05, so we
can not dismiss the null hypothesis here thus alternate hypothesis is accepted and error terms are
corelated
13. GGPLOT
With the help of GGPLOT function we can easily plot the linear model as see it visually in the
form a scatter plot and line graph
4. CONCLUSION
We see that NIFTY 50 has a significant relationship with TCS after running the regression
using OLS tool, but NASDAQ does not show a significant relationship. This is a clear case of
multi-collinearity, but the overall pattern is important. After that we test the normality of the
terms of error, in this case our terms of error turned out to be normally distributed, meaning
there is no bias. Since we test weather the variance of error terms depends on independent
variables, our data proved homoscedastic in the test which means that variance of error is not
dependent on independent variables. Lastly, we test the auto correlation in errors, it may lead
to sub-optimal parameter estimation, our data turned out to be auto-correlated, which means
that there may be issues with accuracy and bias. But in the end, we can conclude that the overall
model is significant and we can accept the Alternative hypothesis, i.e. a significant relationship
exists between NASDAQ, NIFTY 50 & TCS stock.
5. REFERENCES
1. https://en.wikipedia.org/wiki/Jarque%E2%80%93Bera_test
2. https://www.wu.ac.at/fileadmin/wu/d/i/ifr/Basic_Financial_Econometrics.pdf
3. Equity market interlinkages
4. An Empirical Investigation of Causality and Dynamic Linkages
5. Return, Volatility, and Volume : Causality Relationship of Top 10 Companies of Nifty 50
6. The role of Breusch test in econometrics.
7. https://en.wikipedia.org/wiki/Breusch%E2%80%93Godfrey_test