Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 4 of 4

GLM uncertainty and model checks

GLM uncertainty and model checks. Derive, calculate and qualify a fitted response model.

Loading your saved responses…

Try

The worked binomial fit has β̂=(0,log 3), information I=diag(5/2,3/2) and inverse information diag(2/5,2/3). At the new predictor x=1, the fitted probability is 3/4. Can twelve trials justify an exact normal confidence statement merely because the optimizer found the right coefficients?

No exact normal law follows from these calculations. We can construct a conditional asymptotic Wald approximation, then state the assumptions and its small-sample limitation. The target row u=(1,1) gives η̂=uᵀβ̂=log 3 and estimated variance uᵀI⁻¹u=2/5+2/3=16/15.

QuantityCalculationMeaning
Fitted linklog 3Estimated log odds at x=1
Link standard error4/√15Model-based asymptotic scale
Nominal link intervallog 3 ± 1.96·4/√15Approximate 95% parameter interval
Probability intervallogistic of the two link endpointsTransformed interval contained in (0,1)

Calculate the endpoints, retaining the expression as the reproducible result. Compare this interval target with the outcome of one new attempt. A probability parameter and a future binary outcome are different inferential targets.

Predict

Suppose the same fitted mean is used for twenty repeated attempts by each of ten people. Predict whether treating all 200 attempts as independent could distort uncertainty. Then predict whether a Pearson residual pattern can tell you uniquely that the variance, rather than the mean, is wrong.

A good mean fit cannot establish independence. A pattern might reflect mean misspecification, dependence, a wrong variance relation, an outlier, or chance. Diagnostics identify questions for the investigation; they do not automatically select and validate the answer.

Experiment

Return to the GLM workbench. Complete the worked binomial fit and inspect its information and covariance alongside the existence and numerical status. Use Prediction row: predictor values only to compare x=0 and x=1. The intercept is supplied automatically. Use the displayed information to construct the link interval on paper; the workbench supplies point predictions, not a prediction interval. Label your interval as an asymptotic parameter calculation, not an exact finite-sample guarantee.

For the worked Poisson model, use prediction x=0 with Prediction exposure set to 3. Its fitted rate is 2, so its mean count is 6. At the exact fit, u=(1,0) gives log-rate variance 10/84=5/42. The fixed log exposure adds log 3 to the log mean but no estimated coefficient. A link interval for the mean can be obtained by exponentiating log 6±1.96√(5/42). This is not a prediction interval for the next count: that count also varies according to the conditional response distribution.

Record a frozen equation, target, exposure or trial total, and a loss rule on paper before checking new responses. The workbench is a temporary fitting tool; it does not turn the following public synthetic check into an untouched dataset. Do not claim that a displayed fit or written report has received independent human review.

Understand

Where inverse-information uncertainty comes from

Under a correctly specified independent-response model, finite interior true coefficients, an identifiable design and a suitable growing-information regime, a likelihood asymptotic theorem gives approximate normality of the MLE with covariance equal to inverse information. The theorem also needs regularity and control of individual observations; full rank in one small table is not a substitute. This lesson uses that theorem as a dependency, not a proof that twelve particular trials are enough. Review likelihood inference for the distinction between optimization and sampling uncertainty.

A first-order explanation starts from the score equation 0=U(β̂). Taylor expansion around the true β gives approximately I(β)(β̂−β)=U(β). The score is a sum of independent centered contributions with covariance I(β). A suitable central limit theorem and control of the Taylor remainder lead to the normal approximation. Replacing unknown information by information at β̂ requires consistency. These are substantial hypotheses; the algebra alone does not prove them.

For a fixed nonzero target row u, the estimated link variance is uᵀI(β̂)⁻¹u. Form a link interval and apply the monotone inverse link to its endpoints. This preserves probability or positive-mean ranges. A direct symmetric probability interval based on a first-order delta calculation may leave [0,1], which is one reason to be explicit about the construction. Neither transformation repairs separation, dependence or a wrong mean equation.

Residuals and dispersion

A Pearson residual divides an observed-minus-fitted count by its model standard deviation: (s−np)/√(np(1−p)) for binomial, or (y−μ)/√μ for Poisson. Squared Pearson residuals summarize discrepancy, but fitted residuals are not independent standard-normal observations. Their calibration reflects fitting, design, response discreteness and the adequacy of approximation. A nominal residual dimension of rows minus parameters does not itself establish a chi-square reference when cells are sparse.

For instance, four Poisson counts (0,0,4,4) fitted by an intercept have mean 2 and Pearson sum 8. The model residual dimension is 3, but that contrast is a diagnostic, not proof of a particular overdispersion mechanism. The variance may exceed the Poisson mean, observations may be dependent, or the mean equation may omit a relevant predictor. A dispersion correction or different family needs its own justification. For binomial grouping, the number of rows and the number of trials play different roles; do not silently replace one with the other.

Frozen checks answer a different question

A frozen model assigns probabilities (1/4,3/4) to two new groups of four attempts. Suppose the new counts are (2,2). Omitting constants common to both predictions, its negative log likelihood is 4 log(16/3). Revising both probabilities to 1/2 gives loss 8 log 2, lower by 4 log(4/3). If those outcomes caused the revision, the smaller loss is a development result on exposed data. Preserve the original result and collect another relevant evaluation record before making an independent-validation claim.

Exposure, group totals and target population belong in that record. Model calibration and predictive loss do not establish causal effects. An ordinary finite MLE, an exact small-table calculation and a small displayed standard error can all coexist with a misspecified collection mechanism.

Apply

A frozen Poisson rate is 2 events per hour. At a separately stated exposure of 3 hours, the observed count is 9. Compute the predicted count, Pearson contribution and the improvement in negative log likelihood if you revise the rate to 3 using this response. What must the next evaluation disclose?

Check the arithmetic and the exposure record

The original mean is 6, and the Pearson contribution is (9−6)²/6=3/2. The frozen loss, up to a shared factorial term, is 6−9 log 6. Revising the rate to 3 makes the mean 9 and loss 9−9 log 9, improving it by −3+9 log(3/2)>0. This uses the observed response to change the model. Record both rates, the same three-hour exposure and both losses, identify the revision as development, and use new appropriately collected outcomes for another check. One discrepancy cannot identify a population dispersion law.

Continue

Use the four mixed written tasks to connect family choice, vector derivatives, existence and conditional uncertainty. Return to finite-existence certificates when an optimizer status is ambiguous, or frozen regression validation to compare the same evidence discipline for another response model. A sustained empirical investigation still needs data provenance, a justified design, retained revisions and independently reviewed transfer evidence.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

For x=−1,0,1, totals 6 and successes 1,3,5, the MLE is (0,log 5). Derive information and an asymptotic 95% interval for the probability at x=1. Use a link-scale interval with 1.96, state its limits and do not claim exact small-sample coverage.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Independent counts at exposures 2,3,5 total 20. Fit the intercept-only Poisson rate and derive its information-based link interval and rate interval. Explain why these are not prediction intervals for a new count at exposure 4.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For independent Poisson means fixed at 2, observed counts (0,0,4,4) have Pearson sum Σ(y−μ)²/μ. Compute it, compare with an intercept fit, and explain why the number alone does not diagnose a unique cause.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

A frozen model assigns probabilities (1/4,3/4) to two new groups of four trials each. Their observed successes are (2,2). Calculate the negative log likelihood excluding binomial constants. A revised model uses 1/2 in both groups. Compare losses and state what is exposed.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Ten people each repeat a binary task 20 times. Explain why treating 200 trials as independent can make logistic information misleading even if a fitted mean equation predicts all person totals well. State the information needed for a defensible revision.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

A separated logistic fit reports slope 18 and a huge standard error. A full-rank fit to a tiny well-behaved table reports a finite MLE. Which can support an exact normal claim, and what does each require before a conditional asymptotic interval is defensible?

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.