Docsity

Lecture Notes on Interval Estimation and Hypothesis Testing | ECON 671, Exams of Introduction to Econometrics

Toggle sidebar
bg1
INTERVAL ESTIMATION AND HYPOTHESES TESTING
1. IDEA
An interval rather than a point estimate is often of interest. Confidence intervals are
thus important in empirical work. To construct interval estimates, standardized normal
random variables are often used.
2. STANDARDIZED NORM AL VARIABLES AND CONFIDE NCE IN TERVALS FO R THE ME AN
WITH σKNO WN
If Yis a normal random variable with mean βand variance σ2then
Z=Y−β
σ(1)
is a standard normal variable with mean zero and variance one. An estimate of β,ˆ
βis
given by the sample mean y. This then implies
ˆ
β=1
n
n
X
i=1
yi= ¯y∼Nβ, σ2
n
z=ˆ
β−β
hσ
√ni∼N(0,1)
(2)
So if γ1is the upper α/2percent critical value of a standard normal variable, i.e.
Z∞
γ1
1
√2πe−1
2z2dz =α
2then
1−α=F(γ1)−F(−γ1) = Pr "−γ1≤¯y−β
σ
√n≤γ1#
= Pr −γ1
σ
√n≤¯y−β≤γ1
σ
√n
= Pr γ1
σ
√n≥ −¯y+β≥ −γ1
σ
√n
= Pr ¯y−γ1
σ
√n≤β≤¯y+γ1
σ
√n
(3)
Date: August 13, 2004.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Lecture Notes on Interval Estimation and Hypothesis Testing | ECON 671 and more Exams Introduction to Econometrics in PDF only on Docsity!

1. IDEA

An interval rather than a point estimate is often of interest. Confidence intervals are thus important in empirical work. To construct interval estimates, standardized normal random variables are often used.

  1. STANDARDIZED NORMAL VARIABLES AND CONFIDENCE INTERVALS FOR THE MEAN WITH σ KNOWN If Y is a normal random variable with mean β and variance σ^2 then

Z =

Y − β σ

is a standard normal variable with mean zero and variance one. An estimate of β, βˆ is given by the sample mean y. This then implies

β^ ˆ =^1 n

∑^ n

i=

yi = ¯y ∼ N

β,

σ^2 n

z =

βˆ − β [ √σ n

] ∼ N (0, 1)

So if γ 1 is the upper α/ 2 percent critical value of a standard normal variable, i.e. ∫ (^) ∞

γ 1

2 π

e−^

(^12) z 2 dz =

α 2

then

1 − α = F (γ 1 ) − F (−γ 1 ) = Pr

[

−γ 1 ≤

¯y − β √^ σ n

≤ γ 1

]

= Pr

[

−γ 1

σ √ n

≤ ¯y − β ≤ γ 1

σ √ n

]

= Pr

[

γ 1

σ √ n

≥ −¯y + β ≥ −γ 1

σ √ n

]

= Pr

[

y ¯ − γ 1

σ √ n

≤ β ≤ ¯y + γ 1

σ √ n

]

Date: August 13, 2004. 1

Therefore, with σ known, [ y ¯ − γ 1

σ √ n

≤ β ≤ ¯y + γ 1

σ √ n

]

is said to be the (1 − α) 100% confidence interval for β.

  1. CONFIDENCE INTERVALS FOR THE MEAN WITH σ UNKNOWN The previous section gave an interval estimate for the mean of a population when σ was known. When σ is unknown, another method must be used. Recall from the section on probability distributions (equation 20) that the t random variable is defined as

t =

z √ χ^2 (ν) ν

where z is a standard normal and χ^2 (ν) is a χ^2 random variable with ν degrees of free- dom and z and χ^2 (ν) are independent. Also note from the same section (equation 9) that if Xi ∼ N (μ, σ^2 ) then

∑^ n

i=

xi − μ σ

∼ χ^2 (n)

and

∑^ n

i=

xi − x¯ σ

∼ χ^2 (n − 1)

So if Y ∼ N (β, σ^2 ) and Y¯ = βˆ, then we have the following

∑^ n

i=

yi − βˆ σ

∼ χ^2 (n − 1) (7)

We can use this information to find the distribution of (n−1)S

2 σ^2 where^ S

(^2) is equal to

S^2 =

n − 1

∑^ n

i=

(yi − βˆ)^2 (8)

Now substitute for S^2 and simplify as follows.

(n − 1)S^2 σ^2

(n − 1) σ^2

n − 1

∑^ n

i=

(yi − βˆ)^2

σ^2

∑^ n

i=

(yi − βˆ)^2

∑^ n

i=

yi − βˆ σ

∼ χ^2 (n − 1)

- 2 - 1 1 2

0.

Area with 5% in each tail

4. CONFIDENCE INTERVALS FOR THE VARIANCE

Remember from equation 10 that

(n − 1)S^2 σ^2

∼ χ^2 (n − 1) (14)

Now if γ 1 and γ 2 are such that

Pr

χ^2 (ν) ≤ γ 1

α 2

Pr

χ^2 (ν) ≥ γ 2

α 2

Then

1 − α = F (γ 2 , ν) − F (γ 1 , ν) = Pr

[

γ 1 ≤

(n − 1)S^2 σ^2

≤ γ 2

]

= Pr

[

γ 1 σ^2 n − 1

≤ S^2 ≤

γ 2 σ^2 n − 1

]

= Pr

[

(n − 1) σ^2

γ 1 ≥

S^2

(n − 1) σ^2 γ 2

]

= Pr

[

(n − 1)S^2 γ 2

≤ σ^2 ≤

(n − 1)S^2 γ 1

]

is the (1−α) 100% confidence interval for the variance σ^2. The following figure gives the area such that 5% of the distribution is the left of the shaded area and 5% of the distribution is the right of the shaded area.

4 8 12 16 20 24 28

0.

0.

0.

0.

Area with 5% in each tail

5. TWO SAMPLES AND A CONFIDENCE INTERVAL FOR THE VARIANCES

Suppose that y^11 , y^12 ,... , y^1 n is a random sample from a distribution Y 1 ∼ N (β 1 , σ^21 ) and y 12 , y 22 ,... , y^2 n is a random sample from a distribution Y 2 ∼ N (β 2 , σ^22 ).

We can now construct a confidence interval as follows:

1 − α = Pr

[

γ 1 ≤

S 12 σ^22 S 22 σ^21

≤ γ 2

]

= Pr

[

S 22

S 12

γ 1 ≤

σ^22 σ^21

S^22

S^21

γ 2

]

= Pr

[

S 12

S 22

γ 1

σ 12 σ 22

S 12

S 22

γ 2

]

= Pr

[

S 12

S 22

γ 2

σ 12 σ 22

S 12

S 22

γ 1

]

This is then the (1 − α) 100% confidence interval for ratio of the variances.

6. HYPOTHESIS TESTING

6.1. A statistical hypothesis is an assertion or conjecture about the distribution of one or more random variables.

6.2. To test statistical hypotheses it is necessary to formulate alternative hypotheses. For example if the hypothesis is that the mean of a population β is greater than or equal to β 0 the hypothesis is

β ≥ β 0 and an alternative would be

β < β 0 Frequently statisticians state their hypotheses as the opposite of what they believe to be true with the hope that the test procedures will lead to their rejection.

6.3. The procedure to test hypotheses is to compute a test statistic θˆ which will tell whether the hypothesis should be accepted or rejected. The sample space is partitioned into two

regions: the acceptance region and the rejection region. If θˆ is in the rejection region the hypothesis is rejected, and not rejected otherwise.

6.4. Suppose that the null hypothesis is θ = θ 0 and the alternative is θ = θ 1. The statis- tician can make two possible types of errors. If θ = θ 0 and the test rejects θ = θ 0 and concludes θ = θ 1 then the error is of type I.

Rejection of the null hypothesis when it is true is a type I error. If θ = θ 1 and the test does not reject θ = θ 0 but accepts that θ = θ 0 then the error is of type II.

Acceptance of the null hypothesis when it is false is a type II error.

6.5. The rejection region for a hypothesis H 0 is called the critical region of the test and the probability of obtaining a value of the test statistic inside the critical region when H 0 is true is called the size of the critical region. Thus the size of the critical region is just the probability of committing a type I error denoted by α. This probability is also called the level of significance of the test. The prob- ability of committing a type II error is denoted by β.

6.6. Tests where H 0 is of the form θ = θ 0 and the alternative H 1 is of the two-sided form θ 6 = θ 0 are called two-tailed tests. When H 0 is of the form θ = θ 0 but H 1 θ < θ 0 or θ > θ 0 , the test is called a one-tailed test.

6.7. The probabilities of committing the two types of error can be summarized as follows.

Decision Do not reject H 0 Reject H 0 True Correct Decision Type I Error H 0 False Type II Error Correct Decision

6.8. Probability values ( p -values) for statistical tests. The p-value associated with a sta- tistical test is the probability that we obtain the observed value of the test statistic or a value that is more extreme in the direction of the alternative hypothesis calculated when H 0 is true. Rather than the critical region ahead of time, the p-value of a test can be reported and the reader make a decision based on it. If T is a test statistic, the p-value, or attained significance level, is the smallest level of significance α for which the observed data indicate that the null hypothesis should be rejected. The smaller the p-value becomes, the more compelling is the evidence that the null hy- pothesis should be rejected. If the desired level of significance for a statistical test is greater than or equal to the p-value, the null hypothesis is rejected for that value of α. The null hypothesis should be rejected for any value of α down to and including the p-value.

6.9. Example. Consider the following scores from a graduate economics class which has eighteen students.

Scores = { 46 , 58 , 87 , 97. 5 , 82. 5 , 68 , 83. 25 , 99. 5 , 66. 5 , 75. 5 , 62. 5 , 67 , 78 , 32 , 74. 5 , 47 , 99. 5 , 26 }

- 2 - 1 1 2

0.

Area with 2.5% in each tail

where r is the degrees of freedom which in this case is 17. This integral can be evalu- ated numerically and will have value 0.027 008 3. If we double this we get 0.054 016 5. So 2.700 83% of the t-distribution with 17 degrees of freedom lies to the right of 2.069 83 and 2.700 83% of the distributionlies to the left of − 2 .069 83.

7. SUMMARY TABLES

Tables 1, 2, 3 and 4 below summarize the information on conducting some of the more common hypothesis tests on simple random samples. We use the notation that

zα =

[

zα :

zα

f (z; θ) dz = α

]

i.e. zα is the value such that α of the distribution lies to the right of zα.

TABLE 1. Level α Tests on μ when σ^2 is Known.

Test Statistic: z =

¯x − μ 0 σ/

n

. (Φ(z) is the distribution function for a standard

normal random variable.)

Testing Problem Hypotheses Reject H 0 if P-Value Upper One-sided H 0 : μ ≤ μ 0 z > zα P (Z ≥ z | H 0 ) vs ⇔ 1 − Φ(z) H 1 : μ > μ 0 x > μ¯ 0 + zα √^ σ n Lower One-sided H 0 : μ ≥ μ 0 z < −za P (Z ≤ z | H 0 ) vs ⇔ = H 1 : μ < μ 0 x < μ¯ 0 − zα √^ σ n Φ(z) Two-sided H 0 : μ = μ 0 |z| > zα/ 2 P (|Z| ≥ |z| | H 0 ) vs ⇔ 2[1 − Φ(|z|)] H 1 : μ 6 = μ 0 |x¯ − μ 0 | > zα/ 2 √^ σ n

TABLE 2. Level α Tests on μ when σ^2 is Unknown.

Test Statistic: t =

x¯ − μ 0 S/

n

. (P (Tn− 1 ≥ t) is the area in the upper tail of the

t-distribution greater than t.)

Testing Problem Hypotheses Reject H 0 if P -Value Upper One-sided H 0 : μ ≤ μ 0 t > tn−l, α vs ⇔ P (Tn− 1 ≥ t) H 1 : μ > μ 0 x > μ¯ 0 + tn− 1 , α

S √ n Lower One-sided H 0 : μ ≥ μ 0 t < −tn− 1 , α vs ⇔ P (Tn− 1 ≤ t) H 1 : μ < μ 0 x < μ¯ 0 − tn− 1 , α

S √ n Two-sided H 0 : μ = μ 0 |t| > tn− 1 , α/ 2 P (|Tn− 1 | ≥ |t|) vs ⇔ 2 P (Tn− 1 ≥ |t|) H 1 : μ 6 = μ 0 |x¯ − μ 0 | > tn− 1 , α/ 2

S √ n

8. EXAMPLE

Consider the following income data for carpenters and house painters.

carpenters painters

sample size n 1 = 12 n 2 = 15 mean income ¯x = $6000 y¯ = $

estimated variance s^2 x = $565 000 s^2 y = $362 500

8.1. If it is known that σ^2 x = 600 000, test the hypothesis that μx = $7000 with α =. 05 against the alternative μx 6 = $7000. The solution is as follows:

x ¯ ∼ N

μx,

σ^2 x n 1

z =

x¯ − μx σx √ n 1

∼ N (0, 1)

600 000 12

The critical region is obtained by finding the value of γ such that the area in each tail of the distribution is equal to .025. This is done by consulting a normal table. The value of γ is 1.96. Thus if |z| ≥ 1. 96 we reject the hypothesis. Therefore, we reject H 0 : μx = $7000.

8.2. Test the hypothesis that μx ≥ $7000 versus the alternative μ < $7000 assuming that σ^2 is known as before. We need a critical region such that only 5% of the distribution lies to the left of γ. Specif- ically we want a critical value for the test such that the probability of a type I error is equal to α. We write this as

P (type I error) = P (¯x < c | μ = 7000)

= P

z =

x¯ − μx √σx n 1

c − μx √σx n 1

μ^ = 7000

Since the normal is symmetric we use the probability that 5% is the right to γ. This gives a critical value of 1.645.

Computing gives

c − 7000 √ 600 000 12

⇒ c − 7000 = (− 1 .645)(

⇒ c − 7000 = − 367. 833

⇒ c = 6 632. 166

So we reject the hypothesis if x¯ is less than 6632.166. Alternatively this test can be ex- pressed in terms of the standardized test statistic.

z =

600 000 12

We reject the null hypothesis if z ≤ − 1. 645. So we reject the null hypothesis.

8.3. Note that with two-tailed tests an equivalent procedure is to construct the (1 − α) level confidence interval and reject the null hypothesis if the hypothesized value does not lie in that interval.

8.4. Test the same hypothesis in (8.1) for the case in which σ^2 x is not known. We use a t-test as follows.

¯x ∼ N

μx,

σ x^2 n 1

x ¯ − μx s¯x

¯x − μx sx √ n

∼ t(n − 1)

565 000 12

The critical region is obtained by finding the value of γ such that the area in each tail of the distribution is equal to .025. This is done by consulting a t-table with (n − 1 = 11) degrees of freedom. The value of γ is 2.201. Thus if |t| ≥ 2. 201 we reject the hypothesis. Therefore, we reject H 0 : μx = $7000.

larger compute as in (32). Now however use α/ 2 for significance. We reject the hypothesis if

S 12 S 22

Fα/ 2 , n 1 − 1 , n 2 − 1

or

S 22

S 12

Fα/ 2 , n 2 − 1 , n 1 − 1

Consider this last case. Since s^2 x is larger, put it on top in the ratio. The critical value of F is F (11, 14 : .025) = 3. 10. For this case we obtain

s^2 x s^2 y

Since this is smaller than 3.10 we fail to reject H 0 : σ^2 x = σ^2 y. Consider also a confidence interval for the ratio of the variances with α = .05. Use equa- tion 23 as follows

1 − α = Pr

[

S^2 x S^2 y

γ 2

σ^2 x σ y^2

S x^2 S y^2

γ 1

]

The upper critical level is easy to obtain as F (11, 14 , : .025) = 3. 10 since we want the area to the left of the critical value to be .975. Since the tables don’t contain the lower tail, we obtain the critical value γ 1 (11, 14) as (1/γ 1 (14, 11). This critical value is given by F (14, 11 : .025) = 3. 36. The reciprocal of this is .297. Notice that the confidence interval is in reciprocal form so we also need the reciprocal of 3 .1 =. 3225. The confidence interval is then given by

1 − α = Pr

[

σ x^2 σ y^2

]

= Pr

[

σ x^2 σ y^2

] (39)

For problems such as this, it is much easier to use computer programs to obtain the necessary values and probabilities from the F distribution than to use tables.