Forecasting and Calibration by kirupa (https://www.kirupa.com/me/index.htm) | filed under Data & Decisions (https://www.kirupa.com/data_and_decisions/index.htm) TL;DR: A forecast is a yes-or-no question, a deadline, and a probability, written down so it can be checked later. Squaring each forecast's miss and averaging the results gives a Brier score, where lower is better. Checking whether the things we call 80% happen about 80% of the time is called calibration. - Words like "probably" mean different numbers to different people. In 1951, the analysts who agreed on "serious possibility" meant anything from 20% to 80%. - Saying 50% for everything scores 0.25 on the common Brier scale. Our first ten forecasts scored 0.28, worse than a coin, because our surest calls kept missing. - A calibration chart groups forecasts by what we said. Weather forecasters' 30% rain calls came true 28.5% of the time, while our 91% calls came true 5 of 8 times. - Calibration isn't enough, since a parrot that always says the average is calibrated and useless. Superforecasters start from base rates, update in small steps, and keep score. In late September, Gus asked Wren a simple question. Gus runs the six Rolling Pin bakeries that Crumb & Co. just bought, and he wanted to know if Biscuit, our help desk bot, would be taking holiday pie pre-orders for all six of his shops before Rolling Pin's November 1 change freeze. Wren thought about it for a second and said, "Probably." Everyone nodded, and the meeting moved on. Nobody noticed that "probably" meant something different to each person at the table, or that nobody would ever be able to say whether Wren had been right. In this article, we are going to turn guesses like that one into something we can check, keep score on them, and use the score to get better at guessing. Onwards! What Does "Probably" Mean? After the meeting, we asked everyone what they had heard. To Wren, "probably" meant a little better than a coin flip. To Gus, it sounded a lot like a promise: [Image: Wren says Probably! in a speech bubble. Below it, a scale from 0% to 100% shows what each person heard: Wren heard 60%, Kofi heard 80%, Gus heard 95%. One word, three different numbers.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_probably.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_probably.png?v=3022a33ed2e4) One word turned into three different numbers. If Biscuit missed the freeze, Wren would shrug, Kofi (our bookkeeper) would be a little disappointed, and Gus would be genuinely surprised. All three of them could also say they had been right all along. This problem is a lot older than our bakery. In 1951, a US intelligence report said a Soviet attack on Yugoslavia that year "should be considered a serious possibility." A few days later, Sherman Kent, who had signed off on that report, asked his colleagues what odds they had in mind (Words of Estimative Probability (https://www.cia.gov/resources/csi/studies-in-intelligence/archives/vol-8-no-4/words-of-estimative-probability/)): [Image: A scale from 0% to 100%. A shaded band labeled serious possibility runs from 20% to 80%: that's how far apart the members of the Board of National Estimates were when each said what the phrase meant. Sherman Kent's own odds, 65%, are marked above the band.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_kent.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_kent.png?v=0ddc93393493) The answers ran from about 20% all the way up to 80%, and Kent himself meant 65%. Everyone had agreed on the words, and nobody had agreed on what the words meant. Making a Forecast We Can Check So, what would it take to make Wren's "probably" checkable? We need a question that will end in a clear yes or no, a date when we will know the answer, and a number for how likely we think the yes is. Here is Wren's answer, written that way: [Image: A forecast written on a card. The question: will Biscuit take pie pre-orders for all 6 Rolling Pin shops? By when: October 20. How likely: 65%. How we'll check: all 6 shops are live on Biscuit's admin page. Made by Wren on September 22.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_card.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_card.png?v=c216f8f9c74b) What we just wrote down is a forecast: a yes-or-no question, a deadline, and a probability. The deadline matters more than it looks. "Biscuit will take Rolling Pin's orders someday" can never be wrong, which also means it can never teach us anything. Our team liked this so much that we started a forecast log. Here are the first ten forecasts we wrote down: [Image: Ten forecasts in a table, each with how likely we said it was. All 6 shops on Biscuit by Oct 20: 65%. November model bill under $150: 90%. No Pinwheel outage over an hour: 90%. Pumpkin pie left at every shop Nov 25: 80%. Under 100 "where's my pie?" emails: 80%. Half of pre-orders through Biscuit: 70%. Reminder texts keep no-shows under 3%: 60%. More pre-orders than last year's 1,900: 55%. "Make it right" credits under $500: 90%. Biscuit answers 9 in 10 without Tess: 70%.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_log.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_log.png?v=3bf95d6976c6) Every number is 50% or higher, because we wrote each forecast as the side we leaned toward. A 30% chance that something happens is the same as a 70% chance that it doesn't. (Pinwheel, if you are wondering, is Rolling Pin's 15-year-old ordering system.) Keeping Score By January, every question in our log will have its answer, and we will need a fair way to grade each forecast. The idea is to take the gap between what we said and what happened, and then multiply that gap by itself. When something happens, it counts as 100%. When it doesn't, it counts as 0%. An 80% forecast that comes true misses by 0.2, so its penalty is 0.2 × 0.2 = 0.04. An 80% forecast that doesn't come true misses by 0.8, so its penalty is 0.64: [Image: A chart of the penalty for a forecast, from 0 to 1, against the chance we gave it, from 0% to 100%. A green curve shows the penalty when the thing happened: it falls from 1 at 0% to 0 at 100%. A red curve shows the penalty when it didn't happen: it rises from 0 at 0% to 1 at 100%. At 80%, the penalty is 0.04 if it happened and 0.64 if it didn't.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_penalty.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_penalty.png?v=48d22a63c72a) Multiplying the gap by itself (aka squaring it) is what makes this work. A small miss costs us almost nothing, and a confident miss costs us sixteen times more. Let's score our log: [Image: The same ten forecasts with what happened and each one's penalty. All 6 shops on Biscuit by Oct 20: said 65%, it happened, penalty 0.12. November model bill under $150: said 90%, it happened, penalty 0.01. No Pinwheel outage over an hour: said 90%, it happened, penalty 0.01. Pumpkin pie left at every shop Nov 25: said 80%, it did not happen, penalty 0.64. Under 100 "where's my pie?" emails: said 80%, it did not happen, penalty 0.64. Half of pre-orders through Biscuit: said 70%, it did not happen, penalty 0.49. Reminder texts keep no-shows under 3%: said 60%, it happened, penalty 0.16. More pre-orders than last year's 1,900: said 55%, it happened, penalty 0.20. "Make it right" credits under $500: said 90%, it happened, penalty 0.01. Biscuit answers 9 in 10 without Tess: said 70%, it did not happen, penalty 0.49. The penalties add up to 2.77, and the average is 0.28.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_scored.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_scored.png?v=ff53566b6622) Our worst penalties came from things we felt pretty sure about, like every shop still having pumpkin pie on November 25. When we average all ten penalties, we get 0.28. Averaging squared misses like this is how the meteorologist Glenn Brier proposed grading weather forecasts back in 1950 (his paper (https://journals.ametsoc.org/view/journals/mwre/78/1/1520-0493_1950_078_0001_vofeit_2_0_co_2.xml)), and the average is called a Brier score. Zero is perfect, and lower is better. Here is how our 0.28 compares to somebody who knows nothing at all about our bakery: [Image: Three bars of average penalty, where lower is better. Our 10 forecasts: 0.28. Saying 50% every time: 0.25. Perfect forecasts: 0. We scored worse than a coin flip.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_vs_coin.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_vs_coin.png?v=4be3ec2b78e6) A forecaster who says 50% for every question scores 0.25 no matter what happens, because every one of their forecasts misses by exactly 0.5. Our team, with everything we know about our own shops, did worse than a coin. Ouch. Note: Two Versions of the Same Score Brier's original formula counts both outcomes (it happened, and it didn't), so its scores are twice as big and run from 0 to 2. Philip Tetlock's forecasting tournaments, which we'll get to shortly, use that version, where saying 50% every time scores 0.5. We are using the more common version that runs from 0 to 1. Why Squaring Keeps Us Honest Squaring the gap has one more benefit. Let's say something really does have a 70% chance of happening, and we forecast it over and over again. Here is our average penalty for every number we could say: [Image: If something really has a 70% chance, this curve shows our average penalty over many tries for each number we could say. It's lowest, 0.21, when we say 70%. Saying 90% or 50% both average 0.25, and saying 100% averages 0.30.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_honest.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_honest.png?v=179cac497d06) The lowest point is at exactly 70%. If we puff our number up to 90% to sound bold, or shade it down to 50% to play it safe, our average penalty goes up. This means the only way to win over the long run is to say the number we actually believe. A score that works this way is called a proper scoring rule. Are Our 80s Really 80s? A single score tells us that we are off, but it doesn't tell us how. To see that, we grouped all 40 forecasts we made over the holidays by what we said, and we checked how often each group came true: [Image: A calibration chart of our 40 holiday forecasts, grouped by what we said, against how often those things happened. A dashed diagonal line marks perfect calibration. When we said about 52%, it happened 3 of 6 times (50%). When we said about 62%, it happened 5 of 8 times (62%). When we said about 72%, it happened 6 of 10 times (60%). When we said about 82%, it happened 5 of 8 times (62%). When we said about 91%, it happened 5 of 8 times (62%). Every group from 70% up sits below the line.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_calibration.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_calibration.png?v=f2a2de476397) If we were perfect at this, every dot would sit on the dashed line. Ours look a lot more like a flat line. When we said about 91%, those things happened just 5 of 8 times, the same rate as our 60s. How closely our stated chances match how often things really happen is called calibration. A well-calibrated forecaster's 70% calls come true about 70% of the time. (It's the same idea as calibrated trust (https://www.kirupa.com/human_behavior/calibrated_trust.htm), where how much people trust an AI should match how often it's right.) Our team was overconfident. Whenever we felt sure, we were more sure than our track record said we should be. So, what does this look like for people who are good at it? Weather forecasters are the classic example. Allan Murphy and Robert Winkler studied years of US rain forecasts in 1977 (their paper (https://doi.org/10.2307/2346866)), and here is what happened when the forecasters said there was a 30% chance of rain: [Image: Weather forecasters said there was a 30% chance of rain 1,574 times. It rained on 449 of them, which is 28.5%. Two bars, 30% said and 28.5% happened, are almost the same height.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_weather.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_weather.png?v=1fcf381cb10f) Out of 1,574 forecasts of 30%, it rained 449 times. That is 28.5%. Weather forecasters get this good because they forecast every day and find out the answer by the next morning, which is a whole lot of practice with very fast feedback. Calibrated Isn't Enough Is calibration all we need? Yara pointed out a loophole. Yara leads Rolling Pin's ordering team, and every night at 2am, Pinwheel imports orders from a CSV file. In October, that import stopped partway through on 4 of 20 nights, so a parrot trained to squawk "80% it runs clean!" every night would be perfectly calibrated. Wren tried something better. Before bed, Wren looked at that night's CSV file and the import log, and said 95% on nights that looked normal and 25% on nights that looked off: [Image: Twenty October nights of the 2am import. It ran cleanly on 16 and stopped partway on 4 (nights 3, 9, 14, 18). The parrot said 80% every night: calibrated, since it ran cleanly 80% of the time, with an average penalty of 0.16. Wren checked the file and the log before bed and said 95% on most nights and 25% on the 4 nights that looked off. Also calibrated, and an average penalty of 0.08, about half the parrot's.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_parrot.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_parrot.png?v=c3c2064949ef) Both forecasters are calibrated. The parrot's 80% came true 80% of the time, and Wren's 25% nights went wrong 3 times out of 4. The big difference is that Wren's numbers tell Yara which nights to worry about, and the parrot's numbers don't. Wren's score of 0.08 is half of the parrot's 0.16. Moving away from the average when we have a real reason to is called resolution. Tetlock lists getting good scores on both calibration and resolution (https://goodjudgment.com/philip-tetlocks-10-commandments-of-superforecasting/) as one of the habits of the best forecasters. What Do Superforecasters Do Differently? Over about twenty years, the psychologist Philip Tetlock asked 284 people who made a living commenting on politics and economics to forecast world events. By 2003, he had 82,361 forecasts to score. On calibration, the experts would have done better by giving every possible outcome the same odds (The New Yorker's review of his book (https://www.newyorker.com/magazine/2005/12/05/everybodys-an-expert)). The line people remember is that the average expert did about as well as a dart-throwing chimp: [Image: A gag. A chimp throws darts at a board split into three equal slices, each marked 33%. A sticker on the board reads Even odds. In Tetlock's study, giving every outcome even odds would have beaten the experts' calibration.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_chimp.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_chimp.png?v=0112d84afc55) That wasn't the end of the story, though. In 2011, Tetlock, Barbara Mellers, and Don Moore started the Good Judgment Project and entered it in a forecasting tournament run by IARPA, a US intelligence research agency. Thousands of volunteers forecast world events, every forecast got a Brier score, and the project won. Each year, its top 2% became superforecasters (Good Judgment (https://goodjudgment.com/how-to-become-a-superforecaster/)). Tetlock and Dan Gardner wrote up their habits in the 2015 book Superforecasting, and these are the ones we are going to borrow: - Start with how often things like this usually happen, and then adjust for what's special about this case. - Break a big, fuzzy question into smaller questions that are easier to answer. - Update often, in small steps, as news comes in. - Tell 60% apart from 70% when you can, instead of rounding everything to "likely." - Keep score, and look hard at the misses. Here is how our forecast #1 moved over a few weeks of news: [Image: Our first forecast's chance over time. Sep 22: 65%, first forecast. Oct 2: 45%, pinwheel can't change this year. Oct 6: 75%, plan: write into the 2am csv. Oct 12: 90%, test import works. Oct 15: it happened, live at all 6 shops. The line moves in steps as news comes in.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_update.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_update.png?v=1d495f5ff6b8) When Yara told us Pinwheel couldn't take any code changes this year, Wren dropped the forecast to 45%. Then we found a way around it: Biscuit would write its pre-orders into the same CSV file the 2am import already reads. The forecast climbed to 75%, and after a test import worked, it went to 90%. On October 15, all six shops were live. Each step moved only as far as the news justified. After the holidays, we used these habits on our next 40 forecasts: [Image: The same kind of calibration chart for our next 40 forecasts, made in the spring. When we said about 52%, it happened 2 of 4 times (50%). When we said about 62%, it happened 4 of 6 times (67%). When we said about 72%, it happened 7 of 10 times (70%). When we said about 82%, it happened 8 of 10 times (80%). When we said about 92%, it happened 9 of 10 times (90%). The dots sit close to the dashed diagonal, and our average penalty dropped from 0.27 to 0.18.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_spring.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_spring.png?v=5d3c9cf1d928) Our dots moved onto the line, and our Brier score dropped from 0.27 for the holiday forecasts to 0.18. We didn't get any smarter over the winter. We just got more honest about how sure we really were. Scoring Our AI, Too The same scorecard works on the software we build. During the pie rush, Biscuit flags orders that look like duplicates (the same family ordering once on the phone and once in chat), and it says how sure it is. We checked its flags against what Tess, our support lead, found: [Image: Biscuit flags orders it thinks are duplicates and says how sure it is. When it said 60-79% sure, 24 of 40 flagged orders were duplicates (60%). When it said 80-94% sure, 33 of 50 flagged orders were duplicates (66%). When it said 95%+ sure, 42 of 60 flagged orders were duplicates (70%). The more sure Biscuit said it was, the further it fell below the line.] (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_biscuit.png) (https://www.kirupa.com/data_and_decisions/images/forecasting_and_calibration_biscuit.png?v=d458ae149899) When Biscuit said it was 95% sure or more, the order was a duplicate only 70% of the time. In Why AI Makes Things Up (https://www.kirupa.com/ai_fundamentals/why_ai_makes_things_up.htm), we saw that the GPT-4 Technical Report found the training that turned the model into a friendly assistant also made it less calibrated. Our fix for Biscuit will be the same as our fix for ourselves. We log what it says, score it against what happened, and only trust its 95% once its 95% has earned it. Try It This Week Make ten forecasts now, and score them in a month: 1. Write ten yes-or-no questions about your product that will be settled within a month, like "Will the new signup flow ship by the 20th?" 2. Give each one a probability and the date you'll check it. 3. When each one is settled, work out its penalty: the gap between your number and the outcome (1 or 0), squared. 4. Average the penalties, and compare your Brier score to 0.25. 5. Group your forecasts by what you said, and check whether your 80s happened about 80% of the time. Frequently Asked Questions What Is a Brier Score? A Brier score grades probability forecasts. For each forecast, square the gap between the probability you gave and what happened (1 if it happened, 0 if it didn’t), then average those penalties. Zero is perfect, and saying 50% every time scores 0.25 on the common scale, or 0.5 on Brier’s original 0 to 2 scale. What Does It Mean to Be Well Calibrated? A well-calibrated forecaster’s stated chances match how often things really happen, so their 70% calls come true about 70% of the time. To check it, group your forecasts by what you said and compare each group to how often it came true. Calibration alone isn’t enough, since always saying the average is calibrated and useless. What Is a Good Brier Score? It depends on how hard the questions are, so compare scores on the same set of questions. On the common 0 to 1 scale, 0.25 is what saying 50% every time earns, so a score above that means your confidence is hurting you. Our team went from 0.27 to 0.18 by being more honest about how sure we were. What Are Superforecasters? Superforecasters are the top 2% of forecasters in Philip Tetlock’s Good Judgment Project, which won a forecasting tournament run by IARPA, a US intelligence research agency, starting in 2011. They start from how often similar things happen, break questions into parts, update in small steps, and keep score. Tetlock and Dan Gardner describe them in the 2015 book Superforecasting. Conclusion Ok! It is time to wrap things up. We started with one word, "probably", that meant 60% to Wren and 95% to Gus. Writing it as a forecast with a question, a deadline, and a number turned it into something that could be wrong, which is exactly what let us learn from it. Our Brier score told us we were doing worse than a coin, our calibration chart showed us that our 90s were really 60s, and a few superforecaster habits pulled our numbers back onto the line. One honest limitation is that a Brier score needs a lot of forecasts before it means much. Ten forecasts can be lucky or unlucky, and one bad miss doesn't make anyone a bad forecaster. (Telling a bad call from bad luck is its own skill, and we practice it in Decisions vs. Outcomes (https://www.kirupa.com/data_and_decisions/decisions_vs_outcomes.htm).) If you'd like to see these ideas applied to the question every team gets asked the most, "when will it be done?", Estimating Projects Honestly (https://www.kirupa.com/data_and_decisions/estimating_projects.htm) is where we are going next. Probably. (We'd put it at about 90%.) Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, Estimating Projects Honestly (https://www.kirupa.com/data_and_decisions/estimating_projects.htm), or check out some related content: - Roadmaps as Bets (https://www.kirupa.com/product_thinking/roadmaps_as_bets.htm). Writing roadmap items as bets, with how sure we are said out loud. - Calibrated Trust: Showing AI Uncertainty People Can Use (https://www.kirupa.com/human_behavior/calibrated_trust.htm). Matching how much people trust an AI to how often it’s right. - Why AI Makes Things Up (https://www.kirupa.com/ai_fundamentals/why_ai_makes_things_up.htm). Why language models sound sure even when they’re wrong. 3. Stuck on something, or curious about a detail we skipped? Ask on the forums (https://forum.kirupa.com/), and we’ll help you out. [Mastery Quiz] Test your knowledge! Take the Forecasting and Calibration Quiz: https://www.kirupa.com/quizzes/forecasting_and_calibration.htm Practice with 6 multiple-choice questions and an explanation after every answer. [/Mastery Quiz]