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

The prior argument

Put three careful Bayesian statisticians in a room with Northgate's eighteen vouchers and ask them what the prior should be. The first says the prior is what head office actually believes, about 0.12, and writing down anything else is a pretence. The second says start flat, let eighteen customers speak for themselves, and add belief only when you can defend it. The third says rule out the absurd, put weight on the plausible, and before anybody sees data, simulate from the prior to check it does not predict nonsense. All three are honest. All three can point at the Northgate table from session 1 and say it proves their point. The field has argued about this for a long time and has not settled it, and tonight does not pretend to. It teaches the argument as an argument, so that when it happens in your meeting you recognise the three positions, hear each at full strength, and know the one practice all three accept.

🔴 Advanced Whoever signs off a number from small data Product, finance and analytics leads 45 min
0-3 · Welcome 3-20 · Three positions, one bench 20-40 · Build-along: hold the argument 40-45 · Q&A
Part 0

Where session 5 sits

Six sessions, 45 minutes each, no code. Session 1 priced a prior in pseudo-observations and showed what it costs when it is wrong. Session 3 showed a prior learned from the other eleven outlets doing far better than one asserted from head office. Session 4 read a posterior for a decision. Tonight goes back to the beginning of the analysis and asks the question every one of those sessions deferred: how should the prior be chosen at all. There are three serious answers, they disagree, and the disagreement is live in the field's own journals. Session 6 turns whatever position you take into a written commission. The example is still Halloway Bakeries, and the bench is still Northgate: eighteen vouchers, one redeemed, a true rate of 0.192.

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

★ What you walk out with tonight. The three positions on choosing a prior, each stated as its own best advocate would state it, so that you can recognise which one is speaking in a meeting. The 2017 paper by Gelman, Simpson and Betancourt that names the tension precisely and offers a resolution some accept and others do not. The Northgate table read three ways, so you see that the same numbers support all three readings. And the practical ground every position shares: state the prior as pseudo-observations, say where it came from, and simulate from it before seeing data. That last one is the thing to require. The rest is the thing to understand.

LiveThree honest people, one prior, no agreement4 min▶

The subjective position says the prior is a statement of belief, and its whole point is that it is yours. Head office believed the rate was about 0.12 and had years of chain-wide data behind the belief. Beta(12, 88) wrote that belief down as a hundred pseudo-observations. To write down something weaker because it looks more neutral would be to hide a belief you hold, and hiding a belief is a worse sin than holding a wrong one, because a stated belief can be argued with and a hidden one cannot.

The reference position, sometimes called "let the data speak", says the prior's job is to get out of the way. A flat or nearly flat prior encodes as little as possible, so whatever the posterior says came from the data and not from the analyst. Beta(1, 1) is two pseudo-observations. At Northgate it produced an 89 percent equal-tailed interval from 0.020 to 0.222, and it was the only asserted prior on the bench that contained the truth.

The weakly informative position says both of the others are answering the wrong question. A prior should rule out the absurd, put its weight on the plausible, and be checked before any data arrive by simulating from it: draw rates from the prior, draw eighteen customers at each rate, and look at the redemptions the prior alone predicts. If it predicts fifteen redemptions in eighteen with any regularity, it is a bad prior for a voucher, and you have learned that at no cost. The prior is a regulariser, and regularisers are tested, not believed.

Every one of those paragraphs was written to be as strong as its advocate would make it, and none of them is wrong. That is the situation. Nothing tonight will resolve it, and anybody who tells you it is resolved is telling you which camp they are in.

