Statistical Analysis Chi-Square.

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 Example A researcher wants to determine if there is a relationship between gender and the type of training received. The gender question is.
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.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
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 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Phi Coefficient Example A researcher wishes to determine if a significant relationship exists between the gender of the worker and if they experience pain.
Two Variable Statistics
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chi square analysis Just when you thought statistics was over!!
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
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.
Reasoning in Psychology Using Statistics Psychology
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Chi Square Test for Goodness of Fit Determining if our sample fits the way it should be.
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.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
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 Square Chi square is employed to test the difference between an actual sample and another hypothetical or previously established distribution such.
The Chi-square Statistic
Chi-square test.
Test of independence: Contingency Table
Chi-Square hypothesis testing
Chapter 9: Non-parametric Tests
Presentation 12 Chi-Square test.
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chi Square Review.
The Chi Squared Test.
Qualitative data – tests of association
Chi Square SBI3UP.
Bivariate Testing (Chi Square)
The Chi-Square Distribution and Test for Independence
Is a persons’ size related to if they were bullied
Chi square.
Consider this table: The Χ2 Test of Independence
Are you planning on doing a project in Math 124
Reasoning in Psychology Using Statistics
Two Categorical Variables: The Chi-Square Test
Chapter 10 Analyzing the Association Between Categorical Variables
Overview and Chi-Square
Inferential Stat Week 13.
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
CHI SQUARE TEST OF INDEPENDENCE
Analyzing the Association Between Categorical Variables
Chi2 (A.K.A X2).
Chapter 26 Comparing Counts.
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.
Inference for Two Way Tables
Looks at differences in frequencies between groups
Genetic Statistics.
Chapter Outline Goodness of Fit test Test of Independence.
Chi square.
CLASS 6 CLASS 7 Tutorial 2 (EXCEL version)
Chi-Square Test A fundamental problem in Science is determining whether the experiment data fits the results expected. How can you tell if an observed.
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
What is Chi-Square and its used in Hypothesis? Kinza malik 1.
Presentation transcript:

Statistical Analysis Chi-Square

Data either “supports” or “rejects” the null hypothesis. Null Hypothesis: refers to a general statement or default position that there is no relationship between two measured variables. Example: Plants have been growing in light and dark environments, and the growth has been measured. Null Hypothesis: The plant growth measured in light and dark environments will be the same. Data either “supports” or “rejects” the null hypothesis.

Chi-Square Frequencies Chi Square = (observed-expected)2 expected Σ

Frequency Distributions One important set of statistical tests allows us to test for deviations of observed frequencies from expected frequencies. To introduce these tests, we will start with a simple, non-biological example. We want to determine if a coin is fair. In other words, are the odds of flipping the coin heads-up the same as tails-up. We collect data by flipping the coin 200 times. The coin landed heads-up 108 times and tails-up 92 times. At first glance, we might suspect that the coin is biased because heads resulted more often than tails. However, we have a more quantitative way to analyze our results, a chi-squared test. To perform a chi-square test (or any other statistical test), we first must establish our null hypothesis. In this example, our null hypothesis is that the coin should be equally likely to land head-up or tails-up every time. The null hypothesis allows us to state expected frequencies. For 200 tosses, we would expect 100 heads and 100 tails. The next step is to prepare a table as follows.

Observed Expected (o-e)^2/e Heads 108 100 Tails 92 Total 200

The Observed values are those we gather ourselves The Observed values are those we gather ourselves. The expected values are the frequencies expected, based on our null hypothesis. We total the rows and columns as indicated. It's a good idea to make sure that the row totals equal the column totals (both total to 400 in this example). Using probability theory, statisticians have devised a way to determine if a frequency distribution differs from the expected distribution. To use this chi-square test, we first have to calculate chi-squared. Chi-squared =The sum of (observed-expected)2/(expected) We have two classes to consider in this example, heads and tails. Chi-squared = (108-100)2/100 + (92-100)2/100= (8)2/100 + (-8)2/100 = 0.64 + 0.64 = 1.28 Now we have to consult a table of critical values of the chi-squared distribution.

Degrees of Freedom (df): n – 1 n = number of options Heads or Tails is equal to two options so df= 2-1=1 Refer to the table

p value : p(0.05)=3.84 p value: p(0.01)= 6.63 (significance level within 5%) p value: p(0.01)= 6.63 (significance level within 1%) If the number we calculate is greater than the value, we reject the null hypothesis. If the number we calculate is less than the value, we support the null hypothesis.

Example Is gender independent of education level? A random sample of 395 people were surveyed and each person was asked to report the highest education level they obtained. The data that resulted from the survey is summarized in the following table:   High School  Bachelors Masters Ph.d. Total Female 60 54 46 41 201 Male 40 44 53 57 194 100 98 99 395

Question: Are gender and education level dependent at 5% level of significance?  In other words, given the data collected above, is there a relationship between the gender of an individual and the level of education that they have obtained? Here's the table of expected counts:   High School  Bachelors Masters Ph.d. Total Female 50.886 49.868 50.377 201 Male 49.114 48.132 48.623 194 100 98 99 395

χ2=(60−50.886)2/50.886+⋯+(57−48.132)2/48.132=