SlideShare a Scribd company logo
1 of 62
Chapter 11 Comparing Two Populations or Treatments
Notation - Comparing Two Means
Notation - Comparing Two Means
Sampling Distribution for Comparing Two Means
Sampling Distribution for Comparing Two Means
Sampling Distribution for Comparing Two Means
Hypothesis Tests Comparing Two Means Large size sample techniques allow us to test the null hypothesis  H 0 :   1  -   2  = hypothesized value  against one of the usual alternate hypotheses  using the statistic
Hypothesis Test  Example Comparing Two Means We would like to compare the mean fill of 32 ounce cans of beer from two adjacent filling machines.  Past experience has shown that the population standard deviations of fills for the two machines are known to be   1  = 0.043 and   2  = 0.052 respectively.  A sample of 35 cans from machine 1 gave a mean of 16.031 and a sample of 31 cans from machine 2 gave a mean of 16.009.  State, perform and interpret an appropriate hypothesis test using the 0.05 level of significance.
Hypothesis Test  Example Comparing Two Means  1  = mean fill from machine 1  2  = mean fill from machine 2  H 0 :   1  -   2  = 0 H a :   1  -   2 Significance level:    = 0.05
Hypothesis Test  Example Comparing Two Means Since n 1  and n 2  are both large (> 30) we do not have to make any assumptions about the nature of the distributions of the fills.  This example is a bit of a stretch, since knowing the population standard deviations (without knowing the population means) is very unusual.  Accept this example for what it is, just a sample of the calculation. Generally this statistic is used when dealing with “what if” type of scenarios and we will move on to another technique that is somewhat more commonly used when   1  and   2  are not known.
Hypothesis Test  Example Comparing Two Means Calculation: P-value: P-value = 2   P(z > 1.86) = 2   P(z < -1.86)    = 2(0.0314) = 0.0628
Hypothesis Test  Example Comparing Two Means The p-value of the test is 0.0628.  There is insufficient evidence to support a claim that the two machines produce bottles with different mean fills at a significance level of 0.05. Equivalently, we might say. With a p-value of 0.063 we have been unable to show the difference in mean fills is statistically significant at the 0.05 significance level.
Two-Sample t Test for Comparing Two Population Means If n 1  and n 2  are  both large or if the population distributions are normal and when the two random samples are independently selected, the standardized variable Has approximately a t distribution with
Two-Sample t Test for Comparing Two Population Means df should be truncated to an integer.
Two-Sample t Tests for Difference of Two Means ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Two-Sample t Tests for Difference of Two Means ,[object Object],[object Object],[object Object]
Hypothesis Test Example   Brand A   Brand B  517, 495, 503, 491 493, 508, 513, 521 503, 493, 505, 495 541, 533, 500, 515 498, 481, 499, 494 536, 498, 515, 515 State and perform an appropriate hypothesis test. In an attempt to determine if two competing brands of cold medicine contain, on the average, the same amount of acetaminophen, twelve different tablets from each of the two competing brands were randomly selected and tested for the amount of acetaminophen each contains. The results (in milligrams) follow. Use a significance level of 0.01.
Hypothesis Test Example  1  = the mean amount of acetaminophen in cold tablet brand A  2  = the mean amount of acetaminophen in cold tablet brand B H 0 :    1  =   2  (  1  -   2  = 0) H a :    1       2   (  1  -   2      0) Significance level:     = 0.01
Hypothesis Test Example Assumptions: The samples were selected independently and randomly. Since the samples are not large, we need to be able to assume that the populations (of amounts of acetaminophen are both normally distributed.
Hypothesis Test Example Assumptions (continued): As we can see from the normality plots and the boxplots, the assumption that the underlying distributions are normally distributed appears to be quite reasonable.
Hypothesis Test Example Calculation:
Hypothesis Test Example Calculation: We truncate the degrees of freedom to give df = 17.
Hypothesis Test Example P-value:  From the table of tail areas for t curve (Table IV) we look up a t value of 3.5 with df = 17 to get 0.001. Since this is a two-tailed alternate hypothesis, P-value = 2(0.001) = 0.002.  Conclusion:  Since P-value = 0.002 < 0.01 =   , H 0  is rejected.  The data provides strong evidence that the mean amount of acetaminophen is not the same for both brands. Specifically, there is strong evidence that the average amount per  tablet for brand A is less than that for brand B.
Confidence Intervals Comparing Two Means ,[object Object],[object Object],[object Object]
Confidence Intervals Comparing Two Means The t critical value is based on  df should be truncated to an integer. The t critical values are in the table of t critical values (table III).
Confidence Intervals  Example Comparing Two Means Two kinds of thread are being compared for strength. Fifty pieces of each type of thread are tested under similar conditions. The sample data is given in the following table.  Construct a 98% confidence interval for the difference of the population means.
Confidence Intervals  Example Comparing Two Means Truncating, we have df = 96.
Confidence Intervals  Example Comparing Two Means The 98% confidence interval estimate for the difference of the means of the tensile strengths is Looking on the table of t critical values (table III) under 98% confidence level for  df = 96, (we take the closest value for df , specifically df = 120) and have the t critical value = 2.36.
Confidence Intervals  Example Comparing Two Means A student recorded the mileage he obtained while commuting to school in his car.  He kept track of the mileage for twelve different tankfuls of fuel, involving gasoline of two different octane ratings. Compute the 95% confidence interval for the difference of mean mileages. His data follow: 87 Octane 90 Octane 26.4, 27.6, 29.7 30.5, 30.9, 29.2 28.9, 29.3, 28.8 31.7, 32.8, 29.3
Confidence Intervals Example Let the 87 octane fuel be the first group and the 90 octane fuel the second group, so we have n 1  = n 2  = 6 and Truncating, we have df = 9.
Confidence Intervals Example Looking on the table under 95%  with 9 degrees of freedom, the critical value of t is 2.26. The 95% confidence interval for the true difference of the mean mileages is (-3.99, -0.57).
Confidence Intervals Example Comments about assumptions Comments: We had to assume that the samples were independent and random and that the underlying populations were normally distributed since the sample sizes were small.  If we randomized the order of the tankfuls of the two different types of gasoline we can reasonably assume that the samples were random and independent. By using all of the observations from one car we are simply controlling the effects of other variables such as year, model, weight, etc.
Confidence Intervals Example Comments about assumptions By looking at the following normality plots, we see that the assumption of normality for each of the two  populations of mileages appears reasonable.  Given the small sample sizes, the assumption of normality is very important, so one would be a bit careful utilizing this result.
Comparing Two Population or Treatment Means – Paired t Test Null hypothesis:  H 0 :  d  = hypothesized value Test statistic:   Where n is the number of sample differences and  and s d  are the sample mean and standard deviation of the sample differences. This test is based on  df = n-1
Comparing Two Population or Treatment Means – Paired t Test ,[object Object],[object Object],[object Object],[object Object]
Comparing Two Population or Treatment Means – Paired t Test ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Paired t Test Example A weight reduction center advertises that participants in its program lose an average of at least 5 pounds during the first week of the participation.  Because of numerous complaints, the state’s consumer protection agency doubts this claim.  To test the claim at the 0.05 level of significance, 12 participants were randomly selected.  Their initial weights and their weights after 1 week in the program appear on the next slide. Set up and perform an appropriate hypothesis test.
Paired Sample Example continued
Paired Sample Example continued
Paired Sample Example continued  d  = mean of the individual weight changes (initial weight–weight after one week)  This is equivalent to the difference of means:   d  =   1  –   2  =   initial weight  -   1 week weight H 0 :   d  = 5 H a :   d  < 5 Significance level:    = 0.05 Test statistic:
Paired Sample Example continued Assumptions:  According to the statement of the example, we can assume that the sampling is random. The sample size (12) is small, so from the boxplot we see that there is one outlier but never the less, the distribution is reasonably symmetric and the normal plot confirms that it is reasonable to assume that the population of differences (weight losses) is normally distributed.
Paired Sample Example continued Calculations:  According to the statement of the example, we can assume that the sampling is random. The sample size (10) is small, so P-value:  This is an lower tail test, so looking up the t value of 3.0 under df = 11 in the table of tail areas  for t curves (table IV) we find that the P-value = 0.002.
Paired Sample Example continued Conclusions:  Since P-value = 0.002 < 0.05 =    we reject H 0 .  We draw the following conclusion. There is strong evidence that the mean weight loss for those who took the program for one week is less than 5 pounds.
Paired Sample Example continued Paired T-Test and CI: Initial, One week Paired T for Initial - One week N  Mean  StDev  SE Mean Initial  12  160.92  28.19  8.14 One week  12  158.58  27.49  7.93 Difference  12  2.333  2.674  0.772 95% upper bound for mean difference: 3.720 T-Test of mean difference = 5 (vs < 5): T-Value = -3.45  P-Value = 0.003 Minitab returns the following when asked to perform this test.  This is substantially the same result.
Large-Sample Inferences   Difference of Two Population (Treatment) Proportions Some notation:
Properties: Sampling Distribution of p 1 - p 2 If  two random samples are selected independently of one another, the following properties hold: ,[object Object],[object Object],[object Object],2. 1.
Large-Sample z Tests for   1  –   2  = 0 The  combined estimate of the common population proportion  is
Large-Sample z Tests for   1  –   2  = 0 Null hypothesis:   H 0 :    1  –   2  = 0 ,[object Object],[object Object],[object Object],[object Object],Test statistic:
Large-Sample z Tests for   1  –   2  = 0 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Example - Student Retention A  group of college students were asked what they thought the “issue of the day”. Without a pause the class almost to a person said “student retention”. The class then went out and obtained a random sample (questionable) and asked the question, “Do you plan on returning next year?” The responses along with the gender of the person responding are summarized in the following table. Test to see if the proportion of students planning on returning is the same for both genders at the 0.05 level of significance?
Example - Student Retention  1  = true proportion of males who plan on returning  2  = true proportion of females who plan on returning n 1  = number of males surveyed n 2  = number of females surveyed p 1  = x 1 /n 1  = sample proportion of males who plan on returning p 2  = x 2 /n 2  = sample proportion of females who plan on returning Null hypothesis:   H 0 :    1  –   2  = 0 Alternate hypothesis:   H a :    1  –   2     0
Example - Student Retention ,[object Object],[object Object],[object Object],Significance level:     = 0.05 Test statistic:
Example - Student Retention Calculations :
Example - Student Retention P-value:   The P-value for this test is 2 times the area under the z curve to the left of the computed  z = -0.19.  P-value = 2(0.4247) = 0.8494 Conclusion:   Since P-value = 0.849 > 0.05 =   , the hypothesis H 0  is not rejected at significance level 0.05.  There is no evidence that the return rate is different for males and females..
Example A  consumer agency spokesman stated that he thought that the proportion of households having a washing machine was higher for suburban households then for urban households. To test to see if that statement was correct at the 0.05 level of significance, a reporter randomly selected a number of households in both suburban and urban environments and obtained the following data.
Example  1  = proportion of suburban households having washing machines  2  = proportion of urban households having washing machines  1  -   2  is the difference between the proportions of suburban households and urban households that have washing machines. H 0 :   1  -   2  = 0 H a :   1  -   2  > 0
Example ,[object Object],[object Object],[object Object],Significance level:     = 0.05 Test statistic:
Example Calculations:
Example P-value:   The P-value for this test is the area under the z curve to the right of the computed z = 2.39.  The P-value = 1 - 0.9916 = 0.0084 Conclusion:   Since P-value = 0.0084 < 0.05 =   , the hypothesis H 0  is rejected at significance level 0.05. There is sufficient evidence at the 0.05 level of significance that the proportion of suburban households that have washers is more that the proportion of urban households that have washers.
Large-Sample Confidence Interval for   1  –   2 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example A student assignment called for the students to survey both male and female students (independently and randomly chosen) to see if the proportions that approve of the College’s new drug and alcohol policy. A student went and randomly selected 200 male students and 100 female students and obtained the data summarized below. Use this data to obtain a 90% confidence interval estimate for the difference of the proportions of female and male students that approve of the new policy.
Example For a 90% confidence interval the z value to use is 1.645. This value is obtained from the bottom row of the table of t critical values (Table III).  We use p 1  to be the female’s sample approval proportion and p 2  as the male’s sample approval proportion. Based on the observed sample, we believe that the proportion of females that approve of the policy exceeds the proportion of males that approve of the policy by somewhere between 0.028 and 0.222.

More Related Content

What's hot

Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IJames Neill
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anovashoffma5
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)Irfan Hussain
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testRizwan S A
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Sneh Kumari
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relationnuwan udugampala
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testingjundumaug1
 