Self-studyThe words that will keep coming back4 min▶
  • Subjective prior. A prior chosen to encode what the analyst or the organisation actually believes, stated as such. Beta(12, 88) at Halloway.
  • Reference prior. A flat or near-flat default chosen to encode as little as possible, so the data dominate. Beta(1, 1) is the flat one, and it is still two pseudo-observations.
  • Weakly informative prior. A prior that puts weight on plausible values and almost none on absurd ones, chosen to regularise rather than to assert, and checked by prior prediction.
  • Prior predictive check. Simulating data from the prior alone, before seeing any real data, to see whether the prior predicts anything absurd. The practitioner track runs one in session p8; tonight you only need to know to ask for it.
  • Pseudo-observations. Session 1's currency. For a Beta(a, b) prior, a + b. The number all three positions agree should be stated.
  • Likelihood. The model of how the data arise from the rate. Gelman, Simpson and Betancourt's argument is about whether a prior may be chosen with reference to it.
  • Learned prior. Session 3's prior, estimated from the other eleven outlets: mean 0.135, worth 116 pseudo-observations. Each position claims it.
  • 89 percent interval. As throughout: the 5.5 and 94.5 percent points of the posterior, equal-tailed. Every interval tonight is this kind and says so.
Part 1 · covers the three positions at full strength

Three positions, each with a claim and a concession

10 min live

An argument taught fairly gives each side its best case and its honest weakness. The figure does both for the three positions, and the cards below take up the paper that explains why the disagreement is not going away: the prior, it turns out, cannot be discussed on its own.

Three positions on choosing a prior. Each at full strength, each with what it concedes. No winner. 1 · Subjective the prior encodes what you believe Claims A prior is a statement of belief. Writing down anything else is pretending to a neutrality you do not have, and pretending is worse than being wrong in the open. Head office did believe about 0.12, so Beta(12, 88) was the honest prior. Concedes A belief can be wrong, and a precise wrong belief is the most expensive kind: 0.068 to 0.159 against a truth of 0.192, and it read like knowledge. 2 · Reference let the data speak Claims Start flat or nearly so. A prior that encodes little cannot smuggle in a conclusion, and the data then say what they say. Beta(1, 1) gave 0.020 to 0.222 at Northgate: the only asserted prior on the bench to contain the truth. Concedes Contained it uselessly. A range 0.202 wide supports no decision, and flat is still two pseudo-observations centred on 0.500, which nobody believes. 3 · Weakly informative rule out the absurd, then check Claims Put weight on plausible values and almost none on absurd ones. Then simulate from the prior before seeing data and look at what it predicts. If the picture is absurd, the prior is wrong, and you found out for free. Concedes "Plausible" is a judgement, and the check needs a model of how the data arise, which is the very thing the purist says a prior should not depend on.
🔍 Click to zoom - three columns of equal weight, on purpose. Each claim is true and each concession is real.
LiveWhy the argument does not close: the prior cannot be discussed alone4 min▶

Gelman, Simpson and Betancourt (2017), "The prior can generally only be understood in the context of the likelihood", put the tension in one sentence: "a model encoding true prior information should be chosen without reference to the model of the measurement process, but almost all common prior modeling techniques are implicitly motivated by a reference likelihood." Unpack it. The pure subjective view says your belief about the redemption rate should not depend on how you are going to measure it; a belief is a belief. Yet in practice almost every way people actually choose a prior, including "weakly informative", is shaped by what the measurement can tell them. The third position's own prior predictive check needs a model of eighteen customers to run at all. The first position's purity and the third position's practice pull in opposite directions, and the paper says so.

Their proposed resolution is to place "the choice of prior into the context of the entire Bayesian analysis, from inference to prediction to model evaluation." A prior is judged by what the whole analysis does, not by whether it is a faithful photograph of a belief. Some in the field accept that and treat it as the settled modern view. Others do not: a subjectivist can reply that a prior tuned to make the analysis behave is no longer a prior in the original sense, and a reference-prior advocate can reply that the same move lets an analyst tune toward a conclusion and call it evaluation. Both replies are made, and neither has been withdrawn. The resolution is a position in the argument, not the end of it, and it is presented here as exactly that.

Self-studyHow to tell which camp is speaking3 min▶

