SlideShare a Scribd company logo
1 of 13
AP Statistics
Chapter 11
Focus Fox
1. Using six words, describe your spring break:
2. How will you select the individuals in your sample for your
significance test?
3. In general, what is the claim you wish to test?
Inference -Dist. by Categories
By the end of this chapter, we will be able to answer questions
like the following:
- Are births evenly distributed across the days of the week?
- Does background music influence customer purchases?
- Is there an association between anger level and heart disease?
- Is the distribution of the colors of skittles in each package true
to expected distribution produced in the factory?
What’s in Your Package??
Assuming the company’s claim is true, we would expect 24% of
the M&M’s to be blue.
If you had 60 M&M’s in your package, how many should be
blue??
Compute the expected counts for your bag and record your
results in the “Expected” column of your table.
Check that the sum of the expected counts equal the number of
M&M’s in your package.
What’s in Your Package??
How close are your observed counts to the expected counts?
Calculate the difference for each color and record in your table:
Observed – Expected
*What do you notice about the ∑ (Observed – Expected)??
Since the difference = 0, this does not help us determine how far
off your package is from the claim….
What’s in Your Package??
So square all the values (remember variance and stnd dev)
Compute the squared values for the differences in the observed and
expected counts and find the sum.
Compare your results with your peers.
What’s in Your Package??
The last column has you divide the difference by the expected
count for each color – this is a distance difference
The sum of this column is called a chi-square statistic denoted by
χ2. (similar to our “z-score”)
What’s in Your Package??
If your sample reflects the claim
- Your observed should be close to your expected
- Your values making up χ2 should be very small
Are the entries in the last row all similar or does one stand out as
much larger or much smaller than the others? Did you get way more
or way less than expected of one color?
Compare your χ2 with your peers’ χ2 answers.
Does anyone have a χ2 that provides convincing evidence against the
company’s claim?
Inference -Dist. by Categories
We could run a 1 sample test on each color, but…
- That is inefficient and we would get conflicting results
- That wouldn’t tell us how likely it is to get a random sample of
60 candies with a color distribution that differs as much from the
one claimed by the company of all colors at one time
Need a new test:
chi-square goodness-of-fit test
Inference -Dist. by Categories
Null hypothesis in chi-square goodness-of-fit test:
- States the claim about the distribution of a single categorical
variable in the population of interest
H0: The company’s stated color distribution for M&M’s
Milk Chocolate Candies is correct
Alternative hypothesis in a chi-square goodness-of-fit test:
- States the categorical variable does not have the specified
distribution
Ha: The company’s stated color distribution for M&M’s
Milk Chocolate Candies is not correct
Inference -Dist. by Categories
H0: The company’s stated color distribution for M&M’s
Milk Chocolate Candies is correct
Ha: The company’s stated color distribution for M&M’s
Milk Chocolate Candies is not correct
Hypotheses can also be written as:
H0: pblue = 0.24, porange = 0.20, pgreen = 0.16, pyellow = 0.14,
pred = .13, pbrown = .13
Ha: at least one of the pi’s is incorrect
Inference -Dist. by Categories
Caution:
DON’T state the alternative in a way that suggests the all the
proportions in the hypothesized distribution are wrong
H0: pblue ≠ 0.24, porange ≠ 0.20, pgreen ≠ 0.16, pyellow ≠ 0.14,
pred ≠ .13, pbrown ≠ .13
Goal: to compare observed counts with expected counts IF null is
true
The more the observed counts differ, the more evidence we have
against the null
Focus Fox

More Related Content

Similar to Ap statistics chp. 11

Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016andrey_milev
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016oking2777
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016andrey_milev
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016oking2777
 
1) A sample of 47 observations is selected from a normal popul.docx
1) A sample of 47 observations is selected from a normal popul.docx1) A sample of 47 observations is selected from a normal popul.docx
1) A sample of 47 observations is selected from a normal popul.docxSONU61709
 
Economics 101Homework #5Directions The homework will be colle.docx
Economics 101Homework #5Directions The homework will be colle.docxEconomics 101Homework #5Directions The homework will be colle.docx
Economics 101Homework #5Directions The homework will be colle.docxjack60216
 
Direct marketing testing
Direct marketing testingDirect marketing testing
Direct marketing testingVivastream
 
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...Quinn Lathrop
 
Question 1 Independent random samples taken on two university .docx
Question 1 Independent random samples taken on two university .docxQuestion 1 Independent random samples taken on two university .docx
Question 1 Independent random samples taken on two university .docxIRESH3
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSSRayman Soe
 
Psy 870 module 3 problem set answers
Psy 870  module 3 problem set answersPsy 870  module 3 problem set answers
Psy 870 module 3 problem set answersbestwriter
 
