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 3 of 4

Bounded fitting and finite existence

Bounded fitting and finite existence. Derive, calculate and qualify a fitted response model.

Loading your saved responses…

Try

Suppose four individual Bernoulli observations have predictors x=−2,−1,1,2 and outcomes 0,0,1,1. The slope c in η=cx can increase without changing which side of probability 1/2 each row occupies. As c grows, every observed outcome becomes more probable. Will a finite best coefficient ever be reached?

xObserved outcomePredictor at slope cProbability as c increases without bound
−20−2ctends to 0
−10−ctends to 0
11ctends to 1
212ctends to 1

Every finite coefficient gives probabilities strictly between 0 and 1. The sum of observed log probabilities is therefore strictly negative, although it approaches 0 along this path. Since no log probability exceeds 0, this is the supremum and it is unattained. The finite unpenalized maximum-likelihood estimate does not exist.

Predict

Now use x=−1,0,1 with totals (1,2,1) and successes (0,1,1). The middle row contains both outcomes. Does this single mixed row rule out an infinite slope?

Check the middle row's direction

Along β=(0,c), its predictor remains zero and its probability remains 1/2, maximizing that row’s likelihood. The two outer pure rows improve as c grows. Omitting binomial constants, the supremum is −2 log 2 and is unattained. This is quasi-separation: some constraints are equalities while at least one row improves strictly. A mixed row prevents escape only in directions that change its predictor.

Experiment

Use the GLM workbench. Compare Complete separation, Quasi separation and Collinear predictors. Initialize each before requesting a step or bounded run. Record separately the existence certificate, design rank and numerical status. Collinearity means some coefficient changes leave every predictor unchanged; separation means a nonzero direction improves likelihood without a finite optimum. They can occur together, but they are not the same defect.

Return to the worked binomial example. Its mixed rows span both coefficient coordinates, so the finite-existence result below applies. A numerical fit must still solve the problem to its stated tolerance. The current experiment caps a run at 80 iterations and guards linear predictors outside its supported ±40 range. A finite mathematical answer can lie beyond a tool’s arithmetic scope. A cap or numerical failure is not a proof that no mathematical answer exists.

Write the last accepted coefficient vector and why the run stopped. Cancellation or exhausted work must not convert the last candidate into a completed maximum-likelihood fit. If existence is reported as unknown, retain that word; do not rewrite it as either “finite” or “separated.” A found and verified separating direction is positive evidence of nonexistence, whereas failing to find one need not settle the problem.

Understand

A sufficient finite-existence certificate

Consider independent grouped-binomial rows, positive trial counts and a full-column-rank design. Suppose the rows with 0<sᵢ<nᵢ themselves span the coefficient space. For each such mixed row, the log-likelihood term sᵢη−nᵢ log(1+exp η) tends to −∞ at both ends of the real line: its slopes in the two tails have the required opposite signs.

Write Xₘ for the mixed-row submatrix. Full rank gives a constant c>0 with ||Xₘβ||≥c||β||. One proof minimizes the continuous positive function ||Xₘd|| on the compact unit sphere. Thus, as ||β|| grows without bound, at least one mixed-row predictor must grow in absolute value. There are finitely many rows, each mixed row penalizes both tails, and all the remaining binomial terms are bounded above by zero. Consequently the total log likelihood tends to −∞ as ||β||→∞: it is coercive downward.

Choose any finite starting coefficient vector. Its superlevel set is closed and bounded, hence compact. Continuity gives a maximizer there, and values outside are smaller than the starting value. Strict concavity from positive information then proves uniqueness. Fixed finite offsets do not change the tail argument.

For Poisson regression, a positive-count term yη−exp η tends to −∞ at both ends when y>0. Every zero-count term −exp η is bounded above by zero, and positive-count terms have finite upper bounds. If the positive-count rows span the coefficient space, the same argument proves finite existence and uniqueness. This is why the worked Poisson data admit that certificate.