You will rarely hear the labels. You will hear the tells. "We already know roughly what the rate is" is the subjective camp, and the right response is session 1's question: how many observations is that knowledge worth, and where did they come from. "Let's not bias it, just use a flat prior" is the reference camp, and the right response is to ask how wide the resulting interval will be at this sample size and whether anyone can act on that width. "Let's rule out anything above 0.5 and see what the prior predicts" is the weakly informative camp, and the right response is to ask what "plausible" was based on and to see the prior's simulated predictions before agreeing to them.

None of those responses takes a side. Each of them asks the speaker to state their position in a form the other two camps can inspect, and that is the most a leader who is not going to adjudicate the argument can usefully do. It is also, as the next part shows, exactly the ground all three camps already share.

Part 2 · covers the Northgate table read three ways, and the shared ground

One table, three readings, one shared practice

7 min live

Session 1 put four asserted priors on Northgate and session 3 added the prior learned from the other eleven outlets. Three of those rows are enough to run the argument. The flat prior gave an 89 percent equal-tailed interval from 0.020 to 0.222 and contained the truth uselessly. The informed prior gave 0.068 to 0.159 and missed. The learned partial-pooling prior, mean 0.135 and worth 116 pseudo-observations, gave 0.124 and halved Northgate's error. Every camp reads that table as vindication, and every camp is partly right.

Northgate, n = 18, truth 0.192. Three rows from the bench, and three camps reading them. 0.00 0.10 0.20 0.30 truth 0.192 Flat · Beta(1, 1) 2 pseudo-obs · 0.020 to 0.222 contains it, 0.202 wide Informed · Beta(12, 88) 100 pseudo-obs · 0.068 to 0.159 misses by 0.033 Learned · mu 0.135, kappa 116 116 pseudo-obs · estimate 0.124 0.124: error halved, still under The subjectivist reads it The informed prior missed because the belief was wrong about Northgate, not because believing was wrong. The learned prior is also a belief, about the chain, with its source written down. Fix the belief. Keep the honesty. The reference camp reads it Only the flat prior contained the truth, and wide is what honest looks like at n = 18. The learned prior came from data, the other eleven outlets, not from anyone's head. That is the data speaking, twice. The regulariser reads it The learned prior halved the error, 0.136 to 0.068, and its pseudo-count, 116, is on the table. But 116 is not weak, and Northgate is still under at 0.124 against 0.192. Check it before trusting it. All three accept: state the pseudo-count, say where it came from, simulate from it before seeing data.
🔍 Click to zoom - the same three rows, and each camp leaves the room convinced. The green strip at the bottom is the part they leave agreeing on.
LiveHow each camp reads Northgate3 min▶

The subjectivist looks at the informed prior's miss and says: the belief was wrong about Northgate, not the act of believing. Head office believed the chain rate applied to every outlet and it did not apply to this one. The remedy is a better belief, and the learned prior is exactly that, a belief about the chain with its source, the other eleven outlets, written down where anyone can challenge it. The reference camp looks at the flat prior's 0.020 to 0.222, the one interval that contained the truth, and says: that width is what honesty looks like at eighteen observations, and the learned prior is not a rival to the data, it is more data, from the outlets next door. The regulariser looks at the learned prior's 0.124, half the error of no pooling, and says: this is what a prior chosen for how the whole analysis behaves looks like, and its pseudo-count of 116 is on the table to be checked. Then, being a regulariser, adds the caveat: 116 is not weak, and Northgate is still under-estimated.

Notice that all three readings are consistent with the numbers. That is what an unsettled argument looks like from the inside: the evidence is shared and the disagreement is about what it means. A leader's job is not to end it. It is to make sure whichever camp is in the room has stated its prior in a form the other two could inspect.

Real world

Halloway's two analysts disagreed about the Northgate prior for a week. One wanted the head-office belief, one wanted flat. The finance director ended the meeting by declining to choose and asking each for three things: the prior's pseudo-count, its source, and what it predicted for eighteen vouchers before anyone looked. The head-office prior turned out to predict, before data, almost no chance of a rate above 0.18. Neither analyst was declared right. The prediction did the arguing.

