Tutorials › Generalized Linear Models › Model Comparison When Ordinal Alternatives Are Not Nested

Ordinal Assumptions and Extensions · Tutorial 567 of 981

Model Comparison When Ordinal Alternatives Are Not Nested

Compare ordinal models by penalized likelihood and out-of-sample prediction, while recognizing when a likelihood-ratio test is not valid.

Advanced 11 min read

What You'll Learn

  • Identify when cumulative-link and baseline-category multinomial specifications are nonnested.
  • Compare maximized likelihoods using AIC and BIC, with parameters and sample size counted appropriately.
  • Calculate and interpret held-out predictive log scores.
  • Explain why the usual likelihood-ratio chi-square reference distribution does not apply to nonnested alternatives.
  • Choose a comparison strategy that matches the modeling goal and the data being evaluated.

Why Non-Nested Ordinal Models Need Different Comparisons

When ordinal responses are modeled, a cumulative-link model and a baseline-category multinomial model can describe different ways that predictors relate to category probabilities. For more than two response categories, their usual forms are generally nonnested: neither is simply the other with some parameters fixed. A larger maximized likelihood for one model is therefore not, by itself, a likelihood-ratio test result.

For a cumulative-link model, the model is commonly expressed through cumulative probabilities, such as \(\operatorname{logit}P(Y\leq j\mid x)=\alpha_j-x^\mathsf{T}\beta\), with ordered cutpoints \(\alpha_j\). A baseline-category multinomial logit instead models contrasts such as \(\log\{P(Y=j\mid x)/P(Y=K\mid x)\}\) for \(j=1,\ldots,K-1\). These specifications use the same ordinal outcome but impose different structures on its category probabilities. When comparing them, use methods that compare predictive or penalized fit without assuming a nested-model relationship.

What Makes a Comparison Fair?

Definition: Two models are nested if every probability distribution allowed by the smaller model is also allowed by the larger model. They are nonnested if neither model’s set of distributions is contained in the other’s. For more than two categories, the usual cumulative-link and baseline-category multinomial specifications are generally nonnested, though special cases or restrictions can alter the relationship.

A fair comparison targets the same observed response, on the same sampling units, with a comparable likelihood. For example, compare models fit to the same \(n\) independent individuals and the same response categories. When using information criteria, the likelihoods must use compatible conventions, including any likelihood constants. Do not compare a conditional likelihood for one model to a marginal likelihood for another as though they were the same target.

Count all freely estimated parameters in the model: slopes, intercepts, cutpoints, and any estimated nuisance parameters included in the likelihood. For grouped multinomial data, the sample size relevant to BIC is generally the total number of independent observations represented by the counts, not merely the number of rows in the grouped table.

Information Criteria

Let \(\ell(\hat\theta)\) denote the maximized log-likelihood and \(k\) the number of freely estimated parameters. The Akaike information criterion and Bayesian information criterion are

$$ \operatorname{AIC}=-2\ell(\hat\theta)+2k, \qquad \operatorname{BIC}=-2\ell(\hat\theta)+k\log n. $$

For either criterion, smaller is preferred among the candidates being compared. The likelihood term rewards fit; the penalty discourages using extra parameters. AIC is commonly used to compare estimated predictive information loss, while BIC applies a larger complexity penalty as \(n\) grows and has a model-selection interpretation under particular large-sample assumptions. Neither criterion is a hypothesis test, and neither establishes that a selected model is true.

The comparison can be expressed directly. For models \(A\) and \(B\),

$$ \operatorname{AIC}_A-\operatorname{AIC}_B =-2\{\ell_A(\hat\theta_A)-\ell_B(\hat\theta_B)\} +2(k_A-k_B). $$

Thus a gain in maximized log-likelihood must be large enough to offset the extra-parameter penalty for AIC to favor the more complex model. For BIC, the corresponding penalty difference is \((k_A-k_B)\log n\). Because the penalties differ, AIC and BIC can rank models differently without either calculation being erroneous.

Worked Example: AIC and BIC Rank the Same Candidates Differently

Suppose two models are fit to the same \(n=240\) ordinal responses. A cumulative-link model has \(k_C=5\) parameters and maximized log-likelihood \(\ell_C=-310.8\). A baseline-category multinomial model has \(k_M=9\) parameters and maximized log-likelihood \(\ell_M=-303.9\). Treat these as reported model-fit results; the models are being compared as nonnested alternatives.

