AI engineering glossary · Feature engineering data prep

What is ordinal variable?

Ordinal variable: A categorical variable whose values have a meaningful order but no guaranteed equal spacing between levels. Preserving that order in the encoding, with integers such as 1, 2, 3, lets a model use the ranking.

Level: beginnerTopic: Feature engineering data prep

Ordinal variable: an example

Customer satisfaction rated Poor, Average, Good, Excellent is ordinal; Excellent is above Good but the gap is not a fixed amount.

Related terms

More Feature engineering data prep terms

Where you learn it

Ordinal variable is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.