AI Glossary / AI and machine learning / Beginner
Minority class
Definition
The minority class is the rare outcome in a classification dataset: the few fraud cases among millions of honest ones, the few churners among loyal customers, the few defects among good parts.
What it means
The minority class is usually the entire point of the model. Nobody builds a fraud detector to find honest transactions; the value lives in the rare cases, which is exactly where the data is thinnest.
Scarcity creates the core difficulty: the model sees few examples of the thing it must learn, and every training signal is dominated by the common class it can safely ignore.
Evaluation must protect the minority class deliberately. Overall accuracy, average error and most default settings all grade the model mostly on the majority, letting the rare class fail invisibly.
The remedies are well known: per-class metrics, class weights, resampling, threshold tuning and, best of all, collecting more minority examples. None is magic; all move the model's attention toward the rare cases.
For a business, the minority class is where cost concentrates, so the conversation should start with its price: what one missed case costs, what one false alarm costs, and how the model's settings reflect both.
The mirror term, majority class, names everything else, and the ratio between the two shares is the imbalance every design choice must respect.
How it works
Count the classes first: know the minority share before any modeling decision or vendor conversation.
Set metrics that see the rare class: recall, precision and their trade, reported per class rather than as one average.
Adjust training attention with class weights or resampling so the rare class contributes meaningfully to the loss.
Tune the decision threshold on the costs of the two error types, since the default fifty-fifty cut is rarely the business's optimum.
Invest in minority data where possible: better labels, longer history or targeted collection beat any algorithmic patch.
Three practical examples
- A medical screener where three per cent of scans show the condition, and the model's whole job is the three per cent.
- A churn model where twelve per cent of customers leave annually, and catching half of them early funds the entire program.
- A quality line where one part in two hundred is defective, and shipping one defect costs more than checking a thousand parts.
Think of it this way
Think of searching for needles by examining hay: every method, magnets, sieves, careful eyes, exists for the needles, and reporting how much hay you cleared says nothing about the search.
Worked example
the threshold that paid for the model
Suppose a lender's default model flags applicants above a risk score, with defaults at four per cent of applications. The figures are illustrative.
At the default threshold the model misses most defaults; at a lower threshold it catches twice as many, at the price of reviewing three times as many good applicants.
Costing both errors shows the review team can absorb the extra work, and each caught default saves forty times a review's cost, so the threshold drops and the model turns profitable.
Nothing about the model changed: only the minority class's economics were finally allowed to set the cut.
Illustrative case study
A fictional factory tuned its defect detector for overall accuracy and celebrated 99.5 per cent, while the defect rate was 0.4 per cent.
The model missed a third of actual defects, invisible in the headline number, and customers found them before the quality team did.
The invented lesson: on rare classes, headline metrics are where bad models hide. Report the rare class's recall in the first line of every review.
Common misconceptions and mistakes
- The minority class is a data problem only. It is equally an evaluation and threshold problem, and often those fixes come first.
- Resampling always fixes imbalance. It re-weights attention but creates no new information, and can fabricate false confidence in synthetic examples.
- More minority data is impossible. Often it is merely unbudgeted: targeted collection and better labeling are frequently available and decisive.
Business use
Name the minority class's share and its per-class metrics in every model review, ahead of any headline number.
Price both error types in money and set the threshold from the prices, not from convention.
Prefer collecting more genuine minority examples over synthetic fixes when the budget allows either.
Watch the minority share over time: drift in the rare class's frequency silently invalidates thresholds and baselines.
People also ask
What is the minority class?
The rare outcome in the data, usually the one the model exists to catch.
Why is it hard to learn?
The model sees few examples of it, and standard training and evaluation are dominated by the common class.
What metric protects it?
Recall on the minority class first, with precision beside it, so both error types stay visible.
Should I oversample the rare class?
Sometimes, with care: it re-balances attention but adds no new information, and synthetic examples can mislead.
Is a rare class always the positive case?
Usually in risk work the rare case is the alert: fraud, default, defect. But whichever class is rare is the minority, whatever its label.
Check your understanding
Why does the minority class decide a classification model's real value?
Answer: Because the rare cases carry the costs and the purpose of the model, while the metrics and defaults all attend to the common class, so value is won or lost in the few per cent that standard reporting hides.
Related terms
- Majority class
- Recall
- Precision
- Threshold (for decision trees)
- Confusion matrix
- class imbalance
- threshold
Learn next
Prompt Like a Pro helps you ask for the per-class numbers that rare-case models must show: https://aiforbusinessandlife.com/academy/prompt-like-a-pro-clear-framework. [C3]
More in AI and machine learning
- Meta-optimization - Meta-optimization is the use of an optimization process to improve the configuration or behavior of another optimization process.
- Mini-batch - A mini-batch is the small slice of training data, commonly 32 to a few thousand examples, used for each weight update instead of the whole dataset or a...
- Minimum Message Length - Minimum Message Length is a model-selection principle from information theory: the best model is the one that gives the shortest total description of the...
- Missing values - Missing values are the empty cells in a dataset: measurements never taken, questions never answered, sensors that failed, customers who skipped a field...
- Mixture of subspaces - A mixture of subspaces is a modeling approach that treats high-dimensional data as points drawn from several lower-dimensional flat regions, each cluster...
- Modality - A modality is a channel or type of data: text, images, audio, video, tables of numbers, sensor readings.
Work in finance? Get the free CFO AI Prompt Pack: 7 prompts for finance leaders.
Sources
[S2] Google, Machine Learning Glossary; [S19] scikit-learn documentation, Metrics and scoring. Full URLs are in the source ledger. Verified 11 October 2026.
Previous: Minkowski distance Next: Minors