Homework 10 Solution
Homework 10 Solution
1
Apply the formula to calculate z score:
X −µ 1570 − 1600
z= √ = √ = −2.5
σ/ n 120/ 100
2
Problem 3: (Test involving differences of means and proportions)
An examination was given to two classes consisting of 40 and 50 students, respectively.
In the first class the mean grade was 74 with a standard deviation of 8, while in the
second class the mean grade was 78 with a standard deviation of 7. Is there a significant
difference between the performance of the two classes at a level of significance of:
(a) 0.05
(b) 0.01
(c) What is the P value of the test?
Solution:
n1 = 40, n2 = 50
X 1 = 74, X 2 = 78
σ1 = 78, σ2 = 7
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µX 1 = µX 2 and the difference is barely between two classes due
to chance
- Alternative hypothesis (H1 ) : µX 1 6= µX 2 and the difference is significant between two
classes
⇒ Two Samples with Two-Tailed Hypothesis Testing
n1 , n2 > 30; σ1 , σ2 are known ⇒ z-test
The mean and standard deviation of the difference in mean are given by:
µX 1 −X 2 = 0
s r
σ12 σ22 82 72
σX 1 −X 2 = + = + = 1.606
n1 n2 40 50
X1 − X2 74 − 78
z= = = −2.49
σX 1 −X 2 1.606
3
a)z = -2.49 ⇒ z is outside the range -1.96 to 1.96
Therefore, we reject the hypothesis H0 at 0.05 level of significance.
There is a significance difference in performance between two classes.
b)z = -2.49 ⇒ z is inside the range -2.58 to 2.58
Therefore, we accept the hypothesis H0 at 0.01 level of significance.
There is no significance difference in performance between two classes.
c)
P = 2p(z ≤ −2.49) = 2 ∗ 0.0064 = 0.0128
The mean and standard deviation of the difference in mean are given by:
µX 1 −X 2 = 0
s r
σ12 σ22 (2.5)2 (2.8)2
σX 1 −X 2 = + = + = 0.53
n1 n2 50 50
Apply the formula to calculate z score:
X1 − X2 68.2 − 67.5
z= = = 1.32
σX 1 −X 2 0.53
4
z = 1.32 ⇒ z < 1.645
Therefore, we accept the hypothesis H0 at 0.05 level of significance.
There is no difference between the mean height.
b)
P = p(z ≥ 1.32) = p(Z ≤ −1.32) = 0.0934
υ = n - 1 = 10 - 1 = 9 (degrees of freedom)
υ = n - 1 = 6 - 1 = 5 (degrees of freedom)
6
⇒ Critical value: −tα2 = −t0.01 = −3.36
We get the following decision rule:
- Reject H0 if t score of the sample mean X is smaller than -3.36
- Accept H0 otherwise
X − µ√ 7750 − 8000 √
t= n−1= 6 − 1 = −3.86
S 145
υ = n1 + n2 - 2 = 16 + 14 - 2 = 28 (degrees of freedom)
7
α1 = 0.01 for both tails
⇒ α1 /2 = 0.01/2 = 0.005 for each tail
⇒ Critical values: −tα1 /2 = −t0.005 = −2.76; tα1 /2 = t0.005 = 2.76
We get the following decision rule:
- Reject H0 if t score of the sample mean X is outside the range -2.76 to 2.76
- Accept H0 otherwise
X1 − X2 107 − 112
t= p = p = −1.45
σ 1/n1 + 1/n2 9.44 1/16 + 1/14
8
(c) What is the P value of the test?
Solution:
n = 20
S = 0.32
σ = 0.25
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : σ1 = 0.25 (oz) and the observed result is due to chance
- Alternative hypothesis (H1 ) : σ1 > 0.25 (oz) and the variability has increased
⇒ One Sample with One-Tailed Hypothesis Testing
n < 30; σ is known ⇒ χ2 -test
υ = n - 1 = 20 - 1 = 19 (degrees of freedom)
nS 2 20(0.32)2
χ2 = = = 32.8
σ2 (0.25)2