0% found this document useful (0 votes)
557 views9 pages

Homework 10 Solution

The document provides solutions to 5 problems involving hypothesis testing using normal and t-distributions. For Problem 1, the hypothesis that the mean lifetime is 1600 hours is rejected at 0.05 but not 0.01 significance. For Problem 2, the claim of increased cable strength can be supported at 0.01 significance. For Problem 3, differences in student grades are significant at 0.05 but not 0.01.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
557 views9 pages

Homework 10 Solution

The document provides solutions to 5 problems involving hypothesis testing using normal and t-distributions. For Problem 1, the hypothesis that the mean lifetime is 1600 hours is rejected at 0.05 but not 0.01 significance. For Problem 2, the claim of increased cable strength can be supported at 0.01 significance. For Problem 3, differences in student grades are significant at 0.05 but not 0.01.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Solution for Problem Set 10

HANU - Faculty of Information and Technology


MAT204: Probability & Statistics
June 30, 2015

Problem 1: (Test of means and proportions using normal distribution)


The mean lifetime of a sample of 100 fluorescent light bulbs produced by a company
is computed to be 1570 hours with a standard deviation of 120 hours. If is the mean
lifetime of all the bulbs produced by the company, test the hypothesis µ = 1600 hours
against the alternative hypothesis µ 6= 1600 hours, using a level of significance of:
(a) 0.05
(b) 0.01.
(c) Find the P value of the test.
Solution:
n = 100
X = 1570
σ = 120
µ = 1600
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µ = 1600 (hours)
- Alternative hypothesis (H1 ) : µ 6= 1600 (hours)
⇒ One Sample with Two-Tailed Hypothesis Testing
n > 30; σ is known ⇒ z-test

α1 = 0.05 for both tails


⇒ α1 /2 = 0.05/2 = 0.025 for each tail
⇒ Critical values: zα1 /2 = z0.025 = −1.96; −zα1 /2 = −z0.025 = 1.96
We get the following decision rule:
- Reject H0 if z score of the sample mean X is outside the range -1.96 to 1.96
- Accept H0 otherwise

α2 = 0.01 for both tails


⇒ α2 /2 = 0.01/2 = 0.005 for each tail
⇒ Critical values: zα2 /2 = z0.005 = −2.58; −zα2 /2 = z0.005 = 2.58
We get the following decision rule:
- Reject H0 if z score of the sample mean X is outside the range -2.58 to 2.58
- Accept H0 otherwise

1
Apply the formula to calculate z score:
X −µ 1570 − 1600
z= √ = √ = −2.5
σ/ n 120/ 100

a)z = -2.5 ⇒ z is outside the range -1.96 to 1.96


Therefore, we reject the hypothesis H0 at 0.05 level of significance.
b)z = -2.5 ⇒ z is inside the range -2.58 to 2.58
Therefore, we accept the hypothesis H0 at 0.01 level of significance.
c)
P = 2p(z ≤ −2.58) = 2 ∗ 0.0062 = 0.0124

Problem 2: (Test of means and proportions using normal distribution)


The breaking strengths of cables produced by a manufacturer have mean 1800 lb and
standard deviation 100 lb. By a new technique in the manufacturing process it is
claimed that the breaking strength can be increased. To test this claim, a sample of 50
cables is tested, and it is found that the mean breaking strength is 1850 lb.
(a) Can we support the claim at a 0.01 level of significance?
(b) What is the P value of the test?
Solution:
n = 50
X = 1850
σ = 100
µ = 1800
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µ = 1800 (lb) and there is no change on breaking strength
- Alternative hypothesis (H1 ) : µ > 1800 (lb) and there is a change on breaking strength
⇒ One Sample with One-Tailed Hypothesis Testing
n > 30; σ is known ⇒ z-test

a) α = 0.01 for one tail only


⇒ Critical value: −zα = −z0.01 = 2.33
We get the following decision rule:
- Reject H0 if z score of the sample mean X is greater than 2.33
- Accept H0 otherwise

Apply the formula to calculate z score:


X −µ 18500 − 1800
z= √ = √ = 3.55
σ/ n 100/ 50
z = 3.55 ⇒ z > 2.33
Therefore, we reject the hypothesis H0 at 0.01 level of significance.
The result is highly significant and the claim will be supported.
b)
P = p(z ≥ 3.55) = p(z ≤ −3.55) = 0.0002

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

α1 = 0.05 for both tails


⇒ α1 /2 = 0.05/2 = 0.025 for each tail
⇒ Critical values: zα1 /2 = z0.025 = −1.96; −zα1 /2 = −z0.025 = 1.96
We get the following decision rule:
- Reject H0 if z score of the sample mean X is outside the range -1.96 to 1.96
- Accept H0 otherwise

