Professional Documents
Culture Documents
September 4, 2020
1 Lecture 5
If the hypothesis was: Test
H0 : η = 14000
H1 : η > 14000
at α near 0.05
Solution:
Test statistic:
T1 = N o. of obsns > 14000 = 13
Alternatively:
P (Y > t2 ) = α
P (Y > t2 ) ∼
= 0.05
P (Y > 13) = 1 − P (Y ≤ 13) = 1 − 0.9423 = 0.0577
Reject H0 if T1 = 13 > t2 = 13
Example 2: The soil samples taken from a particular region were subjected
to chemical analysis to determine the pH of each sample. The sample pH’s were
found to be:
5.93 6.08 5.86 5.91 6.12
5.90 5.95 5.89 5.98 5.96
Test
H0 : M = 6.0
H1 : M 6= 6.0
at α = 0.05
1
Solution: Y ∼ Bin(n = 10, p = 0.5)
Let
Y = N o. of pH 0 s in the sample which exceed 6.0
Y =2
α1 = P (Y ≥ 9) = 1 − P (Y ≤ 8)
= 1 − 0.9893 = 0.0107
α2 = P (Y ≤ 1) = 0.0108
⇒ α = α1 + α2 = 0.0215
Reject H0 if Y ≥ 9 or Y ≤ 1.
Since Y = 2, we fail to reject H0 .
Alternatively: Let
p − value = 2P (Y ≥ 8)
= 2[1 − P (Y ≤ 7)]
= 0.11
we fail to reject H0 .
************************************************************
Now, if our hypothesis for the Median is given as
H0 : m = m0
A:
B:
2
C:
H1 : m 6= m0 ⇒ Reject H0 if Y ≥ c or Y ≤ n − c
If n is large, then
t2 ∼
p
= np ∗ +z1−α np ∗ (1 − p∗)
Property:
r−1
X n
P (xp∗ < x(r) ) = (p∗)i (1 − p∗)n−i
i
i=1
Proof: for r = 1
0
P (xp∗< x(1)
) = P (allxi s > xp∗ )
0 n
(p∗)i (1 − p∗)n−i
P
=
i=0 i
0 n
(p∗)0 (1 − p∗)n = (1 − p∗)n
P
=
i=0 0
for r = 2
P (xp∗ < x(2) ) = P (atleast(n − 1)of x1 > xp∗ )
= P (oneorf
ewerx1 is < xp∗ )
1 n
(p∗)i (1 − p∗)n−i
P
=
i=0 i
and for r = r
0
) = P (r − 1orf ewerx sare < xp∗ )
P (xp∗ < x(r)
r−1 n
(p∗)i (1 − p∗)n−i
P
=
i=1 i
To find the confidence interval, we want
1−α∼ = P (xr ≤ xp∗ ≤ x(s) )
= P (xp∗ ≤ x(s) ) − P (xp∗ ≤ x(r) )
Assuming distribution to be continuous
Choose r&s so that
α
P (xp∗ < x(s) ) = 1 − 2
P (xp∗ < x(r) ) = α2
which gives our confidence interval
3
Example: Find an approximate 95% confidence interval (C.I.) for median of
the income data.
P (Y ≤ 5) =0.0207 = α1
5 20
(0.5)i (0.5)n−i = 0.0207
P
=
i=0 i
so that r − 1 = 5 ⇒ r = 6.
14
X 20
P (Y ≤ 14) = (0.5)i (0.5)n−i = 0.9793
i
i=0
so that r − 1 = 14 ⇒ r = 15.
Therefore,