learn-bayesian-with-phoebe / Leader session 2 of 6
Learn Bayesian with Phoebe · Leader session 2 of 6

Small data, honest uncertainty

Northgate redeemed one voucher in eighteen last month. The slide said 5.6 percent, the regional manager read it as a failing outlet, and the closure review was scheduled. Northgate's true redemption rate is 0.192, the highest of the twelve. Nothing about the 5.6 percent was a mistake: one redemption in eighteen is what a true rate of 0.192 looks like at that volume a good share of the time. The mistake was treating eighteen observations as if they could produce a point. They cannot. What they can produce is a distribution, and the honest summary of it, under a prior that claims almost nothing, is an 89 percent interval from 0.020 to 0.222. That sentence would have looked bad on a slide and would have saved an outlet. Tonight is about being able to say it.

🔴 Hardest Whoever reads a rate off a small sample Product, finance and analytics leads 45 min
0-3 · Welcome 3-20 · The posterior as a shape 20-40 · Build-along: rewrite the slide 40-45 · Q&A
Part 0

Where tonight sits

Session 1 priced a prior: a belief is worth a number of pseudo-observations, and at Northgate a belief worth a hundred outvoted eighteen real customers and missed. Tonight sets the prior almost to zero, a flat Beta(1, 1) worth two pseudo-observations, and asks what eighteen observations say on their own. The answer is not a number. Session 3 is where the other eleven outlets are allowed to help, and the interval you will see tonight is the one that session narrows. The example throughout is still Halloway Bakeries, its twelve outlets and one voucher.

Live = presented in the 45 minutes Self-study = the full depth, after class 🔍 Every diagram zooms

★ What you walk out with tonight. The habit of seeing a small-sample rate as a shape rather than a dot: Northgate's eighteen observations produce a posterior that runs from near zero to past 0.22, with its peak at the observed 0.056 and its truth, 0.192, comfortably inside. One sentence that replaces every point estimate from small data: "there is an 89 percent probability the rate is between 0.020 and 0.222". And the reflex to ask, of any interval anybody shows you, what kind it is and what level, because the tooling changed both defaults and some notebooks changed with it without anyone noticing.

LiveEighteen observations are not a number, they are a shape4 min▶

Ask what rate could have produced one redemption in eighteen and the honest answer is: a lot of them. A true rate of 0.05 would do it routinely. A true rate of 0.192 does it a good share of the time. A true rate of 0.30 would do it rarely, and 0.50 almost never. Lay those plausibilities out along the axis and you have drawn the posterior: a curve that peaks at the observed 0.056, falls away slowly to the right, and is still clearly above zero at 0.192, where Northgate actually is.

That curve is the whole result. The 0.056 on the slide is one point on it, the peak, and the peak of a wide shape is not a summary of the shape. A point estimate from n = 18 is not wrong; it is meaningless without its spread, in the same way that "the flight is at 3" is meaningless without knowing whether the airline means 3 o'clock or sometime in the afternoon. The spread is the information. Eighteen observations bought a shape, and the shape is wide because eighteen is small.

Real world

The Northgate closure review opened with a ranked bar chart of twelve observed rates. Northgate sat second from the bottom on 0.056, above only Old Quay, and Hillcrest sat at the top on 0.225. Hillcrest's true rate is 0.137 and Northgate's is 0.192; the ranking was close to upside down at the thin end, and nothing on the chart could have shown it, because the chart had no widths. Twelve dots, no shapes.

Self-studyThe words that will keep coming back4 min▶
  • Posterior. The distribution over the rate after the data are in. Tonight, under a flat prior, it is almost entirely the data's own shape.
  • Flat prior. Beta(1, 1), two pseudo-observations. As close to "no belief" as a prior gets. Session 1 showed it is not nothing; tonight it is used precisely because it claims so little.
  • Posterior mean. The balance point of the shape. Northgate's is 0.100 under the flat prior, well above the observed 0.056, because the shape has a long right tail.
  • 89 percent interval. The range holding 89 percent of the posterior. Northgate: 0.020 to 0.222.
  • Equal-tailed. How the interval is cut: 5.5 percent of the posterior left outside on each side. Every interval tonight, and every Halloway interval on the pages that follow, is 89 percent equal-tailed, and says so.
  • Credible interval. The Bayesian interval. It supports the sentence "there is an 89 percent probability the rate is in here".
  • Confidence interval. The frequentist interval. A different sentence about a different thing, owned by learn-statistics-with-phoebe b7, and contrasted with the credible interval in exactly one card tonight.
  • Width. The interval's top minus its bottom. Northgate 0.202, Westfield 0.037. The number that does the arguing when a point cannot.
