0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09Is model A really the best?
Brightcart is choosing between three candidate models. On two hundred test tickets, model A scores eighty-five percent, B eighty-two, and C seventy-eight. Is A clearly the best? Not so fast. Add error bars, and A and B overlap almost completely. With two hundred test cases, a three-point gap could easily be luck. Today: how to compare models properly. We'll borrow the rating system invented for chess, Elo, and its mathematical cousin, Bradley–Terry, to turn head-to-head comparisons into rankings. Then we'll learn the statistics that tell you whether a difference is real.
Season Four, Module Fifteen, final stop: comparing and ranking models.
0:57Why compare instead of score?
Why compare at all, instead of scoring each model separately? Because people, and AI judges, are much more consistent at choosing between two answers than at assigning absolute scores. One reviewer's seven out of ten is another's nine, but both may agree that answer A beats answer B. Collect many such head-to-head judgements, and we can rank the models. But remember one limitation, which we'll come back to: a ranking tells you which model is better, not whether any of them is good enough.
1:32Elo: ratings from wins and losses
Elo ratings were invented for chess. Every player, here every model, has a rating, and the difference between two ratings predicts who's likely to win. If model A is rated fifteen hundred and model B sixteen hundred, the formula says A should win about thirty-six percent of the time. After each comparison, ratings move by an amount proportional to how surprising the result was. Suppose A wins anyway, an upset. With a step size of thirty-two, A gains thirty-two times one minus zero point three six, about twenty and a half points, and B loses the same.
Had the favourite won, as expected, the ratings would barely have moved. Notice the shape of that formula: a sigmoid of a difference in scores, exactly like logistic regression, and exactly like the reward model from episode forty.
2:26Bradley–Terry: fitting strengths all at once
Elo updates ratings one match at a time, so the final numbers can depend on the order in which matches happened. A closely related approach, the Bradley–Terry model, fits all the comparisons at once. Brightcart's AI judge compared the three models on a hundred tickets per pair. A beat B sixty to forty, A beat C seventy-five to twenty-five, and B beat C sixty-five to thirty-five. Bradley–Terry finds a strength for each model, so that the probability of one beating another is the sigmoid of the difference in their strengths, choosing the strengths that make the observed results most likely: maximum likelihood, from episode four.
The fitted strengths are about zero point five for A, zero point zero seven for B, and minus zero point five seven for C. On a chess-style scale, roughly one thousand and eighty-seven, one thousand and twelve, and nine hundred and one. And the model's predictions match the data: it says A should beat C about seventy-four and a half percent of the time; A actually won seventy-five.
3:39Arena leaderboards and their limits
This is how popular public leaderboards rank models: people chat with two anonymous models side by side, vote for the better answer, and the votes become ratings. They're useful, with real limits. Votes reflect preferences, which can favour confident or longer answers over correct ones. The voters' everyday questions may look nothing like Brightcart's support tickets. A ranking only tells you which model is better, not whether any of them is good enough: the best of a bad bunch is still bad. And preferences aren't always consistent: A might beat B, and B beat C, yet C beat A on certain kinds of task.
So use comparisons on your own tasks, with your own judges, and pair them with absolute checks, like the ones from the last two episodes. A quick note: names, prices and rankings in AI change fast. Everything on screen was accurate when this video was made, but some of it may have changed by the time you're watching.
4:43Is the difference real? Error bars
Now back to the question from the start. Is eighty-five percent really better than eighty-two? Pause and predict: on two hundred test tickets, is a three-point gap real, or could it be luck? Every measured score has uncertainty. A common approximation for a ninety-five percent confidence interval is the score, plus or minus one point nine six times the square root of p times one minus p, all divided by n. For eighty-five percent on two hundred tickets, that's plus or minus about five points. The two intervals overlap heavily.
Testing the difference directly: its standard error is about zero point zero three seven, so a three-point gap is only about zero point eight standard errors. Typically we want around two before calling a difference real. So no, we can't conclude that A is better. A practical tip: compare both models on the same tickets and look at where they disagree. That paired comparison is often more sensitive.
5:53How many test cases do you need?
So how many test cases do you need? Uncertainty shrinks with the square root of the number of cases: to halve your error bars, you need about four times as many examples. Going from two hundred tickets to a thousand shrinks the uncertainty from about five points to about two. To reliably detect a three-point difference like ours, with standard statistical settings, you'd need roughly two thousand four hundred test cases per model. That's why serious teams build large evaluation sets for big decisions, focused sets for critical behaviours, and also re-run evaluations more than once, since the models themselves have randomness, as we saw with temperature.
6:37Putting it together
A good model decision combines three views. Comparative: which model wins head-to-head on our tasks, with uncertainty shown. Absolute: does each model meet our minimum bar for grounded answers, safety and format? And operational: speed and cost. For Brightcart, if A and B are statistically too close to call on quality, the decision should come down to cost, speed and privacy, or to collecting more evaluation data before deciding.
7:09Try it yourself: when the favourite wins
This time, model A is the favourite, rated sixteen hundred against fifteen hundred. It's expected to win about sixty-four percent of the time. How much does its rating change if it wins, and if it loses? Pause. A win adds only about eleven and a half points, because a win was expected. A loss costs about twenty and a half, because it's a surprise. That's the elegance of Elo: ratings move in proportion to how surprising each result is.
7:44Pause & Predict: what does a rating gap mean?
If one model is rated two hundred points above another, how often should it win? And with a four-hundred-point gap? Pause. About seventy-six percent for two hundred points, and about ninety-one percent for four hundred. Now look at the top of a typical leaderboard, where models are often just ten or twenty points apart. A fifteen-point gap means about fifty-two percent: barely better than a coin flip. Small gaps at the top shouldn't decide anything on their own.
8:22Rock, paper, scissors models
Sometimes preferences go round in a circle. Model A beats B, B beats C, but C beats A, like rock, paper, scissors. A single rating scale can't represent that, so the fitted ratings look tidy while hiding the cycle. It usually happens because models have different strengths: perhaps C handles refund questions better, which happen to be where A struggles. So don't stop at the overall ranking: look at the head-to-head results, and break them down by category.
8:56Try it yourself: error bars and sample size
An accuracy of eighty-five percent, measured on just fifty test cases, has an error bar of about plus or minus ten points. On two hundred cases, about five points. How many cases do you need to halve the error bar again? Pause.
Four times as many. The error bar shrinks with the square root of the number of cases, so halving it means quadrupling the data: eight hundred cases for about two and a half points. Precision gets expensive, which is why you should decide in advance how small a difference you actually need to detect.
9:39The paired trick
Here's a trick that makes comparisons sharper: test both models on exactly the same cases, and focus on where they disagree. Of two hundred tickets, model A got twenty right that B got wrong, and B got fourteen right that A got wrong. The rest tell us nothing about which is better. A simple paired test divides the difference, six, by the square root of thirty-four, giving about one. That's still well short of convincing. Paired testing uses your data efficiently, but it can't create evidence that isn't there.
10:15Preference isn't correctness
Pairwise votes measure preference, and preference isn't correctness. Reply A is warm and confident, but gets the refund window wrong. Reply B is correct, but terse. Many voters will prefer A. That's why good comparison setups include a "both unacceptable" option, and check facts separately with exact checks before any preference counts. Use comparisons to choose between acceptable answers, never to decide what's true.
10:46Brightcart's internal arena
Brightcart can run its own small arena. Inside the helpdesk tool, agents occasionally see two anonymous drafts for a real ticket, generated by different prompts or models. They pick the better one, or neither, then edit and send it. Over a month, those votes produce ratings for each ticket category. The positions are randomised to avoid bias. The best judges of support replies are the people who send them every day.
11:17Pause & Predict: twenty prompt variants
Dev tries twenty prompt variants, testing each against the current prompt at the usual five percent significance level. Suppose none of them is genuinely better. What's the chance that at least one looks better anyway? Pause.
If the tests were independent, about sixty-four percent; in practice somewhat less, but still a big risk. Test enough variants, and luck will produce a winner. So when one variant comes out on top, confirm it on a fresh set of test cases before celebrating, or use a stricter threshold when you're testing many ideas at once.
12:00Reporting a comparison honestly
Finally, Meera insists that every comparison is reported the same way. What exactly was compared: the model versions, the prompt versions and the date. Which test set, which version, and how many cases. Results with error bars, overall and for each category. For pairwise tests, the flip rate and how often both answers were unacceptable. Cost and latency next to quality. And the decision, with what evidence would change it. A number without its context isn't a result; it's a rumour.
12:35Myth vs Fact
Myth: the model in first place is better than the one in second. Fact: small gaps at the top of leaderboards are often within the margin of error, and on your own tasks, the order can easily change. Always look at the error bars, and test on your own data.
12:55Recap
Let's recap. Comparing answers in pairs is more consistent than scoring them in isolation. Elo turns wins and losses into ratings, with bigger updates for bigger surprises, and Bradley–Terry fits strengths from all comparisons at once. Public leaderboards are useful, but preference isn't correctness, and a ranking says nothing about absolute quality. And every score has uncertainty: on two hundred cases, about five points either way, so small differences need thousands of test cases to confirm. One sentence to remember: rank with comparisons, and decide with error bars.
13:34Next: what to measure in an AI system
Mission complete. Brightcart now knows that models A and B are too close to call on two hundred tickets, while C is clearly behind in head-to-head comparisons, and that the choice between A and B should come down to cost, speed and privacy, or more data. That completes Module Fifteen, evaluation methods. Next, we design the evaluation for Brightcart's own assistant: exactly which qualities to measure, from domain knowledge and factual consistency to safety, instruction-following, cost and speed. See you on the map.