Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.

Slides:



Advertisements
Similar presentations
For small degrees of freedom, the curve displays right-skewness.
Advertisements

Statistical Inference for Frequency Data Chapter 16.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
IB Math Studies – Topic 6 Statistics.
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.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Two Variable Statistics
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005 Dr. John Lipp Copyright © Dr. John Lipp.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Chi Square Classifying yourself as studious or not. YesNoTotal Are they significantly different? YesNoTotal Read ahead Yes.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
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.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Two Variable Statistics Limitations of the χ 2 Test.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Statistics 300: Elementary Statistics Section 11-3.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Chi-Square Chapter 14. Chi Square Introduction A population can be divided according to gender, age group, type of personality, marital status, religion,
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Chi-square Test of Independence. The chi-square test of independence is probably the most frequently used hypothesis test in the social sciences. In this.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Test of Independence Tests the claim that the two variables related. For example: each sample (incident) was classified by the type of crime and the victim.
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
The  2 (chi-squared) test for independence. One way of finding out is to perform a  2 (chi-squared) test for independence. We might want to find out.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Basic Statistics The Chi Square Test of Independence.
Chi-Square hypothesis testing
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Consider this table: The Χ2 Test of Independence
Contingency Tables: Independence and Homogeneity
The 2 (chi-squared) test for independence
11E The Chi-Square Test of Independence
Presentation transcript:

Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and Mark Bruce Haese and Haese Publications, 2004 AND Mathematical Studies Standard Level Peter Blythe, Jim Fensom, Jane Forrest and Paula Waldman de Tokman Oxford University Press, 2012

Consider this table: How many people are in the sample? – How many males? – How many females? This is called a 2 x 2 contingency table. The Chi-Squared (Χ 2 ) Test

Gender vs. Regular Exercise Does a person’s gender influence their exercise?

Gender vs. Regular Exercise The variables may be dependent: – Females may be more likely to exercise regularly than males. The variables may be independent: – Gender has no effect on whether they exercise regularly. A chi-squared test is used to determine whether two variables from the same sample are independent. Notice: we are not testing if they are related only their independence

Example: Suppose you collect data on the favorite t-shirt color for men and women. You want to find out if shirt color and gender are independent or not. Perform a X 2 test. In order to perform this test there are four main steps.

Example: H o states that the data sets are independent. H 1 states that the data sets are not independent. Step 1: Write the null (H o ) and alternative (H 1 ) hypotheses. H o : _______ is independent of _______. H 1 : _______ is not independent of _______. Write them using this form: Thus: H o : Color of t-shirts is independent of gender. H 1 : Color of t-shirts is not independent of gender.

Example: First: put the data into a contingency table that shows the frequency of the two variables. – the elements in the table are the observed data. – it is good to include an extra row and column for the ‘totals.’ Step 2: Calculate the chi-squared (X 2 ) statistic. BlackWhiteRedBlueTotals Male Female Totals This is a 2 x 4 matrix formed only from the main entries (not the totals)

Example: Second: from the observed data, you need to calculate the expected frequencies and place these into an expected values table. Step 2: Calculate the chi-squared (X 2 ) statistic. Column 1Column 2Totals Row 1Sum Row 1 Row 2Sum Row 2 Sum Column 1Sum Column 2Total BlackWhiteRedBlueTotals Male Female Totals Note: The expected values can never be less than 1. The expected values must be 5 or higher. If the entries are between 1 and 5, combine table rows or columns.

Example: Third: To calculate out the X 2 value use the following formula: Step 2: Calculate the chi-squared (X 2 ) statistic … = 33.8 You will not need to do this calculation out by hand on exams - GDC!

Example: The critical value can be determined from the level of significance and degrees of freedom. The most common levels of significance are 1%, 5% and 10%. The Degrees of Freedom = (#Rows – 1) x (#Columns – 1) Step 3: Calculate the critical value On exams the critical value will be given!

Example: If the X 2 calc < Critical Value then do not reject the null hypothesis. If the X 2 calc > Critical Value then reject the null hypothesis. Step 4: Compare the X 2 calc with the critical value In our example the critical value at the 5% level is Since 33.8 > we reject the null hypothesis that t-shirt color and gender are independent of each other. Therefore, with 95% certainty gender and t-shirt color are dependent on each other.

Example: Set up significance level as a decimal. 1% = 0.01, 5% = 0.05, 10% = 0.10, etc. If p-value < decimal value then reject null hypothesis. Step 4: OR compare the p value with the significance level

How to do it: 1)Write the null hypothesis (H 0 ) and the alternate hypothesis (H 1 ). 2)Calculate X 2 calc : a)Using your GDC (in examinations) b)Using the formula (in project work) 3)Determine : a)The p-value by using your GDC b)The critical value (given in examinations) 4)Compare : a)The p-value against the significance level b) X 2 calc against the critical value

Practice: a)State the null hypothesis and the alternative hypothesis. b)Show that the expected frequency for female and strawberry flavor is approximately c)Write down the number of degrees of freedom. d)Write down the X 2 calc value for this data. The critical value is e)Using the critical value or the p-value, comment on your results. One hundred people were interviewed to find out which flavor ice cream the preferred. The results are given in the table, classified by gender. StwbryCoffeeOrangeVanillaTotals Male Female Totals Perform a chi-squared test at 5% significance level to determine whether the flavor of ice cream is independent of gender.

Practice: a)State the null hypothesis and the alternative hypothesis. b)Show that the expected frequency for female and billiards is approximately c)Write down the number of degrees of freedom. d)Write down the X 2 calc value for this data. The critical value is e)Using the critical value or the p-value, comment on your results. Members of a club are required to register for one of three games: billiards, snooker or darts. The number of each club members of each gender choosing each game is recorded. Perform a chi-squared test at 10% significance level to determine if the game chosen is independent of gender. BilliardsSnookerDarts Male39168 Female211417