For the cumulative-link model, \(\operatorname{AIC}_C=-2(-310.8)+2(5)=621.6+10=631.6\). For the multinomial model, \(\operatorname{AIC}_M=-2(-303.9)+2(9)=607.8+18=625.8\). AIC is lower by \(631.6-625.8=5.8\) for the multinomial model.

Next, \(\log(240)\approx5.4806\). Thus \(\operatorname{BIC}_C=621.6+5(5.4806)\approx649.00\), while \(\operatorname{BIC}_M=607.8+9(5.4806)\approx657.13\). BIC is lower for the cumulative-link model. The multinomial fit gains \(6.9\) log-likelihood units but uses four additional parameters; AIC and BIC apply different penalties to that trade-off. The appropriate conclusion is that the ranking depends on the chosen criterion, not that one criterion has produced a likelihood-ratio test.

Predictive Log Scores

A direct way to compare predictions is to evaluate probabilities assigned to responses that were not used to fit the model. If a fitted model assigns probability \(\hat p_i(y_i)\) to the response actually observed for held-out individual \(i\), its average negative log score is

$$ -\frac{1}{m}\sum_{i=1}^{m}\log \hat p_i(y_i), $$

where \(m\) is the number of held-out observations. Lower values are better. Equivalently, the average log score without the minus sign is better when larger. A valid comparison evaluates both models on the same held-out observations, with predictions produced without using those observations to fit the models.

Result: The log score is a strictly proper scoring rule for a finite response space: in expectation, a model’s expected log score is maximized by reporting the true response probabilities. This statement concerns expected performance under the true distribution; a single held-out sample can still favor a less accurate model by chance.

To verify the result, let the true category probabilities be \(p_1,\ldots,p_K\), and let a model report \(q_1,\ldots,q_K\), where both vectors sum to one and \(q_j>0\) whenever \(p_j>0\). The difference between the expected log score under \(p\) and the expected log score under \(q\) is

$$ \sum_{j:p_j>0}p_j\log p_j-\sum_{j:p_j>0}p_j\log q_j =\sum_{j:p_j>0}p_j\log\frac{p_j}{q_j}. $$

For \(t>0\), \(\log t\leq t-1\). Apply this with \(t=q_j/p_j\) for categories with \(p_j>0\):

$$ \sum_{j:p_j>0}p_j\log\frac{p_j}{q_j} \geq \sum_{j:p_j>0}(p_j-q_j) =1-\sum_{j:p_j>0}q_j \geq 0. $$

The first inequality is an equality only when \(q_j/p_j=1\) for every category with \(p_j>0\). For the displayed difference also to be zero, the reported probability assigned outside the true support must be zero. Hence equality occurs exactly when \(q=p\). This proves the expected-score claim. In practice the true probabilities are unknown, so held-out log scores estimate predictive performance rather than reveal it exactly. A model assigning zero probability to an observed category receives a log score of negative infinity for that observation.

Worked Example: Calculating a Held-Out Log Score

A validation set contains 10 responses in three ordered categories: four in category 1, three in category 2, and three in category 3. Model A predicts probabilities \((0.50,0.30,0.20)\) for each of these observations. Model B predicts \((0.40,0.35,0.25)\) for each. Both probability vectors sum to one.

For Model A, the total log score is \(4\log(0.50)+3\log(0.30)+3\log(0.20)\). Using \(\log(0.50)\approx-0.6931\), \(\log(0.30)\approx-1.2040\), and \(\log(0.20)\approx-1.6094\), this is \(-2.7724-3.6120-4.8282=-11.2126\), or an average log score of \(-1.1213\). Its average negative log score is \(1.1213\).

For Model B, the total is \(4\log(0.40)+3\log(0.35)+3\log(0.25)\). Using \(\log(0.40)\approx-0.9163\), \(\log(0.35)\approx-1.0498\), and \(\log(0.25)\approx-1.3863\), this is \(-3.6652-3.1494-4.1589=-10.9735\), or an average log score of \(-1.0974\). Its average negative log score is \(1.0974\).

Model B has the better score on this validation set because \(1.0974<1.1213\). This is evidence about predictive performance on these held-out observations, not proof that Model B is better in every population or for every future sample.

Cross-Validation and Uncertainty in the Ranking

When a single validation set would be small or unstable, use cross-validation. Divide the observations into folds, fit each candidate model on the other folds, and score its predictions on the held-out fold. Aggregate the held-out negative log scores, preferably weighting observations appropriately if fold sizes differ. Each model must be refit without the observations it is asked to predict; scoring training-set predictions would reward fit to data already used for estimation.

