ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

CHI-SQUARE(X2) DISTRIBUTION
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.
© 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.
CJ 526 Statistical Analysis in Criminal Justice
Cross-Tabulations.
IB Math Studies – Topic 6 Statistics.
Presentation 12 Chi-Square test.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
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.
CJ 526 Statistical Analysis in Criminal Justice
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Two Variable Statistics
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Other Chi-Square Tests
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Copyright © 2010 Pearson Education, Inc. Slide
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Chap 11-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 11 Chi-Square Tests Business Statistics: A First Course 6 th Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
Reasoning in Psychology Using Statistics Psychology
Chi Squared Test for Independence. Hypothesis Testing Null Hypothesis, – States that there is no significant difference between two (population) parameters.
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.
1 Math 10 M Geraghty Part 8 Chi-square and ANOVA tests © Maurice Geraghty 2015.
Two Variable Statistics Limitations of the χ 2 Test.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
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.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese and.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
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.
Comparing Counts Chi Square Tests Independence.
Other Chi-Square Tests
Test of independence: Contingency Table
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chi-Square hypothesis testing
Chi-square test or c2 test
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 11 Chi-Square Tests.
Chapter 12 Tests with Qualitative Data
Qualitative data – tests of association
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Is a persons’ size related to if they were bullied
Consider this table: The Χ2 Test of Independence
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
The 2 (chi-squared) test for independence
CHI SQUARE TEST OF INDEPENDENCE
11E The Chi-Square Test of Independence
Chapter 26 Comparing Counts.
Inference for Two Way Tables
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
Presentation transcript:

ContentFurther guidance

 Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample, performing a specific mathematical test, and then deciding whether or not the conjecture is true.  A conjecture must be stated in two parts: › The null hypothesis (H 0 ) – states that there is no significant difference between the two parameters being tested (they are “not related to” each other, i.e. independent) › The alternative hypothesis (H 1 ) states that this is a significant difference. (they are “related” in some way, i.e dependent)  The only hypothesis test covered by the Studies SL course is the Chi Squared test.

 The Chi-square test itself is quite straight forward, your GDC can do it in two steps but you also must know the formula and be able to do it by hand  The hypothesis test which uses Chi-square determines whether or not two variables are related. It follows a general pattern: (1) Make a conjecture (2) Write the null hypothesis using “is not related to, or “independent”; and write the alternative hypothesis using is related to or “dependent” (3) Calculate the chi-square test (4) Determine reference values (5) Compare the two and either accept or reject the null hypothesis

 You can find chi-squared on your GDC by using the statistics mode  Press Menu 6: Statistics  Press 7: Stat Tests  Select 8: x 2 2-way Test  Enter the name of the observed matrix  Note : You must have entered the data in to Matrix mode first and name the matrix!!

The table shows the results of a sample of 400 randomly selected adults classified according to gender and regular exercise. The observed table, called 2 by 2 contingency table, is given as: Regular exercise No regular exercise sum Male Female sum The test is used when we deal with two categorical variables and we wish to determine whether the variables are dependent, for example females may tend to exercise more regularly, or independent, where there is no evidence that the gender of person has an effect on whether they exercise regularly.

Enter the observed table as a matrix and save as a. Then use the chi squared test. After you enter the results will show.

How can we obtain the expected frequency table by hand?

For each cell, we multiply the row sum by the column sum and divide by the total. Regular exercise No regular exercise sum Male Female sum Regular exercise No regular exercise sum Male 216 x 208 / Female 184 x 192 / sum row sum total column sum

Regular exercise No regular exercise sum Male Female sum How do we calculate the chi squared? The chi squared test examines the difference between the observed values we obtained from the original sample, and the expected values we have calculated. This value will be obtained from your GDC. In this case x 2 =0.217

The critical value of chi squared depends on the significance level and degrees of freedom (size of the table). For a contingency table which has r rows and c columns, degrees of freedom df are:

Regular exercise No regular exercise sum Male Female sum

As is less than we accept the null hypothesis and conclude that gender and regular exercise are independent.

Use critical chi squared value of 7.815

BLACKWHITEREDBLUETotal Male Female Total

BLACKWHITEREDBLUETotal Male 130 Female 130 Total [48.,29.,27.5,25.5]

As 6.13 is less than we accept the null hypothesis. Conclusion: The favourite colour is independent of gender. Calculate degrees of freedom: Number of rows r = 2 Number of column c = 4 df=(2-1)(4-1)= 3

Hand calculations of We use the formula, as given in your formula booklet:

Total Hand calculations of chi squared. We need to construct the table:

 From what Lauren observed, she believes that the number of hours exercised per week is dependent on gender. She collected data randomly and organised the results in the table shown.  Determine whether there is enough evidence to accept or reject the null hypothesis: › a) for α=0.01 › b) for α=0.05 › c) for α=0.10 Hours exercised per week Male51012 Female984

 Write the null and alternative hypotheses › H 0 – The number of hours exercised each week independent on gender › H 1 – The number of hours exercised each week is dependent on gender  Calculate chi-square and the p- value X 2 Test X 2 = 4.69 (3sf) p = (3sf) df = 2 Hours exercised per week Male51012 Female984 Compare p-value to each signficance level a)0.09>0.01, hence accept null hypothesis b)0.09>0.05, hence accept null hypothesis c)0.09<0.10, hence we reject the null hypothesis Whilst it is not technically correct to say “accept H 0 ” it is still accepted in the IB.

 This formula is on the IB formula sheet › f o is the observed frequencies (i.e the raw data) › f e is the expected frequencies  It is easiest to perform this sum calculation using a table one step at a time.

 If you are comparing p-value with α-level then if: › p > α  accept the null hypothesis › p < α  reject the null hypothesis  If you are comparing X 2 with CV then if: › X 2 < CV  accept the null hypothesis › X 2 > CV  reject the null hypothesis