Docsity

Confidence Interval and Hypothesis Tests - Econometrics - Lecture Notes, Study notes of Econometrics and Mathematical Economics

Toggle sidebar
bg1
Chapter 4
Confidence Interval & Hypothesis Tests
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 ๐‘‹=๏ฟฝ๐‘‹1
๐‘‹2
๐‘‹3๏ฟฝ be a vector than
๐ถ๐‘‚๐‘‰(๐‘‹)=๏ฟฝ๐œŽ12๐œŽ12 ๐œŽ13
๐œŽ12 ๐œŽ12๐œŽ23
๐œŽ13 ๐œŽ23 ๐œŽ12๏ฟฝ
Where ๐œŽ๐‘–2=๐‘ฃ๐‘Ž๐‘Ÿ(๐‘‹๐‘–) and ๐œŽ๐‘–๐‘—=๐‘๐‘œ๐‘ฃ(๐‘‹๐‘–,๐‘‹๐‘—)
Therefore if we find variance covariance matrix of vector โˆˆ=๏ฟฝ๐œ€1
๐œ€2
โ€ฆ
โ€ฆ
๐œ€๐‘›๏ฟฝ, we have ๐‘ฃ๐‘Ž๐‘Ÿ(๐œ€๐‘–)=๐œŽ2 and
๐‘๐‘œ๐‘ฃ๏ฟฝ๐‘‹๐‘–,๐‘‹๐‘—๏ฟฝ= 0 therefore:
๐ถ๐‘‚๐‘‰(โˆˆ)=๏ฟฝ๐œŽ2
0
0
๐œŽ2โ€ฆ 0
โ€ฆ 0
โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ
0 0 โ‹ฏ ๐œŽ2๏ฟฝ=๐œŽ2๐ผ
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
Docsity.com
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Confidence Interval and Hypothesis Tests - Econometrics - Lecture Notes and more Study notes Econometrics and Mathematical Economics in PDF only on Docsity!

Chapter 4

Confidence Interval & Hypothesis Tests

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

๐‘ฃ๐‘Ž๐‘Ÿ(๐›ฝฬ‚) = ๐‘ฃ๐‘Ž๐‘Ÿ((๐‘‹ โ€ฒ^ ๐‘‹)โˆ’1^ ๐‘‹ โ€ฒ^ โˆˆ)

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:

  1. Estimate OLS estimate ๐›ฝฬ‚ = (๐‘‹โ€ฒ๐‘‹)โˆ’1^ ๐‘‹โ€ฒ๐‘Œ
  2. Estimate ๐‘Œ๏ฟฝ^ = ๐‘‹๐›ฝฬ‚
  3. Estimate โˆˆ๏ฟฝ= ๐‘’ = ๐‘Œ๏ฟฝ โˆ’ ๐‘Œ
  4. Calculate ๐œŽ๏ฟฝ 2 = โˆˆ โ€ฒ โˆˆ๏ฟฝ^ ( (^) ๐‘› โˆ’ ๐‘˜)where n= total # of observations and k is total number of parameter estimated via OLS

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 ๐‘–

๐‘‡๐‘†๐‘† = ๏ฟฝ (๐‘ฆ๐‘– โˆ’ ๐‘ฆ๏ฟฝ)^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.

โ‡’ ๐œŽ๏ฟฝ 2 = 3 6โˆ’2.^14 = 0.

โ‡’ ๐‘ฃ๐‘Ž๐‘Ÿ๏ฟฝ๐›ฝฬ‚๏ฟฝ = ๐œŽ๏ฟฝ 2 (๐‘‹ โ€ฒ^ ๐‘‹)โˆ’1^ = 0420.^785 ๏ฟฝ โˆ’^36442 โˆ’ 642 ๏ฟฝ = ๏ฟฝ โˆ’0.07850.68^ โˆ’0.0110.0785 ๏ฟฝ

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.

  1. Perhaps this is the reason that someone said โ€˜I is only economics in which two person can get a Nobel Prize on the same phenomenon, but presenting exactly opposite theories.

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: