# The Chi Square Test - Mrs. Waterworth's AP Biology

The Chi Square Test 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 Note: The chi square test does not prove that a hypothesis is correct It evaluates to what extent the data and the hypothesis have a good fit The Chi Square Test (we will cover this in lab; the following slides will be useful to review after that lab) The general formula is (O E)2 E where O = observed data in each category E = observed data in each category based on the

experimenters hypothesis = Sum of the calculations for each category Consider the following example in Drosophila melanogaster Gene affecting wing shape c+ = Normal wing c = Curved wing Gene affecting body color e+ = Normal (gray) e = ebony Note: The wild-type allele is designated with a + sign Recessive mutant alleles are designated with lowercase letters 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 Applying the chi square test Step 1: Propose a null hypothesis (Ho) that allows us to calculate the expected values based on Mendels laws The two traits are independently assorting Step 2: Calculate the expected values of the four phenotypes, based on the hypothesis According to our hypothesis, there should be a 9:3:3:1 ratio on the F2 generation Phenotype

Expected probability Expected number Observed number straight wings, gray bodies 9/16 9/16 X 352 = 198 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 Step 3: Apply the chi square formula (O1 E1)2 E1

+ (193 198)2 198 (O2 E2)2 E2 + + (69 66)2 66 1.06 E3

+ + 0.13 + 0.14 + 0.06 + 0.73 (O3 E3)2 (64 66)2 66 (O4 E4)2 E4 + (26 22)2

22 Expected number Observed number 198 193 66 64 66 62 22 24

Step 4: Interpret the chi square value The calculated chi square value can be used to obtain probabilities, or P values, from a chi square table These probabilities allow us to determine the likelihood that the observed deviations are due to random chance alone Low chi square values indicate a high probability that the observed deviations could be due to random chance alone High chi square values indicate a low probability that the observed deviations are due to random chance alone If the chi square value results in a probability that is less than 0.05 (ie: less than 5%) it is considered statistically significant The hypothesis is rejected Step 4: Interpret the chi square value Before we can use the chi square table, we have to determine the degrees of freedom (df) The df is a measure of the number of categories that are independent of each other If you know the 3 of the 4 categories you can deduce the 4th (total number of progeny categories 1-3) df = n 1 where n = total number of categories

In our experiment, there are four phenotypes/categories Therefore, df = 4 1 = 3 Refer to Table 2.1 1.06 Step 4: Interpret the chi square value With df = 3, the chi square value of 1.06 is slightly greater than 1.005 (which corresponds to P-value = 0.80) P-value = 0.80 means that Chi-square values equal to or greater than 1.005 are expected to occur 80% of the time due to random chance alone; that is, when the null hypothesis is true. Therefore, it is quite probable that the deviations between the observed and expected values in this experiment can be explained by random sampling error and the null hypothesis is not rejected. What was the null hypothesis?

## Recently Viewed Presentations

• The moral justification for warfare in ants (Yes, I know that is a bit of a stretch and implies an anthropic (also "anthropical") moral sensibility in ants) appears to lessen as the biological imperative lessens and the closeness of the...
• Robust Software. The use of a stable CentOS kernel and building code only against that kernel library provides general insurance against kernel and security updates breaking functionality. A policy of using 3rd-party libraries and software packages offloads bugfixes and maintenance...
• History of Design Drawing A means for communication Design is used to relay a visual concept Change Technology has made advances in fabricating and design techniques that are clearly seen looking back through history Before the Industrial Revolution Cave men...
• Without this axis, depth cannot be created. The function of the y-axis serves as a motor mount to move the z-axis in addition to the slide mechanism. X-axis :use 2 pieces One for the front and one for the back....
• What are Skills Assessments? A single, agreed evidence base on which to base future investment in skills, built up from existing datasets. Partnership between Skills Development Scotland (SDS), Highlands and Islands Enterprise (HIE), Scottish Enterprise (SE), the Scottish Funding Council...
• Our System of Governance in the 2nd Decade of Democracy Cabinet meets Labour Wednesday, 17 November 2004 Purpose Strategic Imperatives Presidential Programme of Action Intergovernmental Relations Strengthen role of Government Fully integrated spheres of Government Wholistic Governance A Home fore...
• Referred to as 'midnight clause' - lack of deliberation and thought on the drafting of the clause. Dismissed as 'boilerplate' and given standard wording. They should be customized depending on the needs of the parties and the specific agreements. Privileged...
• KS4 Energy resources ... This gas is released by power stations and mixes with water/alkali in the atmosphere to form acid rain. Sulphur in coal Sulphur dioxide Acid Rain combustion mixed with water What are the problems caused by acid...