ENME392 Sp26
Homework 9 Solutions
Homework 9 Solutions
ENME392 Sp26
Q1. Poisson goodness-of-fit test
Given λ =
12
= 0.48 defects per bracket and n = 104 brackets.
25
a) State H0 : The number of defects per bracket follows a Poisson distribution with parameter
λ = 0.48.
b) State H1 : The number of defects per bracket does not follow a Poisson distribution with
parameter λ = 0.48.
c) Expected counts For a Poisson random variable,
P (X = x) = e−λ
λx
,
x!
λ = 0.48.
So,
P (0) = e−0.48 ≈ 0.6188,
P (1) = e−0.48 (0.48) ≈ 0.2970,
P (2) = e−0.48
0.482
≈ 0.0713.
2
Multiply each by 104:
E0 = 104(0.6188) ≈ 64.35,
E1 = 104(0.2970) ≈ 30.89,
E2 = 104(0.0713) ≈ 7.41.
Number of defects
Observed
Expected
0
1
2
78
20
6
64.35
30.89
7.41
d) Test statistic Using the chi-square goodness-of-fit statistic,
χ2 =
X (O − E)2
E
.
Thus,
χ2 =
(78 − 64.35)2 (20 − 30.89)2 (6 − 7.41)2
+
+
.
64.35
30.89
7.41
χ2 ≈ 2.90 + 3.84 + 0.27 = 7.01.
1 of 4
ENME392 Sp26
Homework 9 Solutions
e) Degrees of freedom There are k = 3 categories shown, and λ is given (not estimated from
the sample), so
df = k − 1 = 3 − 1 = 2.
f ) P-value For χ2 = 7.01 with df = 2,
p-value ≈ 0.030.
g) Decision at α = 0.05 Since
p-value ≈ 0.030 < 0.05,
we reject H0 .
Conclusion: There is sufficient statistical evidence at the 5% significance level to conclude that
the defect counts do not fit a Poisson(0.48) distribution well.
2 of 4
ENME392 Sp26
Homework 9 Solutions
Q2. Chi-square test of independence
Observed table:
Checked Out
Did Not Check Out
Total
Attended Book Club
Did Not Attend
41
29
19
31
60
60
Total
70
50
120
a) State H0 : Attending the book club event and checking out a book are independent.
b) State H1 : Attending the book club event and checking out a book are not independent.
c) Calculate the test statistic Expected counts are
Then
χ2 =
E11 =
60 · 70
= 35,
120
E12 =
60 · 50
= 25,
120
E21 =
60 · 70
= 35,
120
E22 =
60 · 50
= 25.
120
X (O − E)2
E
(41 − 35)2 (19 − 25)2 (29 − 35)2 (31 − 25)2
+
+
+
.
35
25
35
25
36 36 36 36
χ2 =
+
+
+
≈ 4.94.
35 25 35 25
=
d) Degrees of freedom
df = (r − 1)(c − 1) = (2 − 1)(2 − 1) = 1.
e) P-value For χ2 = 4.94 with df = 1,
p-value ≈ 0.026.
f ) Decision with supporting statistical evidence Since
p-value ≈ 0.026 < 0.05,
we reject H0 .
Conclusion: There is sufficient evidence at the 5% level to conclude that attending the book club
event and checking out a book are associated (not independent).
3 of 4
ENME392 Sp26
Homework 9 Solutions
Q3. F-test for two variances
Given:
nA = 20,
sA = 4.8,
nB = 18,
sB = 3.2.
We want to test whether Design A has less variability than Design B.
a) State H0 :
2
2
H0 : σA
≥ σB
2 = σ 2 as the null benchmark).
(or equivalently σA
B
b) State H1 :
2
2
H1 : σA
< σB
.
c) Calculate the critical value Using
F =
s2A
,
s2B
this is a left-tailed test with
df1 = nA − 1 = 19,
df2 = nB − 1 = 17.
At α = 0.05,
Fcritical ≈ 0.455.
d) Calculate the test statistic
F =
4.82
23.04
=
= 2.25.
3.22
10.24
e) Circle your statistical conclusion Because this is a left-tailed test, we reject H0 only if
F < 0.455.
But
2.25 > 0.455,
so we fail to reject the null hypothesis.
Answer: ii) Fail to reject the null hypothesis.
f ) Statistical reasoning The observed test statistic F = 2.25 is not in the rejection region for a
left-tailed test at the 5% significance level. Therefore, there is not enough statistical evidence to
conclude that Design A has less variability in rotational speed than Design B.
g) Manufacturing conclusion iii) You are unable to draw a conclusive conclusion based
on the test results.
4 of 4