The Kruskal-Wallis H Test
The Kruskal-Wallis H TestThe Kruskal-Wallis H Test
The Kruskal-Wallis H TestDr. Ankit Gaur
 
What is a paired samples t test
What is a paired samples t testWhat is a paired samples t test
What is a paired samples t testKen Plummer
 
simple discriminant
simple discriminantsimple discriminant
simple discriminantneha singh
 
Statistical issues in subgroup analyses
Statistical issues in subgroup analysesStatistical issues in subgroup analyses
Statistical issues in subgroup analysesFrancois MAIGNEN
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regressionalok tiwari
 
Multiple regression with interaction term 2018
Multiple regression with interaction term 2018Multiple regression with interaction term 2018
Multiple regression with interaction term 2018Keiko Ono
 

What's hot (20)

Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)9. basic concepts_of_one_way_analysis_of_variance_(anova)
9. basic concepts_of_one_way_analysis_of_variance_(anova)
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Kolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit testKolmogorov Smirnov good-of-fit test
Kolmogorov Smirnov good-of-fit test
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 
F-Distribution
F-DistributionF-Distribution
F-Distribution
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
The Kruskal-Wallis H Test
The Kruskal-Wallis H TestThe Kruskal-Wallis H Test
The Kruskal-Wallis H Test
 
