600 likes | 1.35k Views
An Investigation into Regression Model using EVIEWS. Prepared by: Sayed Hossain Lecturer for Economics Multimedia University Personal website: www.sayedhossain.com Email: sayed.hossain@yahoo.com. Seven assumptions about a good regression model.
E N D
An Investigation into Regression Model using EVIEWS Prepared by: Sayed Hossain Lecturer for Economics Multimedia University Personal website: www.sayedhossain.com Email: sayed.hossain@yahoo.com
Seven assumptions about a good regression model • Regression line must be fitted to data strongly. • Most of the independent variables should be individually significant to explain dependent variable • Independent variables should be jointly significant to influence or explain dependent variable. • The sign of the coefficients should follow economic theory or expectation or experiences or intuition. • No serial or auto-correlation in the residual (u) • The variance of the residual (u) should be constant meaning that homoscedasticity • The residual (u) should be normally distributed.
(Assumption no. 1) Regression line must be fitted to data strongly (Goodness of Data Fit) *** Guideline : R2 => 60 percent (0.60) is better
Goodness of Data Fit • Data must be fitted reasonable well. • That is value of R2 should be reasonable high, more than 60 percent. • Higher the R2 better the fitted data. www.sayedhossain.com
(Assumption no. 2)Most of the independent variables should be individually individually significant**t- testt –test is done to know whether each and every independent variable (X1, X2 and X3 etc here) is individually significant or not to influence the dependent variable, that is Y here.
Individual significance of the variable • Most of the independent variables should be individually significant. • This matter can be checked using t test. • If the p-value of t statistics is less than 5 percent (0.05) we can reject the null and accept alternative hypothesis. • If we can reject the null hypothesis, it means that particular independent variable is significant to influence dependent variable in the population.
For Example>> Variables: We have four variables, Y, X1, X2 X3 Here Y is dependent and X1, X2 X3 are independent Population regression model Y = Bo + B1X1+ B2X2 + B3X3 + u Sample regression model Y = bo + b1X1+ b2X2 + b3X3 + e Here, sample regression line is a estimator of population regression line. Our target is to estimate population regression line (which is almost impposible or time and money consuming to estimate) from sample regression line. For example, small b1, b2 and b3 are estimators of big B1, B2 and B3 Here, u is the residual for population regression line while e is the residual for sample regression line. e is the estimator of u. We want to know the nature of u from e.
Tips If the sample collection is done as per the statistical guideline (several random procedures) then sample regression line can be a representative of population regression line. Our target is to estimate the population regression line from a sample regression line.
Setting hypothesis for t –test : An example Null Hypothesis: Bo=0 Alternative hypothesis: Bo≠0 Null hypothesis : B1=0 Alternative hypothesis: B1≠0 Null Hypothesis : B2=0 Alternative hypothesis: B2≠0 Null Hypothesis : B3=0 Alternative hypothesis: B3≠0 Hypothesis setting is always done for population, not for sample. That is why we have taken all big B (from population regression line)but not small b from sample regression line.
Hypothesis Setting Null hypothesis : B1=0 Alternative hypothesis: B1≠0 • Since the direction of alternative hypothesisis is ≠, meaning that we assume that there exists a relationship between independent variable (X1 should be here) with dependent variable (Y here) in the population. But it can not say whether the relationship is negative or positive. This direction ≠ is a two tail hypothesis. Null hypothesis : B1=0 Alternative hypothesis: B1<0 • But if we set hypothesis as above, then we assume that in the population, there exists a negative relationship between X1 and Y as the direction in alternative hypothesis is <. It requires one tail test. `
(Assumption no. 3)Joint SignificaceIndependent variables should be jointly significant to explain dependent variable**F- testANOVA(Analysis of Variance)
Joint significance • Independent variables should be jointly significant to explain Y. This can be checked using F-test. • If the p-value of F statistic is less than 5 percent (0.05) we can reject the null and accept alternative hypothesis. • If we can reject null hypothesis, it means that all the independent variables (X1, X2 X3 ) jointly can influence dependent variable, that is Y here.
Joint hypothesis settingNull hypothesis Ho: B1=B2=B3=0Alternative H1: Not all B’s are simultaneously equal to zeroHere Bo is dropped as it is not associated with any variable.Here also taken all big Bwww.sayedhossain.com
Few things • Residual ( u or e) = Actual Y – estimated (fitted) Y • Residual, error term, disturbance term all are same meaning. • Serial correlation and auto-correlation are same meaning.
(Assumption no. 4) The sign of the coefficients should follow economic theory or expectation or experiences of others (literature review) or intuition. www.sayedhossain.com 15
(Assumption no. 5)No serial or auto-correlation in the residual (u).**Breusch-Godfrey serial correlation LM test : BG test
Serial correlation • Serial correlation is a statistical term used to the describe the situation when the residual is correlated with lagged values of itself. • In other words, If residuals are correlated, we call this situation serial correlation which is not desirable.
How serial correlation can be formed in the model? • Incorrect model specification, • omitted variables, • incorrect functional form, • incorrectly transformed data.
Detection of serial correlation • Many ways we can detect the existence of serial correlation in the model. • An approach of detecting serial correlation is Breusch-Godfrey serial correlation LM test : BG test
Hypothesis setting Null hypothesis Ho: no serial correlation (no correlation between residuals (ui and uj)) Alternative hypothesis H1: serial correlation (correlation between residuals (ui and uj )
(Assumption no. 6) The variance of the residual (u) is constant (Homoscedasticity) *** Breusch-Pegan-Godfrey Test
Heteroscedasticity is a term used to the describe the situation when the variance of the residuals from a model is not constant. • When the variance of the residuals is constant, we call it homoscedasticity. Homoscedasticity is desirable. • If residuals do not have constant variance, we call it hetersocedasticty, which is not desirable.
How the heteroscedasticity may form? • Incorrect model specification, • Incorrectly transformed data,
Hypothesis setting for heteroscedasticity • Null hypothesis Ho: Homoscedasticity (the variance of residual (u) is constant) • Alternative hypothesis H1 : Heteroscedasticity (the variance of residual (u) is not constant )
Detection of heteroscedasticity • There are many test involed to detect heteroscedasticity. • One of them is Bruesch-Pegan-Godfrey test which we will employ here.
(Assumption no. 7) Residuals (u ) should be normally distributed ** Jarque Bera statistics
Setting the hypothesis: • Null hypothesis Ho : Normal distribution (the residual (u) follows a normal distribution) • Alternative hypothesis H1: Not normal distribution (the residual (u) follows not normal distribution) Detecting residual normality: • Histogram-Normality test (Perform Jarque-Bera Statistic). • If the p-value of Jarque-Bera statistics is less than 5 percent (0.05) we can reject null and accept the alternative, that is residuals (u) are not normally distributed.
An Emperical Model Development www.sayedhossain.com
Our hypothetical model Variables: We have four variables, Y, X1, X2 X3 Here Y is dependent and X1, X2 and X3 are independent Population regression model Y = Bo + B1X1+ B2X2 + B3X3 + u Sample regression line Y = bo+ b1X1+ b2X2+b3X3 + e
DATA Y, X1, X2 and X3 are actual sample data collected from populationYF= Estimated, forecasted or predicted YRESID (e) = Residuals of the sample regression line that is, e=Actual Y – Predicted Y (fitted Y)
Few things • t- statistics= Coeffient / standard error • t-statistics (absolute value) and p values always move in opposite direction
(Assumption no. 1) Goodness of Fit Data R-square: 0.1684 It means that 16.84 percent variation in Y can be explained jointly by three independent variables such as X1, x2 and X3. The rest 83.16 percent variation in Y can be explained by residuals or other variables other than X1 X2 and X3. 41
(Assumption no. 2) Joint Hypothesis : F statistics F statistics: 2.093 and Prob 0.1213 Null hypothesis Ho: B1=B2=B3=0Alternative H1: Not all B’s are simultaneously equal to zero Since the p-value is more tha than 5 percent (here 12.13 percent), we can not reject null. In other words, it means that all the independent variables (here X1 X2 and X3) can not jointly explain or influence Y in the population. 42
Assumption No. 3Independent variable significance For X1, p-value : 0.4183 Null Hypothesis: B1=0 Alternative hypothesis: B1≠0 Since the p-value is more than 5 percent (0.05) we can not reject null and meaning we accept null meaning B1=0. In other words, X1 can not influence Y in the population. For X2, p-value: 0.0305 (3.05 percent) Null Hypothesis: B2=0 Alternative hypothesis: B2≠0 Since p-value (0.03035) is less than 5 percent meaning that we can reject null and accept alternative hypothesis. It means that variable X2 can influence variable Y in the population but what direction we can not say as alternative hypothesis is ≠. For X3, p-value: 0.8509. So X3 is not significant to explain Y. 43
Assumption No. 4 Sign of the coefficients Our sample model: Y=bo+b1x1+b2x2+b3x3+e Sign we expected after estimation as follows: Y=bo - b1x1 + b2x2 -b3x3 Decision : The outcome did not match with our expectation. So assumption 4 is violated.
Breusch-Godfrey Serial Correlation LM Test: F-statistic 1.01 Prob. F(2,29) 0.3751 Obs*R-squared 2.288 Prob. Chi-Square(2) 0.3185 Assumption no 5 SERIAL OR AUTOCORRELATION Null hypothesis : No serial correlation in the residuals (u)Alternative: There is serial correlation in the residuals (u)Since the p-value ( 0.3185) of Obs*R-squared is more than 5 percent (p>0.05), we can not reject null hypothesis meaning that residuals (u) are not serially correlated which is desirable. 45
Assumption no. 6Heteroscedasticy Test F-statistic 1.84 Probability 0.3316 Obs*R-squared 3.600 Probability 0.3080 Breusch-Pegan-Godfrey test (B-P-G Test) Null Hypothesis: Residuals (u) are HomoscedasticAlternative: Residuals (u) are HetroscedasticThe p-value of Obs*R-squared shows that we can not reject null. So residuals do have constant variance which is desirable meaning that residuals are homoscedastic.B-P-G test normally done for large sample 46
Assumption no. 7Residual (u) Normality Test Null Hypothesis: residuals (u) are normally distributionAlternative: Not normally distributedJarque Berra statistics is 4.903 and the corresponding p value is 0.08612. Since p vaue is more than 5 percent we accept null meaning that population residual (u) is normally distrbuted which fulfills the assumption of a good regression line.
Evaluation of our model on the basis of assumptions • R-square is very low ( Bad sign) • There is no serial correlation (Good sign) • Independent variables are not jointly can influence Y (Bad sign) • Signs are not as expected (Bad sign) • Only X2 variable is significant out of three (Bad sign). • Heteroscedasticity problem is not there (Good sign) • Residuals are normally distributed (Good sign)
References Essentials of Econometrics by Damodar Gujarati, McGraw Hill Publication. Basic Econometrics by Damodar Gujarati, McGraw Hill Publication. An Introduction to Econometrics by Cheng Ming Yu, Sayed Hossain and Law Siong Hook. McGraw Hill Publication.
Prepared by: Sayed Hossain Lecturer for Economics Multimedia University, Malaysia Peronal website: www.sayedhossain.com Email: sayed.hossain@yahoo.com Year: 2009 Use the information of this website on your own risk. This website shall not be responsible for any loss or expense suffered in connection with the use of this website. PLEASE COMMENT IN MY GUESTBOOK AT:www.sayedhossain.com