Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo

11.1 Facts About the Chi-Square Distribution

χ2 = (Z1)2 + (Z2)2 + … (Zdf)2 chi-square distribution random variable

μχ2 = df chi-square distribution population mean

σ χ 2 = 2( df ) σ χ 2 = 2( df ) Chi-Square distribution population standard deviation

11.2 Test of a Single Variance

χ 2 = χ 2 = (n1) s 2 σ 0 2 (n1) s 2 σ 0 2 Test of a single variance statistic where:
n: sample size
s: sample standard deviation
σ0σ0: hypothesized value of the population standard deviation

df = n – 1 Degrees of freedom

Test of a Single Variance
  • Use the test to determine variation.
  • The degrees of freedom is the number of samples – 1.
  • The test statistic is (n1) s 2 σ 0 2 (n1) s 2 σ 0 2 , where n = sample size, s2 = sample variance, and σ2 = population variance.
  • The test may be left-, right-, or two-tailed.

11.3 Goodness-of-Fit Test

k (OE) 2 E k (OE) 2 E goodness-of-fit test statistic where:

O: observed values
E: expected values

k: number of different data cells or categories

df = k − 1 degrees of freedom

11.4 Test of Independence

Test of Independence
  • The number of degrees of freedom is equal to (number of columns - 1)(number of rows - 1).
  • The test statistic is ij (OE) 2 E ij (OE) 2 E where O = observed values, E = expected values, i = the number of rows in the table, and j = the number of columns in the table.
  • If the null hypothesis is true, the expected number E = (row total)(column total) total surveyed E= (row total)(column total) total surveyed .

11.5 Test for Homogeneity

ij (OE) 2 E ij (OE) 2 E Homogeneity test statistic where: O = observed values
E = expected values
i = number of rows in data contingency table
j = number of columns in data contingency table

df = (i −1)(j −1) Degrees of freedom


This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at
Citation information

© Dec 6, 2023 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.