Analysis of Variance
Analysis of Variance Analysis of Variance
Analysis of Variance jyothimonc
 

Similar to Ap statistics chp. 11 (16)

Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
Qnt 351 final exam new 2016
Qnt 351 final exam new 2016Qnt 351 final exam new 2016
Qnt 351 final exam new 2016
 
1) A sample of 47 observations is selected from a normal popul.docx
1) A sample of 47 observations is selected from a normal popul.docx1) A sample of 47 observations is selected from a normal popul.docx
1) A sample of 47 observations is selected from a normal popul.docx
 
Economics 101Homework #5Directions The homework will be colle.docx
Economics 101Homework #5Directions The homework will be colle.docxEconomics 101Homework #5Directions The homework will be colle.docx
Economics 101Homework #5Directions The homework will be colle.docx
 
Direct marketing testing
Direct marketing testingDirect marketing testing
Direct marketing testing
 
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...
Making Statistics Work For Us: Item Bias, Decision Making, and Data-Driven Si...
 
Question 1 Independent random samples taken on two university .docx
Question 1 Independent random samples taken on two university .docxQuestion 1 Independent random samples taken on two university .docx
Question 1 Independent random samples taken on two university .docx
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
 
Psy 870 module 3 problem set answers
Psy 870  module 3 problem set answersPsy 870  module 3 problem set answers
Psy 870 module 3 problem set answers
 
Analysis of Variance
Analysis of Variance Analysis of Variance
Analysis of Variance
 
Attitudes and scaling
Attitudes and scalingAttitudes and scaling
Attitudes and scaling
 
Casestudy
CasestudyCasestudy
Casestudy
 

More from amylute

What are the odds notes
What are the odds notesWhat are the odds notes
What are the odds notesamylute
 
Logarithmic transformations
Logarithmic transformationsLogarithmic transformations
Logarithmic transformationsamylute
 
Transforming data for inference
Transforming data for inferenceTransforming data for inference
Transforming data for inferenceamylute
 
Inference in regression line test
Inference  in regression line testInference  in regression line test
Inference in regression line testamylute
 
Regression inference confidence intervals
Regression inference confidence intervalsRegression inference confidence intervals
Regression inference confidence intervalsamylute
 
Using chi square wisely
Using chi square wiselyUsing chi square wisely
Using chi square wiselyamylute
 
Chi square test for homgeneity
Chi square test for homgeneityChi square test for homgeneity
Chi square test for homgeneityamylute
 
Relationships across distribution
Relationships across distributionRelationships across distribution
Relationships across distributionamylute
 
Chi square distribution table c
Chi square distribution table cChi square distribution table c
Chi square distribution table camylute
 
Dividing polys
Dividing polysDividing polys
Dividing polysamylute
 
Solving triangles pp slides
Solving triangles pp slidesSolving triangles pp slides
Solving triangles pp slidesamylute
 
Conditional prob & independence
Conditional prob & independenceConditional prob & independence
Conditional prob & independenceamylute
 
Two way tables & venn diagrams
Two way tables & venn diagramsTwo way tables & venn diagrams
Two way tables & venn diagramsamylute
 
Probability models & basic rules
Probability models & basic rulesProbability models & basic rules
Probability models & basic rulesamylute
 
Simulation
SimulationSimulation
Simulationamylute
 
Mthys of probability
Mthys of probabilityMthys of probability
Mthys of probabilityamylute
 
4.3 using studies wisely
4.3 using studies wisely4.3 using studies wisely
4.3 using studies wiselyamylute
 
4.2 blocking
4.2 blocking4.2 blocking
4.2 blockingamylute
 
4.2 placebos & double blind
4.2 placebos & double blind4.2 placebos & double blind
4.2 placebos & double blindamylute
 
4.2 good vs. bad exp
4.2 good vs. bad exp4.2 good vs. bad exp
4.2 good vs. bad expamylute
 

More from amylute (20)

What are the odds notes
What are the odds notesWhat are the odds notes
What are the odds notes
 
Logarithmic transformations
Logarithmic transformationsLogarithmic transformations
Logarithmic transformations
 
Transforming data for inference
Transforming data for inferenceTransforming data for inference
Transforming data for inference
 
Inference in regression line test
Inference  in regression line testInference  in regression line test
Inference in regression line test
 
Regression inference confidence intervals
Regression inference confidence intervalsRegression inference confidence intervals
Regression inference confidence intervals
 
Using chi square wisely
Using chi square wiselyUsing chi square wisely
Using chi square wisely
 
Chi square test for homgeneity
Chi square test for homgeneityChi square test for homgeneity
Chi square test for homgeneity
 
