Method
- requirements to be reasonable
- a simple random sample from the population / randomized experiment
- a sample size large enough for the approximation to be reasonable
-
- null hypothesis that the true proportions for the c levels of a categorical variable are equal to hypothesized values
for one-way tables
- observations are classified according to only one categorical variable
- each count belongs to only one cell
Test Statistic
-
- observed and expected represent counts with the specific category
- the test statistic will have (approx) a distribution if the null hypothesis is true
- test using the right-tailed p-value in the distribution with the value we got
- large values of give evidence against the null
- degrees of freedom are number of cells
- each cell is one part of the proportion
- 2 cells, 100% divided into n groups n cells
for two-way tables
- observations are classified according to two categorical variables
- we wish to test the null hypothesis that there is no association between row and column variables
- hypothesis could be
- single sample
- : row and column variables are independent
- multiple samples
- : the distribution of the response variable is the same for all of the populations
Test Statistic
- expected count =
- degrees of freedom: