Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using and Understanding the Chi-squared Test. hypothesis testable prediction (what you expect to observe)

Similar presentations


Presentation on theme: "Using and Understanding the Chi-squared Test. hypothesis testable prediction (what you expect to observe)"— Presentation transcript:

1 Using and Understanding the Chi-squared Test

2 hypothesis testable prediction (what you expect to observe)

3 hypothesis testable prediction (what you expect to observe) make observations

4 hypothesis testable prediction (what you expect to observe) make observations Do your observations match what you expected to observe?

5 hypothesis testable prediction (what you expect to observe) make observations Do your observations match what you expected to observe? NoYes reject hypothesis do not reject hypothesis

6 about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week:

7 hypothesis about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week: 3 purple : 1 yellow

8 hypothesis about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week: 3 purple : 1 yellow ¾ purple ¼ yellow

9 hypothesis about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week: 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect

10 hypothesis about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week: 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect 868 x ¾ = 651 purple

11 hypothesis about genotypes of parent corn plants testable prediction about expected phenotypic ratios in offspring (corn kernels) this week: 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect 868 x ¾ = 651 purple 868 x ¼ = 217 yellow

12 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect 868 x ¾ = 651 purple 868 x ¼ = 217 yellow expected:

13 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect 868 x ¾ = 651 purple 868 x ¼ = 217 yellow expected: actually observed: of 868 kernels counted, 656 purple, and 212 yellow

14 3 purple : 1 yellow ¾ purple ¼ yellow of 868 kernels, expect 868 x ¾ = 651 purple 868 x ¼ = 217 yellow expected: actually observed: of 868 kernels counted, 656 purple, and 212 yellow phenotypeobserved number expected number purple656651 yellow212217 total868

15 phenotypeobserved number expected number purple656651 yellow212217 total868 Observed and expected don’t match. What to do?

16 phenotypeobserved number expected number purple656651 yellow212217 total868 Observed and expected don’t match. What to do? The observed doesn’t match the expected closely enough! Reject the hypothesis! The observed and the expected are close enough! Don’t reject the hypothesis!

17 phenotypeobserved number expected number purple656651 yellow212217 total868 Observed and expected don’t match. What to do? The observed doesn’t match the expected closely enough! Reject the hypothesis! The observed and the expected are close enough! Don’t reject the hypothesis! How close is “close enough”?

18 The chi-squared test to the rescue!

19 So, your observed and expected numbers are different. …but maybe that difference is just due to chance, and there’s no need to reject your hypothesis. Maybe that difference is because your hypothesis should be rejected…

20 The chi-squared test to the rescue! So, your observed and expected numbers are different. …but maybe that difference is just due to chance, and there’s no need to reject your hypothesis. Maybe that difference is because your hypothesis should be rejected… What is the probability that the difference between observed and expected is due to chance?

21 The chi-squared test to the rescue! So, your observed and expected numbers are different. …but maybe that difference is just due to chance, and there’s no need to reject your hypothesis. Maybe that difference is because your hypothesis should be rejected… What is the probability that the difference between observed and expected is due to chance? high probability = close enough! The difference is not significant, so don’t reject your hypothesis. low probability = not close enough! The difference is significant, so reject your hypothesis.

22 How to perform a chi-squared test

