1 / 10

Hypothesis Testing with Categorical Variables

Hypothesis Testing with Categorical Variables. 5th - 9th December 2011, Rome. A hypothesis. Is the prevalence within each food consumption group significantly different between male-headed and female-headed households? Both variables are categorical… How can we test this hypothesis?.

Download Presentation

Hypothesis Testing with 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 Testing with Categorical Variables 5th - 9th December 2011, Rome

  2. A hypothesis • Is the prevalence within each food consumption group significantly different between male-headed and female-headed households? • Both variables are categorical… • How can we test this hypothesis?

  3. Pearson’s chi-square test • Pearson’s chi-square test is used to evaluate if the observed values in the rows and columns of a table differ from the expected values

  4. Limitations • While Pearson’s chi-square test will tell you if there is a significant difference, it cannot test the strength or direction of the difference • For this reason, we often recode one of the categorical variables into a continuous variable and use a different test

  5. Recoding • To use an ANOVA or a t-test, we need one of the variables to be continuous • This is simply done by recoding a dichotomous variable to a value of 0 or 1

  6. Returning to our example… • Is the prevalence within each food consumption group significantly different between male-headed and female-headed households? • Food consumption groups have a value of: • Poor food consumption • Borderline food consumption • Acceptable food consumption • Sex of household have a value of: • Males • Females Recode each food consumption group into a bivariate: 0 = no; 1 = yes Run an ANOVA to test the hypothesis

  7. ANOVA output for poor food consumption and sex of household head What can we say about our hypothesis?

  8. ANOVA output for borderline food consumption and sex of household head What can we say about our hypothesis?

  9. ANOVA output for acceptable food consumption and sex of household head What can we say about our hypothesis?

  10. Your turn • Propose a hypothesis to test that uses data from 2 categorical variables • State your hypothesis • How will you recode the variable to answer your hypothesis?

More Related