These are sufficient conditions. They are deliberately not asserted to be necessary. For example, Bernoulli outcomes (1,0,1) at x=−1,0,1 have no mixed rows. Nevertheless β=(log 2,0) has zero score; strict concavity proves it is the unique finite maximizer. An engine’s conservative existence check can remain unknown when another mathematical proof succeeds.

A recession direction is a different certificate

For binomial rows, let d be a direction in coefficient space. A pure-success row permits aᵢᵀd≥0, a pure-failure row permits aᵢᵀd≤0, and a mixed row requires aᵢᵀd=0. If these hold and some pure row has strict inequality, moving along d strictly increases likelihood from every finite starting point. No finite maximizer can exist. The sign proof applies to any starting coefficients, not just a plotted line through zero.

For Poisson rows, the corresponding sufficient recession conditions are aᵢᵀd=0 at every positive-count row and aᵢᵀd≤0 at every zero-count row, with at least one strict inequality. Positive-row means stay fixed and at least one zero-row mean decreases, strictly increasing likelihood. An intercept-only all-zero dataset is the simplest case: β→−∞ approaches rate 0, which is a boundary rate rather than a finite log-rate coefficient.

The workbench verifies any reported witness within its declared arithmetic rules. A large coefficient, a near-zero weight or a stalled iteration alone is not this proof. Adding a penalty can create a different optimization problem with different interpretation; it must be an explicit model revision, not a hidden numerical repair.

Four questions to keep separate

  1. Does the design identify coefficients?
  2. Is a finite optimizer known to exist, known not to exist, or unresolved by the available certificate?
  3. Did the numerical algorithm meet its stopping rule within its supported work and arithmetic limits?
  4. Are the distributional and asymptotic conditions for an uncertainty statement credible?

A favorable answer to one question does not supply the others. Record all four in an analysis report.

Apply

An intercept-only Poisson model has positive exposures (1,2,3). First take counts (0,0,0); then change only the last count to 2. Derive both likelihood conclusions without running an optimizer. Does one zero row prevent a finite answer?

Check the boundary and changed total

With total exposure 6 and total count Y, the relevant log likelihood is Yβ−6 exp β. When Y=0, its supremum is approached as β→−∞ and no finite β attains it. When Y=2, the score vanishes at exp β=2/6=1/3, hence β=−log 3; the second derivative is negative and this is the unique maximum. Individual zero rows are compatible with a finite estimate. The all-zero boundary, not the mere presence of a zero, caused the first failure.

Continue

In GLM uncertainty and model checks, distinguish a finite numerical result from an asymptotic sampling approximation. Return to score and information to reconstruct the local calculation.

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.

Rows x=−2,−1,1,2 have one trial each and successes 0,0,1,1. Show directly that there is no finite logistic MLE, although likelihood increases toward a finite supremum. State the separating direction.

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.

Use x=−1,0,1, totals (1,2,1), successes (0,1,1). Show that the path β=(0,c) increases likelihood toward a supremum that is not attained. Explain the role of the mixed middle row.

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.

Prove a sufficient finite-existence certificate for grouped logistic fitting: the design rows with 0<sᵢ<nᵢ span the coefficient space. Include existence and uniqueness, not just local negative curvature.

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.

An intercept-only Poisson model has positive exposures but every count is zero. Prove there is no finite log-rate MLE. Contrast a positive total count and discuss why assigning a very negative coefficient is not an exact boundary estimate.

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.

An optimizer stops after its iteration cap with finite coefficients, increasing likelihood and score infinity norm 0.04. Another stops with a small score but lacks a finite-existence certificate. Write a report distinguishing what each trace proves from what remains unresolved.

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.

Consider Bernoulli logistic rows x=−1,0,1 with outcomes 1,0,1 and an intercept. There are no mixed rows. Prove the MLE is finite and find it, showing why the mixed-row certificate is not necessary.

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.