SlideShare a Scribd company logo
Chapter 9
Testing the Difference
Between Two Means, Two
Proportions, and Two
Variances
1
Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
C H A P T E R
Outline
9
Testing the Difference Between Two
Means, Two Proportions, and Two
Variances
1.1
Descriptive and Inferential
Statistics
Slide 2
Copyright © 2012 The McGraw-Hill Companies, Inc.
9-1 Testing the Difference Between Two Means: Using
the z Test
9-2 Testing the Difference Between Two Means
of Independent Samples: Using the t Test
9-3 Testing the Difference Between Two Means:
Dependent Samples
9-4 Testing the Difference Between Proportions
9-5 Testing the Difference Between Two
Variances
C H A P T E R
Objectives
9
Testing the Difference Between Two
Means, Two Proportions, and Two
Variances
1.1
Descriptive and inferential
statistics
1 Test the difference between sample means, using the
z test.
2 Test the difference between two means for
independent samples, using the t test.
3 Test the difference between two means for
dependent samples.
4 Test the difference between two proportions.
5 Test the difference between two variances or
standard deviations.
Introduction
 Chapter 8- we used hypothesis testing on
a statistic to see how it compared to the
proposed parameter.
 Chapter 9- the basic hypothesis testing
steps are the same, but we’ll be testing
two sample means or proportions to see
how they compare with each other.
 Example- different brands of products.
Bluman, Chapter 9 4
9.1 Testing the Difference Between Two
Means: Using the z Test
 Used when it is desired to compare the
means of two groups of data.
 The null will always be that there is no
difference between the two means.
 The alternative will always be that there is
a difference between the two means (can
be two-tailed, right-tailed, or left-tailed).
Bluman, Chapter 9 5
9.1 Testing the Difference Between
Two Means: Using the z Test
Assumptions:
1. The samples must be independent of each
other. That is, there can be no relationship
between the subjects in each sample.
2. The standard deviations of both
populations must be known, and if the
sample sizes are less than 30, the
populations must be normally or
approximately normally distributed.
6
Bluman Chapter 9
Hypothesis Testing Situations in the
Comparison of Means
7
Bluman Chapter 9
Hypothesis Testing Situations in the
Comparison of Means
8
Bluman Chapter 9
Testing the Difference Between
Two Means: Large Samples
Formula for the z test for comparing two means from
independent populations
9
Bluman Chapter 9
Due to the null,
will always = 0.
Yay!
Chapter 9
Testing the Difference Between
Two Means, Two Proportions,
and Two Variances
Section 9-1
Example 9-1
Page #475
10
Bluman Chapter 9
Example 9-1: Hotel Room Cost
A survey found that the average hotel room rate in New
Orleans is $88.42 and the average room rate in Phoenix is
$80.61. Assume that the data were obtained from two
samples of 50 hotels each and that the standard deviations
of the populations are $5.62 and $4.83, respectively. At
α = 0.05, can it be concluded that there is a significant
difference in the rates?
Bluman, Chapter 9 11
Example 9-1: Hotel Room Cost
A survey found that the average hotel room rate in New
Orleans is $88.42 and the average room rate in Phoenix is
$80.61. Assume that the data were obtained from two
samples of 50 hotels each and that the standard
deviations of the populations are $5.62 and $4.83,
respectively. At α = 0.05, can it be concluded that there is
a significant difference in the rates?
Step 1: State the hypotheses and identify the claim.
H0: μ1 = μ2 and H1: μ1  μ2 (claim)
Step 2: Find the critical value.
The critical value is z = ±1.96.
12
Bluman Chapter 9
Example 9-1: Hotel Room Cost
A survey found that the average hotel room rate in New
Orleans is $88.42 and the average room rate in Phoenix is
$80.61. Assume that the data were obtained from two
samples of 50 hotels each and that the standard
deviations of the populations are $5.62 and $4.83,
respectively. At α = 0.05, can it be concluded that there is
a significant difference in the rates?
Step 3: Compute the test value.
   
1 2 1 2
2 2
1 2
1 2
  


X X
z
n n
 
 
13
Bluman Chapter 9
Example 9-1: Hotel Room Cost
A survey found that the average hotel room rate in New
Orleans is $88.42 and the average room rate in Phoenix is
$80.61. Assume that the data were obtained from two
samples of 50 hotels each and that the standard
deviations of the populations are $5.62 and $4.83,
respectively. At α = 0.05, can it be concluded that there is
a significant difference in the rates?
Step 3: Compute the test value.
   
