The Chi Square Equation Statistics in Biology. Background The chi square (χ 2 ) test is a statistical test to compare observed results with theoretical.

Slides:



Advertisements
Similar presentations
T-Tests For Dummies As in the books, not you personally!
Advertisements

AP Biology.  Segregation of the alleles into gametes is like a coin toss (heads or tails = equal probability)  Rule of Multiplication  Probability.
Chi-Square Test A fundamental problem is genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
The Chi-Square Test for Association
Chi-Squared Tutorial This is significantly important. Get your AP Equations and Formulas sheet.
What is a χ2 (Chi-square) test used for?
Laws of Probability and Chi Square
Quantitative Skills 4: The Chi-Square Test
Hypothesis Testing IV Chi Square.
Physics 270 – Experimental Physics. Let say we are given a functional relationship between several measured variables Q(x, y, …) What is the uncertainty.
What is a χ2 (Chi-square) test used for?
Making Inferences for Associations Between Categorical Variables: Chi Square Chapter 12 Reading Assignment pp ; 485.
Chi-square notes. What is a Chi-test used for? Pronounced like kite, not like cheese! This test is used to check if the difference between expected and.
1 Confidence Interval for Population Mean The case when the population standard deviation is unknown (the more common case).
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Chi-Squared (  2 ) Analysis AP Biology Unit 4 What is Chi-Squared? In genetics, you can predict genotypes based on probability (expected results) Chi-squared.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
11.4 Hardy-Wineberg Equilibrium. Equation - used to predict genotype frequencies in a population Predicted genotype frequencies are compared with Actual.
Chi-Squared Test.
AP Biology. Chi-Square Purpose: To determine if a deviation from expected results is significant. (or was it just chance) Purpose: To determine if a deviation.
Statistical Analysis Statistical Analysis
Chi Square.
Quantitative Methods Partly based on materials by Sherry O’Sullivan Part 3 Chi - Squared Statistic.
Chi Square Analysis  Use to see if the observed value varies from the expected value.  Null Hypothesis – There is no difference between the observed.
Chi-Square Test A fundamental problem in genetics is determining whether the experimentally determined data fits the results expected from theory. How.
Chi-Square Test.
Statistics in Biology. Histogram Shows continuous data – Data within a particular range.
Chi-Squared Analysis Stickrath.
Chi-Squared (  2 ) Analysis AP Biology Unit 4 What is Chi-Squared? In genetics, you can predict genotypes based on probability (expected results) Chi-squared.
Chi Squared Test. Why Chi Squared? To test to see if, when we collect data, is the variation we see due to chance or due to something else?
Chi square analysis Just when you thought statistics was over!!
Physics 270 – Experimental Physics. Let say we are given a functional relationship between several measured variables Q(x, y, …) x ±  x and x ±  y What.
Sampling  When we want to study populations.  We don’t need to count the whole population.  We take a sample that will REPRESENT the whole population.
Statistical Analysis: Chi Square AP Biology Ms. Haut.
© Copyright McGraw-Hill 2004
Chi-Square Analysis AP Biology.
Lecture 11. The chi-square test for goodness of fit.
Science Practice 2: The student can use mathematics appropriately. Science Practice 5: The student can perform data analysis and evaluation of evidence.
Did Mendel fake is data? Do a quick internet search and can you find opinions that support or reject this point of view. Does it matter? Should it matter?
III. Statistics and chi-square How do you know if your data fits your hypothesis? (3:1, 9:3:3:1, etc.) For example, suppose you get the following data.
DRAWING INFERENCES FROM DATA THE CHI SQUARE TEST.
Chi Square Pg 302. Why Chi - Squared ▪Biologists and other scientists use relationships they have discovered in the lab to predict events that might happen.
Chi-Square (χ 2 ) Analysis Statistical Analysis of Genetic Data.
Chi-Square Analysis AP Biology.
Chi-Squared (2) Analysis
Statistical Analysis: Chi Square
I. CHI SQUARE ANALYSIS Statistical tool used to evaluate variation in categorical data Used to determine if variation is significant or instead, due to.
Chi-Squared Χ2 Analysis
As in the books, not you personally!
Chi-Square Test A fundamental problem is genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
Genetics and Probability
Statistical Analysis Chi Square (X2).
Qualitative data – tests of association
Patterns of inheritance
Chi-Square Analysis AP Biology.
Statistical Analysis Determining the Significance of Data
Chi-Square Test.
Chi Square.
MENDELIAN GENETICS CHI SQUARE ANALYSIS
Chi-Square Test.
Chi-Square Analysis AP Biology.
Statistical Analysis Chi-Square.
Chi-Square Test.
Chi-Square Analysis AP Biology.
Chi2 (A.K.A X2).
Chi-Square Analysis AP Biology.
How do you know if the variation in data is the result of random chance or environmental factors? O is the observed value E is the expected value.
Genetic Statistics.
Chi-Square Analysis AP Biology.
Presentation transcript:

The Chi Square Equation Statistics in Biology

Background The chi square (χ 2 ) test is a statistical test to compare observed results with theoretical expected results The calculation generates a χ 2 value; the higher the value, the greater the difference between the observed and expected results. The data used in calculating a chi square statistic must be random, raw, mutually exclusive, drawn from independent variables and be drawn from a large enough sample.

Use this test when: The measurements relate to the # of individuals in particular categories The observed # can be compared with an expected # which is calculated from a theory Ex: Hardy-Weinberg theory in evolution; Mendelian probability in genetics (Punnett squares)

Steps to perform the test: 1. State the null hypothesis This is a negative statement saying that there is no statistical difference between the observed and expected results Ex: the data you observe is due only to chance; the variable you tested did not yield significant results

Steps to perform the test: 2. Calculate the expected value This may be the mean of the expected values When studying inheritance, you add up the expected values and apply a ratio (3:1 or 1:2:1 or 9:3:3:1)

Steps to perform the test: 3. Calculate χ 2 The formula is:

Steps to perform the test: 4. Know the degrees of freedom This is calculated using the formula (n-1) where n = the number of sets of results

Steps to perform the test: 5. Compare the χ 2 value against a table of critical values Refer to the degrees of freedom Look up the critical number at the p=0.05 level

Steps to perform the test: 6. Make a conclusion: Biologists need to feel confidence in their results in order to say that a difference occurred due to a biological reason They will only accept this if they have a greater than 95% confidence If they have less than 95% confidence, they are only willing to say that the difference between the results occurred due to chance alone

Making a Conclusion: If the number exceeds the critical number at the 0.05 level, then as a biologist, you can reject the null hypothesis If the χ 2 value is less than the critical number, then you can accept the null hypothesis Ex: the calculated value is greater than the critical value so the null hypothesis is rejected and there is a significant difference between the observed and expected results at the 5% level of probability

Simple Example: Consider tossing a coin 100 times The expected result of tossing a fair coin 100 times is that heads will come up 50 times and tails will come up 50 times. The actual result might be that heads comes up 45 times and tails comes up 55 times. The chi square statistic will show any discrepancies between the expected results and the actual results.

1. State the null hypothesis Our null hypothesis would be that the coin flipping is statistically accurate and not the result of some outside force (like a weighted coin)

2. Calculate the expected value 100 flips divided by 2 = 50 heads and 50 tails

3. Calculate χ 2 So we have observed 45 H and 55 T But we expected 50 H and 50 T Start with the first category – heads Observed (O) = 45Expected (E) = 50 Complete O-E = -5 Square the answer (-5) 2 = 25 Divide the answer by the number you had expected 25/50 = 0.5

3. Calculate χ 2 Continue with the second category –Tails Observed (O) = 55Expected (E) = 50 Complete O-E = 5 Square the answer (5) 2 = 25 Divide the answer by the number you had expected 25/50 = 0.5

3. Calculate χ 2 Add the two together to get the chi square(X 2 ) value: = 1.0 So the X 2 value is 1.0

4. Degrees of Freedom Degrees of freedom (df) = number of categories -1 In this case: df= 2 categories (heads and tails) -1= 1

The Math We now have the X 2 value (1.0) and the Df (1) Look on the chart

The Chart – Deciphering the Code Find the row that matches your degrees of freedom Move across that row until you get to either your number or a range that your number would be in Look up at the number that is at the top of your column – this represents the probability that your number can happen naturally and is due to chance (accepting your null hypothesis)

The Chart – Deciphering the Code With our X 2 and df, our number falls between 0.5 and 0.1 So the probability of us getting the numbers we saw by chance would be between 10 and 50%

The “magic” column: p=0.05 In scientific research, the probability value of 0.05 is taken as the common cut off level of significance. A probability value (p-value) of.05 means that there is a 5% chance that the difference between the observed and the expected data is a random difference, and a 95% chance that the difference is real and repeatable — in other words, a significant difference. Therefore, if your p-value is greater than.05, you would accept the null hypothesis: “The difference between my observed results and my expected results are due to random chance alone and are not significant.”

Based on our chi square value, we should accept our null hypothesis We would expect to get the observed flip data between 10 and 50% of the time if we did the test again Reject the null hypothesisAccept the null hypothesis 1.0

The Chart – Deciphering the Code If we had calculated a value of 6.0 instead of 1.0, we would expect to get that value between 2.5 and 1% of the time That is very rare! It’s so rare, there must be something other than chance happening in order for us to get that value again We should reject the hypothesis that “nothing” is happening Accept the null hypothesisReject the null hypothesis 6.0

A helpful *revised Chi Square Table

Practice Analysis Questions: 1) Suppose you were to obtain a Chi-square value of 7.82 or greater in your data analysis (with 2 degrees of freedom). What would this indicate? 2) Suppose you were to obtain a Chi-square value of 4.60 or lower in your data analysis (with 2 degrees of freedom). What would this indicate?