α2 = 0.01 for both tails


⇒ α2 /2 = 0.01/2 = 0.005 for each tail
⇒ Critical values: zα2 /2 = z0.005 = −2.58; −zα2 /2 = −z0.005 = 2.58
We get the following decision rule:
- Reject H0 if z score of the sample mean X is outside the range -2.58 to 2.58
- Accept H0 otherwise

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

Apply the formula to calculate z score:

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

Problem 4: (Test involving differences of means and proportions)


The mean height of 50 male students who showed above-average participation in college
athletics was 68.2 inches with a standard deviation of 2.5 inches, while 50 male students
who showed no interest in such participation had a mean height of 67.5 inches with a
standard deviation of 2.8 inches.
(a) Test the hypothesis that male students who participate in college athletics are taller
than other male students.
(b) What is the P value of the test?
Solution:
n1 = 50, n2 = 50
X 1 = 68.2, X 2 = 67.5
σ1 = 2.5, σ2 = 2.8
Null hypothesis (H0 ) : µX 1 = µX 2 and there is no difference between two mean heights
Alternative hypothesis (H1 ) : µX 1 > µX 2 and the mean height of the first group is
greater than the mean height of the second group
⇒ Two Samples with One-Tailed Hypothesis Testing
n1 , n2 > 30; σ1 , σ2 are known ⇒ z-test

a) α = 0.05 for one tail only


(Note: Take a small random value of α if it is not given such as 0.05 or 0.01)
⇒ Critical value: −zα = −z0.05 = 1.645
We get the following decision rule:
- Reject H0 if z score of the sample mean X is greater than 1.645
- Accept H0 otherwise

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

Problem 5: (Test involving student’s t distribution)


In the past a machine has produced washers having a mean thickness of 0.050 inch. To
determine whether the machine is in proper working order a sample of 10 washers is
chosen for which the mean thickness is 0.053 inch and the standard deviation is 0.003
inch. Test the hypothesis that the machine is in proper working order using a level of
significance of:
(a) 0.05
(b) 0.01
(c) Find the P value of the test.
Solution:
n = 10
X = 0.053
µ = 0.050
S = 0.003
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µ = 0.050 and the machine is in proper working order
- Alternative hypothesis (H1 ) : µ 6= 0.050 and the machine is not in proper working
order
⇒ One Sample with Two-Tailed Hypothesis Testing
n < 30; σ is unknown ⇒ t-test

υ = n - 1 = 10 - 1 = 9 (degrees of freedom)

α1 = 0.05 for both tails


⇒ α1 /2 = 0.05/2 = 0.025 for each tail
⇒ Critical values: −tα1 /2 = −t0.025 = −2.26; tα1 /2 = t0.025 = 2.26
We get the following decision rule:
- Reject H0 if t score of the sample mean X is outside the range -2.26 to 2.26
- Accept H0 otherwise

α2 = 0.01 for both tails


⇒ α2 /2 = 0.01/2 = 0.005 for each tail
⇒ Critical values: −tα2 /2 = −t0.005 = −3.25; tα2 /2 = t0.005 = 3.25
We get the following decision rule:
- Reject H0 if t score of the sample mean X is outside the range -3.25 to 3.25
- Accept H0 otherwise

Apply the formula to calculate t score:


X − µ√ 0.053 − 0.050 √
t= n−1= 10 − 1 = 3.00
S 0.003
5
a)t = 3.00 ⇒ t is outside the range -2.26 to 2.26
Therefore, we reject the hypothesis H0 at 0.05 level of significance.
The machine is not in proper working order.
b)t = 3.00 ⇒ t is inside the range -3.25 to 3.25
Therefore, we accept the hypothesis H0 at 0.01 level of significance.
The machine is in proper working order.
c)
t = 3.00 with υ = 9 (dof )
⇒ 0.005 < p < 0.01 ⇒ 0.01 < 2p < 0.02
P = 2p(t ≥ 3.00)
⇒ 0.01 < P < 0.02
P = 0.015 (using R sof tware)

Problem 6: (Test involving student’s t distribution)


A test of the breaking strengths of 6 ropes manufactured by a company showed a mean
breaking strength of 7750 lb and a standard deviation of 145 lb, whereas the manufac-
turer claimed a mean breaking strength of 8000 lb. Can we support the manufacturer’s
claim at a level of significance of:
(a) 0.05
(b) 0.01
(c) What is the P value of the test?
Solution:
n=6
X = 7750
µ = 8000
S = 145
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µ = 8000 (lb) and the manufacturer’s claim is justified
- Alternative hypothesis (H1 ) : µ < 8000 (lb) and the manufacturer’s claim is not jus-
tified
⇒ One Sample with One-Tailed Hypothesis Testing
n < 30; σ is unknown ⇒ t-test

