Professional Documents
Culture Documents
Business Statistics - A Decision-Making Approach
Business Statistics - A Decision-Making Approach
Business Statistics:
A Decision-Making Approach
7th Edition
Chapter 8
Estimating Single
Population Parameters
Chapter Goals
After completing this chapter, you should be
able to:
Distinguish between a point estimate and a confidence
interval estimate
Construct and interpret a confidence interval estimate for a
single population mean using both the z and t distributions
Determine the required sample size to estimate a single
population mean within a specified margin of error
Form and interpret a confidence interval estimate for a
single population proportion
Confidence Intervals
Lower Upper
Confidence Confidence
Point Estimate Limit
Limit
Width of
confidence interval
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-4
Point Estimates
Mean μ x
Proportion π p
Confidence Intervals
Estimation Process
Sample
General Formula
Confidence Level
Confidence Level
Confidence in which the interval
will contain the unknown
population parameter
A percentage (less than 100%)
Confidence Intervals
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
σ
xz
n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-13
α α
.025 .025
2 2
/2 1 /2
x
Intervals μx μ
extend from x1
σ x2 100(1-)%
xz of intervals
n
to constructed
σ contain μ;
xz
n 100% do not.
Confidence Intervals
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-16
Margin of Error
σ σ
xz ez
n n
σ
ez
n
Data variation, σ : e as σ
Sample size, n : e as n
Level of confidence, 1 - : e if 1 -
Example
Example
(continued)
A sample of 11 circuits from a large normal
population has a mean resistance of 2.20
ohms. We know from past testing that the
population standard deviation is 0.35 ohms.
Solution: σ
x z
n
2.20 1.96 (0.35/ 11)
2.20 .2068
1.9932 ............... 2.4068
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-20
Interpretation
Confidence Intervals
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
s
xt
n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-24
Student‟s t Distribution
d.f. = n - 1
Let x1 = 7
If the mean of these three
Let x2 = 8
values is 8.0,
What is x3? then x3 must be 9
(i.e., x3 is not free to vary)
Here, n = 3, so degrees of freedom = n -1 = 3 – 1 = 2
(2 values can be any numbers, but the third is not free to vary
for a given mean)
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-26
Student‟s t Distribution
Note: t z as n increases
Standard
Normal
(t with df = )
t (df = 13)
t-distributions are bell-
shaped and symmetric, but
have „fatter‟ tails than the t (df = 5)
normal
0 t
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-27
Student‟s t Table
t distribution values
With comparison to the z value
Confidence t t t z
Level (10 d.f.) (20 d.f.) (30 d.f.) ____
Note: t z as n increases
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-29
Example
A random sample of n = 25 has x = 50 and
s = 8. Form a 95% confidence interval for μ
s s
xt xz
n n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-31
If σ is unknown
Confidence Intervals
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
π(1 π)
σπ
n
We will estimate this with sample data:
p(1 p)
sp
n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-37
p(1 p)
pz
n
where
z is the standard normal value for the level of confidence desired
p is the sample proportion
n is the sample size
Example
Example
(continued)
A random sample of 100 people shows
that 25 are left-handed. Form a 95%
confidence interval for the true proportion
of left-handers.
1. p 25/100 .25
Interpretation
Example:
If the sample size in the above example is
doubled to 200, and if 50 are left-handed in the
sample, then the interval is still centered at .25,
but the width shrinks to
.19 …… .31
z 2 π (1 π)
Solve for n: n
e2
π can be estimated with a pilot sample, if
necessary (or conservatively use π = .50)
Solution:
For 95% confidence, use Z = 1.96
E = .03
p = .12, so use this to estimate π
So use n = 451
Chapter Summary
Illustrated estimation process
Discussed point estimates
Introduced interval estimates
Discussed confidence interval estimation for
the mean (σ known)
Addressed determining sample size
Discussed confidence interval estimation for
the mean (σ unknown)
Discussed confidence interval estimation for
the proportion
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 8-46
Business Statistics:
A Decision-Making Approach
7th Edition
Chapter 9
Introduction to
Hypothesis Testing
Chapter Goals
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 π = .68
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-49
H0 : μ 3 H0 : x 3
proven guilty
Refers to the status quo
Always contains “=” , “≤” or “” sign
May or may not be rejected
Formulating Hypotheses
Formulating Hypotheses
Example 1: Ford motor company has worked to reduce road noise inside
the cab of the redesigned F150 pickup truck. It would like to report in its
advertising that the truck is quieter. The average of the prior design was
68 decibels at 60 mph.
Formulating Hypotheses
Formulating Hypotheses
Example 1: The average annual income of buyers of Ford F150
pickup trucks is claimed to be $65,000 per year. An industry
analyst would like to test this claim.
Sample
Suppose the sample Is x = 20 If not likely,
mean age is 20: likely if REJECT
x = 20 µ = 50? Null Hypothesis
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc.
x
20 μ = 50
If H0 is true
... then we
If it is unlikely that
reject the null
we would get a
... if in fact this were hypothesis that
sample mean of
the population mean… μ = 50.
this value ...
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-58
Type I Error
Reject a true null hypothesis
Type II Error
Fail to reject a false null hypothesis
State of Nature
Decision H0 True H0 False
Do Not
No error Type II Error
Reject
Key: (1 - ) (β)
Outcome H0
(Probability) Reject Type I Error No Error
H0 () (1-β)
β when
β when σ
The formula used to
compute the value of β
β when n is discussed later in the
chapter
Level of Significance,
Hypothesis
Tests for
σ Known σ Unknown
Level of Significance
and the Rejection Region
Level of significance =
/2 /2
σ
x μ z
n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-69
zα/2
or /2 /2
xα/2
Lower
Reject H0 Do not reject H0 Reject H0
xα/2 -zα/2 0 zα/2
Upper
xα/2 µ=3 xα/2
Lower Upper
σ
x /2 μ z /2
n
/2 /2
Reject H0 if z < -zα Reject H0 if z > zα Reject H0 if z < -zα/2 or z > zα/2
= .05
-zα= -1.645 0
x μ 2.84 3 .16
z 2.0
σ 0.8 .08
n 100
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-75
= .05
z
Reject H0 Do not reject H0
-1.645 0
-2.0
2.8684 3
2.84 σ 0.8
x α μ zα 3 1.645 2.8684
Since x = 2.84 < 2.8684, n 100
we reject the null
hypothesis
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-77
p-value example
Example: How likely is it to see a sample mean
of 2.84 (or something further below the mean) if
the true mean is = 3.0?
= .05
P( x 2.84 | μ 3.0)
p-value =.0228
2.84 3.0
P z
0.8
100
2.8684 3 x
P(z 2.0) .0228
2.84
-1.645 0 z
-2.0
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-80
p-value example
(continued)
= .10
Review:
Finding Critical Value - One Tail
Standard Normal
What is z given = 0.10? Distribution Table (Portion)
.90 .10
Z .07 .08 .09
= .10
1.1 .3790 .3810 .3830
.50 .40
1.2 .3980 .3997 .4015
z 0 1.28
1.3 .4147 .4162 .4177
Critical Value
= 1.28
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-84
x μ 53.1 52
z 0.88
σ 10
n 64
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-85
Example: Decision
(continued)
Reach a decision and interpret the result:
Reject H0
= .10
p -Value Solution
(continued)
Critical Value
Approach to Testing
When σ is known, convert sample statistic ( x ) to
a z test statistic
Hypothesis
Tests for
Known Unknown
The test statistic is:
x μ
z
σ
n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-88
Critical Value
Approach to Testing
When σ is unknown, convert sample statistic ( x )
to a t test statistic
Hypothesis
Tests for
Known Unknown
The test statistic is:
x μ
t n1
s
(The population must be
approximately normal) n
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-89
H0: μ = 168
/2=.025 /2=.025
HA: μ 168
= 0.05
n = 25 Reject H0
-tα/2
Do not reject H0 Reject H0
tα/2
0
Critical Values: -2.0639 1.46 2.0639
t24 = ± 2.0639
x μ 172.50 168
is unknown, so t n1 1.46
s 15.40
use a t statistic n 25
Proportions
(continued)
The sampling
distribution of p is Hypothesis
normal, so the test Tests for π
statistic is a z
value:
nπ 5 nπ < 5
pπ and or
z n(1-π) 5 n(1-π) < 5
π(1 π)
Not discussed
n in this chapter
A marketing company
claims that it receives
8% responses from its
mailing. To test this
claim, a random sample
of 500 were surveyed
Check:
with 25 responses. Test
at the = .05 n π = (500)(.08) = 40
significance level. n(1-π) = (500)(.92) = 460
p -Value Solution
(continued)
Calculate the p-value and compare to
(For a two sided test the p-value is always two sided)
Do not reject H0
Reject H0 Reject H0 p-value = .0136:
/2 = .025 /2 = .025
P(z 2.47) P(x 2.47)
.0068 .0068 2(.5 .4932)
2(.0068) 0.0136
-1.96 0 1.96
z = -2.47 z = 2.47
Type II Error
Type II error is the probability of
failing to reject a false H0
Suppose we fail to reject H0: μ 52
when in fact the true mean is μ = 50
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-99
Type II Error
(continued)
Suppose we do not reject H0: 52 when in fact
the true mean is = 50
50 52
Reject Do not reject
H0: 52 H0 : 52
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-100
Type II Error
(continued)
Suppose we do not reject H0: μ 52 when
in fact the true mean is μ = 50
Here, β = P( x cutoff ) if μ = 50
β
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-101
Calculating β
Suppose n = 64 , σ = 6 , and = .05
σ 6
cutoff x μ z 52 1.645 50.766
(for H0 : μ 52) n 64
So β = P( x 50.766 ) if μ = 50
50 50.766 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-102
Calculating β
(continued)
Suppose n = 64 , σ = 6 , and = .05
50.766 50
P( x 50.766 | μ 50) P z P(z 1.02) .5 .3461 .1539
6
64
Probability of
type II error:
β = .1539
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-103
Chapter Summary
Chapter Summary
(continued)
Business Statistics:
A Decision-Making Approach
7th Edition
Chapter 10
Estimation and Hypothesis Testing
for Two Population Parameters
Chapter Goals
Population
means, Paired Population
independent samples proportions
samples
Examples:
Group 1 vs. Same group Proportion 1 vs.
independent before vs. after Proportion 2
Group 2 treatment
Independent Samples
Independent
σ1 and σ2 known
Population standard
σ1 and σ2 unknown,
not assumed equal deviations are known
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-111
σ1 and σ2 known
(continued)
σ1 and σ2 known
(continued)
Population means,
independent The confidence interval for
samples μ1 – μ2 is:
σ1 and σ2 known *
x 1
x 2 z/2
σ12 σ 22
n1 n2
σ1 and σ2 unknown
but assumed equal
σ1 and σ2 unknown,
not assumed equal
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-113
σ1 and σ2 unknown,
large samples
σ1 and σ2 unknown,
large samples
(continued)
Population means,
independent
Forming interval estimates:
samples
The population standard
deviations are assumed equal,
σ1 and σ2 known so use the two sample
standard deviations and pool
σ1 and σ2 unknown
but assumed equal
* them to estimate σ
σ1 and σ2 unknown,
large samples
(continued)
σ1 and σ2 known
sp
n1 1s12 n2 1s22
σ1 and σ2 unknown
but assumed equal
* n1 n2 2
σ1 and σ2 unknown,
not assumed equal
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-116
σ1 and σ2 unknown,
large samples
(continued)
σ1 and σ2 known x 1
x 2 t /2 sp
1 1
n1 n2
σ1 and σ2 unknown
but assumed equal
* Where t/2 has (n1 + n2 – 2) d.f.,
and
σ1 and σ2 unknown,
sp
n1 1s12 n2 1s22
not assumed equal n1 n2 2
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-117
σ1 and σ2 unknown,
small samples
σ1 and σ2 unknown,
small samples
(continued)
Forming interval
Population means, estimates:
independent
samples The population variances
are not assumed equal, so
σ1 and σ2 known we do not pool them
σ1 and σ2 unknown,
small samples
(continued)
σ1 and σ2 known x 1
x 2 t α/2
s12 s22
n1 n2
σ1 and σ2 unknown
but assumed equal Where t/2 has d.f. given by
σ1 and σ2 known
Population means,
independent The test statistic for
samples μ1 – μ2 is:
σ1 and σ2 known * z
x 1
x 2 μ1 μ2
2 2
σ1 and σ2 unknown σ1 σ 2
but assumed equal
n1 n2
σ1 and σ2 unknown,
not assumed equal
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-124
σ1 and σ2 unknown,
large samples
The test statistic for
Population means,
independent μ1 – μ2 is:
x
samples
x 2 μ1 μ2
t
1
σ1 and σ2 known
1 1
sp
σ1 and σ2 unknown
but assumed equal
* n1 n2
Where t has (n1 + n2 – 2) d.f.,
σ1 and σ2 unknown, and
not assumed equal sp
n1 1s12 n2 1s2 2
n1 n2 2
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-125
σ1 and σ2 unknown,
small samples
The test statistic for
Population means,
μ1 – μ2 is:
independent
samples
t
x 1
x 2 μ1 μ2
2 2
σ1 and σ2 known s1 s2
n1 n2
σ1 and σ2 unknown
but assumed equal Where t has d.f. given by
(s12 /n1 s22 /n2 )2
σ1 and σ2 unknown,
not assumed equal
* df
s2 /n 2 s2 /n 2
1 1 2 2
n1 1 n2 1
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-126
/2 /2
t
x 1
x 2 μ1 μ2 3.27 2.53 0
2.040
1 1 1 1
sp 1.2256
n1 n2 21 25
Where:
sp
n1 1s12 n2 1s2 2
21 11.30 2 25 11.16 2 1.2256
n1 n2 2 21 25 2
Solution
Reject H0 Reject H0
H0: μ1 - μ2 = 0 i.e. (μ1 = μ2)
HA: μ1 - μ2 ≠ 0 i.e. (μ1 ≠ μ2)
.025 .025
= 0.05
df = 21 + 25 - 2 = 44 -2.0154 0 2.0154 t
Critical Values: t = 2.0154
2.040
Test Statistic: Decision:
3.27 2.53 Reject H0 at = 0.05
t 2.040
1 1
1.2256 Conclusion:
21 25 There is evidence that
the means are different.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-130
Paired Samples
Paired Differences
The ith paired difference is di , where
Paired di = x1i - x2i
samples
n
The point estimate for
the population mean
d i
d i 1
paired difference is d : n
n
The sample standard
deviation is (d d) i
2
sd i1
n 1
n is the number of pairs in the paired sample
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-132
Paired Differences
(continued)
sd i1
n 1
n is the number of pairs in the paired sample
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-133
/2 /2
-21 n 1
5.67
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-136
p1(1 p1 ) p2 (1 p2 )
p1 p2 z
n1 n2
n1p1 n2p2 x1 x 2
p
n1 n2 n1 n2
where x1 and x2 are the numbers from
samples 1 and 2 with the characteristic of interest
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-141
z
p1 p2 π1 π 2
1 1
p (1 p )
n1 n2
/2 /2
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?
Example:
Two population Proportions
(continued)
The hypothesis test is:
H0: π1 – π2 = 0 (the two proportions are equal)
HA: π1 – π2 ≠ 0 (there is a significant difference between proportions)
Example:
Two population Proportions
(continued)
Reject H0 Reject H0
The test statistic for π1 – π2 is:
.025 .025
z
p1 p 2 π1 π 2
1 1
p (1 p ) -1.96 1.96
1
n n 2
-1.31
.50 .62 0 1.31
1 1 Decision: Do not reject H0
.549 (1 .549)
72 50
Conclusion: There is not
significant evidence of a
Critical Values = 1.96
For = .05 difference in the proportion
who will vote yes between
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. men and women. Chap 10-146
Chapter Summary
Compared two independent samples
Formed confidence intervals for the differences between two
means
Performed z test for the differences in two means
Performed t test for the differences in two means
Compared two related samples (paired samples)
Formed confidence intervals for the paired difference
Performed paired sample t tests for the mean difference
Compared two population proportions
Formed confidence intervals for the difference between two
population proportions
Performed z test for two population proportions
Business Statistics:
A Decision-Making Approach
7th Edition
Chapter 11
Hypothesis Tests for One and Two
Population Variances
Chapter Goals
Hypothesis Tests
for Variances
Single Population
σ2
Chi-Square test statistic * where
2 = standardized chi-square variable
n = sample size
s2 = sample variance
σ2 = hypothesized variance
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 11-152
0 4 8 12 16 20 24 28 2 0 4 8 12 16 20 24 28 2 0 4 8 12 16 20 24 28 2
chi-square table
Upper tail test:
H0: σ2 ≤ σ02
HA: σ2 > σ02
2
Do not reject H0 Reject H0
2
Example
A commercial freezer must hold the selected
temperature with little variation. Specifications call
for a standard deviation of no more than 4 degrees
(or variance of 16 degrees2). A sample of 16
freezers is tested and
yields a sample variance
of s2 = 24. Test to see
whether the standard
deviation specification
is exceeded. Use
= .05
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 11-155
/2
/2
2 2
Reject Do not reject H0 Reject Do not Reject
21- reject H0
21-/2 2/2
(2L) 2
( U)
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 11-157
(n 1)s2 (n 1)s2
/2 σ
2
/2
χU2 χL2
21-/2 2/2 2
(2L) (2U) Where 2L and 2U are from the
2 distribution with n -1 degrees
of freedom
Example
A sample of 16 freezers yields a sample
variance of s2 = 24.
Form a 95% confidence interval for the
population variance.
Example
(continued)
Use the chi-square table to find 2 L and 2 U :
( = .05 and 16 – 1 = 15 d.f.)
/2=.025 (n 1)s 2 (n 1)s 2
σ 2
/2=.025 χU2 χL2
The F Distribution
s12
F 2 where D1 = n1 – 1 ; D2 = n2 – 1
s2
In the F table,
numerator degrees of freedom determine the row
denominator degrees of freedom determine the column
s12
F 2 where D1 = n1 – 1 ; D2 = n2 – 1
s2
0 F 0 F
Do not Reject H0 Do not Reject H0
reject H0 F reject H0 F/2
rejection region rejection region for
for a one-tail test is a two-tailed test is
s12 s12
F 2 F F 2 F / 2
s2 s2
(where the larger sample variance in the numerator)
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 11-165
F Test: An Example
D1 = n1 – 1 = 21 – 1 = 20
Denominator:
D2 = n2 – 1 = 25 – 1 = 24
0
F = 1.256 is not greater than Do not Reject H0
reject H0 F/2
the critical F value of 2.327, so
=2.327
we do not reject H0
EXCEL
F test for two variances:
Data | Data Analysis | F-test: Two Sample for Variances
PHStat
Chi-square test for the variance:
PHStat | One-sample Tests | Chi-square Test for the Variance
F test for two variances:
PHStat | Two-sample Tests | F Test for Differences in Two
Variances
Chapter Summary
Business Statistics:
A Decision-Making Approach
7th Edition
Chapter 12
Analysis of Variance
Chapter Goals
Chapter Overview
Assumptions
Populations are normally distributed
Hypotheses of One-Way
ANOVA
H0 : μ1 μ2 μ3 μk
All population means are equal
i.e., no treatment effect (no variation in means among
groups)
HA : Not all of the population means are the same
At least one population mean is different
i.e., there is a treatment effect
Does not mean that all population means are different
(some pairs may be the same)
One-Factor ANOVA
H0 : μ1 μ2 μ3 μk
HA : Not all μi are the same
μ1 μ2 μ3
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-178
One-Factor ANOVA
(continue
H0 : μ1 μ2 μ3 μk d)
HA : Not all μi are the same
At least one mean is different:
The Null Hypothesis is NOT true
(Treatment Effect is present)
or
μ1 μ2 μ3 μ1 μ2 μ3
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-179
Total Variation
(continued)
Response, X
Between-Group Variation
k
SSB ni ( x i x )2
i1
SSB
Variation Due to MSB
Differences
GroupsAmong k 1
Mean Square
Between =
SSB/degrees of
i j
freedom
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-186
Between-Group Variation
(continued)
SSB n1 ( x1 x )2 n2 ( x 2 x )2 ... nk ( x k x )2
Response, X
x3
x2
x
x1
Within-Group Variation
k nj
SSW ( x ij x i )2
i1 j1
SSW
Summing the variation MSW
within each group and nT k
then adding over all
groups Mean Square Within =
SSW/degrees of
freedom
i
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-189
Within-Group Variation
(continued)
Response, X
x3
x2
x1
Source of SS df MS F ratio
Variation
Between SSB MSB
SSB k-1 MSB =
Samples k - 1 F = MSW
Within SSW
SSW nT - k MSW =
Samples nT - k
SST =
Total nT - 1
SSB+SSW
k = number of populations
nT = sum of the sample sizes from all populations
df = degrees of freedom
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-191
One-Factor ANOVA
F Test Statistic
H0: μ1= μ2 = … = μ k
HA: At least two population means are different
One-Factor ANOVA
F Test Example
μ1= μ2 μ3 x
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-199
MSW 1 1
Critical Range q
2 n n
i j
where:
q = Value from standardized range table
with k and nT - k degrees of
freedom for the desired level of
MSW = Mean Square Within
Business Statistics: An
i and nj = Sample sizes from populations (levels)
Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-200
i and j
qα 3.77
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-201
4. Compare:
5. All of the absolute mean differences x1 x 2 23.2
are greater than critical range.
Therefore there is a significant x1 x 3 43.4
difference between each pair of
means at 5% level of significance. x 2 x 3 20.2
b
SSBL k( x j x )2
j1
Where:
k = number of levels for this factor
b = number of blocks
xj = sample mean from the jth block
x = grand mean (mean of all data values)
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-205
Mean Squares
SSBL
MSBL Mean square blocking
b 1
SSB
MSB Mean square between
k 1
SSW
MSW Mean square within
(k 1)(b 1)
Total SST nT - 1
k = number of populations nT = sum of the sample sizes from all populations
b = number of blocks df = degrees of freedom
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-208
Blocking Test
H0 : μb1 μb2 μb3 ...
HA : Not all block means are equal
Reject H0 if F > F
Reject H0 if F > F
Fisher‟s
Least Significant Difference Test
To test which population means are significantly
different
e.g.: μ1 = μ2 ≠ μ3
Done after rejection of equal means in randomized
block ANOVA design
Allows pair-wise comparisons
Compare absolute mean differences with critical
range
1= 2 3 x
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-211
2
LSD t /2 MSW
b
where:
t/2 = Upper-tailed value from Student‟s t-
distribution
for /2 and (k - 1)(b - 1) degrees of freedom
MSW = Mean square within from ANOVA table
b = number of blocks
k = number of levels of the main factor
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-212
2
LSD t /2 MSW
b
Compare:
Is xi x j LSD ? x1 x 2
Two-Factor ANOVA
Two-Factor ANOVA
(continued)
Assumptions
Two-Way ANOVA
Sources of Variation
Two-Way ANOVA
Sources of Variation
(continued)
SST = SSA + SSB + SSAB + SSE Degrees
of
SSA Freedom
Variation due to factor A a–
:
1
SSB
SST b–
Variation due to factor B
Total Variation 1
SSAB
Variation due to interaction (a – 1)(b –
between A and B 1)
nT -
1 SSE nT –
Inherent variation (Error) ab
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-217
Sum of Squares
Interaction Between a b
A and B: SS AB n ( x ij x i x j x )2
i1 j1
where: x
i1 j1 k 1
ijk
x Grand Mean
b n
abn
x
j1 k 1
ijk
x ijk
xj i1 k 1
Mean of each level of factor B
an
n x ijk
x ij
a = number of levels of factor A
Mean of each cell
k 1 n
b = number of levels of factor B
n‟ = number of replications in each cell
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-220
SSB
MS B Mean square factor B
b 1
SS AB
MS AB Mean square interactio n
(a 1)(b 1)
SSE
MSE Mean square error
nT ab
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-221
Two-Way ANOVA:
The F Test Statistic
F Test for Factor A Main
H0: μA1 = μA2 = μA3 =
MS AEffect Reject
••• F
MSE H0 if F >
HA: Not all μAi are
F
equal F Test for Factor B Main
H0: μB1 = μB2 = μB3 =
MS Effect
••• F B Reject
MSE H0 if F >
HA: Not all μBi are
F
equal
F Test for Interaction
H0: factors A and B do not
MSEffect
interact F AB Reject
to affect the mean
response MSE H0 if F >
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc.
HA: factors A and B do FChap 12-222
interact
Two-Way ANOVA
Summary Table
Source of Sum of Degrees of Mean F
Variation Squares Freedom Squares Statistic
MSA MSA
Factor A SSA a–1
= SSA /(a – 1) MSE
MSB MSB
Factor B SSB b–1
= SSB /(b – 1) MSE
AB MSAB MSAB
SSAB (a – 1)(b – 1)
(Interaction) = SSAB / [(a – 1)(b – 1)] MSE
MSE =
Error SSE nT – ab
SSE/(nT – ab)
Total SST nT – 1
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-223
Examples:
Interaction vs. No Interaction
Interaction is
No interaction:
present:
Factor B Level 1
Mean Response
Mean Response
Factor B Level 1
Factor B Level 3
Factor B Level 2
Factor B Level 2
Factor B Level 3
Chapter Summary
Described one-way analysis of variance
The logic of ANOVA
ANOVA assumptions
F test for difference in k means
The Tukey-Kramer procedure for multiple comparisons
Described randomized complete block designs
F test
Fisher‟s least significant difference test for multiple
comparisons
Described two-way analysis of variance
Examined effects of multiple factors and interaction
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 12-226