Data science: numbers you can act on

Lesson 1 of 3

Accuracy, medians, and the typical account

8 min

Accuracy is the share of predictions that match the label. If fraud is 0.5% of transactions, a model that never flags anyone is 99.5% accurate and useless. Lead with precision and recall on the rare class, or with the cost of a miss versus a false alarm.

The mean is pulled by extremes. Three $50,000 accounts will make “average revenue” look nothing like the $20 most customers pay. The median is the typical account. Use the mean when the total matters (finance needs the sum). Use the median when you are describing a usual customer.

Example

Support celebrates a fraud model at 99% accuracy. It flagged 3 of 10,000 transactions and missed the rest. The accuracy number never mentioned the misses. A 60% precision list of 400 names is more honest: you expect about 240 real cases and 160 false alarms.

Practice

Why is a 99% accurate fraud model not automatically a good model?