υ = n - 1 = 6 - 1 = 5 (degrees of freedom)

α1 = 0.05 for one tail only


⇒ Critical value: −tα1 = −t0.05 = −2.01
We get the following decision rule:
- Reject H0 if t score of the sample mean X is smaller than -2.01
- Accept H0 otherwise

α2 = 0.01 for one tail only

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

Apply the formula to calculate t score:

X − µ√ 7750 − 8000 √
t= n−1= 6 − 1 = −3.86
S 145

a)t = -3.86 ⇒ t < −2.01


Therefore, we reject the hypothesis H0 at 0.05 level of significance.
The manufacturer’s claim is not justified.
b)t = -3.86 ⇒ t < −3.36
Therefore, we reject the hypothesis H0 at 0.01 level of significance.
The manufacturer’s claim is not justified.
c)
t = −3.86 with υ = 5 (dof )
⇒ 0.005 < p < 0.01
P = p(t ≤ −3.86)
⇒ 0.005 < P < 0.01
P = 0.006 (using R sof tware)

Problem 7: (Test involving student’s t distribution)


The IQs (intelligence quotients) of 16 students from one area of a city showed a mean
of 107 with a standard deviation of 10, while the IQs of 14 students from another area
of the city showed a mean of 112 with a standard deviation of 8. Is there a significant
difference between the IQs of the two groups at a:
(a) 0.01,
(b) 0.05 level of significance
(c) What is the P value of the test?
Solution:
n1 = 16, n2 = 14
X 1 = 107, X 2 = 112
S1 = 10, S2 = 8
We need to decide between these two hypotheses:
- Null hypothesis (H0 ) : µ1 = µ2 and there is essentially no difference between two
groups
- Alternative hypothesis (H1 ) : µ1 6= µ2 and there is a significant difference between
two groups
⇒ Two Samples with Two-Tailed Hypothesis Testing
n1 , n2 < 30; σ1 , σ2 are unknown ⇒ t-test

υ = 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

α2 = 0.05 for both tails


⇒ α2 /2 = 0.05/2 = 0.025 for each tail
⇒ Critical values: −tα2 /2 = −t0.025 = −2.05; tα2 /2 = t0.025 = 2.05
We get the following decision rule:
- Reject H0 if t score of the sample mean X is outside the range -2.05 to 2.05
- Accept H0 otherwise

The standard deviation of the difference in mean is given by:


s s
2 2
n1 S1 + n2 S2 16(10)2 + 14(8)2
σ= = = 9.44
n1 + n2 − 2 16 + 14 − 2

Apply the formula to calculate t score:

X1 − X2 107 − 112
t= p = p = −1.45
σ 1/n1 + 1/n2 9.44 1/16 + 1/14

a)t = -1.45 ⇒ t is inside the range -2.76 to 2.76


Therefore, we accept the hypothesis H0 at 0.01 level of significance.
There is essentially no difference between the IQs of two groups.
b)t = -1.45 ⇒ t is inside the range -2.05 to 2.05
Therefore, we accept the hypothesis H0 at 0.05 level of significance.
There is essentially no difference between the IQs of two groups.
c)
t = −1.45 with υ = 28 (dof )
⇒ 0.05 < p < 0.1 ⇒ 0.1 < 2p < 0.2
P = 2p(t ≤ −1.45)
⇒ 0.1 < P < 0.2
P = 0.158 (using R sof tware)

Problem 8: (Test involving the chi-square distribution)


In the past the standard deviation of weights of certain 40.0 oz packages filled by a
machine was 0.25 oz. A random sample of 20 packages showed a standard deviation of
0.32 oz. Is the apparent increase in variability significant at the:
(a) 0.05
(b) 0.01 level of significance

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)

α1 = 0.05 for one tail only


⇒ Critical value: χ2 (α1 ) = χ2 (0.05) = 30.1

We get the following decision rule:


- Reject H0 if χ2 value for the sample is greater than 30.1
- Accept H0 otherwise

α2 = 0.01 for one tail only


⇒ Critical value: χ2 (α2 ) = χ2 (0.01) = 36.2

We get the following decision rule:


- Reject H0 if χ2 value for the sample is greater than 36.2
- Accept H0 otherwise

Apply the formula to calculate the χ2 value:

nS 2 20(0.32)2
χ2 = = = 32.8
σ2 (0.25)2

a)χ2 = 32.8 ⇒ χ2 > 30.1


Therefore, we reject the hypothesis H0 at 0.05 level of significance.
The variability has increased.
b)χ2 = 32.8 ⇒ χ2 < 36.2
Therefore, we accept the hypothesis H0 at 0.01 level of significance.
The observed result is due to chance.
c)
P = p(χ2 ≥ 32.8) = 0.025

You might also like