One way anova
One way anovaOne way anova
One way anova
 
What is a paired samples t test
What is a paired samples t testWhat is a paired samples t test
What is a paired samples t test
 
simple discriminant
simple discriminantsimple discriminant
simple discriminant
 
An Overview of Simple Linear Regression
An Overview of Simple Linear RegressionAn Overview of Simple Linear Regression
An Overview of Simple Linear Regression
 
Unit 4
Unit 4Unit 4
Unit 4
 
T distribution
T distributionT distribution
T distribution
 
Statistical issues in subgroup analyses
Statistical issues in subgroup analysesStatistical issues in subgroup analyses
Statistical issues in subgroup analyses
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Multiple regression with interaction term 2018
Multiple regression with interaction term 2018Multiple regression with interaction term 2018
Multiple regression with interaction term 2018
 
Unit 3
Unit 3Unit 3
Unit 3
 

Similar to Chapter11

Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testRavindra Nath Shukla
 
Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2Awad Albalwi
 
hypothesisTestPPT.pptx
hypothesisTestPPT.pptxhypothesisTestPPT.pptx
hypothesisTestPPT.pptxdangwalakash07
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...The Stockker
 
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...nszakir
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupNeelam Zafar
 
Ch6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesCh6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesFarhan Alfin
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfChenPalaruan
 
