
A fraud detector scores 99.8% on 285,000 transactions and finds none of the 492 frauds in them. Before you read any score, count how many positives the test set actually holds: if they are rare, accuracy is measuring the majority class and telling you nothing about the model.
Two settings of the same model score 99.92% and 99.93%. Underneath, one finds 93 frauds and the other 113, bought with 12 more false alarms. Read the four cells and work out precision and recall yourself, because the headline hides the trade you just made.
A model scoring 99.92% looks strong until you learn that predicting the majority class for every single row scores 99.83%. Build the dumbest possible baseline first. The gap between it and your model is what your work actually bought.
A classifier that is 97.7% accurate says it is 99.8% sure about 1,934 transactions, and 6.2% of them really are fraud. Bucket the predictions by the confidence they claimed and compare it against what happened — if the two columns do not track, the confidence is decoration.
Multiplying every transaction amount by 100 changes nothing real and flips 9,846 predictions: recall rises to 74% while precision falls from 87% to 1.1. Change what carries no information, and the predictions that move are your answer.
A planted column lifts recall twenty points overnight and outranks every genuine feature in the data. No statistic will tell you it is a leak. You have to ask when each value existed, and whether it would have been available at the moment the prediction was needed.
This dataset holds 1,081 exact duplicate rows, so a random split quietly puts 426 test rows into training as well. Scored on their own, those rows come back at 100% recall against 61.3% on rows the model has genuinely never seen.
Across ten seeds, accuracy sits flat at 99.92% while recall swings from 56.8 to 73 — a spread of more than sixteen points, with a standard deviation of 5.3. One number from one split is not a measurement. It is an anecdote with a decimal point.
Train on the smaller 95% of transaction amounts and the model never sees one above £365. Score it on amounts up to £25,000 and precision collapses from 84.5% to 4.1, while its average confidence barely moves. Outside the training range is a question it was never actually asked.
Resample the data and fit again. V14, V4 and V10 hold the top of the list run after run, while V22 appears in only two of four. What survives the resampling is what your data supports; the rest you brought with you.
A model comes back at 99.8% on the test set. Everybody relaxes. The number is real, correctly computed, and it would survive a code review — and the model has found none of the 492 frauds in the data.
That is not a trick. It is what accuracy does when one class is rare, and it is the first of ten ways a score can be right-looking and wrong. This course is ten checks, one per lecture, five minutes each. Every one is a thing you can do in about a minute, before you trust the number in front of you.
Each lecture runs its check on the same real dataset — anonymised credit card transactions, 285,000 of them, 492 fraudulent — so you watch the failures happen rather than hear them described. You will see a 99.92% model beaten on every measure that matters by one scoring 99.83%. You will see a column that lifts recall twenty points because it should never have been in the data. You will see a model's precision fall from 84.5% to 4.1 the moment it is asked about a transaction larger than any it was trained on, while its confidence barely moves.
The checks are tool-agnostic and the reasoning is the point, but the screencasts are Python and pandas, so you can run every one of them yourself. The dataset and all ten scripts are attached to the first lecture — the same files that produced the numbers on screen, with the output they produced, so you can check that your run agrees with mine. You do not need to write any code to follow along.
By the end you will have ten specific questions to put to any model's results — your own or someone else's — and you will know what each answer rules out.