Quantitative Skills 4: The Chi-Square Test

Slides:



Advertisements
Similar presentations
AP Biology.  Segregation of the alleles into gametes is like a coin toss (heads or tails = equal probability)  Rule of Multiplication  Probability.
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.
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?
1/71 Statistics Inferences About Population Variances.
Statistics for AP Biology. Understanding Trends in Data Mean: The average or middle of the data Range: The spread of the data Standard deviation: Variation.
PSY 307 – Statistics for the Behavioral Sciences
The Normal Distribution. n = 20,290  =  = Population.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
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 9 Hypothesis Testing.
Chi Square (X 2 ) Analysis Calculating the significance of deviation in experimental results.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Inferential Statistics
+ Quantitative Statistics: Chi-Square ScWk 242 – Session 7 Slides.
AM Recitation 2/10/11.
Chi-Squared Test.
Chapter 13 Chi-squared hypothesis testing. Summary.
Statistical Analysis Statistical Analysis
Analysis & Interpretation: Individual Variables Independently Chapter 12.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
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?
Beak of the Finch Natural Selection Statistical Analysis.
Two Variable Statistics
1 ConceptsDescriptionHypothesis TheoryLawsModel organizesurprise validate formalize The Scientific Method.
Chi-Square Test.
Statistics in Biology. Histogram Shows continuous data – Data within a particular range.
Chi-Squared Analysis Stickrath.
Testing Hypothesis That Data Fit a Given Probability Distribution Problem: We have a sample of size n. Determine if the data fits a probability distribution.
Hypothesis Testing State the hypotheses. Formulate an analysis plan. Analyze sample data. Interpret the results.
Fitting probability models to frequency data. Review - proportions Data: discrete nominal variable with two states (“success” and “failure”) You can do.
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.
Marketing Research Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides 1.
Three Broad Purposes of Quantitative Research 1. Description 2. Theory Testing 3. Theory Generation.
Statistical Analysis: Chi Square AP Biology Ms. Haut.
© Copyright McGraw-Hill 2004
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,
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?
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.
Objectives (BPS chapter 12) General rules of probability 1. Independence : Two events A and B are independent if the probability that one event occurs.
DRAWING INFERENCES FROM DATA THE CHI SQUARE TEST.
By Mai Fukata AAH Help me!. The meaning of probability is… A way to measure the chances that something will occur in relation to the possible alternatives.
Quantitative Skills 3: Hypothesis Testing. A hypothesis is a statement explaining that a causal relationship exists between an underlying factor (variable)
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
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.
Chi-Squared (2) Analysis
Statistical Analysis: Chi Square
Statistical Analysis Chi Square (X2).
Making Data-Based Decisions
Chi Square SBI3UP.
MENDELIAN GENETICS CHI SQUARE ANALYSIS
Chi square.
Statistical Analysis Chi-Square.
Statistical Analysis: Chi Square
Chi2 (A.K.A X2).
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.
Graphs and Chi Square.
Chi square.
Statistical Inference for the Mean: t-test
Mortality Analysis.
Presentation transcript:

Quantitative Skills 4: The Chi-Square Test “Goodness of Fit”

Probably not due to chance The Chi-Square (X2) Test is used to examine the difference between an actual sample and a hypothetical sample that would be expected due to chance. Possibly due to chance Probably not due to chance Probably due to chance

Using Chi-Square, it is possible to discern whether experimental results are valid, or whether they are probably due to chance alone.

The Chi-Square test compares two rival hypotheses (the null hypothesis and an alternative hypothesis) to see which hypothesis is best supported by the data.

Establishing a null hypothesis (H0) and an alternative hypothesis (HA) A null hypothesis states that there is no relationship between two variables. The finding probably occurred by chance. An alternative hypothesis states that there is a relationship between two variables. The finding probably did not occur by chance.

Example : “I think my cheese will mold if I leave it out on the counter too long.” Example null hypothesis (H0): If cheese is kept at room temperature for a week, then it will have the same amount of mold on it as the same amount of cheese kept in a refrigerator for a week. Example alternative hypothesis (HA): If cheese is kept at room temperature for a week, then it will have more mold on it than the same amount of cheese kept in a refrigerator for a week.

The goal of the Chi-Square Test is to either accept or reject the null hypothesis. If the null hypothesis is accepted, then there probably is no relationship between the two variables and the experimental results were probably due to chance alone. If the null hypothesis is rejected, then there probably is a relationship between the two variables, and the experimental results are probably not due to chance.

Observed and Expected Results Observed results are what you actually observed in your experiment. Expected results are a theoretical prediction of what the data would look like if the experimental results are due only to chance.

How do you get expected results? If you are working with a genetics problem, then use the Punnett square ratio as your expected result. If you are working with a another type of problem, use probability. P(heads) = .5 P(green) = .75

Obtaining the X2 value: Example: We flip a coin 200 times to determine if the coin is fair. H0: There is no statistically significant difference between our coin flips and what we would expect by chance. (The coin is fair.) HA: There is a statistically significant difference between our coin flips and what we would expect by chance. (The coin is not fair.)

The Chi-Square equation: X 2 = (o – e)2 Ʃ e

X 2 = (o – e)2 Ʃ e (observed – expected )2 X 2 = (sum of all) expected

Setting up this kind of table is a VERY good idea! Example: We flip a coin 200 times to determine if a coin is fair. Setting up this kind of table is a VERY good idea! classes Observed Expected (o – e) (o – e)2 e Heads 108 Tails 92 X 2   100 8 64 .64 100 -8 64 .64 1.28

Critical Value Table Now you need to look up your X 2 value in a critical value table to see if it is over a certain critical value.

Typically, in biology we use the p = 0.05 confidence interval. The p-value is a predetermined choice of how certain we are. The smaller the p-value, the more confidence we can claim. p = 0.05 means that we can claim 95% confidence.

Calculating Degrees of Freedom Degrees of Freedom = # classes -1 DF = 2 - 1 = 1 In our example experiment, the classes were heads and tails (2 classes). Degrees of Freedom in our experiment would be:

Accept or Reject the Null Hypothesis If the X 2 value is less than the critical value, accept the null hypothesis. (The difference is not statistically significant.) If the X 2 value is greater than or equal to the critical value, reject the null hypothesis. (The difference is statistically significant.)

We accept our null hypothesis. We reject our alternative hypothesis . In our example, the X 2 value we calculated was 1.28, which is less than the critical value of 3.84. Therefore: We accept our null hypothesis. We reject our alternative hypothesis . We determine that our coin is fair.