1 / 16

Hypothesis testing Part 2: Categorical variables

Hypothesis testing Part 2: Categorical variables. Intermediate Training in Quantitative Analysis Bangkok 19-23 November 2007. Topics to be covered in this presentation. Pearson’s chi square. Learning objectives. By the end of this session, the participant should be able to:

tirza
Télécharger la présentation

Hypothesis testing Part 2: Categorical variables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Hypothesis testingPart 2: Categorical variables Intermediate Training in Quantitative Analysis Bangkok 19-23 November 2007

  2. Topics to be covered in this presentation • Pearson’s chi square

  3. Learning objectives By the end of this session, the participant should be able to: • Conduct chi square

  4. Hypothesis testing for categorical variables… We sometimes want to determine… Whether the proportion of people with some particular outcome differ by another variable Ex. Does the proportion of food insecure households differ in male and female headed households??

  5. What if we we want to test whether there is a relationship between two categorical variables? Pearson Chi-Square

  6. Pearson’s chi-square test • Pearson’s chi-squared test (X²) is an omnibus test that is used to test the hypothesis that the row and the column variables of a contingency table are independent • It’s a comparison of the frequencies you observe in certain categories to the frequency you might expect to get in those categories by chance.

  7. Assumptions of the chi-square test Two assumptions: • For the test to be meaningful it is imperative that each unit contributes to only one cell of the contingency table. • The expected frequencies should be greater than 5 in each cell (or the test may fail to detect a genuine effect)

  8. Chi square formula…

  9. Chi square example

  10. Chi Square example… • X2= [(2086-2144.6)2/2144.6] + [(587-528.4)2/528.4] + [(2204-2145.4)2/2145.4] + [(470-528.6)2/528.6] • X2= 1.60 + 6.50 + 1.60 + 6.50 • X2= 16.2 (then check x2 distribution…)

  11. Chi Square example… • If we do it by spss, we get the same answer

  12. To calculate chi-squares in SPSS In SPSS, chi-square tests are run using the following steps: • Click on “Analyze” drop down menu • Click on “Descriptive Statistics” • Click on “Crosstabs…” • Move the variables into proper boxes • Click on “Statistics…” • Check box beside “Chi-square” • Click “Continue” • Click “OK”

  13. Reading the Chi-square test • However, it is difficult to get an idea about the strength of that relationship

  14. Important Note: • If you compare two categorical variables and at least one has multiple categories, you can determine which categories are different from one another by running a Z-test under “Custom Tables” • This is rather complicated so we will not discuss in detail

  15. Now…..exercise!!!!

More Related