Professional Documents
Culture Documents
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-1
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-2
What is a Hypothesis?
A hypothesis is a claim
(assumption) about a
population parameter:
population mean
Example: The mean monthly cell phone bill
of this city is = $42
population proportion
Example: The proportion of adults in this
city with cell phones is p = .68
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-3
H0 : X 3
Chap 10-4
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-5
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-6
Population
Is X 20 likely if = 50?
If not likely,
REJECT
Null Hypothesis
Suppose
the sample
mean age
is 20: X = 20
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Now select a
random sample
Sample
20
If it is unlikely that
we would get a
sample mean of
this value ...
= 50
If H0 is true
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
... then we
reject the null
hypothesis that
= 50.
Chap 10-8
Level of Significance,
Defines the unlikely values of the sample
statistic if the null hypothesis is true
Defines rejection region of the sampling
distribution
Is designated by , (level of significance)
Typical values are .01, .05, or .10
Is selected by the researcher at the beginning
Provides the critical value(s) of the test
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-9
Level of Significance
and the Rejection Region
Level of significance =
H0: = 3
H1: 3
H0: 3
H1: > 3
H0: 3
H1: < 3
/2
Two-tail test
/2
Represents
critical value
Rejection
region is
shaded
Upper-tail test
Lower-tail test
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
0
Chap 10-10
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-11
Type II Error
Fail to reject a false null hypothesis
The probability of Type II Error is
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-12
Decision
Key:
Outcome
(Probability)
Actual
Situation
H0 True
H0 False
Do Not
Reject
H0
No error
(1 - )
Type II Error
()
Reject
H0
Type I Error
()
No Error
(1-)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-13
, then
Chap 10-14
when
when
when
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-15
Review: 10 Steps in
Hypothesis Testing
1. State the null hypothesis, H0
2. State the alternative hypotheses, H1
3. Choose the level of significance,
4. Choose the sample size, n
5. Determine the appropriate statistical
technique and the test statistic to use
6. Find the critical values and determine the
rejection region(s)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-16
Review: 10 Steps in
Hypothesis Testing
7. Collect data and compute the test statistic
from the sample result
8. Compare the test statistic to the critical
value to determine whether the test statistics
falls in the region of rejection
9. Make the statistical decision: Reject H0 if the
test statistic falls in the rejection region
10. Express the decision in the context of the
problem
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-17
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Unknown
Chap 10-18
Unknown
X
Z
n
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-19
Critical Value
Approach to Testing
For two tailed test for the mean, known:
Convert sample statistic ( X) to test statistic (Z
statistic )
Determine the critical Z values for a specified
level of significance from a table or computer
Decision Rule: If the test statistic falls in the
rejection region, reject H0 ; otherwise do not
reject H0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-20
Chap 10-21
X
2.84 3
.16
2.0
0.8
.08
n
100
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-22
Reject H0 if
Z < -1.96 or
Z > 1.96;
otherwise
do not
reject H0
Reject H0
-Z= -1.96
= .05/2
Do not reject H0
Reject H0
+Z= +1.96
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-23
Reject H0
-Z= -1.96
= .05/2
Do not reject H0
Reject H0
+Z= +1.96
-2.0
Chap 10-24
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-25
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-26
p-Value Example
Example: How likely is it to see a sample mean of
2.84 (or something further from the mean, in either
direction) if the true mean is = 3.0?
X = 2.84 is translated
to a Z score of Z = -2.0
P(Z 2.0) .0228
P(Z 2.0) .0228
/2 = .025
/2 = .025
.0228
.0228
p-value
=.0228 + .0228 = .0456
-1.96
-2.0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
1.96
2.0
Z
Chap 10-27
p-Value Example
Compare the p-value with
(continued)
/2 = .025
/2 = .025
.0228
.0228
-1.96
-2.0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
1.96
2.0
Z
Chap 10-28
0.8
2.84 (1.96)
100
2.6832 2.9968
Since this interval does not contain the hypothesized
mean (3.0), we reject the null hypothesis at = .05
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Two-Tail Tests
There are two
cutoff values
(critical values),
defining the
regions of
rejection
H0: = 3
H1 :
3
/2
/2
X
3
Reject H0
-Z
Lower
critical
value
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Do not reject H0
Reject H0
+Z
Upper
critical
value
Chap 10-30
One-Tail Tests
In many cases, the alternative hypothesis
focuses on a particular direction
H0: 3
H1: < 3
H0: 3
H1: > 3
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-31
Lower-Tail Tests
There is only one
critical value, since
the rejection area is
in only one tail
H0: 3
H1: < 3
Reject H0
-Z
Do not reject H0
Z
X
Critical value
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-32
Upper-Tail Tests
There is only one
critical value, since
the rejection area is
in only one tail
H0: 3
H1: > 3
Do not reject H0
Reject H0
Critical value
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-33
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-34
Reject H0
= .10
Do not reject H0
1.28
Reject H0
Chap 10-35
Review:
One-Tail Critical Value
What is Z given = 0.10?
.90
.10
= .10
.90
Standard Normal
Distribution Table (Portion)
0 1.28
.07
.08
.09
Critical Value
= 1.28
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-36
X
53.1 52
Z
0.88
10
n
64
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-37
Example: Decision
(continued)
= .10
Do not reject H0
1.28
0
Z = .88
Reject H0
Chap 10-38
p -Value Solution
Calculate the p-value and compare to
(continued)
p-value = .1894
Reject H0
= .10
0
Do not reject H0
1.28
Z = .88
Reject H0
P( X 53.1)
53.1 52.0
P Z
10/ 64
Chap 10-39
Unknown
The test statistic is:
t n-1
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
S
n
Chap 10-40
H0: = 168
H1:
168
Chap 10-41
/2=.025
Reject H0
-t n-1,/2
-2.0639
n = 25
is unknown, so
use a t statistic
Critical Value:
t24 = 2.0639
t n1
/2=.025
Do not reject H0
1.46
Reject H0
t n-1,/2
2.0639
X
172.50 168
1.46
S
15.40
n
25
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-42
166.14 178.86
Since this interval contains the Hypothesized mean (168),
we do not reject the null hypothesis at = .05
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
1 and 2 known
1 and 2 unknown
X1 X2
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-44
Independent Samples
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-45
1 and 2 known
1 and 2 unknown
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-46
1 and 2 Known
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
Assumptions:
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-47
1 and 2 Known
(continued)
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
X1 X2
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
2
1
n1
n2
Chap 10-48
1 and 2 Known
(continued)
Population means,
independent
samples
1 and 2 known
X
Z
1 and 2 unknown
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
X 2 1 2
2
1
n1
n2
Chap 10-49
Upper-tail test:
Two-tail test:
H0: 1 2
H1: 1 < 2
H0: 1 2
H1: 1 > 2
H0: 1 = 2
H1: 1 2
i.e.,
i.e.,
i.e.,
H0: 1 2 0
H1: 1 2 < 0
H0: 1 2 0
H1: 1 2 > 0
H0: 1 2 = 0
H1: 1 2 0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-50
Upper-tail test:
Two-tail test:
H0: 1 2 0
H1: 1 2 < 0
H0: 1 2 0
H1: 1 2 > 0
H0: 1 2 = 0
H1: 1 2 0
-z
Reject H0 if Z < -Z
z
Reject H0 if Z > Z
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
/2
-z/2
/2
z/2
1 and 2 Unknown
Assumptions:
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-52
1 and 2 Unknown
(continued)
Forming interval
estimates:
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-53
1 and 2 Unknown
(continued)
Population means,
independent
samples
1 and 2 known
1 and 2 unknown
Sp
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
n1 1 S12 n2 1 S2 2
(n1 1) (n2 1)
Chap 10-54
1 and 2 Unknown
(continued)
Population means,
independent
samples
X
t
1 and 2 known
1 and 2 unknown
X 2 1 2
1 1
S
n1 n2
2
p
S
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
2
p
2
2
n1 1 S1 n2 1 S 2
(n1 1) (n2 1)
Chap 10-55
NYSE
Number
21
Sample mean
3.27
Sample std dev 1.30
NASDAQ
25
2.53
1.16
Chap 10-56
X
t
X 2 1 2
1 1
S
n1 n2
2
p
3.27 2.53 0
1
1
1.5021
21 25
2
2
2
2
1
S
1
S
21
1
1.30
25
1
1.16
1
2
2
S2 1
(n1 1) (n2 1)
(21 - 1) (25 1)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
2.040
1.5021
Chap 10-57
Solution
H0: 1 - 2 = 0 i.e. (1 = 2)
Reject H0
Reject H0
H1: 1 - 2 0 i.e. (1 2)
= 0.05
df = 21 + 25 - 2 = 44
Critical Values: t = 2.0154
.025
-2.0154
.025
0 2.0154
2.040
Decision:
Test Statistic:
3.27 2.53
t
2.040 Reject H0 at = 0.05
1
1
1.5021
Conclusion:
21 25
There is evidence of a
difference in means.
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-58
Paired Observations
Tests Means of 2 Related Populations
Related
samples
D = X1 - X2
Eliminates Variation Among Subjects
Assumptions:
Both Populations Are Normally Distributed
Or, if Not Normal, use large samples
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-59
Di = X1i - X2i
The point estimate for
the population mean
paired difference is D :
D
i 1
Chap 10-60
Paired
samples
D D
Z
D
n
Where
D = hypothesized mean difference
D = population standard dev. of differences
n = the sample size (number of pairs)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-61
D
DZ
n
Where
n = the sample size
(number of pairs in the paired sample)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-62
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
SD
2
(D
D
)
i
i1
n 1
Chap 10-63
Paired
samples
D D
t
SD
n
n
SD
(D
i 1
D)
n 1
Chap 10-64
SD
D t n1
n
n
where
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
SD
(D D)
i1
n 1
Chap 10-65
Upper-tail test:
Two-tail test:
H0: D 0
H1: D < 0
H0: D 0
H1: D > 0
H0: D = 0
H1: D 0
-t
Reject H0 if t < -t
t
Reject H0 if t > t
Where t has n - 1 d.f.
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
/2
-t/2
/2
t/2
Reject H0 if t < -t
or t > t
Chap 10-66
6
20
3
0
4
4
6
2
0
0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
- 2
-14
- 1
0
- 4
-21
D =
Di
n
= -4.2
SD
(D D)
n 1
5.67
Chap 10-67
D = - 4.2
SD / n
4.2 0
5.67/ 5
Reject
/2
/2
- 4.604
4.604
- 1.66
Test Statistic:
D D
Reject
1.66
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-69
Proportions
(continued)
p s p
ps
n
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-70
ps p
p(1 p)
n
Hypothesis
Tests for p
np 5
and
n(1-p) 5
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
np < 5
or
n(1-p) < 5
-Binomial dist., if p is common.
-Poisson dist., If p is very close
to 0 or 1.
Chap 10-71
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Check:
n p = (500)(.08) = 40
n(1-p) = (500)(.92) = 460
Chap 10-72
H0: p = .08
H1: p .
08= .05
n = 500, ps = .05
ps p
p(1 p)
n
Decision:
Reject
.025
.025
-1.96
1.96
.05 .08
2.47
.08(1 .08)
500
-2.47
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Reject H0 at = .05
Conclusion:
There is sufficient
evidence to reject the
companys claim of 8%
response rate.
Chap 10-73
p-Value Solution
(continued)
Reject H0
/2 = .025
Reject H0
p-value = .0136:
/2 = .025
.0068
-1.96
Z = -2.47
2(.0068) 0.0136
1.96
Z = 2.47
Chap 10-74
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
ps1 ps2
Chap 10-75
X1 X 2
p
n1 n2
where X1 and X2 are the numbers from
samples 1 and 2 with the characteristic of
interest
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-76
Population
proportions
p
Z
where
s1
p s2 p1 p 2
1 1
p (1 p)
n1 n2
X1 X 2
X
X
, p s1 1 , p s2 2
n1 n2
n1
n2
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-77
Upper-tail test:
Two-tail test:
H0: p1 p2
H1: p1 < p2
H0: p1 p2
H1: p1 > p2
H0: p1 = p2
H1: p1 p2
i.e.,
i.e.,
i.e.,
H0: p1 p2 0
H1: p1 p2 < 0
H0: p1 p2 0
H1: p1 p2 > 0
H0: p1 p2 = 0
H1: p1 p2 0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-78
(continued)
Population proportions
Lower-tail test:
Upper-tail test:
Two-tail test:
H0: p1 p2 0
H1: p1 p2 < 0
H0: p1 p2 0
H1: p1 p2 > 0
H0: p1 p2 = 0
H1: p1 p2 0
-z
Reject H0 if Z < -Z
z
Reject H0 if Z > Z
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
/2
-z/2
/2
z/2
Reject H0 if Z < -Z
or Z > Z
Chap 10-79
Example:
Two population Proportions
Is there a significant difference between the
proportion of men and the proportion of
women who will vote Yes on Proposition A?
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-80
Example:
Two population Proportions
(continued)
Women:
X1 X 2 36 31 67
p
.549
n1 n2
72 50 122
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-81
Example:
Two population Proportions
(continued)
s1
p s2 p1 p 2
1 1
n1 n2
p (1 p)
.50 .62 0
1
1
72
50
Reject H0
Reject H0
.025
.025
-1.96
-1.31
1.31
.549 (1 .549)
1.96
Chap 10-82
1
)
s
2
2
0
where:
o2 = value of 2 given by the null hypotheses.
n = sample size.
Chap 10-83
Decision Rule
The 2 test statistic approximately follows a chisquared distribution with one degree of freedom
Decision Rule:
If 2 > 2U, reject H0,
otherwise, do not
reject H0
Do not
reject H0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Reject H0
2U
Chap 10-84
H0: 12 = 22
H1: 12 22
Two-tail test
H0: 12 22
H1: 12 < 22
Lower-tail test
H0: 12 22
H1: 12 > 22
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Upper-tail test
Chap 10-85
S
F
S
S 22 = Variance of Sample 2
n2 - 1 = denominator degrees of freedom
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-86
The F Distribution
The F critical value is found from the F table
The are two appropriate degrees of freedom:
numerator and denominator
S12
F 2
S2
where
df1 = n1 1 ; df2 = n2 1
In the F table,
numerator degrees of freedom determine the column
denominator degrees of freedom determine the row
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-87
/2
0
Reject
H0
FL
Do not
reject H0
Reject
H0
FU
Reject H0
FL
Do not
reject H0
FU
rejection
region for a
two-tail test is:
Do not
reject H0
/2
Reject H0 if F < FL
H0: 12 22
H1: 12 > 22
0
H0: 12 = 22
H1: 12 22
Reject H0
S12
F 2 FU
S2
S12
F 2 FL
S2
Reject H0 if F > FU
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-88
H0: 12 = 22
H1: 12 22
/2
Reject
H0
FL
Do not
reject H0
FU
Reject H0
1
FU*
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-89
F Test: An Example
You are a financial analyst for a brokerage firm. You want
to compare dividend yields between stocks listed on the
NYSE & NASDAQ. You collect the following data :
NYSE
NASDAQ
Number
2125
Mean
3.272.53
Std dev
1.301.16
Is there a difference in the
variances between the
NYSE
& NASDAQ at the = 0.05 level?
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-90
FU:
Numerator:
FL:
Numerator:
n1 1 = 21 1 = 20 d.f.
Denominator:
n2 1 = 25 1 = 24 d.f.
Denominator:
n2 1 = 25 1 = 24 d.f.
n1 1 = 21 1 = 20 d.f.
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-91
H0: 12 = 22
H1: 12 22
S
1.30
F
1.256
2
S
1.16
/2 = .025
0
Reject H0
/2 = .025
Do not
reject H0
Reject H0
FU=2.33
F = 1.256 is not in the
FL=0.41
rejection region, so we do not
reject H0
Conclusion: There is not sufficient evidence
of a difference in variances at = .05
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-92
f
)
2 o e
fe
all cells
where:
fo = observed frequency in a particular cell
fe = expected frequency in a particular cell if H0 is true
2 for the 2 x 2 case has 1 degree of freedom
(Assumed: each cell in the contingency table has expected
frequency of at least 5)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-93
Decision Rule
The 2 test statistic approximately follows a chisquared distribution with one degree of freedom
Decision Rule:
If 2 > 2U, reject H0,
otherwise, do not
reject H0
Do not
reject H0
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Reject H0
2U
Chap 10-94
proportion is:
n1 n2
n
120 Females, 12
were left handed
180 Males, 24 were
left handed
Here:
12 24
36
p
0.12
120 180 300
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-95
Chap 10-96
Hand Preference
Gender
Left
Right
Female
Observed = 12
Expected = 14.4
Observed = 108
Expected = 105.6
120
Male
Observed = 24
Expected = 21.6
Observed = 156
Expected = 158.4
180
36
264
300
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-97
Left
Right
Female
Observed = 12
Expected = 14.4
Observed = 108
Expected = 105.6
120
Male
Observed = 24
Expected = 21.6
Observed = 156
Expected = 158.4
180
36
264
300
0.6848
14.4
105.6
21.6
158.4
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-98
Decision Rule
The test statistic is 2 0.6848 , U2 with 1 d.f. 3.841
Decision Rule:
If 2 > 3.841, reject H0,
otherwise, do not reject H0
Do not
reject H0
Reject H0
2U=3.841
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Here,
2 = 0.6848 < 2U = 3.841,
so we do not reject H0
and conclude that there is
not sufficient evidence
that the two proportions
are different at = .05
Chap 10-99
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-100
2 Test of Independence
(continued)
f
)
2 o e
fe
all cells
where:
fo = observed frequency in a particular cell of the r x c table
fe = expected frequency in a particular cell if H0 is true
2 for the r x c case has (r-1)(c-1) degrees of freedom
(Assumed: each cell in the contingency table has expected
frequency of at least 1)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-101
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-102
Decision Rule
The decision rule is
If 2 > 2U, reject H0,
otherwise, do not reject H0
Where 2U is from the chi-squared distribution
with (r 1)(c 1) degrees of freedom
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-103
Example
The meal plan selected by 200 students is shown below:
Number of meals per week
20/week 10/week
Class
Standing
Fresh.
24
32
none
Total
14
70
Soph.
22
26
12
60
Junior
10
14
30
Senior
14
16
10
40
Total
70
88
42
200
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-104
Example
(continued)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-105
Example:
Expected Cell Frequencies
(continued)
Observed:
Number of meals
per week
Class
Standing
20/wk
10/wk
Expected cell
frequencies if H0 is true:
none
Total
Fresh.
24
32
14
70
Soph.
22
26
12
60
Junior
10
14
30
Senior
14
16
10
40
Class
Standing
Total
70
88
42
200
Fresh.
24.5
30.8
14.7
70
Soph.
21.0
26.4
12.6
60
Junior
10.5
13.2
6.3
30
Senior
14.0
17.6
8.4
40
70
88
42
200
Number of meals
per week
Total
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
20/wk
10/wk
none
Total
Chap 10-106
f
)
2 o e
fe
all cells
0.709
24.5
30.8
8. 4
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-107
Example:
Decision and Interpretation
(continued)
Do not
reject H0
Reject H0
2U=12.592
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Here,
2 = 0.709 < 2U = 12.592,
so do not reject H0
Conclusion: there is not
sufficient evidence that meal
plan and class standing are
related at = .05
Chap 10-108
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-109
f
)
2 o e
fe
all cells
where:
fo = observed frequency in a particular cell of the 2 x c table
fe = expected frequency in a particular cell if H0 is true
2 for the 2 x c case has (2-1)(c-1) = c - 1 degrees of freedom
(Assumed: each cell in the contingency table has expected
frequency of at least 1)
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-110
X1 X 2 Xc X
p
n1 n2 nc
n
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-111
Using PHStat
Options
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-112
Input
Output
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-113
For variances
F test for two variances:
Tools | data analysis | F-test: two sample for variances
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-114
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-115
Input
Output
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-116
Input
Output
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-117
Chapter Summary
Addressed hypothesis testing methodology
Performed Z Test for the mean ( known)
Discussed critical value and pvalue approaches to
hypothesis testing
Performed one-tail and two-tail tests
Performed t test for the mean ( unknown)
Performed Z test for the proportion
Walpole,Probability and Statistics for Engineers & Scientists, 8th e., Pearson Edu.
Chap 10-118
Chapter Summary
Chap 10-119