Chi2 : a visual explanation

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

Presentation on Probability Distribution * Binomial * Chi-square
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Data Handling & Analysis BD Andrew Jackson Zoology, School of Natural Sciences
Math notebook, pencil, and possibly calculator. Definitions  An outcome is the result of a single trial of an experiment.  The sample space of an experiment.
Probability Number Line 0 1 Events that are impossible have a probability of 0. Rolling a 7 with a 6-sided dice. Rolling a 7 with a 6-sided dice has a.
How can you tell which is experimental and which is theoretical probability? You tossed a coin 10 times and recorded a head 3 times, a tail 7 times.
LARGE SAMPLE TESTS ON PROPORTIONS
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
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.
Binomial & Geometric Random Variables §6-3. Goals: Binomial settings and binomial random variables Binomial probabilities Mean and standard deviation.
Chi Square.
Simple Mathematical Facts for Lecture 1. Conditional Probabilities Given an event has occurred, the conditional probability that another event occurs.
Testing means, part II The paired t-test. Outline of lecture Options in statistics –sometimes there is more than one option One-sample t-test: review.
Hypothesis testing Summer Program Brian Healy. Last class Study design Study design –What is sampling variability? –How does our sample effect the questions.
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.
Statistics 300: Elementary Statistics Section 11-2.
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.
Hardy-Weinberg Equilibrium When mating is completely random, the zygotic frequencies expected in the next generation may be predicted from the knowledge.
PROBABILITY! Let’s learn about probability and chance!
Chi-Square (χ 2 ) Analysis Statistical Analysis of Genetic Data.
AP Biology Probability & Genetics. AP Biology Genetics & Probability  Mendel’s laws:  segregation  independent assortment reflect.
Probability Number Line
Chi Squared Test.
Genetics and Probability
What is a χ2 (Chi-square) test used for?
4.3 Introduction to Probability
Probability Tree for tossing a coin.
Experimental Probability
Inference and Tests of Hypotheses
Box models Coin toss = Head = Tail 1 1
Lecture Slides Elementary Statistics Twelfth Edition
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.
Statistical Analysis Chi Square (X2).
WHAT DO YOU EXPECT? 1.2 Finding More Probabilities
Experimental probability
PROBABILITY The probability of an event is a value that describes the chance or likelihood that the event will happen or that the event will end with.
Warm-Up: Chi Square Practice!!!
Chapter 11 Goodness-of-Fit and Contingency Tables
Statistical Analysis Determining the Significance of Data
Making Data-Based Decisions
Chi Square.
MENDELIAN GENETICS CHI SQUARE ANALYSIS
Probability & Genetics
Welcome Stand Quietly.
Chi square.
Introduction to: PROBABILITY.
Chi Squared Test.
Chi Square Analysis The chi square analysis allows you to use statistics to determine if your data is “good” or not. In our fruit fly labs we are using.
Unit 8. Day 10..
Probability & Genetics
Experimental Probability Vs. Theoretical Probability
Statistical Analysis Chi-Square.
Lecture 36 Section 14.1 – 14.3 Mon, Nov 27, 2006
Overview and Chi-Square
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.
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Chi2 (A.K.A X2).
Hypothesis Tests for a Standard Deviation
What is a χ2 (Chi-square) test used for?
Copyright © Cengage Learning. All rights reserved.
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.
Lesson #8 Guided Notes.
Genetic Statistics.
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.
Chi square.
Statistics and Probability-Part 5
Presentation transcript:

Chi2 : a visual explanation   A student hypothesizes that if s/he tosses a coin, it will land heads 50% of the time. The student tosses 100 coins 100 times and records the number that land heads. http://www.shodor.org/interactivate/activities/Coin/

49 42 50 47 51 46 40 43 55 55   46 44 56 52 45 50 48 53 57 50 49 47 50 42 44 52 59 45 53 53 53 46 55 54 46 48 38 47 46 46 49 48 46 49 48 48 50 51 42 48 48 55 55 54 49 51 48 51 53 54 53 54 55 52 52 50 53 60 43 51 47 53 40 49 41 43 57 40 50 53 51 48 48 54 49 48 44 46 55 49 54 51 49 43 50 56 48 52 50 44

_____________ + ____________ = 2/50 or .04 chi2 value 50 50 Let’s look at the first toss result – 49 heads (therefore 51 tails). We can use Chi2 to test the hypothesis. (49-50)2 (51-50)2 _____________ + ____________ = 2/50 or .04 chi2 value 50 50   49 42 50 47 51 46 40 43 55 55   46 44 56 52 45 50 48 53 57 50 49 47 50 42 44 52 59 45 53 53

(49-50)2 (51-50)2 ____________ + ____________ = 2/50 or .04 chi2 value 50 50   Using 1 degree of freedom (always the number of groups, here heads & tails, minus one), the data supports the hypothesis. In fact, a difference of 1 is so common, we expect it more than 75% of the time.

Lets verify that within the data set.   Lets verify that within the data set. Of our 100 trials, 91 were off by 1 or more – a very common outcome. We should expect this slight deviation; it’s common. Therefore this data supports the hypothesis. 49 42 50 47 51 46 40 43 55 55   46 44 56 52 45 50 48 53 57 50 49 47 50 42 44 52 59 45 53 53 53 46 55 54 46 48 38 47 46 46 49 48 46 49 48 48 50 51 42 48 48 55 55 54 49 51 48 51 53 54 53 54 55 52 52 50 53 60 43 51 47 53 40 49 41 43 57 40 50 53 51 48 48 54 49 48 44 46 55 49 54 51 49 43 50 56 48 52 50 44

What about trial 27? (59 heads) The chi2 on this data:   (59 – 50)2 (41-50)2 _____________ + _______________ = 162/50 = 3.24 chi2 50 50 49 42 50 47 51 46 40 43 55 55   46 44 56 52 45 50 48 53 57 50 49 47 50 42 44 52 59 45 53 53

What about trial 27? (59 heads) The chi2 on this data:   (59 – 50)2 (41-50)2 _____________ + _______________ = 162/50 = 3.24 chi2 50 50

In our data, this difference shows up 7 times in 100 trials – 7%. This result also supports the hypothesis, although this outcome is expected to occur only 5-10% of the time. In other words, a difference of this size between our data and the hypothesis, is expected, but less frequently 49 42 50 47 51 46 40 43 55 55   46 44 56 52 45 50 48 53 57 50 49 47 50 42 44 52 59 45 53 53 53 46 55 54 46 48 38 47 46 46 49 48 46 49 48 48 50 51 42 48 48 55 55 54 49 51 48 51 53 54 53 54 55 52 52 50 53 60 43 51 47 53 40 49 41 43 57 40 50 53 51 48 48 54 49 48 44 46 55 49 54 51 49 43 50 56 48 52 50 44 In our data, this difference shows up 7 times in 100 trials – 7%.

  What about a trial where the coin lands heads only 35 times? (35 – 50)2 (65-50)2 __________ + _________= 450/50 = 9.0 chi2 50 50 We have no instances of that in our set of 100 – it’s a rare event. And the chi2 value agrees with that - a difference of 15 is so rare, that if we were getting that result, we would have to question if all the coins were in fact heads on one side and tails on the other. This data would force us to reject our original (null) hypothesis.