Goodness of Fit Tests Flashcards
If Y ∼ Bi(n, p), what is the equation for P[Y = k]?
What are the three conditions for the binomial distribution?
- n independent trials
- two outcomes, success or failure
- probability of success, p, is constant
If Y ∼ Bi(n, p) what is 𝔼[Y] and Var[Y]?
- 𝔼[Y] = np
- Var[Y] = np(1 - p)
If Y ∼ Bi(n, p), for large n what is the distrubtion of Y approximately equal to?
N(np, np(1 - p))
What do k, pi, Oi, and Ei, stand for in the Chi-square test?
- k - the number of outcomes or cells
- pi - the probability of outcome i
- Oi - the number of times outcome i is oberved
- Ei - the expected value of Oi, Ei = npi
What does Var[Oi] and E[Oi] equal?
- Var[Oi] = npi (1 - pi)
- E[Oi] = npi
What is the test statistic for the Chi-square goodness of fit test?
What is the distrubtion of Oi?
Oi ∼ Bi(n, pi)
What does E[𝒳2] equal ? And Why?
Finish this theorm:
Given H0 the sampling distribution of 𝒳2, with k cells, for large n, is approximately …
Given H0 the sampling distribution of 𝒳2, with k cells, for large n, is approximately a chi-squared distribution with k - 1 degrees of freedom.
What does each Ei have to be bigger than to justify a chi-squared approximation?
Ei ≧ 5
What do you do if Ei < 5 for some cells?
Pool the cells and add up the Oi’s
What are the degrees of freedom for a chi-squared distribution when we estimated s independent parameters?
k - s - 1
Do small or large values for 𝒳2 cast doubt on H0?
Large
How can you perform a significance test of H0 at level α, using the Chi-squared goodness of fit test?
- Calculate 𝒳2
- Identify the value Vα such that P[𝒳2 > Vα] = α
- The test rejects H0 at significance level α (or significant at level α) if 𝒳2 > Vα
- If 𝒳2 < Vα say test does not reject at level α (or result not significant at level α)