Chi Squared Tests (Edexcel A Level Further Maths: Further Statistics 1): Flashcards

Exam code: 9FM0

1/23

0Still learning

Know0

  • Define a goodness of fit test.

Cards in this collection (23)

  • Define a goodness of fit test.

    A goodness of fit test measures how well observed data from real life matches the frequencies that a proposed theoretical model would predict.

    It is a hypothesis test, and the chi-squared distribution is what turns the comparison into a decision.

  • What are the null and alternative hypotheses for a goodness of fit test?

    \text{H}_{0} says there is no difference between the observed and the expected distribution, and \text{H}_{1} says the observed distribution cannot be modelled by the expected one.

    Both must be stated in the context of the question rather than in general terms.

  • Complete the alternative form of the goodness of fit statistic, in which N is the sum of the observed frequencies:

    X^{2} = \sum \frac{\_\_\_\_\_\_}{E_{i}} - N

    The completed formula is:

    X^{2} = \sum \frac{\left(O_{i}\right)^{2}}{E_{i}} - N

    It is often quicker than working with \sum \frac{\left(O_{i} - E_{i}\right)^{2}}{E_{i}} because no differences have to be found, and the two always give the same value.

  • Where do the expected frequencies in a goodness of fit test come from?

    From the theoretical model being tested: work out the probability of each outcome under that model, then multiply each one by the total number of observations N.

    Because every probability is used, the expected frequencies always sum to N, the same total as the observed frequencies.

  • What must you do if an expected frequency is less than 5?

    Combine that class with an adjacent one, and keep combining until every expected frequency is above 5.

    The observed frequencies for the combined classes are added together too, and the number of classes drops, which changes the degrees of freedom.

  • True or False?

    Every chi-squared goodness of fit test is one-tailed.

    True.

    Only a large value of X^{2} counts as evidence against the model, because it means the observed and expected frequencies are far apart.

    A small value means they agree closely, which supports the model rather than casting doubt on it, so there is no lower tail to test.

  • How do you find the degrees of freedom for a goodness of fit test?

    Take the number of classes after any combining and subtract 1, then subtract a further 1 for each parameter estimated from the observed data.

    The subtraction counts the constraints: one always comes from making the expected total match the observed total, and one more from each estimate.

  • You have calculated X^{2} and found the critical value. How do you reach a decision?

    If X^{2} is greater than the critical value there is sufficient evidence to reject \text{H}_{0}, so the model is not a good fit for the data.

    If it is smaller there is insufficient evidence to reject \text{H}_{0}, so the model is a suitable one.

  • What does the p-value of a chi-squared test represent?

    The p-value is the probability of obtaining a chi-squared value of X^{2} or more, assuming the model is correct.

    If p < \alpha the result is critical and \text{H}_{0} is rejected, which is the same decision the critical value gives.

  • How do you find the expected frequencies for a discrete uniform goodness of fit test?

    Divide the total frequency N by the number of possible outcomes k, giving every class the same expected frequency.

    Each outcome is equally likely under the model, so no individual probabilities have to be worked out at all.

  • For N observations of X \sim \text{B} \left(n , p\right) with frequencies f, complete the estimate for p:

    p = \frac{\sum \left(x \times f\right)}{\_\_\_\_\_\_ \times N}

    The completed estimate is:

    p = \frac{\sum \left(x \times f\right)}{n \times N}

    The numerator is the total number of successes and the denominator is the total number of trials, since each of the N observations consists of n trials.

  • How do you estimate \lambda for a Poisson goodness of fit test?

    The estimate is simply the sample mean, \frac{\sum \left(x \times f\right)}{N}.

    That is easier than the binomial and geometric cases because \lambda is itself the mean of the distribution.

  • For N observations of X \sim \text{Geo} \left(p\right) with frequencies f, complete the estimate for p:

    p = \frac{\_\_\_\_\_\_}{\sum \left(x \times f\right)}

    The completed estimate is:

    p = \frac{N}{\sum \left(x \times f\right)}

    Each of the N observations ends in exactly one success, so N is the total number of successes, while \sum \left(x \times f\right) is the total number of trials.

  • A Poisson or geometric model has no largest value, but a table of observations does. How are the end classes handled?

    Put all the remaining probability into them: the top class takes \text{P} \left(X \ge b\right) for the largest observed value b, and the bottom class takes \text{P} \left(X \le a\right) for the smallest value a.

    Without that the expected frequencies would not total N, and the test would be comparing two incomplete distributions.

  • True or False?

    A chi-squared test on a discrete uniform model can lose a degree of freedom to an estimated parameter.

    False.

    A discrete uniform distribution has no parameter to estimate, because every outcome is equally likely and the expected frequencies follow from the number of classes alone.

    Its degrees of freedom are therefore always k - 1, unlike the binomial, Poisson and geometric cases where a parameter may have to be estimated.

  • When a question gives you the value of p, what extra detail should the hypotheses carry?

    State the precise distribution, such as \text{B} \left(20 , 0 . 2\right), rather than only naming the family it belongs to.

    Where no value is given the hypotheses name the family alone, because the parameter is about to be estimated from the data.

  • A chi-squared test on a Poisson model rejects \text{H}_{0}. What do you conclude?

    That a Poisson distribution is not a suitable model for the variable, stated in the context of the question.

    Rejecting \text{H}_{0} says the observed frequencies differ from the model's predictions by more than chance alone would explain.

  • Define a contingency table.

    A contingency table is a two-way table showing the observed frequencies for every combination of two variables.

    An h \times k contingency table has h rows and k columns, not counting any row or column used to record totals.

  • What does a chi-squared test on a contingency table actually test?

    The test asks whether the two variables are independent of each other, for example whether favourite music genre is independent of the listener's age group.

    It is a goodness of fit test in which the model being tested is the assumption of independence itself.

  • Complete the expected frequency for one cell of a contingency table, assuming the two variables are independent:

    \text{expected frequency} = \frac{\_\_\_\_\_\_ \times \text{column total}}{\text{grand total}}

    The completed formula is:

    \text{expected frequency} = \frac{\text{row total} \times \text{column total}}{\text{grand total}}

    It follows straight from independence, since the proportion falling in a row multiplied by the proportion falling in a column gives the proportion expected in that cell.

  • For an h \times k contingency table, complete the degrees of freedom:

    \nu = \left(h - \_\_\_\_\_\_\right) \times \left(k - \_\_\_\_\_\_\right)

    The completed formula is:

    \nu = \left(h - 1\right) \times \left(k - 1\right)

    Once all but one entry in each row and each column is known the totals force the rest, so that is the minimum number of expected values you actually have to work out.

  • An expected frequency in a contingency table is below 5. What do you do, and how do you choose?

    Combine that row or column with an adjacent one in the table of observed values, then recalculate the expected frequencies for the new table.

    Choose whichever combination makes sense in context: merging two age groups is reasonable where merging two music genres would not be.

  • A contingency table test rejects \text{H}_{0}. What does that mean?

    The two variables are not independent, so there is an association between them, and that should be stated in the context of the question.

    Failing to reject \text{H}_{0} instead means the data is consistent with the two variables being independent.

Sign up to unlock flashcards

or