





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






As we discussed earlier that in a model ๐ = ๐๐ฝ+โ, the ๐ฝ is true parameter, which is fixed, non- stochastic. The estimate is ๐ฝฬ = (๐โฒ๐)โ1^ ๐โฒ๐ which is rando or stochastic.
If ๐ฝฬ is random, than there should be some expression for mean and variance of ๐ฝฬ. In fact we have shown that mean of๐ฝฬ ฬis true ๐ฝ i.e ๐ธ๏ฟฝ๐ฝฬ๏ฟฝ = ๐ฝ.
Know we are going to draw an expression for the variance of OLS estimates.
Before we derive the expression for variance, let us discuss the variance of a vector. For matrices, the variance covariance matrix is defined instead of just variance. The variance covariance matrix contains variance of the elements of vector in the diagonal and covariance of respective component in the off diagonal places.
Therefore let ๐ = ๏ฟฝ
๏ฟฝ be a vector than
Where ๐๐^2 = ๐ฃ๐๐(๐๐) and ๐๐๐ = ๐๐๐ฃ(๐๐, ๐๐)
Therefore if we find variance covariance matrix of vector โ= ๏ฟฝ
๏ฟฝ, we have ๐ฃ๐๐(๐๐) = ๐ 2 and
๐๐๐ฃ๏ฟฝ๐๐, ๐๐ ๏ฟฝ = 0 therefore:
Now we are in the position to calculate the variance of the estimated coefficients.
We have is ๐ฝฬ = (๐โฒ๐)โ1^ ๐ โฒ^ ๐ = (๐ โฒ^ ๐)โ1^ ๐ โฒ(๐๐ฝ+โ) = (๐ โฒ^ ๐)โ1^ ๐ โฒ^ ๐๐ฝ + (๐ โฒ^ ๐)โ1^ ๐ โฒ^ โ
=> ๐ฝฬ = ๐ฝ + (๐ โฒ^ ๐)โ1^ ๐ โฒ^ โ
Therefore ๐ฃ๐๐(๐ฝฬ) = ๐ฃ๐๐(๐ฝ + (๐ โฒ^ ๐)โ1^ ๐ โฒ^ โ)
Since ๐ฝ is true parameter, which is fixed, non-stochastic, therefore
Now for any fix matrix A and random vector A, we have
Var(AX)=A var(X)Aโ
Therefore ๐ฃ๐๐๏ฟฝ๐ฝฬ๏ฟฝ = (๐ โฒ^ ๐)โ1^ ๐ โฒ^ ๐ฃ๐๐(โ)๐(๐ โฒ^ ๐)โ1^ = (๐ โฒ^ ๐)โ1^ ๐ โฒ^ ๐ 2 ๐ผ๐(๐ โฒ^ ๐)โ
โ ๐ฃ๐๐๏ฟฝ๐ฝฬ๏ฟฝ = ๐ 2 (๐ โฒ^ ๐)โ1^ ๐ โฒ^ ๐(๐ โฒ^ ๐)โ1^ = ๐ 2 (๐ โฒ^ ๐)โ
This is the required expression for ๐ฃ๐๐๏ฟฝ๐ฝฬ๏ฟฝ, however, there is still a problem to solve. The expression for variance of OLS estimates involve the variance of error term, which is unknown and needs to be estimated. The variance can be estimated by following procedure:
This estimated variance can then be used to calculate variance of OLS estimate i.e. ๐ฃ๐๐๏ฟฝ๐ฝฬ๏ฟฝ = ๐๏ฟฝ 2 (๐ โฒ^ ๐)โ
Coefficient of Determination, R-square
The coefficient of determination is calculated as follows:
๐ธ๐๐ = ๏ฟฝ (๐ฆ๏ฟฝ๐ โ ๐ฆ๏ฟฝ)^2 ๐
๐
And
๐ ๐๐ = ๏ฟฝ (๐ฆ๐ โ ๐ฆ๏ฟฝ๐)^2 ๐
Where ESS stands for the estimated sum of squares, represented the portion of variation in Y that can be explained by the regressors. TSS is total sum of square, representing total variation in Y and RSS is the residuals sum of square, is the portion of variation in Y that cannot be explained by regressors.
Than coefficient of determination is ๐ 2 = ๐ธ๐๐๐๐๐
Thus R-square is ratio of explained (estimated) variation to total variation in Y. A big value of R-square implies more portion of Y can be explained using.
The Coefficient of Determination
We have following
๐ฆ๐ ๐ฆ๏ฟฝ๐ ๐ ๐^2 (๐ฆ๐ โ ๐ฆ๏ฟฝ)^2 (๐ฆ๏ฟฝ๐ โ ๐ฆ๏ฟฝ)^2
3.00 2.86 0.
Summation 3.14^ 16.00 12.
So
RSS=3.
ESS=12.
TSS=16.
And R-square=12.86/16=0.
Question:
For the following Data, calculate the regression equation, coefficients of determination and variance of OLS estimates.
X Y 1 4 1 3 1 3 1 3 2 4 2 5 4 7 8 10
The confidence Interval
Since ๐ฝฬ is random with mean true ๐ฝ i.e , the value of ๐ฝฬ will nnot be exactly equal to the true parameter, however on the basis of estimated coefficient and standard error, we can calculate the likely range for the true parameter. That range is called the confidence interval.
The difference between confidence and probability statement>
Suppose you have a fair dice, i.e p(H)=0.5, and you are going to make 100 tosses, the mean outcome is 50 heads however exact outcome can differ from this outcome. You can tell the range in which the outcome will lie, for this you have to calculate SE of 100 tosses which is 5, so 95% confidence interval for outcome of 100 tosses is: meanยฑ2SE i.e. 50ยฑ2*5=(40,60)
So you assign 95% probability to the event that the outcome will lie in the interval you made. Similarly you can make 86% and 99% probability statement.
Now suppose you do not what is the true probability of heads, and you observed that outcome of 100 tosses is 56, on the basis of this observation you want to make the range of likely values of the true parameter. Here you do not know the true structure and you guess on basis of sample, any statmenet about the location of true parameter will be a confidence statement.
real applications there are lot of models and transformations of data available. One can choose a model to bring the results that he wants.
Making a confidence interval
Consider the following data set:
Log(News) LE1990 Log(News) LE 3.3 67.2 -1.5 46. 2.4 39.8 3.6 68. 4.2 71.7 3.4 68. 5.2 77.0 1.0 45. 5.7 75.5 1.9 54. 2.5 70.8 4.3 76. 5.1 76.0 2.8 51. 4.7 58.9 4.7 72. 3.2 64.5 4.2 76. 3.7 66.2 5.7 74. 5.0 71.6 3.9 69. 0.3 47.5 3.5 62. 0.9 44.4 3.6 65. 1.9 52.4 1.6 45. 5.1 77.4 5.2 69.
The data shows two variables, log of number of news paper per 1000 population and the life expectancy. To model the relationship between the two variables, assume log(News) as X and Life expectancy as Y. Let us compute regression between two variables.
The regression output calculated in Microsoft is shown below:
Regression Statistics Multiple R 0. R Square 0. Adjusted R Square 0. Standard Error 6. Observations 30 ANOVA df SS MS
Regression 1 2860.543 2860. Residual 28 1193.687 42. Total 29 4054. Coefficients Standard Error t Stat P-value Intercept 44.26421 2.644793 16.73636 4.09E- 16 Log(News) 5.738611 0.700566 8.191398 6.46E- 09
The coefficient of determination is here 0.70 i.e. 70.
The regression equation is given by
Y=44.26+5.74*X+e
The sample estimate of the coefficient of X is 5.73, however the population parameter (the true value) will be different. The confidence interval is calculated as:
95% confidence interval: (5.74-20.7, 5.74+20.7)
So the likely location of true parameter is: (4.34, 7.14)
Similarly we can make confidence interval for the intercept.
Hypothesis test:
Any theory about a parameter can be tested. For example someone says that the true coefficient of X is 7.0. This hypothesis can be tested as follows:
H0:ฮฒ=7.
H1:ฮฒโ 7.
The estimated coefficient ๐ฝฬ = 5.74 and 95% confidence interval is (4.34, 7.14)
Decision: since confidence interval covers the hypothesized value i.e. 7.0, the hypothesized value falls in the range which we propose. So the hypothesis cannot be rejected at 5% level of significance.
Facts about Hypothesis Tests: