SlideShare a Scribd company logo
1 of 43
Chapter 13 Comparing Two Population Parameters
13.1 Comparing Two Means
Two-Sample Problems The goal of this type of inference  compare the responses of two treatments -or- compare the characteristics of two populations Separate samples from each population Responses of each group are independent of those in the other group
Before We Begin This is another set of PHANTOMS procedures It is important to note that “two populations” means that there is no overlap in the samples The sample sizes do not need to be equal
Hypotheses There are two styles of writing hypotheses Style 1 H0: 1 = 2 Ha: 1  2, or Ha: 1 > 2, or Ha: 1 < 2
Hypotheses There are two styles of writing hypotheses Style 2 H0: 1 - 2 = 0 Ha: 1 - 2  0, or Ha: 1 - 2 > 0 (this implies 1 > 2), or Ha: 1 - 2 < 0 (this implies 1 < 2)
Hypotheses There are two styles of writing hypotheses Style 2 H0: 1 - 2 = 0 Ha: 1 - 2  0, or Ha: 1 - 2 > 0 (this implies 1 > 2), or Ha: 1 - 2 < 0 (this implies 1 < 2) This style is more versatile since it allows you to use adifference other than zero
Assumptions Simple Random Sample Each sample must be from an SRS Independence Samples may not influence each otherNo paired data!N1 > 10n1and N2 > 10n2 (if sampling w/o replacement)
Assumptions Normality (of sampling distibution) large samples (n1 > 30 and n2 > 30)this is the Central Limit Theorem			-OR- medium samples (15<n1<30 and 15<n2<30)-Histogram symmetric or slight skew and single peak-Norm prob plots for n1 and n2 are linear-No Outliers			-OR-
Assumptions Normality (of sampling distibution) small samples (n1<15 and n2<15)-Histogram symmetric and single peak-Norm prob plots for n1 and n2 are linear-No Outliers
2-sample test statistic z-tests t-tests df = smaller of      n1 -1 or n2 - 1
Example 13.2 Researchers designed a randomized comparative experiment to establish the relationship between calcium intake and blood pressure in black men.  Group 1 (n1 = 10) took calcium supplement, Group 2 (n2 =11) took a placebo.  The response is the decrease in systolic blood pressure Group 1: 7, -4, 18, 17, -3, -5, 1, 10, 11, -2 Group 2: -1, 12, -1, -3, 3, -5, 5, 2, -11, -1, -3
Example 13.2 Parameter 	1 - 2 = difference in average systolic blood pressure in healthy black men between the calcium regimen and the placebo regimen   xbar1 - xbar2 = difference in average systolic blood pressure in healthy black men in the two samples between the calcium regimen and the placebo regimen
Example 13.2 Hypotheses H0: 1 - 2 = 0 Ha: 1 - 2 > 0
Example 13.2 Assumptions Simple Random Sample We are told that both samples come from a randomized design Independence Both samples are independent, and (n1) N1 > 10(10) =100, (n2) N2 > 10(11)=110the population of black men is greater than 110
Example 13.2 Assumptions (cont) Sample 1Sample 2
Example 13.2 Assumptions (cont) Normality Both samples are single peaked with moderate skewness and approximately normal with no outliers. Although sample 1 shows some skewness, the t-procedures are robust enough to handle this skew.
Example 13.2 Name of Test We will conduct a 2-sample t-test for population means Test Statistic
Example 13.2 P Value Decision Fail to Reject H0 at the 5% significance level
Example 13.2 Summary Approximately 7% of the time, our samples of size 10 and 11 would produce a difference at least as extreme as 5.2727 Since this p-value is not less than the presumed  = 0.05, we will fail to reject H0  We do not have enough evidence to conclude that calcium intake reduces the average blood pressure in healthy black men.
Confidence Intervals 	Confidence Interval for a difference to two sample means
Robustness 	2-sample t-procedures are more robust than one sample procedures.  They can be used for sample sizes as small as n1 = n2 = 5 when the samples have similar shapes. Guidelines for using t-procedures n1 + n2< 15: data must be approx normal,no outliers n1 + n2 >15: data can have slight skew, no outliers n1 + n2> 30: data can have skew
Degrees of Freedom We have been using the smaller of n1 or n2 to determine the df This will ensure that our pvalue is smaller than the calculated pvalueand confidence intervals are smaller than calculated. These are “worst case scenario” calculations There is a more exact df formula on p792 Your calculator also uses a df formula for two samples You do not need to memorize these other formulas!
Calculators The tests we are using are located in the [STAT] -> “TESTS” menu 2-SampZTest = two sample z-test for means 2-SampTTest = two sample t-test for mean 2-SampZInt = two sample z Confidence Interval for difference of means 2-SampTInt = two sample t Confidence Interval for difference of means
Calculators Freq1 and Freq2 should be set to “1” Pooled should be set to “NO”
13.2 Comparing two Proportions
2-Sample Inference for Proportions We are testing to see if Two populations have the same proportion		OR A treatment affects the proportion  Remember: this is not a procedure for paired data (matched pair design/pre- and post-test)
Combined Proportion One of the underlying assumptions of the test is that the two proportions actually come from the same population. The test makes use of the “combined proportion” as below:
Hypotheses There are two styles of writing hypotheses Style 1 H0: p1 = p2 Ha: p1  p2, or Ha: p1 > p2, or Ha: p1 < p2
Hypotheses There are two styles of writing hypotheses Style 2 H0: p1 - p2 = 0 Ha: p1 - p2  0, or Ha: p1 - p2 > 0 (this implies p1 > p2), or Ha: p1 - p2 < 0 (this implies p1 < p2)
Hypotheses There are two styles of writing hypotheses Style 2 H0: p1 - p2 = 0 Ha: p1 - p2  0, or Ha: p1 - p2 > 0 (this implies p1 > p2), or Ha: p1 - p2 < 0 (this implies p1 < p2) This style is more versatile since it allows you to use adifference other than zero
Assumptions Simple Random SampleBoth samples must be viewed as an SRS from their respective population or two groups from a randomized experiment Independence N1 > 10n1 and N2 > 10n2 Normality n1(pchat)> 5, n1(qchat)> 5 and n2(pchat)> 5, n2(qchat)> 5
Test Statistic The test statistic for proportions is always from the Normal distribution 
Example 13.9 	A study was conducted to find the effects of preschool programs in poor children.  Group 1 (n=61) had no preschool and group 2 (n=62) had similar backgrounds and attended preschool.  The study measured the need for social services when the children became adults.  After investigation it was found that p1hat = 49/61 and p2hat = 38/62.Does the data support the claim that preschool reduced the social services claimed?
Example 13.9 Parameters p1 = proportion of adults who did not receive preschool and file for social services p2 = proportion of adults who received preschool and filed for social services p1hat = proportion of adults in group 1who did not receive preschool and file for social services p2hat = proportion of adults in group 2 who received preschool and filed for social services
Example 13.9 Hypotheses H0: p1 – p2 = 0 Ha: p1 – p2 > 0 The proportion of non-preschool is greater than that of pre-school
Example 13.9 Assumptions Simple Random SampleSince the measurements are from a randomized experiment, we can assume that they are from an SRS IndependenceN1 > 10(61) = 610: more than 610 do not attend preschoolN2 > 10(62) = 620: more than 620 attend preschool Normality61(.70) = 42.7 > 5, 61(.30) = 18.3 > 562(.70) = 43.4 > 5, 62(.30) = 18.6 > 5
Example 13.9 Name of Test 2-Sample Z-test for proportions Test Statistic
Example 13.9 Pvalue Pval = P(z > 2.316) = 0.0103 Make Decision Reject H0
Example 13.9 Summary Approximately 1% of the time, two samples of size 61 and 62 will produce a difference of at least 0.190. Since our p value is less than an  of 0.05, we will reject our H0. Our evidence supports the claim that enrollment in preschool reduces the proportion of adults who file social services claims.
Confidence Intervals The confidence interval for the difference between the proportions of two samples is given as: Notice that the Confidence Interval does not use pchat and qchat.
Confidence Intervals Assumptions Simple Random SampleBoth samples must be viewed as an SRS from their respective population or two groups from a randomized experiment Independence N1 > 10n1 and N2 > 10n2 Normality 	n1(p1)> 5, n1(q1)> 5 and n2(p2)> 5, n2(q2)> 5(again, not pc or qc)
Calculators 	The tests we are using are located in the [STAT] -> “TESTS” menu 2-PropZTest = 2 proportion z-test 2-PropZInt = 2 proportion confidence interval

More Related Content

What's hot

Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionLong Beach City College
 
hypothesis test
 hypothesis test hypothesis test
hypothesis testUnsa Shakir
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample Sizeguest3720ca
 
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Dexlab Analytics
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Long Beach City College
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Dr Athar Khan
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of SignificanceRai University
 

What's hot (20)

Chapter 4 estimation of parameters
Chapter 4   estimation of parametersChapter 4   estimation of parameters
Chapter 4 estimation of parameters
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Practice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing SolutionPractice Test 4A Hypothesis Testing Solution
Practice Test 4A Hypothesis Testing Solution
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Estimating a Population Proportion
Estimating a Population ProportionEstimating a Population Proportion
Estimating a Population Proportion
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample Size
 
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
Basic of Statistical Inference Part-III: The Theory of Estimation from Dexlab...
 
Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance Estimating a Population Standard Deviation or Variance
Estimating a Population Standard Deviation or Variance
 
Thesigntest
ThesigntestThesigntest
Thesigntest
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
12
1212
12
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
 
11
1111
11
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Binary OR Binomial logistic regression
Binary OR Binomial logistic regression Binary OR Binomial logistic regression
Binary OR Binomial logistic regression
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Basics of Hypothesis Testing
Basics of Hypothesis TestingBasics of Hypothesis Testing
Basics of Hypothesis Testing
 
02a one sample_t-test
02a one sample_t-test02a one sample_t-test
02a one sample_t-test
 
T test
T test T test
T test
 

Similar to Stats chapter 13

tps5e_Ch10_2.ppt
tps5e_Ch10_2.ppttps5e_Ch10_2.ppt
tps5e_Ch10_2.pptDunakanshon
 
t-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.pptt-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.pptMohammedAbdela7
 
Hypothesis Testing Research Methodology ppt
Hypothesis Testing Research Methodology pptHypothesis Testing Research Methodology ppt
Hypothesis Testing Research Methodology pptGayatri Chopra
 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Testssanketd1983
 
Chapter 5 Anova2009
Chapter 5 Anova2009Chapter 5 Anova2009
Chapter 5 Anova2009ghalan
 
ANOVA_PDF.pdf biostatistics course material
ANOVA_PDF.pdf biostatistics course materialANOVA_PDF.pdf biostatistics course material
ANOVA_PDF.pdf biostatistics course materialAmanuelIbrahim
 
Unit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptUnit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptshakirRahman10
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics testsrodrick koome
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptxssuser504dda
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Ramnath Takiar
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxtiffanyd4
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfChenPalaruan
 

Similar to Stats chapter 13 (20)

Stats chapter 12
Stats chapter 12Stats chapter 12
Stats chapter 12
 
tps5e_Ch10_2.ppt
tps5e_Ch10_2.ppttps5e_Ch10_2.ppt
tps5e_Ch10_2.ppt
 
t-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.pptt-test and one way ANOVA.ppt game.ppt
t-test and one way ANOVA.ppt game.ppt
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
Hypothesis Testing Research Methodology ppt
Hypothesis Testing Research Methodology pptHypothesis Testing Research Methodology ppt
Hypothesis Testing Research Methodology ppt
 
Chapter 5 Anova2009
Chapter 5 Anova2009Chapter 5 Anova2009
Chapter 5 Anova2009
 
Chapter11
Chapter11Chapter11
Chapter11
 
Ttest
TtestTtest
Ttest
 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Tests
 
Chapter 5 Anova2009
Chapter 5 Anova2009Chapter 5 Anova2009
Chapter 5 Anova2009
 
ANOVA_PDF.pdf biostatistics course material
ANOVA_PDF.pdf biostatistics course materialANOVA_PDF.pdf biostatistics course material
ANOVA_PDF.pdf biostatistics course material
 
K.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f testsK.A.Sindhura-t,z,f tests
K.A.Sindhura-t,z,f tests
 
Sample size
Sample sizeSample size
Sample size
 
Unit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.pptUnit 9b. Sample size estimation.ppt
Unit 9b. Sample size estimation.ppt
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptx
 
Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)Test of significance (t-test, proportion test, chi-square test)
Test of significance (t-test, proportion test, chi-square test)
 
T-Test
T-TestT-Test
T-Test
 
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docxChapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
Chapter 9 Two-Sample Inference 265 Chapter 9 Two-Sam.docx
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 

More from Richard Ferreria (20)

Chapter6
Chapter6Chapter6
Chapter6
 
Chapter2
Chapter2Chapter2
Chapter2
 
Chapter3
Chapter3Chapter3
Chapter3
 
Chapter8
Chapter8Chapter8
Chapter8
 
Chapter1
Chapter1Chapter1
Chapter1
 
Chapter4
Chapter4Chapter4
Chapter4
 
Chapter7
Chapter7Chapter7
Chapter7
 
Chapter5
Chapter5Chapter5
Chapter5
 
Chapter9
Chapter9Chapter9
Chapter9
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapter15
Chapter15Chapter15
Chapter15
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter12
Chapter12Chapter12
Chapter12
 
Chapter10
Chapter10Chapter10
Chapter10
 
Chapter13
Chapter13Chapter13
Chapter13
 
Adding grades to your google site v2 (dropbox)
Adding grades to your google site v2 (dropbox)Adding grades to your google site v2 (dropbox)
Adding grades to your google site v2 (dropbox)
 
Stats chapter 14
Stats chapter 14Stats chapter 14
Stats chapter 14
 
Stats chapter 15
Stats chapter 15Stats chapter 15
Stats chapter 15
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
 
Stats chapter 11
Stats chapter 11Stats chapter 11
Stats chapter 11
 

