What is a χ2 (Chi-square) test used for?

Slides:



Advertisements
Similar presentations
Inferential Statistics and t - tests
Advertisements

Chi-Square Test Chi-square is a statistical test commonly used to compare observed data with data we would expect to obtain according to a specific hypothesis.
Chi-Squared Tutorial This is significantly important. Get your AP Equations and Formulas sheet.
Announcements Please don’t interrupt other classes (including other Genetics labs) to check flies in Brooks 204 (see schedule on the door). Microscopes.
Data Handling & Analysis BD Andrew Jackson Zoology, School of Natural Sciences
Laws of Probability and Chi Square
Quantitative Skills 4: The Chi-Square Test
Chapter 11 Inference for Distributions of Categorical Data
Genetics and Statistics
What is a χ2 (Chi-square) test used for?
Chapter 10: Hypothesis Testing
QBA 260 Chapter 1. Chapter 1 Topics Samples and Populations Samples and Populations Types of Data Types of Data Variables – Independent and Dependent.
Ch. 28 Chi-square test Used when the data are frequencies (counts) or proportions for 2 or more groups. Example 1.
11 Comparison of Two Means Tests involving two samples – comparing variances, F distribution TOH - x A = x B ? Step 1 - F-test  s A 2 = s B 2 ? Step.
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.
Chapter 13: Inference for Tables – Chi-Square Procedures
11.4 Hardy-Wineberg Equilibrium. Equation - used to predict genotype frequencies in a population Predicted genotype frequencies are compared with Actual.
Chi-Squared Test.
Chapter 13 Chi-squared hypothesis testing. Summary.
Chi Square.
Let’s flip a coin. Making Data-Based Decisions We’re going to flip a coin 10 times. What results do you think we will get?
Chi-Square as a Statistical Test Chi-square test: an inferential statistics technique designed to test for significant relationships between two variables.
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.
Chi-Squared Analysis Stickrath.
Genetics and Statistics A Tale of Two Hypotheses.
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!!
Chi Square Analysis The chi square analysis allows you to use statistics to determine if your data “good” or not. In our fruit fly labs we are using laws.
Fruit Fly Basics Drosophila melanogaster. Wild Type Phenotype Red eyes Tan Body Black Rings on abdomen Normal Wings.
Earlobes. Widow’s Peak MENDELIAN GENETICS Principles of Heredity There are two factors which determine physical features and behavior of an organism:
Scientific Method Probability and Significance Probability Q: What does ‘probability’ mean? A: The likelihood that something will happen Probability.
Probability and Punnett Squares Genetics and Probability The likelihood that a particular event will occur is called probability.probability As.
Welcome to MM570 Psychological Statistics
Chi-Square Analysis AP Biology.
Chi-Square Test. Chi-Square (χ 2 ) Test Used to determine if there is a significant difference between the expected and observed data Null hypothesis:
1. Determine number of each phenotype observed and how many would be expected given basic genetic theory 2. Calculate chi-square statistic using this.
How do you know when your data aren’t “close enough”? …and hand grenades!
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
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?
The Chi Square Equation Statistics in Biology. Background The chi square (χ 2 ) test is a statistical test to compare observed results with theoretical.
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.
Statistics 300: Elementary Statistics Section 11-3.
DRAWING INFERENCES FROM DATA THE CHI SQUARE TEST.
Chi-square test Hypothesis testing. Null hypothesis- The status quo– AKA no change/difference. Alternative hypothesis- What you want to prove/show with.
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.
AP Biology Heredity PowerPoint presentation text copied directly from NJCTL with corrections made as needed. Graphics may have been substituted with a.
Chi-Square (χ 2 ) Analysis Statistical Analysis of Genetic Data.
Chi Square Analysis. What is the chi-square statistic? The chi-square (chi, the Greek letter pronounced "kye”) statistic is a nonparametric statistical.
Genetics and Statistics A Tale of Two Hypotheses.
Introduction to Hypothesis Testing: The Binomial Test
The Chi Square Test A statistical method used to determine goodness of fit Chi-square requires no assumptions about the shape of the population distribution.
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
Genetics and Probability
What is a χ2 (Chi-square) test used for?
Statistical Analysis Chi Square (X2).
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.
Chi Square SBI3UP.
Chi Square.
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.
Chi square.
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.
Chi Square Analysis The chi square analysis allows you to use statistics to determine if your data is “good”. In our fruit fly labs we are using laws of.
Chi2 (A.K.A X2).
Chi-Squared AP Biology.
What is a χ2 (Chi-square) test used for?
Chi square.
Presentation transcript:

What is a χ2 (Chi-square) test used for? Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test What is a χ2 (Chi-square) test used for? Statistical test used to compare observed data with expected data according to a hypothesis. What does that mean? Let’s look at the next slide to find out…

50 heads and 50 tails Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Ex. Say you have a coin and you want to determine if it is fair (50/50 chance of gets heads/tails). You decide to flip the coin 100 times. If the coin is fair what do you expect/predict to observe? 50 heads and 50 tails Now come up with a hypothesis (two possibilities)

Hypotheses Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test 1. The coin is fair and there will be no real difference between what we will observe and what we expect. 2. The coin is not fair and the observed results will be significantly different from the expected results. The first hypothesis that states no difference between the observed and expected has a special name… NULL HYPOTHESIS

NULL HYPOTHESIS Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test NULL HYPOTHESIS This is the hypothesis that states there will be no difference between the observed and the expected data or that there is no difference between the two groups you are observing. Ex. You wonder if world class musicians have quicker reaction times than world class athletes. What would the null hypothesis be? That there is no difference between these two groups. Let’s get back to flipping coins…

Heads Tails Observed 41 59 Expected 50 50 Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test You flip the coin 100 times and you getting the following results: Heads Tails Observed 41 59 Expected 50 50 Is the coin fair or not? It’s not easy to say. It looks like it might, but maybe not… This is where statistics, in particular the χ2 test, comes in.

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test The formula for calculating χ2 is: Where O is the observed value and E is the expected. What happens to the value of χ2 as your observed data gets closer to the expected? Χ2 approaches 0 Let’s determine χ2 for the coin flipping study…

Heads Tails Observed 41 59 Expected 50 50 Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Heads Tails Observed 41 59 Expected 50 50 Χ2 = (41-50)2/50 + (59-50)2/50 Χ2 = (-9)2/50 + (9)2/50 Χ2 = 81/50 + 81/50 Χ2 = 3.24 So what does this number mean…?

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Converting Χ2 to a P(probability)-value Statisticians have devised a table to do this: Great, but how do you use this?

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Converting Χ2 to a P(probability)-value First we need to determine Degrees of Freedom (DoF): DoF = # of groups minus 1 We have two groups, heads group and tails group. Therefore our DoF = 1.

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Converting Χ2 to a P(probability)-value Then scan across and find your X2 value (3.24) Lastly go up and estimate the p-value… P-value = ~0.07 What does this value tell us?

The P-value Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test The p-value tells us the probability that the NULL hypothesis (observed and expected not different) is correct.

Heads Tails Observed 41 59 Expected 50 50 Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Heads Tails Observed 41 59 Expected 50 50 P-value = ~0.07 Therefore, there is a 7% chance that the null hypothesis (there is no real difference between observed and expected) is correct.

Heads Tails Observed 41 59 Expected 50 50 Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Heads Tails Observed 41 59 Expected 50 50 P-value = ~0.07 You might say then that the other hypothesis must be correct as there is a 93% likelihood that there is a different between observed and expected…

50 50 Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test P-value = ~0.07 However, statisticians have a p-value = 0.05 cutoff. In order for the hypothesis to be supported, p must be less than 0.05 (5% chance that null is correct). Therefore the null hypothesis cannot be rejected.

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Example 1

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Example 1 Answer observed expected (obs-exp)^2/exp 404 400 0.04 420 1 376 1.44 2.48 X2 DOF = #groups – 1 = 4 – 1 = 3 P = ~0.4 or 40% Therefore, there is a 40% chance that the null hypothesis is supported (that there is no difference between the groups) and therefore, according to this data, the card machine is fair.

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Example 2 A genetics engineer was attempting to cross a tiger and a cheetah.  She predicted a phenotypic outcome of the traits she was observing to be in the following ratio 4 stripes only: 3 spots only: 9 both stripes and spots.  When the cross was performed and she counted the individuals she found 50 with stripes only, 41 with spots only and 85 with both.  According to the Chi-square test, did she get the predicted outcome?

Chapter 13 – How Populations Evolve Χ2 (Chi-square) Test Example 2 Answer Expected ratio Observed # Expected # O-E (O-E)2 (O-E)2/E 4 stripes 50 44 6 36 0.82 3 spots 41 33 8 64 1.94 9 stripes/spots 85 99 -14 196 1.98 16 total 176 total 0 total   Sum(X2) = 4.74 DOF = #groups – 1 = 3 – 1 = 2 P = ~0.18 or 18% Therefore, there is a 18% chance that the null hypothesis is supported (that there is no difference between the groups) and therefore, according to this data, the null can be accepted and the observed is not significantly different than the expected.