2 2
88.42 80.61 0
5.62 4.83
50 50
 


z 7.45

14
Bluman Chapter 9
Step 4: Make the decision.
Reject the null hypothesis at α = 0.05, since
7.45 > 1.96.
Step 5: Summarize the results.
There is enough evidence to support the claim
that the means are not equal. Hence, there is a
significant difference in the rates.
Example 9-1: Hotel Room Cost
15
Bluman Chapter 9
Practice
 Page 480, #6.
Bluman, Chapter 9 16
Chapter 9
Testing the Difference
Between Two Means, Two
Proportions, and Two
Variances
Section 9-1
Example 9-2
Page #476
17
Bluman Chapter 9
Example 9-2: College Sports Offerings
A researcher hypothesizes that the average number of
sports that colleges offer for males is greater than the
average number of sports that colleges offer for females.
A sample of the number of sports offered by colleges is
shown. At α = 0.10, is there enough evidence to support
the claim? Assume 1 and 2 = 3.3.
18
Bluman Chapter 9
Example 9-2: College Sports Offerings
Step 1: State the hypotheses and identify the claim.
H0: μ1 = μ2 and H1: μ1 > μ2 (claim)
Step 2: Compute the test value.
For the males: = 8.6 and 1 = 3.3
For the females: = 7.9 and 2 = 3.3
Substitute in the formula.
   
1 2 1 2
2 2
1 2
1 2
  


X X
z
n n
 
 
1
X
2
X
   
2 2
8.6 7.9 0
1.06
3.3 3.3
50 50
 
 

19
Bluman Chapter 9
Example 9-2: College Sports Offerings
Step 3: Find the P-value.
For z = 1.06, the area is 0.8554.
The P-value is 1.0000 - 0.8554 = 0.1446.
Step 4: Make the decision.
Do not reject the null hypothesis.
Step 5: Summarize the results.
There is not enough evidence to support the
claim that colleges offer more sports for males
than they do for females.
20
Bluman Chapter 9
Confidence Intervals for the
Difference Between Two Means
Formula for the z confidence interval for the difference
between two means from independent populations
   
 
2 2
1 2
1 2 2 1 2
1 2
2 2
1 2
1 2 2
1 2
    
   
X X z
n n
X X z
n n


 
 
 
21
Bluman Chapter 9
Chapter 9
Testing the Difference Between
Two Means, Two Proportions,
and Two Variances
Section 9-1
Example 9-3
Page #478
22
Bluman Chapter 9
Example 9-3: Confidence Intervals
Find the 95% confidence interval for the difference
between the means for the data in Example 9–1.
 
 
2 2
1 2
1 2 2 1 2
1 2
2 2
1 2
1 2 2
1 2
    
   
X X z
n n
X X z
n n


 
 
 
 
 
2 2
1 2
2 2
5.62 4.83
88.42 80.61 1.96
50 50
5.62 4.83
88.42 80.61 1.96
50 50
    
   
 
1 2
7.81 2.05 7.81 2.05
    
 
1 2
5.76 9.86
  
 
23
Bluman Chapter 9
9.4 Testing the Difference Between
Proportions
 Occasionally, we want to compare the
proportions of two groups of data that
meet a certain characteristic.
 Examples:
 Is there a difference in % of Mac owners who are in
education VS % of Mac owners who aren’t?
 Is prop. of males in 20’s who exercise smaller/bigger
that prop. of females in 20’s who exercise?
Bluman, Chapter 9 24
9.4 Testing the Difference
Between Proportions
 We have the same 5 steps of the
traditional hypothesis testing.
 The null is still that there is no difference in
the proportions and the alternative is still
that there is a difference.
Bluman, Chapter 9 25
9.4 Testing the Difference Between
Proportions
26
Bluman Chapter 9
will = 0.
Chapter 9
Testing the Difference Between
Two Means, Two Proportions,
and Two Variances
Section 9-4
Example 9-9
Page #505
27
Bluman Chapter 9
Example 9-9: Vaccination Rates
In the nursing home study mentioned in the chapter-
opening Statistics Today, the researchers found that 12 out
of 34 small nursing homes had a resident vaccination rate
of less than 80%, while 17 out of 24 large nursing homes
had a vaccination rate of less than 80%. At α = 0.05, test
the claim that there is no difference in the proportions of the
small and large nursing homes with a resident vaccination
rate of less than 80%.
Bluman, Chapter 9 28
Example 9-9: Vaccination Rates
In the nursing home study mentioned in the chapter-
opening Statistics Today, the researchers found that 12
out of 34 small nursing homes had a resident vaccination
rate of less than 80%, while 17 out of 24 large nursing
homes had a vaccination rate of less than 80%. At
α = 0.05, test the claim that there is no difference in the
proportions of the small and large nursing homes with a
resident vaccination rate of less than 80%.
1 2
1 2
1 2
1 2
1 2
12 17
ˆ ˆ
0.35 and 0.71
34 24
12 17 29
0.5, 0.5
34 24 58
     
 
    
 
X X
p p
n n
X X
p q
n n
29
Bluman Chapter 9
Example 9-9: Vaccination Rates
Step 1: State the hypotheses and identify the claim.
H0: p1 – p2 = 0 (claim) and H1: p1 – p2  0
Step 2: Find the critical value.
Since α = 0.05, the critical values are –1.96
and 1.96.
Step 3: Compute the test value.
   
1 2 1 2
1 2
ˆ ˆ
1 1
p p p p
z
p q
n n
  

 

 
 
   
  
0.35 0.71 0
1 1
0.5 0.5
34 24
 

 

 
 
2.7

30
Bluman Chapter 9
Example 9-9: Vaccination Rates
Step 4: Make the decision.
Reject the null hypothesis.
Step 5: Summarize the results.
There is enough evidence to reject the
claim that there is no difference in the
proportions of small and large nursing homes
with a resident vaccination rate of less than
80%. 31
Bluman Chapter 9
Chapter 9
Testing the Difference Between
Two Means, Two Proportions,
and Two Variances
Section 9-4
Example 9-10
Page #507
32
Bluman Chapter 9
Example 9-10: Texting While Driving
A survey of 1000 drivers this year showed that 29% of the
people send text messages while driving. Last year a
survey of 1000 drivers showed that 17% of those send
text messages while driving.
At α = 0.01, can it be concluded that there has been an
increase in the number of drivers who text while driving?
33
Bluman Chapter 9
Example 9-10: Texting While Driving
Step 1: State the hypotheses and identify the claim.
H0: p1 = p2 and H1: p1 > p2 (claim)
Step 2: Find the critical value.
Since α = 0.01, the critical value is 2.33.
Step 3: Compute the test value.
34
Bluman Chapter 9
Example 9-10: Texting While Driving
Step 4: Make the decision.
Reject the null hypothesis since 6.38 > 2.33.
Step 5: Summarize the results.
There is enough evidence to say that
the proportion of drivers who send text
messages is larger today than it was last year.
35
Bluman Chapter 9
Confidence Interval for the
Difference Between Proportions
Formula for the confidence interval for the difference
between proportions
 
 
1 1 2 2
1 2 2 1 2
1 2
1 1 2 2
1 2 2
1 2
ˆ ˆ ˆ ˆ
ˆ ˆ
ˆ ˆ ˆ ˆ
ˆ ˆ
    
   
p q p q
p p z p p
n n
p q p q
p p z
n n


36
Bluman Chapter 9
Chapter 9
Testing the Difference Between
Two Means, Two Proportions,
and Two Variances
Section 9-4
Example 9-11
Page #508
37
Bluman Chapter 9
Example 9-11: Confidence Intervals
Find the 95% confidence interval for the difference of the
proportions for the data in Example 9–9.
 
 
1 1 2 2
1 2 2 1 2
1 2
1 1 2 2
1 2 2
1 2
ˆ ˆ ˆ ˆ
ˆ ˆ
ˆ ˆ ˆ ˆ
ˆ ˆ
    
   
p q p q
p p z p p
n n
p q p q
p p z
n n


1
1 1
1
2
2 2
2
12
ˆ ˆ
0.35 and 1 0.35 0.65
34
17
ˆ ˆ
0.71 and 1 0.71 0.29
24
     
     
X
p q
n
X
p q
n
38
Bluman Chapter 9
Example 9-11: Confidence Intervals
Find the 95% confidence interval for the difference of the
proportions for the data in Example 9–9.
1 2
0.36 0.242 0.36 0.242
      