Part 1 · covers what eighteen observations can say

The posterior is a distribution. The summary is an interval.

10 min live

Northgate's eighteen customers, a flat prior, and nothing else. What comes out is drawn below exactly as the arithmetic produces it: a shape, the middle 89 percent of it shaded, and the truth marked so the shape can be judged rather than admired. Under a flat prior Northgate's 89 percent interval is 0.020 to 0.222. It is honest, it is useless for a decision, and it is correct. That is what eighteen observations buy.

Northgate, n = 18, flat prior. The posterior is a shape, and the interval is its middle 89 percent. observed 0.056 sits at the peak posterior mean 0.100 truth 0.192, inside 0.020 0.222 0.00 0.10 0.30 0.40 redemption rate The sentence this shape supports: there is an 89 percent probability the rate is between 0.020 and 0.222. Equal-tailed: 5.5 percent cut from each end. Width 0.202. Honest, and no use for a decision.
🔍 Click to zoom - the peak is where the slide's 5.6 percent came from. The truth is inside the shape, well to the right of the peak.
LiveHonest, useless, and correct4 min▶

Three things are true of Northgate's interval at once, and a leader has to hold all three. It is honest: it contains the true rate, 0.192, which the point estimate missed by 0.136. It is useless for a decision: a rate somewhere between 0.020 and 0.222 covers "close the outlet" and "best in the chain" in one breath, and no budget can be built on it. And it is correct: eighteen observations under a prior that claims almost nothing do not support anything narrower, and any narrower interval would have been bought with a belief rather than with data.

The instinct in the room is to fix the third property by fixing the first two, to pull the interval in until it says something. Session 1 showed the price of doing that with an asserted prior: an interval of 0.068 to 0.159 that read like knowledge and excluded the truth. Session 3 shows the legitimate way, letting the other eleven outlets narrow it. Tonight the discipline is simpler and comes first: say the width before you try to shrink it. An outlet was nearly closed because nobody in the room knew the width was 0.202.

LiveThe sentence, and the other sentence3 min▶

"There is an 89 percent probability the rate is between 0.020 and 0.222." That is a statement about the rate, and it is the sentence almost everybody believes a confidence interval is making. A credible interval is allowed to make it, because the posterior is a probability distribution over the rate itself and the interval is simply where 89 percent of it sits.

The frequentist confidence interval is a different sentence about a different thing. It describes the reliability of the procedure that produced the interval across many repeated samples, not the probability that this particular rate lies in this particular range, and reading it as the Bayesian sentence is one of the most common misreadings in applied work. learn-statistics-with-phoebe b7 owns that interval and the reasoning behind it; nothing here re-derives it. What matters tonight is narrower: when you hear the sentence "89 percent probability the rate is between", ask which kind of interval is being described, because only one of them earns those words.

Self-studyWhy 89, why equal-tailed, and why you must say both4 min▶

Eighty-nine is not sacred. It is the level the standard Bayesian tooling ships with: ArviZ 1.x sets its default interval probability, the setting called stats.ci_prob, to 0.89, and its default interval kind, stats.ci_kind, to "eti", the equal-tailed interval. The previous defaults were 0.94 and the highest-density interval. The maintainers' stated reason for 0.89 is that it "produces intervals with lower variability, leading to more stable summaries": at the extremes of a distribution the estimated edge moves around a lot from one run to the next, and a slightly less ambitious level is steadier. Equal-tailed means 5.5 percent of the posterior is cut from each end, which is what every Halloway interval means and every page says.

The number matters less than the habit. There is a documented case, in a third party's notebooks, of intervals that silently changed kind when the library was upgraded: the code still ran, the numbers still printed, the prose still said "highest density", and the intervals were now equal-tailed. Nobody had done anything wrong; a default had moved under them. The defence is to state kind and level with every interval, so that "89 percent equal-tailed" travels with the numbers and a reader can tell when it stops matching. An interval with no kind and no level attached is not yet a result. It is a pair of numbers waiting for someone to ask.

Part 2 · covers what volume buys and what it does not

Volume narrows the interval. It does not remove it.

7 min live

Westfield is Halloway's flagship: 900 vouchers a month, fifty times Northgate's volume, 127 redeemed. Under the same flat prior its posterior mean is 0.142 and its 89 percent interval runs from 0.124 to 0.161, with a true rate of 0.150 inside. Drawn beside Northgate's on the same axis, it shows what fifty times the data actually purchases: a much narrower shape, and still a shape.

Two outlets, one axis, one flat prior. Fifty times the vouchers, and the interval is still an interval. Northgate, n = 18 Westfield, n = 900 Westfield truth 0.150, inside Northgate truth 0.192, inside Northgate: 0.020 to 0.222, width 0.202 Westfield: 0.124 to 0.161, width 0.037 Fifty times the vouchers buys an interval about a fifth as wide. It does not buy a point. 0.00 0.05 0.10 0.15 0.20 0.25 0.30 redemption rate
🔍 Click to zoom - both truths are inside both intervals. One interval could support a budget; the other could support a closure or a bonus with equal ease.
LiveWhat the flagship's 900 actually bought4 min▶

Westfield's interval, 0.124 to 0.161, is 0.037 wide. Northgate's is 0.202 wide. Fifty times the data produced an interval about a fifth as wide, which is a great deal, and a long way from a point. The posterior mean of 0.142 is still 0.008 below the true 0.150, and the interval is what tells you that gap is unremarkable: 0.150 sits well inside it. Without the interval, a finance team comparing 0.142 to last year's 0.150 might have called it a decline. With it, the honest reading is that 900 vouchers cannot tell those two numbers apart.

That is the general lesson about volume. More data narrows the shape, and each extra voucher narrows it by less than the one before. It never collapses the shape to a dot, and the width at any given volume is a fact about the data, not a fault in the analysis. A slide that shows Westfield as 14.2 percent and Northgate as 5.6 percent is showing two dots of wildly different reliability at identical size. The interval is the only thing on the page that knows the difference.

Real world

Halloway's monthly pack ranked all twelve outlets by observed rate in one column. Once the 89 percent intervals were added as a second column, the ranking stopped being read as a ranking: the thin outlets' intervals overlapped almost everything, and Northgate's alone, 0.020 to 0.222, covered the observed rate of nearly every other outlet in the chain. The closure review was withdrawn on the strength of the second column and nothing else.

Self-studyThe executive move: let the width do the arguing3 min▶

Replace "the rate is 5.6 percent" with "there is an 89 percent probability the rate is between 2.0 and 22.2 percent" and stop talking. The width does the arguing for you. Nobody hearing that sentence proposes a closure, and nobody hearing it proposes a bonus either; they propose getting more data or borrowing some, which is the right next move and the subject of session 3. The point estimate invited a decision the evidence could not support. The interval declines the invitation on your behalf.

Two cautions. First, an interval you cannot describe is not one you should present: say the level and the kind, "89 percent, equal-tailed", or someone will assume 95 and be wrong about what you claimed. Second, this is one card, not the method. The full craft of saying uncertainty to executives, the interval, the probability of a difference, the stake attached to being wrong, is practitioner session 9's whole 45 minutes. Whether a stated 89 percent turns out to be honest when scored across many such statements is a separate question again, and learn-decision-intelligence-with-phoebe owns it. Tonight's move is the first and smallest: never show a small-data point without its width.

Part 3 · build-along

Rewrite a slide that shows a point

20 min build-along

No laptop. Bring the number you priced in session 1, or any small-sample rate your area acts on, and the slide it appears on. The build-along turns the point into the sentence, using only things you can find out by asking, and ends with a slide that could survive the Northgate meeting.

Find the count behind the rate. "5.6 percent" is one of eighteen. "14.1 percent" is 127 of 900. If nobody can tell you the two integers, the rate has no width yet and the slide is not ready. Write both integers on the slide, next to the percentage, before anything else.

Ask for the shape, not the number. The request to whoever produced the figure is "give me the 89 percent equal-tailed interval under a flat prior". It is a two-minute job for them and it names the level, the kind and the prior, so the answer comes back as a result rather than a pair of numbers.

Write the width down. Top minus bottom. Northgate 0.202, Westfield 0.037. Put it in the margin. If the width is bigger than the difference the slide is claiming, the slide is claiming something the data cannot see, and you have found the finding.

Replace the headline. "The rate is 5.6 percent" becomes "there is an 89 percent probability the rate is between 2.0 and 22.2 percent". Say it aloud once. If it sounds embarrassingly wide, the embarrassment belongs to the sample size, and it has been hiding behind the point.

Mark the decision the old slide invited. Closure, bonus, budget, launch. Ask whether the interval supports it, whether it supports the opposite equally well, or whether it supports neither. Northgate's interval supports closure and best-in-chain equally well, which is the same as supporting neither.

Write the next move, not the verdict. When the interval supports neither, the honest slide ends with "more data" or "borrow strength from the other outlets", and session 3 is the second of those. A slide that ends in a sentence about what to find out next is not a weaker slide. It is the one that was true.

