📈Class Imbalance
Also known as Imbalanced Data, Imbalanced Dataset, Class Imbalance Problem
When one answer is much more rare than the rest in your data.
Think of it like
It is like a bag with 99 red sweets and one blue one. Guess red every time and you are almost always right.
Example
A bank's data holds 50 frauds in 50,000 payments. Jack's first model never flags fraud and still scores 99.9%. Recall shows it finds zero.
Why it matters
The rare case is often the one you care about, like fraud or disease. Imbalance hides it.
Definition
Common mistake
Key takeaways
- 1One class is rare. Like fraud, or a rare illness.
- 2Accuracy lies. Always guessing common still scores high.
- 3Rebalance. Show the rare case more, or weight it.