Lably
Skip to content

Ordinal regression

Regression analysis for modeling ordinal data

  • 3 min read
  • 3 chapters

Related on Lably

Through Statistics, Regression analysis and Social science

Linear models for ordinal regression

Ordinal regression can be performed using a generalized linear model (GLM) that fits both a coefficient vector and a set of thresholds to a dataset. Suppose one has a set of observations, represented by length-p vectors x1 through xn, with associated responses y1 through yn, where each yi is an ordinal variable on a scale 1, ..., K. For simplicity, and without loss of generality, we assume y is a non-decreasing vector, that is, yi ≤ yi+1. To this data, one fits a length-p coefficient vector w and a set of thresholds θ1, ..., θK−1 with the property that θ1 < θ2 < ... < θK−1. This set of thresholds divides the real number line into K disjoint segments, corresponding to the K response levels.

The model can now be formulated as

Pr(y≤i∣x)=σ(θi−w⋅x)

or, the cumulative probability of the response y being at most i is given by a function σ (the inverse link function) applied to a linear function of x. Several choices exist for σ; the logistic function

σ(θi−w⋅x)=11+e−(θi−w⋅x)

gives the ordered logit model, while using the CDF of the standard normal distribution gives the ordered probit model. A third option is to use an exponential function

σ(θi−w⋅x)=1−exp⁡(−exp⁡(θi−w⋅x))

which gives the proportional hazards model.

Latent variable model

The probit version of the above model can be justified by assuming the existence of a real-valued latent variable (unobserved quantity) y*, determined by

y∗=w⋅x+ε

where ε is normally distributed with zero mean and unit variance, conditioned on x. The response variable y results from an "incomplete measurement" of y*, where one only determines the interval into which y* falls:

y={1ify∗≤θ1,2ifθ1<y∗≤θ2,3ifθ2<y∗≤θ3⋮KifθK−1<y∗.

Defining θ0 = -∞ and θK = ∞, the above can be summarized as y = k if and only if θk−1 < y* ≤ θk.

From these assumptions, one can derive the conditional distribution of y as

P(y=k∣x)=P(θk−1<y∗≤θk∣x)=P(θk−1<w⋅x+ε≤θk)=Φ(θk−w⋅x)−Φ(θk−1−w⋅x)

where Φ is the cumulative distribution function of the standard normal distribution, and takes on the role of the inverse link function σ. The log-likelihood of the model for a single training example xi, yi can now be stated as

log⁡L(w,θ∣xi,yi)=∑k=1K[yi=k]log⁡[Φ(θk−w⋅xi)−Φ(θk−1−w⋅xi)]

(using the Iverson bracket [yi = k].) The log-likelihood of the ordered logit model is analogous, using the logistic function instead of Φ.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics