SlideShare a Scribd company logo
1 of 12
Chi-Square Test
• A basic problem is genetics is deciding if
experimentally determined data is close enough to
what is expected from theory (i.e. Mendel’s law of
segregation).
• For example, you cross heterozygous purple
colored flowers and for the offspring you get 72
purple flowers and 26 white flowers.
– Is this a 3/4 : 1/4 ratio as predicted by Mendel’s Law?
– Is it close enough?
– How do you decide how close is “close enough”?
– What about 70:30? or 60:40?
Goodness of Fit
• Mendel didn’t know how to solve this problem. Shortly
after the rediscovery of his work in 1900, Karl Pearson
and R.A. Fisher developed the chi-square test for this
purpose.
• The chi-square test is a goodness of fit test: it answers
the question of how well do experimental observations fit
expectations.
• We start with a null hypothesis: a hypothesis for how
many of each type of offspring are expected.
Formula
• Know how to use this formula!
• The “Χ” is the Greek letter chi
• “∑” means to sum for all types of offspring.
• “obs” is the number of individuals observed
• “exp” is the number of individuals expected if
your hypothesis is true
• Note that you must use the number of
individuals, the counts, NOT proportions or
percentages.



exp
exp)( 2
2 obs
What does the number mean?
• The Chi Square calculation just gives a number.
• What happens if observed equals expected?
• What happens if observed is very different from
expected?
• The smaller the number, the more believable your
hypothesis is. The larger the number, the less
believable your hypothesis is. Likely there is another
reason to cause the results you got.
• Could your explanation (your hypothesis) still be correct
and you just randomly got weird numbers?
• For example, if a couple has 7 girls, is our theory about
sex being determined by X and Y chromosomes still
correct and that is just an unusual couple, or is our
theory wrong?
What does the number mean?
• Could your explanation (your hypothesis) still be correct
and you just randomly got weird numbers?
• For example, if a couple has 8 children, how many
should be girls? Why?
• If a couple has all 8 girls, is the theory about sex being
determined by X and Y chromosomes still correct and
that is just an unusual result for a family, or is the theory
wrong?
• How do you decide if a result is just unusual or your
hypothesis is wrong?
The Critical Question
• The simple answer is: you can never tell for certain that a
hypothesis is “wrong”, that the result you got was
completely impossible based on the theory you used.
• All we can do is determine whether a result is likely or
unlikely.
• Key point: There are 2 ways of getting a high chi-square
value: an unusual result from the correct theory, or a result
from the wrong theory.
• Example: imagine tossing a coin 100 times. What number
of heads and tails do you expect?
• Is it possible to get 80 heads and 20 tails?
• Is it likely?
• How likely?
Reasonable
• What is a “likely” or “reasonable” depends on
what we decide.
• For most scientists, if unusual results could
happen less than 5% of the time, the hypothesis
is acceptable.
• If the difference between the observed results
and the expected results is small enough that it
would happen less than 5% of the time, we “fail
to reject” the null hypothesis.
• Statisticians say “fail to reject” instead of
“accept” (but that’s kind of stupid I think)
• 5% of the time is a probability value of p = 0.05
Chi-Square Table
• Our 0.05 p value choice determines which
column we use on the Chi Square table
• How do we decide what row to use?
What Column and Row?
Degrees of Freedom
• A critical factor in using the chi-square test is the
degrees of freedom, which is the number of
independent variables involved.
• For example, if you have 20 offspring total, both
males and females and I tell you that 12 of them
are male, are you free to choose how many
females, or do you already know?
• Degrees of freedom is simply the number of
types of offspring minus 1.
Critical Chi-Square Value
• The critical value for a chi-square test is
the cutoff level:
– if your calculated chi-square value is greater
than the critical value from the table, you
“reject the null hypothesis”.
– If your chi-square value is less than the critical
value, you “fail to reject” the hypothesis (that
is, you accept that your explanation about
how the trait is inherited).
Chi-Square Table

More Related Content

What's hot

Genetic Linkage
Genetic LinkageGenetic Linkage
Genetic Linkage
Jolie Yu
 

What's hot (20)

Plant Acclimatization
Plant Acclimatization Plant Acclimatization
Plant Acclimatization
 
Presentation on pedigree method and back-cross breeding method comparison
Presentation on pedigree method and back-cross breeding method comparisonPresentation on pedigree method and back-cross breeding method comparison
Presentation on pedigree method and back-cross breeding method comparison
 
Balanced lethal system
Balanced lethal systemBalanced lethal system
Balanced lethal system
 
Genetic Linkage
Genetic LinkageGenetic Linkage
Genetic Linkage
 
Genetical and physiological basis of heterosis and inbreeding
Genetical and physiological basis of heterosis and inbreedingGenetical and physiological basis of heterosis and inbreeding
Genetical and physiological basis of heterosis and inbreeding
 
Inbred line
Inbred lineInbred line
Inbred line
 
Autopolyploidy
AutopolyploidyAutopolyploidy
Autopolyploidy
 
Presentation on Natural Allopolyploidy in Brassica spp
Presentation on Natural Allopolyploidy in Brassica sppPresentation on Natural Allopolyploidy in Brassica spp
Presentation on Natural Allopolyploidy in Brassica spp
 
Polyploidy breeding
Polyploidy breedingPolyploidy breeding
Polyploidy breeding
 
Presentation on Modes of Pollination
Presentation on Modes of Pollination Presentation on Modes of Pollination
Presentation on Modes of Pollination
 
Ear to row method
Ear to row methodEar to row method
Ear to row method
 
Hardyweinberg law
Hardyweinberg lawHardyweinberg law
Hardyweinberg law
 
Theories on heterosis
Theories on heterosisTheories on heterosis
Theories on heterosis
 
Screening Techniques for Different Insect Pests in Crop Plants
Screening Techniques for Different Insect Pests in Crop Plants Screening Techniques for Different Insect Pests in Crop Plants
Screening Techniques for Different Insect Pests in Crop Plants
 
Synthetic and composite variety
Synthetic and composite varietySynthetic and composite variety
Synthetic and composite variety
 
Self pollination
Self pollination Self pollination
Self pollination
 
sex determination
sex determinationsex determination
sex determination
 
Pollination
PollinationPollination
Pollination
 
Genetics: Quantitative Inheritance
Genetics: Quantitative InheritanceGenetics: Quantitative Inheritance
Genetics: Quantitative Inheritance
 
Plant introduction and acclimatization
Plant introduction and acclimatizationPlant introduction and acclimatization
Plant introduction and acclimatization
 

Similar to Chi square test

Good Data Dredging
Good Data DredgingGood Data Dredging
Good Data Dredging
jemille6
 
The corner stone of science (hypothesis)
The corner stone of science (hypothesis)The corner stone of science (hypothesis)
The corner stone of science (hypothesis)
Husam AL-Rumaih
 
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docxLesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
SHIVA101531
 

Similar to Chi square test (20)

Insights from psychology on lack of reproducibility
Insights from psychology on lack of reproducibilityInsights from psychology on lack of reproducibility
Insights from psychology on lack of reproducibility
 
Research methods Ch. 2
Research methods Ch. 2Research methods Ch. 2
Research methods Ch. 2
 
Ocw Statistical Analysis
Ocw Statistical AnalysisOcw Statistical Analysis
Ocw Statistical Analysis
 
Good Data Dredging
Good Data DredgingGood Data Dredging
Good Data Dredging
 
Class 5 Hypothesis & Normal Disdribution.pptx
Class 5 Hypothesis & Normal Disdribution.pptxClass 5 Hypothesis & Normal Disdribution.pptx
Class 5 Hypothesis & Normal Disdribution.pptx
 
Cognitive biases - Logic vs. The brain
Cognitive biases - Logic vs. The brainCognitive biases - Logic vs. The brain
Cognitive biases - Logic vs. The brain
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testing
 
Research methods
Research methodsResearch methods
Research methods
 
The corner stone of science (hypothesis)
The corner stone of science (hypothesis)The corner stone of science (hypothesis)
The corner stone of science (hypothesis)
 
P-values the gold measure of statistical validity are not as reliable as many...
P-values the gold measure of statistical validity are not as reliable as many...P-values the gold measure of statistical validity are not as reliable as many...
P-values the gold measure of statistical validity are not as reliable as many...
 
Crash Course in A/B testing
Crash Course in A/B testingCrash Course in A/B testing
Crash Course in A/B testing
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptx
 
Statistics in clinical and translational research common pitfalls
Statistics in clinical and translational research  common pitfallsStatistics in clinical and translational research  common pitfalls
Statistics in clinical and translational research common pitfalls
 
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docxLesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
Lesson 2 Statistics Benefits, Risks, and MeasurementsAssignmen.docx
 
Crisis of confidence, p-hacking and the future of psychology
Crisis of confidence, p-hacking and the future of psychologyCrisis of confidence, p-hacking and the future of psychology
Crisis of confidence, p-hacking and the future of psychology
 
De-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statisticsDe-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statistics
 
AP Psychology - Research Methods
AP Psychology - Research MethodsAP Psychology - Research Methods
AP Psychology - Research Methods
 
How to do the maths
How to do the mathsHow to do the maths
How to do the maths
 
Introduction to critical appraisal
Introduction to critical appraisalIntroduction to critical appraisal
Introduction to critical appraisal
 
Lecture Slides.pdf
Lecture Slides.pdfLecture Slides.pdf
Lecture Slides.pdf
 

More from callr

More from callr (20)

Soldering
SolderingSoldering
Soldering
 
Soldering 101
Soldering 101Soldering 101
Soldering 101
 
Accuracy & Precision in Electronics
Accuracy & Precision in ElectronicsAccuracy & Precision in Electronics
Accuracy & Precision in Electronics
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Safety
SafetySafety
Safety
 
PHLFMC sources of electricity
PHLFMC sources of electricityPHLFMC sources of electricity
PHLFMC sources of electricity
 
Advanced Electronics - What is electronics?
Advanced Electronics - What is electronics?Advanced Electronics - What is electronics?
Advanced Electronics - What is electronics?
 
What is electronics?
What is electronics?What is electronics?
What is electronics?
 
Intermediate Electronics - What is electronics?
Intermediate Electronics - What is electronics? Intermediate Electronics - What is electronics?
Intermediate Electronics - What is electronics?
 
Record keeping and lab notebooks
Record keeping and lab notebooksRecord keeping and lab notebooks
Record keeping and lab notebooks
 
Animal behavior
Animal behaviorAnimal behavior
Animal behavior
 
Evolution
EvolutionEvolution
Evolution
 
Electronics Connectors
Electronics ConnectorsElectronics Connectors
Electronics Connectors
 
Toubleshooting
ToubleshootingToubleshooting
Toubleshooting
 
Capacitors
CapacitorsCapacitors
Capacitors
 
Resistors & Resistor Color Code
Resistors & Resistor Color CodeResistors & Resistor Color Code
Resistors & Resistor Color Code
 
Plants
PlantsPlants
Plants
 
Coyotes & Rabbits-developing models
Coyotes & Rabbits-developing modelsCoyotes & Rabbits-developing models
Coyotes & Rabbits-developing models
 
Classification
ClassificationClassification
Classification
 
Ecology
EcologyEcology
Ecology
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .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
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 

Chi square test

  • 1. Chi-Square Test • A basic problem is genetics is deciding if experimentally determined data is close enough to what is expected from theory (i.e. Mendel’s law of segregation). • For example, you cross heterozygous purple colored flowers and for the offspring you get 72 purple flowers and 26 white flowers. – Is this a 3/4 : 1/4 ratio as predicted by Mendel’s Law? – Is it close enough? – How do you decide how close is “close enough”? – What about 70:30? or 60:40?
  • 2. Goodness of Fit • Mendel didn’t know how to solve this problem. Shortly after the rediscovery of his work in 1900, Karl Pearson and R.A. Fisher developed the chi-square test for this purpose. • The chi-square test is a goodness of fit test: it answers the question of how well do experimental observations fit expectations. • We start with a null hypothesis: a hypothesis for how many of each type of offspring are expected.
  • 3. Formula • Know how to use this formula! • The “Χ” is the Greek letter chi • “∑” means to sum for all types of offspring. • “obs” is the number of individuals observed • “exp” is the number of individuals expected if your hypothesis is true • Note that you must use the number of individuals, the counts, NOT proportions or percentages.    exp exp)( 2 2 obs
  • 4. What does the number mean? • The Chi Square calculation just gives a number. • What happens if observed equals expected? • What happens if observed is very different from expected? • The smaller the number, the more believable your hypothesis is. The larger the number, the less believable your hypothesis is. Likely there is another reason to cause the results you got. • Could your explanation (your hypothesis) still be correct and you just randomly got weird numbers? • For example, if a couple has 7 girls, is our theory about sex being determined by X and Y chromosomes still correct and that is just an unusual couple, or is our theory wrong?
  • 5. What does the number mean? • Could your explanation (your hypothesis) still be correct and you just randomly got weird numbers? • For example, if a couple has 8 children, how many should be girls? Why? • If a couple has all 8 girls, is the theory about sex being determined by X and Y chromosomes still correct and that is just an unusual result for a family, or is the theory wrong? • How do you decide if a result is just unusual or your hypothesis is wrong?
  • 6. The Critical Question • The simple answer is: you can never tell for certain that a hypothesis is “wrong”, that the result you got was completely impossible based on the theory you used. • All we can do is determine whether a result is likely or unlikely. • Key point: There are 2 ways of getting a high chi-square value: an unusual result from the correct theory, or a result from the wrong theory. • Example: imagine tossing a coin 100 times. What number of heads and tails do you expect? • Is it possible to get 80 heads and 20 tails? • Is it likely? • How likely?
  • 7. Reasonable • What is a “likely” or “reasonable” depends on what we decide. • For most scientists, if unusual results could happen less than 5% of the time, the hypothesis is acceptable. • If the difference between the observed results and the expected results is small enough that it would happen less than 5% of the time, we “fail to reject” the null hypothesis. • Statisticians say “fail to reject” instead of “accept” (but that’s kind of stupid I think) • 5% of the time is a probability value of p = 0.05
  • 9. • Our 0.05 p value choice determines which column we use on the Chi Square table • How do we decide what row to use? What Column and Row?
  • 10. Degrees of Freedom • A critical factor in using the chi-square test is the degrees of freedom, which is the number of independent variables involved. • For example, if you have 20 offspring total, both males and females and I tell you that 12 of them are male, are you free to choose how many females, or do you already know? • Degrees of freedom is simply the number of types of offspring minus 1.
  • 11. Critical Chi-Square Value • The critical value for a chi-square test is the cutoff level: – if your calculated chi-square value is greater than the critical value from the table, you “reject the null hypothesis”. – If your chi-square value is less than the critical value, you “fail to reject” the hypothesis (that is, you accept that your explanation about how the trait is inherited).