Академический Документы
Профессиональный Документы
Культура Документы
To:
Sir Shahid Mahmood
By:
Abuzar Tabassum
M.Sc Zoology 3rd semester
10040814-017
University Of Gujrat
Chi-Square Test
A fundamental problem in genetics is determining
whether the experimentally determined data fits
the results expected from theory (i.e. Mendels
laws as expressed in the Punnett square).
A statistical method used to determine
GOODNESS OF FIT
Goodness of fit refers to how close the
observed data are to those predicted from a
hypothesis
Goodness of Fit
Mendel has no way of solving 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 data fit expectations.
We start with a theory for how the offspring will be
distributed: the null hypothesis. We will discuss the
offspring of a self-pollination of a heterozygote. The null
hypothesis is that the offspring will appear in a ratio of 3/4
dominant to 1/4 recessive.
Formula
To calculate the chi-square statistic following formula is used.
(obs exp)
exp
2
Example
As an example, you count F2 offspring, and get 290 purple and 110 white
flowers. This is a total of 400 (290 + 110) offspring.
We expect a 3/4 : 1/4 ratio. We need to calculate the expected numbers, this
is done by multiplying the total offspring by the expected proportions. This
we expect 400 * 3/4 = 300 purple, and 400 * 1/4 = 100 white.
Thus, for purple, obs = 290 and exp = 300. For white, obs = 110 and exp =
100.
Now it's just a matter of plugging into the formula:
Reasonable
What is a reasonable result is subjective and arbitrary.
For most work a result is said to not differ significantly from
expectations if it could happen at least 1 time in 20. That is, if
the difference between the observed results and the expected
results is small enough that it would be seen at least 1 time in
20 over thousands of experiments, we fail to reject the null
hypothesis.
For technical reasons, we use fail to reject instead of
accept.
1 time in 20 can be written as a probability value p = 0.05,
because 1/20 = 0.05.
Another way of putting this. If your experimental results are
worse than 95% of all similar results, they get rejected because
you may have used an incorrect null hypothesis.
Degrees of Freedom
A critical factor in using the chi-square
test is the degrees of freedom.
Degrees of freedom is the number of
phenotypic possibilities in your cross
minus one.
Or
Degrees of freedom is simply the
number of classes of offspring minus 1.
For our example, there are 2 classes of
offspring: purple and white. Thus,
degrees of freedom (d.f.) = 2 -1 = 1.
Critical Chi-Square
Critical values for chi-square are found on
tables, sorted by degrees of freedom and
probability levels. Be sure to use p = 0.05.
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 null
hypothesis (that is, you accept that your
genetic theory about the expected ratio is
correct).
Chi-Square Table
9:3:3:1
phenotype
observed
expected
proportion
expected
number
round
yellow
315
9/16
312.75
round
green
101
3/16
104.25
wrinkled
yellow
108
3/16
104.25
wrinkled
green
32
1/16
34.75
total
556
556
exp)
2
exp
Chi-Square Table
The Cross:
A cross is made between two true-breeding flies
(c+c+e+e+ and ccee). The flies of the F1 generation
are then allowed to mate with each other to
produce an F2 generation.
The outcome
F1 generation
All offspring have straight wings and gray
bodies
F2 generation
193 straight wings, gray bodies
69 straight wings, ebony bodies
64 curved wings, gray bodies
26 curved wings, ebony bodies
352 total flies
Expected
probability
Expected
number
Observed number
straight wings,
gray bodies
9/16
193
straight wings,
ebony bodies
3/16
3/16 X 352 = 66
64
curved wings,
gray bodies
3/16
3/16 X 352 = 66
62
curved wings,
ebony bodies
1/16
1/16 X 352 = 22
24
(O1 E1)2
E1
(193 198)2
198
(O2 E2)2
E2
(69 66)2
66
(O3 E3)2
E3
(64 66)2
(O4 E4)2
E4
(26 22)2
Expected
number
Observed
number
198
193
66
64
66
62
22
24
66
22
1.06
x
Black body,
eyeless
wild
F1 x F1
5610
1896
1881
622
(obs exp)
exp
Using the chi square formula compute
the chi square total for this cross:
(5610 - 5630)2/ 5630 = .07
(1881 - 1877)2/ 1877 = .01
(1896 - 1877 )2/ 1877 = .20
(622 - 626) 2/ 626 = .02
2= .30
How many degrees of freedom?
2
(obs exp)
exp
Using the chi square formula compute
the chi square total for this cross:
(5610 - 5630)2/ 5630 = .07
(1881 - 1877)2/ 1877 = .01
(1896 - 1877 )2/ 1877 = .20
(622 - 626) 2/ 626 = .02
2= .30
How many degrees of freedom? 3
2
Accept Hypothesis
Reject
Hypothesis
Probability (p)
Degrees of
Freedom
0.95
0.90
0.80
0.70
0.50
0.30
0.20
0.10
0.05
0.01
0.001
0.004
0.02
0.06
0.15
0.46
1.07
1.64
2.71
3.84
6.64
10.83
0.10
0.21
0.45
0.71
1.39
2.41
3.22
4.60
5.99
9.21
13.82
0.35
0.58
1.01
1.42
2.37
3.66
4.64
6.25
7.82
11.34
16.27
0.71
1.06
1.65
2.20
3.36
4.88
5.99
7.78
9.49
13.38
18.47
1.14
1.61
2.34
3.00
4.35
6.06
7.29
9.24
11.07
15.09
20.52
1.63
2.20
3.07
3.83
5.35
7.23
8.56
10.64
12.59
16.81
22.46
2.17
2.83
3.82
4.67
6.35
8.38
9.80
12.02
14.07
18.48
24.32
2.73
3.49
4.59
5.53
7.34
9.52
11.03
13.36
15.51
20.09
26.12
3.32
4.17
5.38
6.39
8.34
10.66
12.24
14.68
16.92
21.67
27.88
10
3.94
4.86
6.18
7.27
9.34
11.78
13.44
15.99
18.31
23.21
29.59