LiveThe shared ground, which is also tonight's takeaway2 min▶

Three things every position accepts, and therefore three things you can require without taking a side. State the prior as pseudo-observations. Beta(12, 88) is a hundred; the learned prior is 116; flat is two. A camp that refuses to give the number is not in the argument. Say where it came from. Head office's history, the other eleven outlets, a deliberate choice to encode nothing. The source is what the other camps will inspect. Simulate from it before seeing data. Draw rates from the prior, draw eighteen customers at each, look at what it predicts. If the picture is absurd, every camp agrees the prior is wrong, and you have found out before the data could hide it. The practitioner track runs that check in session p8; a leader only needs to ask to see it.

Self-studyWhat the argument is not about2 min▶

Two positions you will never hear a serious person take, and should not credit if a meeting drifts toward them. Nobody argues for a prior that puts zero weight on plausible values. The wrong prior from session 1, Beta(40, 60), was on the bench to show a cost, not because anyone recommends it; a prior that cannot reach the truth at all is a mistake in every camp. And nobody argues that a prior can rescue a bad measurement. If the eighteen vouchers were miscounted, or the redemptions were logged against the wrong outlet, no choice of prior repairs that, and the subjectivist, the reference advocate and the regulariser will all say so in the same breath.

The argument is narrower than it sounds. It is about how much to encode, from where, and whether the encoding may be judged by how the analysis behaves. Keep it there. A meeting that has wandered into "priors are cheating" or "with a good prior the data barely matter" has left the actual argument and joined a worse one.

Part 3 · build-along

Hold the argument in your own room

20 min build-along

No laptop. Take the small-data number you priced in session 1 and the belief you found behind it. Tonight you run the three-way argument about that belief on paper, as each camp would, and finish with the three requirements all of them accept. The aim is not to pick a camp. It is to be able to say which one your team is in, and to have asked for the things the other two would demand.

Write the prior as pseudo-observations and a source. "About 0.12, worth a hundred observations, from the chain-wide history." If the pseudo-count or the source is missing, stop and get them. Nothing below works on a prior nobody can state.

Make the subjective case for it. One sentence: "This is what we actually believe, and here is why." Then the concession: "and if this case is unlike the source, the belief is precisely wrong." Name the reason it might be unlike the source, if you can think of one.

Make the reference case against it. "Start from almost nothing and let the sample speak." Then the concession: at your sample size, how wide would the resulting interval be, and would either end lead to a different action? If it would not, the width is a problem the camp has to answer for.

Make the weakly informative case. "Rule out the absurd, keep the plausible, and check." Write down what counts as absurd for your rate and where that judgement came from. Then the concession: the check will need a model of how your data arise, and that model is a choice too.

Ask for the prior's predictions before data. "If we believed only this prior, what would we expect to see in a sample of this size?" You are asking for a picture of simulated outcomes, and the question is only whether anything in it looks absurd. Every camp will agree to run it, and every camp will agree on what absurd looks like.

Record the position without declaring it right. "We are using a [subjective / reference / weakly informative] prior worth [count] observations from [source]. Simulated before data, it predicts [range], which we judged plausible. The other positions would object that [objection], and we accept that risk because [reason]." That paragraph is what session 6 will ask you to commission.

The question that changes the meeting. "What does this prior predict before we look at any data?" It is the one question all three camps accept, it needs no technical vocabulary to ask, and it has ended more arguments about priors than any theorem, because a prior that predicts the absurd loses its advocate on the spot.

Check yourself

Three questions

Gelman, Simpson and Betancourt (2017) write that a prior encoding true belief "should be chosen without reference to the model of the measurement process, but almost all common prior modeling techniques are implicitly motivated by a reference likelihood." What is the tension they are naming?