Cross-validation estimates predictive performance for models trained on the corresponding reduced training samples. Its result can vary with the fold assignment and sampling variability. A small difference in average score should therefore be interpreted alongside the variation across folds and the practical importance of the difference. The fold scores are not automatically independent observations, so a simple standard error computed across folds is only a rough description, not a universal formal test.

Worked Example: Interpreting Paired Cross-Validation Scores

In five equal-sized validation folds, the average negative log scores are as follows. The first column is a cumulative-link model and the second is a baseline-category multinomial model.

FoldCumulative-linkMultinomialDifference (cumulative minus multinomial)
10.9900.9250.065
20.9500.9450.005
31.0200.9250.095
40.9300.975-0.045
51.0200.9650.055

The cumulative-link mean is \((0.990+0.950+1.020+0.930+1.020)/5=0.982\). The multinomial mean is \((0.925+0.945+0.925+0.975+0.965)/5=0.947\). The multinomial model has the lower average loss by \(0.035\).

The paired fold differences have mean \(0.035\). Their deviations from that mean are \(0.030,-0.030,0.060,-0.080,0.020\); the sum of squared deviations is \(0.0122\). Their sample standard deviation is \(\sqrt{0.0122/4}\approx0.0552\), so the descriptive standard error across folds is about \(0.0552/\sqrt{5}\approx0.0247\). The positive mean favors the multinomial model, but the fold-to-fold variation is substantial relative to the mean. Report the modest predictive advantage and its variability rather than presenting the ranking as certain.

Why the Usual Likelihood-Ratio Chi-Square Test Does Not Apply

For nested models, the likelihood-ratio statistic is formed by subtracting maximized log-likelihoods, with the larger model containing the smaller one. Under regularity conditions—such as an interior null parameter, identifiability, and a correctly specified likelihood—Wilks’ theorem gives an asymptotic chi-square reference distribution, with degrees of freedom equal to the difference in parameter dimensions.

That justification requires the smaller model to be a restriction of the larger model. For nonnested alternatives, there is no such restriction relationship, and the difference in parameter counts does not supply the degrees of freedom of a chi-square distribution. Consequently, calculating \(2\{\ell_B(\hat\theta_B)-\ell_A(\hat\theta_A)\}\) and comparing it to a chi-square distribution with \(k_B-k_A\) degrees of freedom is not justified merely because the models have different numbers of parameters. The statistic may even be negative if the model labelled \(B\) has the smaller maximized likelihood.

There may be specialized tests for particular nonnested hypotheses, but they require their own assumptions and derivations. They are not obtained by applying the ordinary nested-model likelihood-ratio rule. For the comparison in this tutorial, AIC or BIC can summarize penalized in-sample fit, while validation or cross-validated log scores target predictive performance.

Common Pitfalls and Practical Choice

  • Treating a larger likelihood as a test result. Maximized likelihood alone rewards flexibility. Use a criterion or predictive evaluation rather than assigning a nested-model chi-square reference distribution.
  • Comparing incompatible likelihoods. Ensure the response, observations, likelihood target, and likelihood conventions match. Otherwise, a numerical criterion difference may not represent a meaningful comparison.
  • Counting only slopes. Cutpoints, intercepts, and other estimated parameters contribute to \(k\); omitting them can change AIC or BIC.
  • Overstating a small predictive-score difference. Held-out scores vary with the validation sample and fold assignment. Report the scale of the difference and its variability.
  • Assuming the criteria answer the same question. AIC, BIC, and held-out scores use different ideas and can rank models differently. Choose the comparison to match the scientific or predictive goal.

A practical comparison begins by checking that both candidates address the same response data. Use AIC or BIC when a penalized likelihood ranking is useful; use held-out or cross-validated log scores when predictive probabilities are the primary concern. Present the criterion, the parameter counts or validation design, and the size of the score difference. For nonnested ordinal alternatives, these are comparisons of fit or prediction—not ordinary likelihood-ratio chi-square tests.

Check Your Understanding

Use these questions to check your reasoning about nonnested model comparisons.

  1. What relationship between two models makes the usual likelihood-ratio chi-square argument applicable, and why is that relationship generally absent for cumulative-link and baseline-category multinomial models?
  2. Two candidates have the same maximized log-likelihood, but one estimates more parameters. Which has the lower AIC, and why?
  3. What does a lower average negative log score on a common held-out set indicate? What does it not establish?
  4. For BIC with grouped multinomial data, why can the number of table rows differ from the relevant sample size?
  5. Why might AIC and BIC select different nonnested ordinal models without either calculation being incorrect?
Clinical Biostats