Skip to content
EvidenceHelixEvidenceLib · Scientific Encyclopedia
⌘ K

Scientific library

EvidenceLib encyclopediaAll articles A–Z2,100Open textbooks35Open-access articles1,010Cancer study catalog458How it is made

My workspace this browser

Saved pages0Notes & annotations0

Recently viewed

Explore by field

Cancer and Oncology182Genetics and Genomics170Neuroscience185Cardiovascular Medicine180Immunology162Pharmacology174Molecular Biology161Infectious Diseases150Rare and Inherited Diseases181Clinical Research173Anatomy and Physiology617Drugs and Chemicals621Psychiatry and Psychology75Public Health and Nutrition64Diagnostics and Medical Technology15
Plans & pricingCompare EvidenceHelix workspace plans
Library›Open textbooks›Statistics›Lab 2: Chi-Square Test of Independence

Continue where you left off ()

Explore more with EvidenceHelix Workspace

Compare studies, analyze evidence and create research reports with premium tools.

Explore Researcher plans

Statistics · The Chi-Square Distribution

Lab 2: Chi-Square Test of Independence

CC BY 4.0 · OpenStax · approximately 1 min read

Learning objectives

Lab 2: Chi-Square Test of Independence

    Student Learning Outcome

  • The student will evaluate if there is a significant relationship between favorite type of snack and gender.

    Collect the Data

  1. Using your class as a sample, complete the following chart. Ask one another what your favorite snack is, then total the results.

    Note

    You may need to combine two food categories so that each cell has an expected value of at least five.
    Favorite Type of Snack
    Sweets (candy & baked goods) Ice Cream Chips & Pretzels Fruits & Vegetables Total
    Male
    Female
    Total
  2. Looking at id89871qw3984l8, does it appear to you that there is a dependence between gender and favorite type of snack food? Why or why not?

Hypothesis Test

Conduct a hypothesis test to determine if the factors are independent:

  1. H0: ________
  2. Ha: ________
  3. What distribution should you use for a hypothesis test?
  4. Why did you choose this distribution?
  5. Calculate the test statistic.
  6. Find the p value.
  7. Sketch a graph of the situation. Label and scale the x axis. Shade the area corresponding to the p value.

    View original figure (external; image not reproduced in this text edition)

    Original figure description: Blank graph with vertical and horizontal axes.

  8. State your decision.
  9. State your conclusion in a complete sentence.

    Discussion Questions

  1. Is the conclusion of your study the same as or different from your answer to answer to Question 2 under Collect the Data?
  2. Why do you think that occurred?
← Lab 1: Chi-Square Goodness-of-FitIntroduction →

Attribution. Statistics, OpenStax, Rice University, and the contributing authors credited in the book. Licensed under Creative Commons Attribution 4.0 International. Source revision 7dea80ae28 of openstax/osbooks-statistics (2026-04-23). CC BY 4.0. Original source ↗. Text edition of a pinned CC BY 4.0 source revision of the OpenStax book, converted from CNXML by the EvidenceHelix importer. Original prose, learning objectives, tables, exercises, glossary and captions are preserved; images are not copied (figures link to the original source and keep their credits). No new content was added. Later revisions of this book can carry different licence terms and are not used.

In this chapter Contents

  • Introduction
  • Facts About the Chi-Square Distribution
  • Goodness-of-Fit Test
  • Test of Independence
  • Test for Homogeneity
  • Comparison of the Chi-Square Tests
  • Test of a Single Variance
  • Lab 1: Chi-Square Goodness-of-Fit
  • Lab 2: Chi-Square Test of Independence

Source

OpenStax source file ↗

Illustrated original ↗

EvidenceLib is a research-education resource, not medical advice. It does not diagnose, prescribe or recommend starting, stopping or changing any treatment. Talk to a qualified clinician about your own situation. Methods, sources and licences · Rights and removal requests · Legal · Support