ANOVA-One Way Classification
ANOVA-One Way ClassificationANOVA-One Way Classification
ANOVA-One Way ClassificationSharlaine Ruth
 
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxtest_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxRaquelMaacap
 

Similar to Chapter11 (20)

Chapter15
Chapter15Chapter15
Chapter15
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter12
Chapter12Chapter12
Chapter12
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
 
The t test
The t testThe t test
The t test
 
Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2Application of Statistical and mathematical equations in Chemistry Part 2
Application of Statistical and mathematical equations in Chemistry Part 2
 
hypothesisTestPPT.pptx
hypothesisTestPPT.pptxhypothesisTestPPT.pptx
hypothesisTestPPT.pptx
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
 
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
Chapter 7 : Inference for Distributions(The t Distributions, One-Sample t Con...
 
Chi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & groupChi square and t tests, Neelam zafar & group
Chi square and t tests, Neelam zafar & group
 
SNM-1.pdf
SNM-1.pdfSNM-1.pdf
SNM-1.pdf
 
Ttest
TtestTtest
Ttest
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Ch6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, VariancesCh6 Testing the Difference between Means, Variances
Ch6 Testing the Difference between Means, Variances
 
Two Proportions
Two Proportions  Two Proportions
Two Proportions
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
ANOVA-One Way Classification
ANOVA-One Way ClassificationANOVA-One Way Classification
ANOVA-One Way Classification
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptxtest_using_one-way_analysis_of_varianceANOVA_063847.pptx
test_using_one-way_analysis_of_varianceANOVA_063847.pptx
 
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
 

More from rwmiller

More from rwmiller (16)

Chapter06
Chapter06Chapter06
Chapter06
 
Chapter14
Chapter14Chapter14
Chapter14
 
Chapter13
Chapter13Chapter13
Chapter13
 
Chapter10
Chapter10Chapter10
Chapter10
 
Chapter09
Chapter09Chapter09
Chapter09
 
Chapter08
Chapter08Chapter08
Chapter08
 
Chapter07
Chapter07Chapter07
Chapter07
 
Chapter05
Chapter05Chapter05
Chapter05
 
Chapter04
Chapter04Chapter04
Chapter04
 
Chapter03
Chapter03Chapter03
Chapter03
 
Chapter02
Chapter02Chapter02
Chapter02
 
Chapter01
Chapter01Chapter01
Chapter01
 
Chapter04
Chapter04Chapter04
Chapter04
 
Chapter03
Chapter03Chapter03
Chapter03
 
Chapter02
Chapter02Chapter02
Chapter02
 
Chapter01
Chapter01Chapter01
Chapter01
 

Recently uploaded

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 

Recently uploaded (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 

Chapter11

  • 1. Chapter 11 Comparing Two Populations or Treatments
  • 4. Sampling Distribution for Comparing Two Means
  • 5. Sampling Distribution for Comparing Two Means
  • 6. Sampling Distribution for Comparing Two Means
  • 7. Hypothesis Tests Comparing Two Means Large size sample techniques allow us to test the null hypothesis H 0 :  1 -  2 = hypothesized value against one of the usual alternate hypotheses using the statistic
  • 8. Hypothesis Test Example Comparing Two Means We would like to compare the mean fill of 32 ounce cans of beer from two adjacent filling machines. Past experience has shown that the population standard deviations of fills for the two machines are known to be  1 = 0.043 and  2 = 0.052 respectively. A sample of 35 cans from machine 1 gave a mean of 16.031 and a sample of 31 cans from machine 2 gave a mean of 16.009. State, perform and interpret an appropriate hypothesis test using the 0.05 level of significance.
  • 9. Hypothesis Test Example Comparing Two Means  1 = mean fill from machine 1  2 = mean fill from machine 2 H 0 :  1 -  2 = 0 H a :  1 -  2 Significance level:  = 0.05
  • 10. Hypothesis Test Example Comparing Two Means Since n 1 and n 2 are both large (> 30) we do not have to make any assumptions about the nature of the distributions of the fills. This example is a bit of a stretch, since knowing the population standard deviations (without knowing the population means) is very unusual. Accept this example for what it is, just a sample of the calculation. Generally this statistic is used when dealing with “what if” type of scenarios and we will move on to another technique that is somewhat more commonly used when  1 and  2 are not known.
  • 11. Hypothesis Test Example Comparing Two Means Calculation: P-value: P-value = 2 P(z > 1.86) = 2 P(z < -1.86) = 2(0.0314) = 0.0628
  • 12. Hypothesis Test Example Comparing Two Means The p-value of the test is 0.0628. There is insufficient evidence to support a claim that the two machines produce bottles with different mean fills at a significance level of 0.05. Equivalently, we might say. With a p-value of 0.063 we have been unable to show the difference in mean fills is statistically significant at the 0.05 significance level.
  • 13. Two-Sample t Test for Comparing Two Population Means If n 1 and n 2 are both large or if the population distributions are normal and when the two random samples are independently selected, the standardized variable Has approximately a t distribution with
  • 14. Two-Sample t Test for Comparing Two Population Means df should be truncated to an integer.
  • 15.
  • 16.
  • 17. Hypothesis Test Example Brand A Brand B 517, 495, 503, 491 493, 508, 513, 521 503, 493, 505, 495 541, 533, 500, 515 498, 481, 499, 494 536, 498, 515, 515 State and perform an appropriate hypothesis test. In an attempt to determine if two competing brands of cold medicine contain, on the average, the same amount of acetaminophen, twelve different tablets from each of the two competing brands were randomly selected and tested for the amount of acetaminophen each contains. The results (in milligrams) follow. Use a significance level of 0.01.
  • 18. Hypothesis Test Example  1 = the mean amount of acetaminophen in cold tablet brand A  2 = the mean amount of acetaminophen in cold tablet brand B H 0 :  1 =  2 (  1 -  2 = 0) H a :  1   2 (  1 -  2  0) Significance level:  = 0.01
  • 19. Hypothesis Test Example Assumptions: The samples were selected independently and randomly. Since the samples are not large, we need to be able to assume that the populations (of amounts of acetaminophen are both normally distributed.
  • 20. Hypothesis Test Example Assumptions (continued): As we can see from the normality plots and the boxplots, the assumption that the underlying distributions are normally distributed appears to be quite reasonable.
  • 21. Hypothesis Test Example Calculation:
  • 22. Hypothesis Test Example Calculation: We truncate the degrees of freedom to give df = 17.
  • 23. Hypothesis Test Example P-value: From the table of tail areas for t curve (Table IV) we look up a t value of 3.5 with df = 17 to get 0.001. Since this is a two-tailed alternate hypothesis, P-value = 2(0.001) = 0.002. Conclusion: Since P-value = 0.002 < 0.01 =  , H 0 is rejected. The data provides strong evidence that the mean amount of acetaminophen is not the same for both brands. Specifically, there is strong evidence that the average amount per tablet for brand A is less than that for brand B.
  • 24.
  • 25. Confidence Intervals Comparing Two Means The t critical value is based on df should be truncated to an integer. The t critical values are in the table of t critical values (table III).
  • 26. Confidence Intervals Example Comparing Two Means Two kinds of thread are being compared for strength. Fifty pieces of each type of thread are tested under similar conditions. The sample data is given in the following table. Construct a 98% confidence interval for the difference of the population means.
  • 27. Confidence Intervals Example Comparing Two Means Truncating, we have df = 96.
  • 28. Confidence Intervals Example Comparing Two Means The 98% confidence interval estimate for the difference of the means of the tensile strengths is Looking on the table of t critical values (table III) under 98% confidence level for df = 96, (we take the closest value for df , specifically df = 120) and have the t critical value = 2.36.
  • 29. Confidence Intervals Example Comparing Two Means A student recorded the mileage he obtained while commuting to school in his car. He kept track of the mileage for twelve different tankfuls of fuel, involving gasoline of two different octane ratings. Compute the 95% confidence interval for the difference of mean mileages. His data follow: 87 Octane 90 Octane 26.4, 27.6, 29.7 30.5, 30.9, 29.2 28.9, 29.3, 28.8 31.7, 32.8, 29.3
  • 30. Confidence Intervals Example Let the 87 octane fuel be the first group and the 90 octane fuel the second group, so we have n 1 = n 2 = 6 and Truncating, we have df = 9.
  • 31. Confidence Intervals Example Looking on the table under 95% with 9 degrees of freedom, the critical value of t is 2.26. The 95% confidence interval for the true difference of the mean mileages is (-3.99, -0.57).
  • 32. Confidence Intervals Example Comments about assumptions Comments: We had to assume that the samples were independent and random and that the underlying populations were normally distributed since the sample sizes were small. If we randomized the order of the tankfuls of the two different types of gasoline we can reasonably assume that the samples were random and independent. By using all of the observations from one car we are simply controlling the effects of other variables such as year, model, weight, etc.
  • 33. Confidence Intervals Example Comments about assumptions By looking at the following normality plots, we see that the assumption of normality for each of the two populations of mileages appears reasonable. Given the small sample sizes, the assumption of normality is very important, so one would be a bit careful utilizing this result.
  • 34. Comparing Two Population or Treatment Means – Paired t Test Null hypothesis: H 0 :  d = hypothesized value Test statistic: Where n is the number of sample differences and and s d are the sample mean and standard deviation of the sample differences. This test is based on df = n-1
  • 35.
  • 36.
  • 37. Paired t Test Example A weight reduction center advertises that participants in its program lose an average of at least 5 pounds during the first week of the participation. Because of numerous complaints, the state’s consumer protection agency doubts this claim. To test the claim at the 0.05 level of significance, 12 participants were randomly selected. Their initial weights and their weights after 1 week in the program appear on the next slide. Set up and perform an appropriate hypothesis test.
  • 40. Paired Sample Example continued  d = mean of the individual weight changes (initial weight–weight after one week) This is equivalent to the difference of means:  d =  1 –  2 =  initial weight -  1 week weight H 0 :  d = 5 H a :  d < 5 Significance level:  = 0.05 Test statistic:
  • 41. Paired Sample Example continued Assumptions: According to the statement of the example, we can assume that the sampling is random. The sample size (12) is small, so from the boxplot we see that there is one outlier but never the less, the distribution is reasonably symmetric and the normal plot confirms that it is reasonable to assume that the population of differences (weight losses) is normally distributed.
  • 42. Paired Sample Example continued Calculations: According to the statement of the example, we can assume that the sampling is random. The sample size (10) is small, so P-value: This is an lower tail test, so looking up the t value of 3.0 under df = 11 in the table of tail areas for t curves (table IV) we find that the P-value = 0.002.
  • 43. Paired Sample Example continued Conclusions: Since P-value = 0.002 < 0.05 =  we reject H 0 . We draw the following conclusion. There is strong evidence that the mean weight loss for those who took the program for one week is less than 5 pounds.
  • 44. Paired Sample Example continued Paired T-Test and CI: Initial, One week Paired T for Initial - One week N Mean StDev SE Mean Initial 12 160.92 28.19 8.14 One week 12 158.58 27.49 7.93 Difference 12 2.333 2.674 0.772 95% upper bound for mean difference: 3.720 T-Test of mean difference = 5 (vs < 5): T-Value = -3.45 P-Value = 0.003 Minitab returns the following when asked to perform this test. This is substantially the same result.
  • 45. Large-Sample Inferences Difference of Two Population (Treatment) Proportions Some notation:
  • 46.
  • 47. Large-Sample z Tests for  1 –  2 = 0 The combined estimate of the common population proportion is
  • 48.
  • 49.
  • 50. Example - Student Retention A group of college students were asked what they thought the “issue of the day”. Without a pause the class almost to a person said “student retention”. The class then went out and obtained a random sample (questionable) and asked the question, “Do you plan on returning next year?” The responses along with the gender of the person responding are summarized in the following table. Test to see if the proportion of students planning on returning is the same for both genders at the 0.05 level of significance?
  • 51. Example - Student Retention  1 = true proportion of males who plan on returning  2 = true proportion of females who plan on returning n 1 = number of males surveyed n 2 = number of females surveyed p 1 = x 1 /n 1 = sample proportion of males who plan on returning p 2 = x 2 /n 2 = sample proportion of females who plan on returning Null hypothesis: H 0 :  1 –  2 = 0 Alternate hypothesis: H a :  1 –  2  0
  • 52.
  • 53. Example - Student Retention Calculations :
  • 54. Example - Student Retention P-value: The P-value for this test is 2 times the area under the z curve to the left of the computed z = -0.19. P-value = 2(0.4247) = 0.8494 Conclusion: Since P-value = 0.849 > 0.05 =  , the hypothesis H 0 is not rejected at significance level 0.05. There is no evidence that the return rate is different for males and females..
  • 55. Example A consumer agency spokesman stated that he thought that the proportion of households having a washing machine was higher for suburban households then for urban households. To test to see if that statement was correct at the 0.05 level of significance, a reporter randomly selected a number of households in both suburban and urban environments and obtained the following data.
  • 56. Example  1 = proportion of suburban households having washing machines  2 = proportion of urban households having washing machines  1 -  2 is the difference between the proportions of suburban households and urban households that have washing machines. H 0 :  1 -  2 = 0 H a :  1 -  2 > 0
  • 57.
  • 59. Example P-value: The P-value for this test is the area under the z curve to the right of the computed z = 2.39. The P-value = 1 - 0.9916 = 0.0084 Conclusion: Since P-value = 0.0084 < 0.05 =  , the hypothesis H 0 is rejected at significance level 0.05. There is sufficient evidence at the 0.05 level of significance that the proportion of suburban households that have washers is more that the proportion of urban households that have washers.
  • 60.
  • 61. Example A student assignment called for the students to survey both male and female students (independently and randomly chosen) to see if the proportions that approve of the College’s new drug and alcohol policy. A student went and randomly selected 200 male students and 100 female students and obtained the data summarized below. Use this data to obtain a 90% confidence interval estimate for the difference of the proportions of female and male students that approve of the new policy.
  • 62. Example For a 90% confidence interval the z value to use is 1.645. This value is obtained from the bottom row of the table of t critical values (Table III). We use p 1 to be the female’s sample approval proportion and p 2 as the male’s sample approval proportion. Based on the observed sample, we believe that the proportion of females that approve of the policy exceeds the proportion of males that approve of the policy by somewhere between 0.028 and 0.222.