the chi-squared test of a single proportion is the square of the z-test
2 choices
Binomial Distribution
If the are sufficiently large for each population, we construct independent test statistics
By CLT:
Reject if (fix, 130,131)
When is not given (testing only if they are not the same), we need to estimate it first
observations from independent trials of size
|
successes |
failures |
sample 1 |
|
|
sample 2 |
|
|
|
|
|
sample |
|
|
Let be the observed frequency in the th row and th column |
|
|
Under the hypothesis that , the expected cell frequencies 's are given by |
|
|
when is given or specified, under
when is not given, to compute 's, then under
With more than 2 choices
If instead of success and failure we have multiple choices, a Multinomial Distribution instead
|
choice 1 |
choice 2 |
choice 3 |
sample 1 |
|
|
|
sample 2 |
|
|
|
|
|
|
|
sample |
|
|
|
- (row total)
- (column total)
Not testing the rows
(last term not estimated)
all 's are equal, all 's are equal, ...
not all 's are equal or not all 's are equal or ...
Under the , where 's are not specified: (the last column has no freedom)
Reject if
Testing rows
,
For each population
Testing if 's and 's are equal
When 's are given, the
Reject if
Association Test between the rows and columns if we want to determine their independency