SlideShare a Scribd company logo
Using Chi-Square
Both chi-square tests are calculated the same ways and provide the
same information, but answer two very different questions…
Chi-square test for homogeneity tests whether the distribution of a
categorical variable is the same for each of several populations or
treatments.
Chi-square test for association/independence tests whether two
categorical variables are associated in some population of interest.
It is common to see questions asking about association that require a
test for homogeneity and questions asking about differences between
proportions of variables when a test for association is required.
Using Chi-Square
Instead of paying attention to how the question is asked…. look at
how the data is produced
If the data came from two or more independent random samples or
treatment groups in a randomized experiment – do a chi-square test for
homogeneity
If the data came from a single random samples, with the individuals
classified according to two categorical variables – do a chi-square test
for association/independence
Using Chi-Square
Are men and women equally likely to suffer lingering fear from
watching scary movies as children? Researchers asked a random
sample of 117 college students to write narrative accounts of their
exposure to scary movies before the age of 13. More than one-fourth
of the students said that some of the fright symptoms are still present
when they are awake.
Fright
Symptoms
Male Female Total
Yes 7 29 36
No 31 50 81
Total 35 79 117
Expected Counts are printed below
observed counts & chi-square
contributions are below expected counts
MALE FEMALE Total
Yes
7
11.69
1.883
29
24.31
0.906
36
No
31
26.31
0.837
50
54.69
0.403
81
Total 38 79 117
Chi-Sq = 4.028, DF = 1, P-value = 0.045
Using Chi-Square
Explain why a chi-square test for association/independence and not a
chi-square test for homogeneity should be used.
Fright
Symptoms
Male Female Total
Yes 7 29 36
No 31 50 81
Total 35 79 117
Expected Counts are printed below
observed counts & chi-square
contributions are below expected counts
MALE FEMALE Total
Yes
7
11.69
1.883
29
24.31
0.906
36
No
31
26.31
0.837
50
54.69
0.403
81
Total 38 79 117
Chi-Sq = 4.028, DF = 1, P-value = 0.045
Using Chi-Square
Researchers decided to use the null hypothesis
H0: gender and ongoing fright symptoms are independent in the
population of interest.
State the correct alternative hypothesis.
Fright
Symptoms
Male Female Total
Yes 7 29 36
No 31 50 81
Total 35 79 117
Expected Counts are printed below
observed counts & chi-square
contributions are below expected counts
MALE FEMALE Total
Yes
7
11.69
1.883
29
24.31
0.906
36
No
31
26.31
0.837
50
54.69
0.403
81
Total 38 79 117
Chi-Sq = 4.028, DF = 1, P-value = 0.045
Using Chi-Square
Interpret the P-value in context. What conclusion would you draw at a
α = 0.01
Fright
Symptoms
Male Female Total
Yes 7 29 36
No 31 50 81
Total 35 79 117
Expected Counts are printed below
observed counts & chi-square
contributions are below expected counts
MALE FEMALE Total
Yes
7
11.69
1.883
29
24.31
0.906
36
No
31
26.31
0.837
50
54.69
0.403
81
Total 38 79 117
Chi-Sq = 4.028, DF = 1, P-value = 0.045
Using Chi-Square
We can turn quantitative variable in a categorical variable by grouping
intervals of values (quantities) together
(think about histograms)
Tax income brackets
Income City 1 City 2
Under $10,000 70 62
$10,000 to $19,999 52 63
$20,000 to $24,999 69 50
$25,000 to $34,999 22 19
$35,000 or more 28 24
Using Chi-Square
Large Sample Size condition
Observed
Counts:
Expected
Counts:
Pg. 721
Living Arrangements 19 20 21 22 Totals
Parents’ Home 324 378 337 318 1357
Another Person’s Home 37 47 40 38 162
Your Own Place 116 279 372 487 1254
Group Quarters 58 60 49 25 192
Other 5 2 3 9 19
Total 540 766 801 877 2984
Living Arrangements 19 20 21 22 Totals
Parents’ Home 245.57 348.35 364.26 398.82 1357
Another Person’s Home 29.32 41.59 43.49 47.61 162
Your Own Place 226.93 321.90 336.61 368.55 1254
Group Quarters 34.75 49.29 54.51 56.43 192
Other 3.44 4.88 5.10 5.58 19
Total 540 766 801 877 2984

More Related Content

PPT
Percentages
DOCX
501 assignment1
PPT
Ratio And Proportion
PPTX
Multiple Comparison_Applied Statistics, Data Science
PPTX
Unit 3 ratio, proportion, profit and loss
PPT
Proportions
PPTX
7 1 7-2 ratios and proportions
PPT
Unit 5
Percentages
501 assignment1
Ratio And Proportion
Multiple Comparison_Applied Statistics, Data Science
Unit 3 ratio, proportion, profit and loss
Proportions
7 1 7-2 ratios and proportions
Unit 5

What's hot (17)

PPTX
Fractions
PPTX
Common measures of association in medical research handout
PPT
Ratios And Proportions
PPT
Ratio, Probability, Proportion, Percent Jeopardy Review
PPT
Chapter03
PPTX
Skill25 algebraic fractions
PPTX
Calculating the mean, median and mode
PPTX
PPT
Mean, median, and mode
PPT
Ratio, Rates And Proprotion
PPT
Proportion
PPTX
Ratio and proportion
PPT
Percentages
PDF
prealgebra4
PPT
Dosage Calculation Using Ratio And Propo
PPTX
Ratio and proportion
PPT
Solving equations
Fractions
Common measures of association in medical research handout
Ratios And Proportions
Ratio, Probability, Proportion, Percent Jeopardy Review
Chapter03
Skill25 algebraic fractions
Calculating the mean, median and mode
Mean, median, and mode
Ratio, Rates And Proprotion
Proportion
Ratio and proportion
Percentages
prealgebra4
Dosage Calculation Using Ratio And Propo
Ratio and proportion
Solving equations
Ad

Viewers also liked (6)

DOCX
Chi sq explanation
PPT
Ch. 24 2 Sample T Tests
PPT
Independent sample t test
PPT
02a one sample_t-test
PPT
Basics of Process Capability
PPSX
Cost volume profit analysis
Chi sq explanation
Ch. 24 2 Sample T Tests
Independent sample t test
02a one sample_t-test
Basics of Process Capability
Cost volume profit analysis
Ad

Similar to Using chi square wisely (20)

PDF
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
PDF
Quantitative Methods for Lawyers - Class #12 - Chi Square Distribution and Ch...
PPTX
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
PPTX
Chi square test final
PPT
Chi square mahmoud
PPT
chi square
PPTX
CHI-Square_Test.pptx
PPTX
Chi square test evidence based dentistry
PPT
Aron chpt 11 ed (2)
PPTX
Chi-Square Test assignment Stat ppt.pptx
PPT
Chi-square IMP.ppt
PDF
C6-CHI-SQUARE-OF-INDEPENDENCE.pdf
PPT
Top ranking colleges in india
PPTX
Busniess stats
PPTX
chi.pptx,chi.pptx,chi.pptx,chi.pptx.chi.pptx
PPTX
Chi square tests using SPSS
PPTX
Chi Square Tests CPC SGS Doctoral Degree
PPTX
Chi squared test
PPTX
Chi-square test.pptx
Quantitative Methods for Lawyers - Class #15 - Chi Square Distribution and Ch...
Quantitative Methods for Lawyers - Class #12 - Chi Square Distribution and Ch...
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
Chi square test final
Chi square mahmoud
chi square
CHI-Square_Test.pptx
Chi square test evidence based dentistry
Aron chpt 11 ed (2)
Chi-Square Test assignment Stat ppt.pptx
Chi-square IMP.ppt
C6-CHI-SQUARE-OF-INDEPENDENCE.pdf
Top ranking colleges in india
Busniess stats
chi.pptx,chi.pptx,chi.pptx,chi.pptx.chi.pptx
Chi square tests using SPSS
Chi Square Tests CPC SGS Doctoral Degree
Chi squared test
Chi-square test.pptx

More from amylute (20)

PPTX
What are the odds notes
PPTX
Logarithmic transformations
PPTX
Transforming data for inference
PPTX
Inference in regression line test
PPTX
Regression inference confidence intervals
PPTX
Chi square test for homgeneity
PPTX
Relationships across distribution
PPTX
Chi square goodness of fit test
PPTX
Chi square distribution table c
PPTX
Ap statistics chp. 11
PPTX
Dividing polys
PPTX
Solving triangles pp slides
PPTX
Conditional prob & independence
PPTX
Two way tables & venn diagrams
PPTX
Probability models & basic rules
PPTX
Simulation
PPTX
Mthys of probability
PPTX
4.3 using studies wisely
PPTX
4.2 blocking
PPTX
4.2 placebos & double blind
What are the odds notes
Logarithmic transformations
Transforming data for inference
Inference in regression line test
Regression inference confidence intervals
Chi square test for homgeneity
Relationships across distribution
Chi square goodness of fit test
Chi square distribution table c
Ap statistics chp. 11
Dividing polys
Solving triangles pp slides
Conditional prob & independence
Two way tables & venn diagrams
Probability models & basic rules
Simulation
Mthys of probability
4.3 using studies wisely
4.2 blocking
4.2 placebos & double blind

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Cell Types and Its function , kingdom of life
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Institutional Correction lecture only . . .
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Lesson notes of climatology university.
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Sports Quiz easy sports quiz sports quiz
Pharma ospi slides which help in ospi learning
102 student loan defaulters named and shamed – Is someone you know on the list?
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Cell Types and Its function , kingdom of life
GDM (1) (1).pptx small presentation for students
Institutional Correction lecture only . . .
O5-L3 Freight Transport Ops (International) V1.pdf
Lesson notes of climatology university.
Abdominal Access Techniques with Prof. Dr. R K Mishra
O7-L3 Supply Chain Operations - ICLT Program
Anesthesia in Laparoscopic Surgery in India
Insiders guide to clinical Medicine.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Sports Quiz easy sports quiz sports quiz

Using chi square wisely

  • 1. Using Chi-Square Both chi-square tests are calculated the same ways and provide the same information, but answer two very different questions… Chi-square test for homogeneity tests whether the distribution of a categorical variable is the same for each of several populations or treatments. Chi-square test for association/independence tests whether two categorical variables are associated in some population of interest. It is common to see questions asking about association that require a test for homogeneity and questions asking about differences between proportions of variables when a test for association is required.
  • 2. Using Chi-Square Instead of paying attention to how the question is asked…. look at how the data is produced If the data came from two or more independent random samples or treatment groups in a randomized experiment – do a chi-square test for homogeneity If the data came from a single random samples, with the individuals classified according to two categorical variables – do a chi-square test for association/independence
  • 3. Using Chi-Square Are men and women equally likely to suffer lingering fear from watching scary movies as children? Researchers asked a random sample of 117 college students to write narrative accounts of their exposure to scary movies before the age of 13. More than one-fourth of the students said that some of the fright symptoms are still present when they are awake. Fright Symptoms Male Female Total Yes 7 29 36 No 31 50 81 Total 35 79 117 Expected Counts are printed below observed counts & chi-square contributions are below expected counts MALE FEMALE Total Yes 7 11.69 1.883 29 24.31 0.906 36 No 31 26.31 0.837 50 54.69 0.403 81 Total 38 79 117 Chi-Sq = 4.028, DF = 1, P-value = 0.045
  • 4. Using Chi-Square Explain why a chi-square test for association/independence and not a chi-square test for homogeneity should be used. Fright Symptoms Male Female Total Yes 7 29 36 No 31 50 81 Total 35 79 117 Expected Counts are printed below observed counts & chi-square contributions are below expected counts MALE FEMALE Total Yes 7 11.69 1.883 29 24.31 0.906 36 No 31 26.31 0.837 50 54.69 0.403 81 Total 38 79 117 Chi-Sq = 4.028, DF = 1, P-value = 0.045
  • 5. Using Chi-Square Researchers decided to use the null hypothesis H0: gender and ongoing fright symptoms are independent in the population of interest. State the correct alternative hypothesis. Fright Symptoms Male Female Total Yes 7 29 36 No 31 50 81 Total 35 79 117 Expected Counts are printed below observed counts & chi-square contributions are below expected counts MALE FEMALE Total Yes 7 11.69 1.883 29 24.31 0.906 36 No 31 26.31 0.837 50 54.69 0.403 81 Total 38 79 117 Chi-Sq = 4.028, DF = 1, P-value = 0.045
  • 6. Using Chi-Square Interpret the P-value in context. What conclusion would you draw at a α = 0.01 Fright Symptoms Male Female Total Yes 7 29 36 No 31 50 81 Total 35 79 117 Expected Counts are printed below observed counts & chi-square contributions are below expected counts MALE FEMALE Total Yes 7 11.69 1.883 29 24.31 0.906 36 No 31 26.31 0.837 50 54.69 0.403 81 Total 38 79 117 Chi-Sq = 4.028, DF = 1, P-value = 0.045
  • 7. Using Chi-Square We can turn quantitative variable in a categorical variable by grouping intervals of values (quantities) together (think about histograms) Tax income brackets Income City 1 City 2 Under $10,000 70 62 $10,000 to $19,999 52 63 $20,000 to $24,999 69 50 $25,000 to $34,999 22 19 $35,000 or more 28 24
  • 8. Using Chi-Square Large Sample Size condition Observed Counts: Expected Counts: Pg. 721 Living Arrangements 19 20 21 22 Totals Parents’ Home 324 378 337 318 1357 Another Person’s Home 37 47 40 38 162 Your Own Place 116 279 372 487 1254 Group Quarters 58 60 49 25 192 Other 5 2 3 9 19 Total 540 766 801 877 2984 Living Arrangements 19 20 21 22 Totals Parents’ Home 245.57 348.35 364.26 398.82 1357 Another Person’s Home 29.32 41.59 43.49 47.61 162 Your Own Place 226.93 321.90 336.61 368.55 1254 Group Quarters 34.75 49.29 54.51 56.43 192 Other 3.44 4.88 5.10 5.58 19 Total 540 766 801 877 2984