Professional Documents
Culture Documents
Department of Economics
ECON10005 Quantitative Methods 1
Exercises: Replacement for Good Friday
1
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
2
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
3
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
4
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
5
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
6
Upper tail test for a mean - the story so far...
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
Decision rule: reject H0 if t is “far enough” into the upper tail
of the tn−1 distribution;
otherwise, do not reject H0 .
7
Example
μ : average drive length
with Nike ball
H0 : μ = 208
HA : μ>208
Sample:
n = 100
ˉ −μ
X 209.45 − 208 ˉ = 209.45
X
t= = = 1.193 ⇐
s/ n 12.158/ 100 s = 12.158
8
Upper tail test decision rule at 5% significance level
10
Upper tail test decision rule: p-value approach
n = 100 ⇒ df = 99
11
Upper tail test decision rule: p-value approach
“Right Tail”
t = 1.193
12
Upper tail test decision rule: p-value approach
Conclusion: the evidence does not support Nike’s claim.
13
Upper tail test decision rule at 5% significance level
P (tn−1 ≤ t) = 0.95
(d.f. = n − 1) 15
Upper tail test decision rule, n = 100
For given significance level α and degrees of freedom n − 1,
calculate the critical value tα,n−1 satisfying P (tn−1 > tα,n−1 ) = α.
Golf example: the critical value is t0.05, 99 = 1.6604
the t test statistic is t = 1.193
t < t0.05, 99 ⇒ Do not reject H0 at the 5% significance level.
Conclusion: the evidence does not support Nike’s claim.
Decisions from p-value and critical value rules must be the same.
17
Upper tail test decision rule: p-value and critical value approach
Distance of t into the upper tail can be measured by P (tn−1 > t).
P (tn−1 > t) is called the p-value for an upper tail test.
p in Excel: = T.DIST.RT(t, n − 1, TRUE)
Decision rule at significance level α :
reject H0 if p < α
Equivalently:
reject H0 if t > tα,n−1
where tα,n−1 is the critical value satisfying P (tn−1 > tα,n−1 ) = α.
tα,n−1 in Excel: = T.INV(1 − α, n − 1)
18
Lower tail test for a mean
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
Decision rule: reject H0 if t is “far enough” into the lower tail
of the tn−1 distribution;
otherwise, do not reject H0 .
19
Lower tail test decision rule: p-value and critical value forms
Distance of t into the lower tail can be measured by P (tn−1 < t).
P (tn−1 <t) is called the p-value for an lower tail test.
p in Excel: = T.DIST(t, n − 1, TRUE)
Decision rule at significance level α :
reject H0 if p < α
Equivalently:
reject H0 if t < −tα,n−1
where tα,n−1 is the critical value satisfying P (tn−1 > tα,n−1 ) = α.
tα,n−1 in Excel: = T.INV(1 − α, n − 1)
−tα,n−1 in Excel: = T.INV(α, n − 1)
20
Example
μ : average change in
hours lost across all
departments
n = 50
H0 : μ = 0
(safety equipment
ineffective)
HA : μ<0
(safety equipment
effective)
α = 0.10
Decision rule: reject H0 if p < α = 0.10
21
Decision Rule:
p value Approach
Critical Value Approach
Reject H0 if t<−t0.10, 49
22
}
ˉ = −1.20
X
−1.20
s = 5.063 t= = −1.676
5.063/ 50
n = 50
⋮
p = P (t49 < t) = 0.0501
t = −1.676
23
}
ˉ = −1.20
X
−1.20
s = 5.063 t= = −1.676
5.063/ 50
n = 50
Conclusion: there is evidence that the equipment is
⋮ effective at the 10% significance level.
24
}
ˉ = −1.20
X
−1.20
s = 5.063 t= = −1.676
5.063/ 50
n = 50
⋮
P (t49 < −1.2991) = 0.10 Critical value = −1.2991
25
}
ˉ = −1.20
X
−1.20
s = 5.063 t= = −1.676
5.063/ 50
n = 50
⋮
t = −1.676 Critical value = −1.2991
“rejection region” 26
}
ˉ = −1.20
X
−1.20
s = 5.063 t= = −1.676
5.063/ 50
n = 50
Conclusion: there is evidence that the equipment is
⋮ effective at the 10% significance level.
Decisions from p-value and critical value rules must be the same.
27
Two tail test for a mean
We have a simple random sample X1 , … , Xn from a population
with mean μ = E(Xi ).
ˉ is an estimator of μ.
The sample mean X
Decision rule: reject H0 if t is “far enough” into either tail
of the tn−1 distribution;
otherwise, do not reject H0 .
28
Two tail test decision rule: critical value approach
Decision rule at significance level α :
reject H0 if t > tα/2,n−1 or t < −tα/2,n−1
where tα/2,n−1 is the critical value satisfying P (tn−1 > tα/2,n−1 ) = α2 .
α
If H0 is true : P (t > tα/2, n−1 ) = 2
α
P (t < −tα/2, n−1 ) = 2
α α
⇒ P (t > tα/2,n−1 or t < −tα/2,n−1 ) = 2 + 2 =α
This shows the decision rule has significance level of α. 29
Two tail test decision rule, 5% significance level
0.025 0.025
Does the mean IQ for children with CI’s differ from
the mean IQ for the general population (i.e. 100)?
31
Example: IQ scores for children with Cochlear Implants
Does the mean IQ for children with CI’s differ from
the mean IQ for the general population (i.e. 100)?
μ : mean IQ for children with CI’s
H0 : μ = 100, HA : μ=100
32
Example: IQ scores for children with Cochlear Implants
Does the mean IQ for children with CI’s differ from
the mean IQ for the general population (i.e. 100)?
μ : mean IQ for children with CI’s
H0 : μ = 100, HA : μ = 100
ˉ = 105.2222, s = 12.5356
n = 90, X
105.2222 − 100
t= = 3.95
12.5356/ 90
Default:
⋮ t0.025,89 = T.INV(0.975, 89) = 1.987 α = 0.05
α α
2 = 0.025 1− 2 = 0.975
Critical value decision rule: reject H0 if ∣t∣ > tα/2, n−1 33
Example: IQ scores for children with Cochlear Implants
Does the mean IQ for children with CI’s differ from
the mean IQ for the general population (i.e. 100)?
μ : mean IQ for children with CI’s
H0 : μ = 100, HA : μ = 100
ˉ = 105.2222, s = 12.5356
n = 90, X
105.2222 − 100
t= = 3.95
12.5356/ 90
⋮ t0.025,89 = T.INV(0.975, 89) = 1.987
The difference is significant at the the 5% level. 34
Two tail test decision rule: p-value approach
If ∣t∣ > tα/2, n−1 then P (tn−1 > ∣t∣) < P (tn−1 > tα/2, n−1 )
(i.e. ∣t∣ is “further into the tail” than tα/2, n−1 .)
35
Two tail test decision rule: p-value approach
If ∣t∣ > tα/2, n−1 then P (tn−1 > ∣t∣) < P (tn−1 > tα/2, n−1 )
α
2 P (tn−1 > ∣t∣) < 2
2
36
Two tail test decision rule: p-value approach
37
Example: IQ scores for children with Cochlear Implants
Does the mean IQ for children with CI’s differ from
the mean IQ for the general population (i.e. 100)?
μ : mean IQ for children with CI’s
H0 : μ = 100, HA : μ = 100
ˉ = 105.2222, s = 12.5356
n = 90, X
105.2222 − 100
t= = 3.95
12.5356/ 90
⋮ p = T.DIST.2T(ABS(3.95), 89) = 0.0002
The difference is significant at the the 5% level. 38
Things to know
39