p p
1 2
0.602 0.118
    
p p
Since 0 is not contained in the interval, the decision is
to reject the null hypothesis H0: p1 = p2.
 
     
 
     
1 2
0.35 0.65 0.71 0.29
0.35 0.71 1.96
34 24
0.35 0.65 0.71 0.29
0.35 0.71 1.96
34 24
    
   
p p
39
Bluman Chapter 9

More Related Content

PPT
hypothesis testing for single mean value
PPT
testing the difference between two means
PPTX
Group 3_Chapter 9_Subtopics 9-1, 9-2, 9-3.pptx
PDF
bman10.pdf formulas and notes on how to get mean
PPT
Ch6 Testing the Difference between Means, Variances
PPT
Chapter11
PPTX
Two variances or standard deviations
PDF
Bmgt 311 chapter_13
hypothesis testing for single mean value
testing the difference between two means
Group 3_Chapter 9_Subtopics 9-1, 9-2, 9-3.pptx
bman10.pdf formulas and notes on how to get mean
Ch6 Testing the Difference between Means, Variances
Chapter11
Two variances or standard deviations
Bmgt 311 chapter_13

Similar to hypothesis testing elementary statistics (20)

PPTX
Two Means Independent Samples
PPT
Chapter11
PPTX
Lecture 10 t –test for Two Independent Samples.pptx
PPT
Chapter 9 Section 2.ppt
PDF
Bmgt 311 chapter_13
PPTX
Two Means, Independent Samples
PDF
t-z-chi-square tests of sig.pdf
PPTX
Tests of Significance.pptx powerpoint presentation
PPTX
3.1 Inference about Two Population Mean_Summer 2025.pptx
PPT
Inference about means and mean differences
PPT
Chapter 9 Section 3.ppt
PPTX
tests of significance
PPT
Les5e ppt 08
PPT
Chap012.ppt
PPT
2_5332511410507220042.ppt
PPTX
Test of significance
PPT
Lesson 06 chapter 9 two samples test and Chapter 11 chi square test
DOCX
Math 104 Fall 14Lab Assignment #4Math 104 Fall 14Lab Assignmen.docx
PPTX
BUS173 Lecture 4.pptx
PPTX
Two dependent samples (matched pairs)
Two Means Independent Samples
Chapter11
Lecture 10 t –test for Two Independent Samples.pptx
Chapter 9 Section 2.ppt
Bmgt 311 chapter_13
Two Means, Independent Samples
t-z-chi-square tests of sig.pdf
Tests of Significance.pptx powerpoint presentation
3.1 Inference about Two Population Mean_Summer 2025.pptx
Inference about means and mean differences
Chapter 9 Section 3.ppt
tests of significance
Les5e ppt 08
Chap012.ppt
2_5332511410507220042.ppt
Test of significance
Lesson 06 chapter 9 two samples test and Chapter 11 chi square test
Math 104 Fall 14Lab Assignment #4Math 104 Fall 14Lab Assignmen.docx
BUS173 Lecture 4.pptx
Two dependent samples (matched pairs)
Ad

Recently uploaded (20)

PDF
ECONOMICS AND ENTREPRENEURS LESSONSS AND
PDF
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
PPTX
Introduction to Managemeng Chapter 1..pptx
PDF
6a Transition Through Old Age in a Dynamic Retirement Distribution Model JFP ...
PPTX
4.5.1 Financial Governance_Appropriation & Finance.pptx
PDF
Spending, Allocation Choices, and Aging THROUGH Retirement. Are all of these ...
PPTX
Session 14-16. Capital Structure Theories.pptx
PPTX
Basic Concepts of Economics.pvhjkl;vbjkl;ptx
PPTX
The discussion on the Economic in transportation .pptx
PDF
Bitcoin Layer August 2025: Power Laws of Bitcoin: The Core and Bubbles
PPTX
Introduction to Customs (June 2025) v1.pptx
PDF
how_to_earn_50k_monthly_investment_guide.pdf
PDF
Q2 2025 :Lundin Gold Conference Call Presentation_Final.pdf
PPT
KPMG FA Benefits Report_FINAL_Jan 27_2010.ppt
PDF
Mathematical Economics 23lec03slides.pdf
PDF
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
PPTX
introuction to banking- Types of Payment Methods
PPT
E commerce busin and some important issues
PDF
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
PPTX
Session 3. Time Value of Money.pptx_finance
ECONOMICS AND ENTREPRENEURS LESSONSS AND
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
Introduction to Managemeng Chapter 1..pptx
6a Transition Through Old Age in a Dynamic Retirement Distribution Model JFP ...
4.5.1 Financial Governance_Appropriation & Finance.pptx
Spending, Allocation Choices, and Aging THROUGH Retirement. Are all of these ...
Session 14-16. Capital Structure Theories.pptx
Basic Concepts of Economics.pvhjkl;vbjkl;ptx
The discussion on the Economic in transportation .pptx
Bitcoin Layer August 2025: Power Laws of Bitcoin: The Core and Bubbles
Introduction to Customs (June 2025) v1.pptx
how_to_earn_50k_monthly_investment_guide.pdf
Q2 2025 :Lundin Gold Conference Call Presentation_Final.pdf
KPMG FA Benefits Report_FINAL_Jan 27_2010.ppt
Mathematical Economics 23lec03slides.pdf
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
introuction to banking- Types of Payment Methods
E commerce busin and some important issues
CLIMATE CHANGE AS A THREAT MULTIPLIER: ASSESSING ITS IMPACT ON RESOURCE SCARC...
Session 3. Time Value of Money.pptx_finance
Ad

