Statistics & probability

Ordinal logistic regression calculator from ordered categories

Fit an ordered response without discarding its ranking.

Your numbers

Rows on separate lines; comma-separated values within each row.
Rows on separate lines; comma-separated values within each row.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Fit an ordered response without discarding its ranking. This proportional-odds model uses one slope vector across cumulative category splits and separate ordered thresholds. It returns category probabilities at query predictor rows, thresholds, coefficients and negative log likelihood. It differs from multinomial regression because neighboring categories have an explicit order, while the distances between their labels are not assumed equal.

THE FORMULAP(Y≤k|x)=logistic(c_k−xβ); P(Y=k)=P(Y≤k)−P(Y≤k−1).

A worked example

At each predictor value −1, 0 and 1, the three categories occur once each. The fitted slope is zero, both cumulative probabilities are 1/3 and 2/3, and ordered thresholds are −log(2), log(2). Each category probability is 1/3 and the negative log likelihood is 9 log(3).

Good to know

Proportional-odds logistic model, 6–200 rows, 1–3 nonconstant predictors and 2–5 consecutive categories. No intercept column. Local finite numerical fit; separation, rank deficiency and search-boundary fits rejected. No assumption test or coefficient confidence intervals.

What the cumulative logits describe

For each cutoff k, the model compares the probability of being at or below category k with the probability of being above it. Every cutoff shares the same predictor slopes.

This is a substantive proportional-odds assumption, not just a convenient way to reduce the number of parameters. A positive coefficient shifts probability toward higher categories under the displayed sign convention. It does not add a fixed number of category steps to the outcome.

Ordered category cutoffs yield three nonnegative probabilities−log 2log 2Cumulative: 1/3, 2/3Category mass: 1/3Shared slope = 0
At each predictor value −1, 0 and 1, the three categories occur once each. The fitted slope is zero, both cumulative probabilities are 1/3 and 2/3, and ordered thresholds are −log(2), log(2). Each category probability is 1/3 and the negative log likelihood is 9 log(3). Static schematic; numerical labels define the example.

Models an explicitly ordered response with shared cumulative slopes; existing unordered softmax fitting does not enforce those constraints. The Tobit censored regression calculator from observed values offers a complementary calculation under its own stated assumptions.

Preparing the ordered observations

Use labels zero through K minus one in the intended order, and include every category in the fitting sample. Predictor rows must align with response labels; query rows use the same column order and measurement units.

Do not append an intercept column. The thresholds already locate the response distribution, so a freely estimated intercept would be confounded with all threshold locations. Standardizing continuous predictors can make the bounded numerical search easier to interpret.

Worked example and mathematical rule

At each predictor value −1, 0 and 1, the three categories occur once each. The fitted slope is zero, both cumulative probabilities are 1/3 and 2/3, and ordered thresholds are −log(2), log(2). Each category probability is 1/3 and the negative log likelihood is 9 log(3).

P(Y≤k|x)=logistic(c_k−xβ); P(Y=k)=P(Y≤k)−P(Y≤k−1).

Why thresholds must remain ordered

Category probabilities are differences between successive cumulative probabilities. If thresholds crossed, some differences would become negative.

The fit represents threshold gaps with positive exponential increments, preserving their order throughout the search. A zero slope does not mean categories are equally common: threshold locations can still encode an uneven overall category distribution. Equal category probabilities arise in the supplied example because its observations are balanced at every predictor value.

Reading coefficients and predictions together

Exponentiating a slope gives a cumulative odds multiplier for a one-unit predictor increase, subject to the model convention. Inspect the resulting category probabilities as well, because identical odds multipliers can correspond to very different probability changes at different predictor values.

Negative log likelihood measures fit to the entered observations. Comparing it across different sample sizes or differently coded outcomes is not a meaningful model selection shortcut. No standard errors are produced by this implementation.

Separation and model mismatch

A predictor that almost perfectly orders the categories may drive a coefficient toward infinity. The calculator rejects search-boundary fits instead of presenting an enormous coefficient as a reliable estimate.

A finite result still does not establish proportional odds. If the effect of a predictor reverses between low and high cutoffs, consider a less restrictive ordinal model or an unordered model, and assess predictive performance on observations that were not used to fit the coefficients.

A useful sensitivity exercise

Hold the fitted observations fixed and change one query predictor at a time. The probabilities should remain nonnegative and sum to one, but the most likely category may change abruptly when two probabilities cross.

Repeat the fit after rescaling a predictor to confirm that predictions remain comparable while its numerical coefficient changes inversely. Querying far outside the observed predictor range is extrapolation; orderly output there should not be mistaken for evidence that the response mechanism remains valid.

A few questions, answered

Can I use labels such as low, medium and high?

Map them to 0, 1 and 2 in that order before entering the data. The model uses their order, not numerical spacing.

Why is an intercept forbidden?

Adding a constant to both the intercept and all thresholds leaves probabilities unchanged. Omitting the intercept identifies the location.

Does this test proportional odds?

No. It fits that assumption; assessing it requires additional diagnostics or a broader model.

Are the probabilities causal effects?

No. They are conditional predictions from the entered sample and model.

Find your calculator

Start typing to explore the library.