The question that changes the meeting. "How wide is that?" Three words, no technical content, and it separates every number that can carry a decision from every number that cannot. Asked of Northgate's 5.6 percent, the answer was 0.202, and the closure review did not survive hearing it.

Check yourself

Three questions

Northgate redeemed 1 voucher in 18, observed 0.056, and its true rate is 0.192. Which statement is right?

Nothing went wrong with the count. Eighteen observations produce a posterior that runs from 0.020 to 0.222 under a flat prior, and 0.192 sits comfortably inside it. The 0.056 is the peak of a wide shape, and the peak of a wide shape is not a summary of it.

An analyst says "there is an 89 percent probability the rate is between 0.020 and 0.222". Which kind of interval earns that sentence?

The credible interval is where 89 percent of the posterior sits, so the sentence is exactly what it claims. The confidence interval describes the reliability of a procedure across repeated samples and does not make that statement about this rate. The two are contrasted in one card and never re-derived here.

Why is every Halloway interval 89 percent equal-tailed, and what is the lesson?

ArviZ 1.x moved its defaults to 0.89 and equal-tailed from 0.94 and highest-density, citing lower variability in summaries. A documented case exists of notebooks whose intervals changed kind on upgrade while the prose still said otherwise. The habit of saying "89 percent, equal-tailed" every time is the protection, not the number itself.

Homework

Before session 3

30 min

Take the slide you rewrote tonight and find its neighbours: the other outlets, regions, products or cohorts that were measured the same way at the same time, with their counts. Bring the list, however short. Session 3 is about how those neighbours can legitimately narrow an interval that eighteen observations left wide, how much they should be allowed to, and the fact that the answer can be learned from the data rather than asserted. Northgate's 0.020 to 0.222 is the interval that session narrows, and the eleven other outlets are what it narrows it with.

Sources covered

What tonight maps to

✓ The posterior as a distribution, the summary as an interval Northgate, 1 of 18 under a flat prior: posterior mean 0.100, 89 percent equal-tailed interval 0.020 to 0.222, truth 0.192 inside. Statistical Rethinking's "garden of forking data" reading, kept to the one picture a leader needs.
✓ The credible-interval sentence and what it claims "There is an 89 percent probability the rate is between 0.020 and 0.222" is a statement about the rate, which a credible interval can make. Contrasted with the confidence interval in one card, not re-derived.
✓ Why 89 percent and equal-tailed, and why both must be stated ArviZ 1.x defaults: stats.ci_prob 0.89 and stats.ci_kind "eti", previously 0.94 and HDI, chosen for lower variability in summaries. A documented case of notebooks whose intervals changed kind silently on upgrade.
✓ Volume narrows, volume does not remove Westfield, 127 of 900 under a flat prior: mean 0.142, interval 0.124 to 0.161, truth 0.150 inside. Width 0.037 against Northgate's 0.202.
◐ Narrowing the interval with the other eleven outlets Session 3. Tonight's flat-prior interval is the honest starting point; partial pooling is the legitimate way to narrow it, with the amount learned from the data.
◐ The full method for saying uncertainty to executives Practitioner session 9: the interval, the probability of a difference, the stake. Tonight is the first move only, replacing a point with the interval sentence.
· Confidence intervals and the frequentist sentence Not covered by design. learn-statistics-with-phoebe b7 owns confidence intervals; here the credible interval is contrasted with them in one card and never re-derived.
· Whether a stated 89 percent is honest over many forecasts Not covered by design. Measuring calibration is learn-decision-intelligence-with-phoebe's territory; this track produces the Bayesian sentence and hands the audit of it there.

Session 2 cheat sheet

Eighteen observations buy a shapeNot a number. The 0.056 is the peak of a wide posterior, and the peak is not a summary.
Northgate: 0.020 to 0.22289 percent equal-tailed under a flat prior. Honest, useless for a decision, correct. Truth 0.192 inside.
The sentence"There is an 89 percent probability the rate is between 0.020 and 0.222." A credible interval earns it.
The other sentenceA confidence interval is about the procedure, not this rate. learn-statistics-with-phoebe b7 owns it.
89, equal-tailed, said every timeThe tooling's default, chosen for stability. The number is not sacred; stating kind and level is.
Westfield: 0.124 to 0.161n = 900, mean 0.142, truth 0.150 inside. Width 0.037, about a fifth of Northgate's. Still an interval.
Volume narrows, never removesEach extra observation narrows the shape by less than the last. No amount collapses it to a dot.
The meeting question"How wide is that?" Three words that sort every number into carries-a-decision or does-not.