5.06b, 5.06c - Fitting a theoretical distribution
Turn a proposed probability model into the frequencies it predicts for a sample. Given ratios and discrete uniform models provide the starting point in 5.06b; 5.06c extends the same idea to binomial, geometric, Poisson and continuous distributions, including a distribution specified by its density.
Given proportions and discrete uniform models
Can a model predict waiting times in a group when the observed number must be a whole number? Yes: an expected frequency is an average prediction, not an instruction to find a fraction of an observation. By the end, you will obtain such counts directly from continuous probabilities.
You already know
A probability distribution assigns total probability . A binomial variable counts successes in a fixed number of independent equal-probability trials; a geometric variable counts trials up to and including the first success. Expected frequencies and observed frequencies have different jobs.
Imagine repeating a sample of size many times under a fixed model. If an observation has probability of landing in class , the long-run average count in that class is . This is the bridge from any distribution to a frequency table.
Expected frequency from a model
For independent observations with class probabilities ,
The classes must be mutually exclusive and cover the model's entire possible range.
Not in the formula booklet: learn it.
A proposed ratio provides probabilities after dividing each weight by the sum of all weights. It need not match the observed proportions: matching the model to its own hypothesis is the point.
Worked example 1: a specified ratio
Question. A model claims that three categories occur in the ratio . Find their expected frequencies in observations.
Plan. Normalise the ratio, then multiply the probabilities by .
Why this step? A ratio weight is not itself a probability: the probabilities must sum to .
Answer. The expected frequencies are .
Check. They sum to and retain the ratio .
Worked example 2 changes the proposed weights to equal weights. This is the discrete uniform case; equal probabilities are a model assumption, not a consequence of having named categories.
Worked example 2: a discrete uniform hypothesis
Question. A model assigns equal probabilities to the five values . Find the expected frequencies in observations.
Plan. Give each of the five possible values probability .
Why this step? There are five possible values, not four intervals between the endpoints.
Answer. The expected table is .
Check. ; each expectation is at least .
The discrete uniform probability for equally likely values is printed in the formula booklet. Its use to produce counts still requires multiplying by the sample size.
Watch out
Wrong: use observed proportions as the hypothesis probabilities. That gives by construction and makes every discrepancy zero. Use the proposed model, estimating only parameters the question requires.
A fit is a prediction from the stated model; whether the data support that prediction is the next lesson's question.
Fitting binomial models
A binomial model predicts one expected frequency for each possible success count, using the trial count and success probability.
Recall for ; this probability and are in the formula booklet. Here is the number of trials in one observation, whereas is the number of observed groups. Confusing them changes the entire model.
If is specified independently of the data, retain it. If the question asks you to fit an unspecified binomial probability with known , match the model mean to the sample mean .
Fitted binomial probability
For observed success counts from groups of trials, estimate an unknown by
Then use to calculate expected frequencies. This assumes the binomial model is appropriate.
Not in the formula booklet: learn it.
Record that a parameter was estimated: it will matter when counting degrees of freedom for a goodness of fit test.
Worked example 3: a specified success probability
Question. For each of independent groups of three trials, the model is . Find the expected frequencies for .
Plan. Calculate the four binomial probabilities, then multiply each by .
Why this step? The sample size is , while the binomial trial count is : they enter different parts of the calculation.
Answer. .
Check. They sum to and are symmetric because .
Worked example 4 changes only whether the success probability is known. The sample now supplies its estimate, even though it happens to produce the same fitted probability.
Worked example 4: estimate the success probability
Question. In groups of three trials, the observed frequencies for successes are . Fit a binomial distribution with unknown success probability and find the expected frequencies.
Plan. Count all observed successes, estimate , then use the fitted binomial distribution.
Why this step? The observed mean estimates the model's mean; no individual frequency is forced to match its observed count.
Answer. The fitted model is , giving . One model parameter was estimated from these data.
Check. The fitted expected total number of successes is , matching the observed total.
The numerical fit does not establish independence of the trials or a constant success probability. Those remain modelling assumptions to check in context.
Watch out
Wrong: for a binomial success count. Right: . Also, grouped data with an open-ended class do not reveal its exact success total; do not invent class values to estimate .
Use exact totals when they are available, and keep the fitted probability unrounded while finding expectations.
Fitting geometric models and tails
A geometric model has infinitely many possible trial counts, so a finite frequency table must include the remaining tail.
Recall that OCR's geometric variable counts the successful trial: its support is . For , the booklet gives , and . There is no zero class with positive probability.
For an unspecified , match to the observed mean. The resulting fitting rule is not printed in the formula booklet. If the exact total is unavailable because the tail is grouped, use any mean or parameter supplied; do not replace “ or more” by exactly .
Worked example 5: retain the infinite tail
Question. Fit the given model to observations in the classes .
Plan. Calculate the first three point probabilities and use a tail probability for the final class.
Why this step? The final class includes , rather than just the event .
Answer. .
Check. The probabilities sum to , and the expected frequencies sum to .
Worked example 6 changes only the source of the parameter: an observed total supplies it instead of a fixed hypothesis value.
Worked example 6: estimate a geometric parameter
Question. The exact sum of observed trial counts is . Fit a geometric model and calculate expectations for .
Plan. Estimate from the sample mean, then retain the entire tail.
Why this step? Lower success probability produces a longer average wait; using would not even give a valid probability.
Answer. The fitted model is , with expectations . One parameter was estimated.
Check. The expectations sum to , and the fitted mean is .
An observed zero trial count would be impossible under this convention. That is a support mismatch, not a small discrepancy to hide by combining the zero class with another one.
Watch out
Wrong: when . Right: the first three trials must fail, so ; trial is allowed to be the success.
Write the final class as a probability event before using a calculator.
Fitting Poisson models
A Poisson fit uses its mean count for the actual observation interval, then converts count probabilities into expected frequencies.
Recall and for ; both are in the formula booklet. To fit an unspecified , set . This estimation rule is not printed in the booklet. Use an exact count total or a supplied mean, rather than inventing values in an open tail class.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account