hypothesis testing elementary statistics

  • 1. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances 1 Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. C H A P T E R Outline 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances 1.1 Descriptive and Inferential Statistics Slide 2 Copyright © 2012 The McGraw-Hill Companies, Inc. 9-1 Testing the Difference Between Two Means: Using the z Test 9-2 Testing the Difference Between Two Means of Independent Samples: Using the t Test 9-3 Testing the Difference Between Two Means: Dependent Samples 9-4 Testing the Difference Between Proportions 9-5 Testing the Difference Between Two Variances
  • 3. C H A P T E R Objectives 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances 1.1 Descriptive and inferential statistics 1 Test the difference between sample means, using the z test. 2 Test the difference between two means for independent samples, using the t test. 3 Test the difference between two means for dependent samples. 4 Test the difference between two proportions. 5 Test the difference between two variances or standard deviations.
  • 4. Introduction  Chapter 8- we used hypothesis testing on a statistic to see how it compared to the proposed parameter.  Chapter 9- the basic hypothesis testing steps are the same, but we’ll be testing two sample means or proportions to see how they compare with each other.  Example- different brands of products. Bluman, Chapter 9 4
  • 5. 9.1 Testing the Difference Between Two Means: Using the z Test  Used when it is desired to compare the means of two groups of data.  The null will always be that there is no difference between the two means.  The alternative will always be that there is a difference between the two means (can be two-tailed, right-tailed, or left-tailed). Bluman, Chapter 9 5
  • 6. 9.1 Testing the Difference Between Two Means: Using the z Test Assumptions: 1. The samples must be independent of each other. That is, there can be no relationship between the subjects in each sample. 2. The standard deviations of both populations must be known, and if the sample sizes are less than 30, the populations must be normally or approximately normally distributed. 6 Bluman Chapter 9
  • 7. Hypothesis Testing Situations in the Comparison of Means 7 Bluman Chapter 9
  • 8. Hypothesis Testing Situations in the Comparison of Means 8 Bluman Chapter 9
  • 9. Testing the Difference Between Two Means: Large Samples Formula for the z test for comparing two means from independent populations 9 Bluman Chapter 9 Due to the null, will always = 0. Yay!
  • 10. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-1 Example 9-1 Page #475 10 Bluman Chapter 9
  • 11. Example 9-1: Hotel Room Cost A survey found that the average hotel room rate in New Orleans is $88.42 and the average room rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 hotels each and that the standard deviations of the populations are $5.62 and $4.83, respectively. At α = 0.05, can it be concluded that there is a significant difference in the rates? Bluman, Chapter 9 11
  • 12. Example 9-1: Hotel Room Cost A survey found that the average hotel room rate in New Orleans is $88.42 and the average room rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 hotels each and that the standard deviations of the populations are $5.62 and $4.83, respectively. At α = 0.05, can it be concluded that there is a significant difference in the rates? Step 1: State the hypotheses and identify the claim. H0: μ1 = μ2 and H1: μ1  μ2 (claim) Step 2: Find the critical value. The critical value is z = ±1.96. 12 Bluman Chapter 9
  • 13. Example 9-1: Hotel Room Cost A survey found that the average hotel room rate in New Orleans is $88.42 and the average room rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 hotels each and that the standard deviations of the populations are $5.62 and $4.83, respectively. At α = 0.05, can it be concluded that there is a significant difference in the rates? Step 3: Compute the test value.     1 2 1 2 2 2 1 2 1 2      X X z n n     13 Bluman Chapter 9
  • 14. Example 9-1: Hotel Room Cost A survey found that the average hotel room rate in New Orleans is $88.42 and the average room rate in Phoenix is $80.61. Assume that the data were obtained from two samples of 50 hotels each and that the standard deviations of the populations are $5.62 and $4.83, respectively. At α = 0.05, can it be concluded that there is a significant difference in the rates? Step 3: Compute the test value.     2 2 88.42 80.61 0 5.62 4.83 50 50     z 7.45  14 Bluman Chapter 9
  • 15. Step 4: Make the decision. Reject the null hypothesis at α = 0.05, since 7.45 > 1.96. Step 5: Summarize the results. There is enough evidence to support the claim that the means are not equal. Hence, there is a significant difference in the rates. Example 9-1: Hotel Room Cost 15 Bluman Chapter 9
  • 16. Practice  Page 480, #6. Bluman, Chapter 9 16
  • 17. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-1 Example 9-2 Page #476 17 Bluman Chapter 9
  • 18. Example 9-2: College Sports Offerings A researcher hypothesizes that the average number of sports that colleges offer for males is greater than the average number of sports that colleges offer for females. A sample of the number of sports offered by colleges is shown. At α = 0.10, is there enough evidence to support the claim? Assume 1 and 2 = 3.3. 18 Bluman Chapter 9
  • 19. Example 9-2: College Sports Offerings Step 1: State the hypotheses and identify the claim. H0: μ1 = μ2 and H1: μ1 > μ2 (claim) Step 2: Compute the test value. For the males: = 8.6 and 1 = 3.3 For the females: = 7.9 and 2 = 3.3 Substitute in the formula.     1 2 1 2 2 2 1 2 1 2      X X z n n     1 X 2 X     2 2 8.6 7.9 0 1.06 3.3 3.3 50 50      19 Bluman Chapter 9
  • 20. Example 9-2: College Sports Offerings Step 3: Find the P-value. For z = 1.06, the area is 0.8554. The P-value is 1.0000 - 0.8554 = 0.1446. Step 4: Make the decision. Do not reject the null hypothesis. Step 5: Summarize the results. There is not enough evidence to support the claim that colleges offer more sports for males than they do for females. 20 Bluman Chapter 9
  • 21. Confidence Intervals for the Difference Between Two Means Formula for the z confidence interval for the difference between two means from independent populations       2 2 1 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 1 2          X X z n n X X z n n         21 Bluman Chapter 9
  • 22. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-1 Example 9-3 Page #478 22 Bluman Chapter 9
  • 23. Example 9-3: Confidence Intervals Find the 95% confidence interval for the difference between the means for the data in Example 9–1.     2 2 1 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 1 2          X X z n n X X z n n             2 2 1 2 2 2 5.62 4.83 88.42 80.61 1.96 50 50 5.62 4.83 88.42 80.61 1.96 50 50            1 2 7.81 2.05 7.81 2.05        1 2 5.76 9.86      23 Bluman Chapter 9
  • 24. 9.4 Testing the Difference Between Proportions  Occasionally, we want to compare the proportions of two groups of data that meet a certain characteristic.  Examples:  Is there a difference in % of Mac owners who are in education VS % of Mac owners who aren’t?  Is prop. of males in 20’s who exercise smaller/bigger that prop. of females in 20’s who exercise? Bluman, Chapter 9 24
  • 25. 9.4 Testing the Difference Between Proportions  We have the same 5 steps of the traditional hypothesis testing.  The null is still that there is no difference in the proportions and the alternative is still that there is a difference. Bluman, Chapter 9 25
  • 26. 9.4 Testing the Difference Between Proportions 26 Bluman Chapter 9 will = 0.
  • 27. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-4 Example 9-9 Page #505 27 Bluman Chapter 9
  • 28. Example 9-9: Vaccination Rates In the nursing home study mentioned in the chapter- opening Statistics Today, the researchers found that 12 out of 34 small nursing homes had a resident vaccination rate of less than 80%, while 17 out of 24 large nursing homes had a vaccination rate of less than 80%. At α = 0.05, test the claim that there is no difference in the proportions of the small and large nursing homes with a resident vaccination rate of less than 80%. Bluman, Chapter 9 28
  • 29. Example 9-9: Vaccination Rates In the nursing home study mentioned in the chapter- opening Statistics Today, the researchers found that 12 out of 34 small nursing homes had a resident vaccination rate of less than 80%, while 17 out of 24 large nursing homes had a vaccination rate of less than 80%. At α = 0.05, test the claim that there is no difference in the proportions of the small and large nursing homes with a resident vaccination rate of less than 80%. 1 2 1 2 1 2 1 2 1 2 12 17 ˆ ˆ 0.35 and 0.71 34 24 12 17 29 0.5, 0.5 34 24 58                X X p p n n X X p q n n 29 Bluman Chapter 9
  • 30. Example 9-9: Vaccination Rates Step 1: State the hypotheses and identify the claim. H0: p1 – p2 = 0 (claim) and H1: p1 – p2  0 Step 2: Find the critical value. Since α = 0.05, the critical values are –1.96 and 1.96. Step 3: Compute the test value.     1 2 1 2 1 2 ˆ ˆ 1 1 p p p p z p q n n                   0.35 0.71 0 1 1 0.5 0.5 34 24           2.7  30 Bluman Chapter 9
  • 31. Example 9-9: Vaccination Rates Step 4: Make the decision. Reject the null hypothesis. Step 5: Summarize the results. There is enough evidence to reject the claim that there is no difference in the proportions of small and large nursing homes with a resident vaccination rate of less than 80%. 31 Bluman Chapter 9
  • 32. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-4 Example 9-10 Page #507 32 Bluman Chapter 9
  • 33. Example 9-10: Texting While Driving A survey of 1000 drivers this year showed that 29% of the people send text messages while driving. Last year a survey of 1000 drivers showed that 17% of those send text messages while driving. At α = 0.01, can it be concluded that there has been an increase in the number of drivers who text while driving? 33 Bluman Chapter 9
  • 34. Example 9-10: Texting While Driving Step 1: State the hypotheses and identify the claim. H0: p1 = p2 and H1: p1 > p2 (claim) Step 2: Find the critical value. Since α = 0.01, the critical value is 2.33. Step 3: Compute the test value. 34 Bluman Chapter 9
  • 35. Example 9-10: Texting While Driving Step 4: Make the decision. Reject the null hypothesis since 6.38 > 2.33. Step 5: Summarize the results. There is enough evidence to say that the proportion of drivers who send text messages is larger today than it was last year. 35 Bluman Chapter 9
  • 36. Confidence Interval for the Difference Between Proportions Formula for the confidence interval for the difference between proportions     1 1 2 2 1 2 2 1 2 1 2 1 1 2 2 1 2 2 1 2 ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ          p q p q p p z p p n n p q p q p p z n n   36 Bluman Chapter 9
  • 37. Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Section 9-4 Example 9-11 Page #508 37 Bluman Chapter 9
  • 38. Example 9-11: Confidence Intervals Find the 95% confidence interval for the difference of the proportions for the data in Example 9–9.     1 1 2 2 1 2 2 1 2 1 2 1 1 2 2 1 2 2 1 2 ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ          p q p q p p z p p n n p q p q p p z n n   1 1 1 1 2 2 2 2 12 ˆ ˆ 0.35 and 1 0.35 0.65 34 17 ˆ ˆ 0.71 and 1 0.71 0.29 24             X p q n X p q n 38 Bluman Chapter 9
  • 39. Example 9-11: Confidence Intervals Find the 95% confidence interval for the difference of the proportions for the data in Example 9–9. 1 2 0.36 0.242 0.36 0.242        p p 1 2 0.602 0.118      p p Since 0 is not contained in the interval, the decision is to reject the null hypothesis H0: p1 = p2.                 1 2 0.35 0.65 0.71 0.29 0.35 0.71 1.96 34 24 0.35 0.65 0.71 0.29 0.35 0.71 1.96 34 24          p p 39 Bluman Chapter 9