The subjective ideal is a prior that is a belief about the rate, full stop. The practice, including prior predictive checks, needs a model of the measurement to work at all. Their proposed resolution, judging the prior in the context of the whole analysis, is one position in the argument; some accept it and some do not. Nothing in the paper says to choose priors after seeing data.

At Northgate the flat prior gave 0.020 to 0.222 and contained the truth, the informed prior gave 0.068 to 0.159 and missed, and the learned prior gave 0.124 and halved the error. Which position does the table settle in favour of?

The subjectivist sees a wrong belief, not a wrong method, and claims the learned prior as a better-sourced belief. The reference camp sees the only honest interval and calls the learned prior more data. The regulariser sees a checked, regularising prior with a stated pseudo-count and adds that 116 is not weak. All three are consistent with the table. That is what unsettled looks like.

You have to sign off an analysis without adjudicating the prior argument. What can you require that every position accepts?

Those three requirements are the shared ground. A flat prior is itself one camp's choice, and it is still two pseudo-observations centred on 0.500; requiring it takes a side. A prior at least as heavy as the sample is what Beta(12, 88) was at Northgate, and it missed. Neither B nor C is neutral; A is.

Homework

Before session 6

30 min

Take the paragraph you wrote in step 6 of the build-along and finish it for one live estimate in your area: the prior as a pseudo-count, its source, the position it represents, what it predicts before data, and the objection the other two camps would raise. Then add the two things session 4 gave you: the interval kind and level you expect to see, which is 89 percent equal-tailed unless somebody has a reason, and the decision rule with its threshold. Bring the page. Session 6 turns it into the written commission you hand an analyst, so that a Bayesian answer arrives in a form you can check rather than a form you have to trust.

Sources covered

What tonight maps to

✓ The three positions on choosing a prior Subjective, reference and weakly informative, each stated at full strength with its concession. Taught as a live disagreement; no position declared the winner.
✓ Gelman, Simpson and Betancourt (2017) "The prior can generally only be understood in the context of the likelihood." The tension quoted from the abstract; the resolution, placing the prior in the context of the entire analysis, presented as a position some accept and others do not.
✓ The Northgate bench read three ways Flat 0.020 to 0.222, informed 0.068 to 0.159, learned prior 0.124 against a truth of 0.192. Each camp's reading is consistent with the numbers.
✓ The shared ground State the prior as pseudo-observations, say where it came from, simulate from it before seeing data. The three requirements a leader can impose without taking a side.
◐ Running a prior predictive check Named as the check to ask for; the practitioner track runs it in session p8. Tonight you learn to require it, not to perform it.
◐ Writing the commission Session 6. The position, pseudo-count, source, prediction, interval kind and level, and decision rule, in a form an analyst can be held to.
· Frequentist inference and the case against priors altogether Not covered by design. learn-statistics-with-phoebe owns frequentist inference; tonight's argument is among Bayesians about how to choose a prior, not about whether to have one.

Session 5 cheat sheet

Three positions, no winnerSubjective: encode belief. Reference: let the data speak. Weakly informative: rule out the absurd, then check. The field has not settled it.
The subjectivist's tell"We already know roughly what it is." Ask how many observations that knowledge is worth and where they came from.
The reference camp's tell"Let's not bias it, use flat." Ask how wide the interval will be at this n and whether anyone can act on it.
The regulariser's tell"Rule out anything above 0.5 and check." Ask what plausible was based on and see the simulated predictions first.
Gelman, Simpson, Betancourt 2017The prior cannot be understood apart from the likelihood. Their fix, judge it in the whole analysis, is a position, not a verdict.
Northgate, three waysFlat 0.020 to 0.222 contains, informed 0.068 to 0.159 misses, learned 0.124 halves the error. Every camp claims it.
The shared groundPseudo-count, source, simulate before data. Require all three and you have taken no side.
What it is not aboutNobody argues for zero weight on plausible values. Nobody argues a prior can rescue a bad measurement.