23 (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple Yellow TOTAL χ 2 =

24 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 Yellow 212 TOTAL 868 χ 2 =

25 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 868 x ¾ = 651 Yellow 212 868 x ¼ = 217 TOTAL 868 χ 2 =

26 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 868 x ¾ = 651 656-651 = 5 Yellow 212 868 x ¼ = 217 212–217 = - 5 TOTAL 868 χ 2 =

27 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 868 x ¾ = 651 656-651 = 5 5 2 = 25 Yellow 212 868 x ¼ = 217 212–217 = - 5 (-5) 2 = 25 TOTAL 868 χ 2 =

28 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 868 x ¾ = 651 656-651 = 5 5 2 = 25 25/651 = 0.038 Yellow 212 868 x ¼ = 217 212–217 = - 5 (-5) 2 = 25 25/217 = 0.115 TOTAL 868 χ 2 =

29 How to perform a chi-squared test (Recall that your hypothesis generates a predicted phenotypic ratio of 3 purple : 1 yellow) Phenotype (class) Observed number (o) Expected number (e) (o - e)(o - e) 2 e Purple 656 868 x ¾ = 651 656-651 = 5 5 2 = 25 25/651 = 0.038 Yellow 212 868 x ¼ = 217 212–217 = - 5 (-5) 2 = 25 25/217 = 0.115 TOTAL 868 χ 2 = 0.038 +0.115 = 0.153

30 so, χ2 = 0.153 …but what does this tell us about our hypothesis?

31 so, χ2 = 0.153 …but what does this tell us about our hypothesis? Remember, what we want to find out is: What is the probability that the difference between observed and expected is due to chance?

32 so, χ2 = 0.153 …but what does this tell us about our hypothesis? Remember, what we want to find out is: What is the probability that the difference between observed and expected is due to chance? So, we need to use our chi-squared value to look up a p (probability) value....how do we look it up?

33 …in a chi-squared table! Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 20.1030.4461.3863.2195.9919.2110.597 30.3521.0052.3664.6427.81511.34512.838 40.7111.6493.3575.9899.4813.27714.86 51.1452.3434.3517.28911.0715.08616.75 61.6353.075.3488.55812.59216.81218.548 72.1673.8226.3469.80314.06718.47520.278 82.7334.5947.34411.0315.50720.0921.955 93.3255.388.34312.24216.91921.66623.589 103.946.1799.34213.44218.30723.20925.188 157.26110.30714.33919.31124.99630.57832.801 2010.85114.57819.33725.03831.4137.56639.997 2514.61118.9424.33730.67537.65244.31446.928 3018.49323.36429.33636.2543.77350.89253.672 Non significantSignificant

34 …in a chi-squared table! Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 20.1030.4461.3863.2195.9919.2110.597 30.3521.0052.3664.6427.81511.34512.838 40.7111.6493.3575.9899.4813.27714.86 51.1452.3434.3517.28911.0715.08616.75 61.6353.075.3488.55812.59216.81218.548 72.1673.8226.3469.80314.06718.47520.278 82.7334.5947.34411.0315.50720.0921.955 93.3255.388.34312.24216.91921.66623.589 103.946.1799.34213.44218.30723.20925.188 157.26110.30714.33919.31124.99630.57832.801 2010.85114.57819.33725.03831.4137.56639.997 2514.61118.9424.33730.67537.65244.31446.928 3018.49323.36429.33636.2543.77350.89253.672 Non significantSignificant number of degrees of freedom = number of different phenotypes minus 1

35 …in a chi-squared table! Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 20.1030.4461.3863.2195.9919.2110.597 30.3521.0052.3664.6427.81511.34512.838 40.7111.6493.3575.9899.4813.27714.86 51.1452.3434.3517.28911.0715.08616.75 61.6353.075.3488.55812.59216.81218.548 72.1673.8226.3469.80314.06718.47520.278 82.7334.5947.34411.0315.50720.0921.955 93.3255.388.34312.24216.91921.66623.589 103.946.1799.34213.44218.30723.20925.188 157.26110.30714.33919.31124.99630.57832.801 2010.85114.57819.33725.03831.4137.56639.997 2514.61118.9424.33730.67537.65244.31446.928 3018.49323.36429.33636.2543.77350.89253.672 Non significantSignificant number of degrees of freedom = number of different phenotypes minus 1 2 -1 = 1 degree of freedom

36 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant

37 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant

38 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant

39 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant 0.5 < p < 0.8 If X 2 = 0.153, then

40 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant

41 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant If X 2 = 0.153, then 0.5 < p < 0.8 high probability that difference between observed and expected is due to chance: do not reject hypothesis.

42 Degrees of Freedom Probability (P) 0.950.80.50.20.050.010.005 10.0040.0640.4551.6423.8416.6357.879 non-significantsignificant If X 2 = 7.5, then 0.01 < p < 0.005 low probability that difference between observed and expected is due to chance: reject hypothesis.


Download ppt "Using and Understanding the Chi-squared Test. hypothesis testable prediction (what you expect to observe)"

Similar presentations


Ads by Google