Relationships across distribution
Relationships across distributionRelationships across distribution
Relationships across distribution
 
Chi square distribution table c
Chi square distribution table cChi square distribution table c
Chi square distribution table c
 
Dividing polys
Dividing polysDividing polys
Dividing polys
 
Solving triangles pp slides
Solving triangles pp slidesSolving triangles pp slides
Solving triangles pp slides
 
Conditional prob & independence
Conditional prob & independenceConditional prob & independence
Conditional prob & independence
 
Two way tables & venn diagrams
Two way tables & venn diagramsTwo way tables & venn diagrams
Two way tables & venn diagrams
 
Probability models & basic rules
Probability models & basic rulesProbability models & basic rules
Probability models & basic rules
 
Simulation
SimulationSimulation
Simulation
 
Mthys of probability
Mthys of probabilityMthys of probability
Mthys of probability
 
4.3 using studies wisely
4.3 using studies wisely4.3 using studies wisely
4.3 using studies wisely
 
4.2 blocking
4.2 blocking4.2 blocking
4.2 blocking
 
4.2 placebos & double blind
4.2 placebos & double blind4.2 placebos & double blind
4.2 placebos & double blind
 
4.2 good vs. bad exp
4.2 good vs. bad exp4.2 good vs. bad exp
4.2 good vs. bad exp
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

Ap statistics chp. 11

  • 2. Focus Fox 1. Using six words, describe your spring break: 2. How will you select the individuals in your sample for your significance test? 3. In general, what is the claim you wish to test?
  • 3. Inference -Dist. by Categories By the end of this chapter, we will be able to answer questions like the following: - Are births evenly distributed across the days of the week? - Does background music influence customer purchases? - Is there an association between anger level and heart disease? - Is the distribution of the colors of skittles in each package true to expected distribution produced in the factory?
  • 4. What’s in Your Package?? Assuming the company’s claim is true, we would expect 24% of the M&M’s to be blue. If you had 60 M&M’s in your package, how many should be blue?? Compute the expected counts for your bag and record your results in the “Expected” column of your table. Check that the sum of the expected counts equal the number of M&M’s in your package.
  • 5. What’s in Your Package?? How close are your observed counts to the expected counts? Calculate the difference for each color and record in your table: Observed – Expected *What do you notice about the ∑ (Observed – Expected)?? Since the difference = 0, this does not help us determine how far off your package is from the claim….
  • 6. What’s in Your Package?? So square all the values (remember variance and stnd dev) Compute the squared values for the differences in the observed and expected counts and find the sum. Compare your results with your peers.
  • 7. What’s in Your Package?? The last column has you divide the difference by the expected count for each color – this is a distance difference The sum of this column is called a chi-square statistic denoted by χ2. (similar to our “z-score”)
  • 8. What’s in Your Package?? If your sample reflects the claim - Your observed should be close to your expected - Your values making up χ2 should be very small Are the entries in the last row all similar or does one stand out as much larger or much smaller than the others? Did you get way more or way less than expected of one color? Compare your χ2 with your peers’ χ2 answers. Does anyone have a χ2 that provides convincing evidence against the company’s claim?
  • 9. Inference -Dist. by Categories We could run a 1 sample test on each color, but… - That is inefficient and we would get conflicting results - That wouldn’t tell us how likely it is to get a random sample of 60 candies with a color distribution that differs as much from the one claimed by the company of all colors at one time Need a new test: chi-square goodness-of-fit test
  • 10. Inference -Dist. by Categories Null hypothesis in chi-square goodness-of-fit test: - States the claim about the distribution of a single categorical variable in the population of interest H0: The company’s stated color distribution for M&M’s Milk Chocolate Candies is correct Alternative hypothesis in a chi-square goodness-of-fit test: - States the categorical variable does not have the specified distribution Ha: The company’s stated color distribution for M&M’s Milk Chocolate Candies is not correct
  • 11. Inference -Dist. by Categories H0: The company’s stated color distribution for M&M’s Milk Chocolate Candies is correct Ha: The company’s stated color distribution for M&M’s Milk Chocolate Candies is not correct Hypotheses can also be written as: H0: pblue = 0.24, porange = 0.20, pgreen = 0.16, pyellow = 0.14, pred = .13, pbrown = .13 Ha: at least one of the pi’s is incorrect
  • 12. Inference -Dist. by Categories Caution: DON’T state the alternative in a way that suggests the all the proportions in the hypothesized distribution are wrong H0: pblue ≠ 0.24, porange ≠ 0.20, pgreen ≠ 0.16, pyellow ≠ 0.14, pred ≠ .13, pbrown ≠ .13 Goal: to compare observed counts with expected counts IF null is true The more the observed counts differ, the more evidence we have against the null