Stats chapter 13

  • 1. Chapter 13 Comparing Two Population Parameters
  • 3. Two-Sample Problems The goal of this type of inference compare the responses of two treatments -or- compare the characteristics of two populations Separate samples from each population Responses of each group are independent of those in the other group
  • 4. Before We Begin This is another set of PHANTOMS procedures It is important to note that “two populations” means that there is no overlap in the samples The sample sizes do not need to be equal
  • 5. Hypotheses There are two styles of writing hypotheses Style 1 H0: 1 = 2 Ha: 1  2, or Ha: 1 > 2, or Ha: 1 < 2
  • 6. Hypotheses There are two styles of writing hypotheses Style 2 H0: 1 - 2 = 0 Ha: 1 - 2  0, or Ha: 1 - 2 > 0 (this implies 1 > 2), or Ha: 1 - 2 < 0 (this implies 1 < 2)
  • 7. Hypotheses There are two styles of writing hypotheses Style 2 H0: 1 - 2 = 0 Ha: 1 - 2  0, or Ha: 1 - 2 > 0 (this implies 1 > 2), or Ha: 1 - 2 < 0 (this implies 1 < 2) This style is more versatile since it allows you to use adifference other than zero
  • 8. Assumptions Simple Random Sample Each sample must be from an SRS Independence Samples may not influence each otherNo paired data!N1 > 10n1and N2 > 10n2 (if sampling w/o replacement)
  • 9. Assumptions Normality (of sampling distibution) large samples (n1 > 30 and n2 > 30)this is the Central Limit Theorem -OR- medium samples (15<n1<30 and 15<n2<30)-Histogram symmetric or slight skew and single peak-Norm prob plots for n1 and n2 are linear-No Outliers -OR-
  • 10. Assumptions Normality (of sampling distibution) small samples (n1<15 and n2<15)-Histogram symmetric and single peak-Norm prob plots for n1 and n2 are linear-No Outliers
  • 11. 2-sample test statistic z-tests t-tests df = smaller of n1 -1 or n2 - 1
  • 12. Example 13.2 Researchers designed a randomized comparative experiment to establish the relationship between calcium intake and blood pressure in black men. Group 1 (n1 = 10) took calcium supplement, Group 2 (n2 =11) took a placebo. The response is the decrease in systolic blood pressure Group 1: 7, -4, 18, 17, -3, -5, 1, 10, 11, -2 Group 2: -1, 12, -1, -3, 3, -5, 5, 2, -11, -1, -3
  • 13. Example 13.2 Parameter 1 - 2 = difference in average systolic blood pressure in healthy black men between the calcium regimen and the placebo regimen xbar1 - xbar2 = difference in average systolic blood pressure in healthy black men in the two samples between the calcium regimen and the placebo regimen
  • 14. Example 13.2 Hypotheses H0: 1 - 2 = 0 Ha: 1 - 2 > 0
  • 15. Example 13.2 Assumptions Simple Random Sample We are told that both samples come from a randomized design Independence Both samples are independent, and (n1) N1 > 10(10) =100, (n2) N2 > 10(11)=110the population of black men is greater than 110
  • 16. Example 13.2 Assumptions (cont) Sample 1Sample 2
  • 17. Example 13.2 Assumptions (cont) Normality Both samples are single peaked with moderate skewness and approximately normal with no outliers. Although sample 1 shows some skewness, the t-procedures are robust enough to handle this skew.
  • 18. Example 13.2 Name of Test We will conduct a 2-sample t-test for population means Test Statistic
  • 19. Example 13.2 P Value Decision Fail to Reject H0 at the 5% significance level
  • 20. Example 13.2 Summary Approximately 7% of the time, our samples of size 10 and 11 would produce a difference at least as extreme as 5.2727 Since this p-value is not less than the presumed  = 0.05, we will fail to reject H0 We do not have enough evidence to conclude that calcium intake reduces the average blood pressure in healthy black men.
  • 21. Confidence Intervals Confidence Interval for a difference to two sample means
  • 22. Robustness 2-sample t-procedures are more robust than one sample procedures. They can be used for sample sizes as small as n1 = n2 = 5 when the samples have similar shapes. Guidelines for using t-procedures n1 + n2< 15: data must be approx normal,no outliers n1 + n2 >15: data can have slight skew, no outliers n1 + n2> 30: data can have skew
  • 23. Degrees of Freedom We have been using the smaller of n1 or n2 to determine the df This will ensure that our pvalue is smaller than the calculated pvalueand confidence intervals are smaller than calculated. These are “worst case scenario” calculations There is a more exact df formula on p792 Your calculator also uses a df formula for two samples You do not need to memorize these other formulas!
  • 24. Calculators The tests we are using are located in the [STAT] -> “TESTS” menu 2-SampZTest = two sample z-test for means 2-SampTTest = two sample t-test for mean 2-SampZInt = two sample z Confidence Interval for difference of means 2-SampTInt = two sample t Confidence Interval for difference of means
  • 25. Calculators Freq1 and Freq2 should be set to “1” Pooled should be set to “NO”
  • 26. 13.2 Comparing two Proportions
  • 27. 2-Sample Inference for Proportions We are testing to see if Two populations have the same proportion OR A treatment affects the proportion Remember: this is not a procedure for paired data (matched pair design/pre- and post-test)
  • 28. Combined Proportion One of the underlying assumptions of the test is that the two proportions actually come from the same population. The test makes use of the “combined proportion” as below:
  • 29. Hypotheses There are two styles of writing hypotheses Style 1 H0: p1 = p2 Ha: p1  p2, or Ha: p1 > p2, or Ha: p1 < p2
  • 30. Hypotheses There are two styles of writing hypotheses Style 2 H0: p1 - p2 = 0 Ha: p1 - p2  0, or Ha: p1 - p2 > 0 (this implies p1 > p2), or Ha: p1 - p2 < 0 (this implies p1 < p2)
  • 31. Hypotheses There are two styles of writing hypotheses Style 2 H0: p1 - p2 = 0 Ha: p1 - p2  0, or Ha: p1 - p2 > 0 (this implies p1 > p2), or Ha: p1 - p2 < 0 (this implies p1 < p2) This style is more versatile since it allows you to use adifference other than zero
  • 32. Assumptions Simple Random SampleBoth samples must be viewed as an SRS from their respective population or two groups from a randomized experiment Independence N1 > 10n1 and N2 > 10n2 Normality n1(pchat)> 5, n1(qchat)> 5 and n2(pchat)> 5, n2(qchat)> 5
  • 33. Test Statistic The test statistic for proportions is always from the Normal distribution 
  • 34. Example 13.9 A study was conducted to find the effects of preschool programs in poor children. Group 1 (n=61) had no preschool and group 2 (n=62) had similar backgrounds and attended preschool. The study measured the need for social services when the children became adults. After investigation it was found that p1hat = 49/61 and p2hat = 38/62.Does the data support the claim that preschool reduced the social services claimed?
  • 35. Example 13.9 Parameters p1 = proportion of adults who did not receive preschool and file for social services p2 = proportion of adults who received preschool and filed for social services p1hat = proportion of adults in group 1who did not receive preschool and file for social services p2hat = proportion of adults in group 2 who received preschool and filed for social services
  • 36. Example 13.9 Hypotheses H0: p1 – p2 = 0 Ha: p1 – p2 > 0 The proportion of non-preschool is greater than that of pre-school
  • 37. Example 13.9 Assumptions Simple Random SampleSince the measurements are from a randomized experiment, we can assume that they are from an SRS IndependenceN1 > 10(61) = 610: more than 610 do not attend preschoolN2 > 10(62) = 620: more than 620 attend preschool Normality61(.70) = 42.7 > 5, 61(.30) = 18.3 > 562(.70) = 43.4 > 5, 62(.30) = 18.6 > 5
  • 38. Example 13.9 Name of Test 2-Sample Z-test for proportions Test Statistic
  • 39. Example 13.9 Pvalue Pval = P(z > 2.316) = 0.0103 Make Decision Reject H0
  • 40. Example 13.9 Summary Approximately 1% of the time, two samples of size 61 and 62 will produce a difference of at least 0.190. Since our p value is less than an  of 0.05, we will reject our H0. Our evidence supports the claim that enrollment in preschool reduces the proportion of adults who file social services claims.
  • 41. Confidence Intervals The confidence interval for the difference between the proportions of two samples is given as: Notice that the Confidence Interval does not use pchat and qchat.
  • 42. Confidence Intervals Assumptions Simple Random SampleBoth samples must be viewed as an SRS from their respective population or two groups from a randomized experiment Independence N1 > 10n1 and N2 > 10n2 Normality n1(p1)> 5, n1(q1)> 5 and n2(p2)> 5, n2(q2)> 5(again, not pc or qc)
  • 43. Calculators The tests we are using are located in the [STAT] -> “TESTS” menu 2-PropZTest = 2 proportion z-test 2-PropZInt = 2 proportion confidence interval