Free complete book

Thinking in Degrees of Belief

A practical Bayesian guide for analysts who know p-values

Learn to state a prior, choose a likelihood and read a posterior, then run Bayesian A/B tests, report credible intervals and check how much the prior matters. Written for analysts trained on p-values who want to say how likely it is that a change actually works.

10 chaptersScience and Math
Open in the reader

Free to read, link and share. How you can use this book

This book was written with AI by TailoredRead and checked by AI reviewers. It may contain errors and is not professional advice.

About this book

Thank you for picking up a book that meets you where you are. If you have spent years running t-tests and reading p-values, you already know the logic of classical statistics well enough to be useful. What you may be missing is a way to answer the questions your colleagues actually ask: how likely is this effect, how large might it be, and what should we do next? This book builds that bridge with clear explanations and worked examples that start from the familiar and move step by step into Bayesian reasoning. You will find probability treated as a degree of belief, Bayes' theorem explained through concrete cases, and a plain-language tour of priors, likelihoods, and posteriors. Side-by-side comparisons show where Bayesian and frequentist answers agree, where they diverge, and why. Practical chapters walk through Bayesian A/B tests and estimation, sensitivity checks on priors, and the habits that make results trustworthy. Along the way you will learn to explain a posterior to a skeptical audience, to read a p-value without overstating it, and to write up findings so that readers can judge the evidence for themselves. Written for analysts and researchers who want rigor without unnecessary jargon, this book is a companion for doing better statistical work with your own data.

Table of contents

  1. IntroductionWhy a Frequentist Education Still Helps, What You Will Be Able to Do, How to Work Through the Examples
  2. Chapter 1: Probability as a Degree of BeliefTwo Meanings of the Word Probability, Why Coherent Beliefs Must Obey Probability Rules, Subjective Beliefs in Objective Science
  3. Chapter 2: Bayes' Theorem Through Worked ExamplesA Medical Test and the Base Rate Trap, Updating a Belief One Observation at a Time, The Odds Form and Bayes Factors
  4. Chapter 3: Priors, Likelihoods, and PosteriorsChoosing a Likelihood for Your Data, Choosing and Justifying a Prior, Reading a Posterior Distribution Carefully
  5. Chapter 4: Conjugate Updating for Proportions and MeansThe Beta-Binomial Model for Proportions, A Normal Model for Estimating a Mean, How Prior Strength Compares to Sample Size
  6. Chapter 5: What a p-Value Really SaysThe Definition Behind the Number, Frequent Misreadings and Why They Persist, Contrasting a p-Value With a Posterior Probability
  7. Chapter 6: Comparing Bayesian and Frequentist AnswersSame Data, Different Questions, Confidence Intervals Versus Credible Intervals, When the Two Approaches Converge
  8. Chapter 7: Bayesian A/B Tests and Decision MakingEstimating the Probability One Variant Wins, Expected Loss as a Decision Criterion, Monitoring Results Without Inflating Errors
  9. Chapter 8: Bayesian Estimation and UncertaintyMeans, Medians, and Intervals From Posteriors, Partial Pooling Across Groups, Checking Whether the Model Fits the Data
  10. Chapter 9: Sensitivity Analysis and Prior RobustnessTesting Results Across a Range of Priors, Weakly Informative Priors as a Safe Default
  11. Chapter 10: Reporting Results Honestly to ColleaguesWriting a Clear Summary of a Posterior, Answering Questions From Skeptical Colleagues, A Checklist for Transparent Bayesian Reports
  12. ConclusionCarrying These Ideas Into Your Own Work
  13. Further Reading and Resources
  14. Glossary

Introduction

A researcher runs an experiment, gets a p-value of 0.04, and tells a manager there is a 96 percent chance the new feature works. That sentence is wrong, and it is wrong in a way that almost every analyst with classical training has said out loud at least once. The p-value never claimed anything about the probability that the feature works. It only described how surprising the data would look if the feature did nothing at all. The gap between what a p-value says and what people want it to say is not a minor technicality. It is the reason so many analysts eventually go looking for another way to talk about evidence.

This book exists to close that gap by teaching a different way of using probability itself, one where probability measures a degree of belief rather than a frequency in an imagined set of repeated experiments. Once probability can attach to a hypothesis, a parameter, or a one-time event, the question "how likely is it that this works" finally has a mathematically honest answer, and that answer comes from Bayes' theorem. Bayesian statistics is not a rejection of everything learned in a first statistics course. It is an extension that keeps the data, the models, and often the same formulas, while changing what the resulting numbers are allowed to mean.

The chapters ahead move in a deliberate order. Early chapters rebuild probability as a degree of belief and walk through Bayes' theorem with cases simple enough to compute by hand, such as a medical test with a known false positive rate. Middle chapters introduce the three working parts of any Bayesian model: the prior distribution, the likelihood function, and the posterior distribution, then show how specific families of these, like the Beta distribution paired with binomial data, produce exact answers without heavy computation. Later chapters return to familiar territory: p-values, confidence intervals, A/B tests, and written reports, but now examined through a Bayesian lens that often changes both the numbers and the wording used to describe them.

None of this requires abandoning statistical training already in hand. It requires noticing where that training has been silently answering a narrower question than the one being asked, and learning a second toolkit built to answer the broader one directly.

Why a Frequentist Education Still Helps

Years spent running t-tests, chi-square tests, and regressions were not wasted effort, even though this book is going to challenge how some of those results get interpreted. Classical statistics teaches a disciplined habit: specify a model, collect data, compute a test statistic, and judge the result against a reference distribution. That discipline carries over directly into Bayesian work, where the steps are similar but the destination differs. Someone who has never built a model or thought carefully about sample size has a harder time learning Bayesian methods than someone who has spent years doing exactly that, even if their classical conclusions were sometimes misstated.

Frequentist training also builds an intuition for variability that a Bayesian education depends on just as heavily. Knowing why a sample of 30 behaves differently from a sample of 3,000, or why a single outlier can swing a small dataset's conclusions, is not knowledge that gets discarded when switching frameworks. The likelihood function, which sits at the center of every Bayesian update, is the same mathematical object used to derive maximum likelihood estimates in classical statistics. Recognizing a Binomial likelihood or a Normal likelihood from prior coursework means half the Bayesian model is already familiar before the word "Bayesian" even enters the conversation.

What a frequentist education does not supply, and sometimes actively works against, is comfort with treating probability as something that can describe a belief rather than only a long-run frequency. A classical course trains students to say "if we repeated this experiment many times" even when the experiment will only ever run once, such as an election or a single clinical trial for a rare disease. That habit of mind has to be unlearned carefully rather than discarded entirely, because the frequentist definition of probability remains correct and useful in its own domain. The goal is to add a second valid meaning of probability, not to declare the first one false.

Consider a concrete case. A classical confidence interval for a proportion is defined by a coverage guarantee: if the same procedure were run on many random samples, 95 percent of the resulting intervals would contain the true proportion. That is a true and useful fact about the procedure, but it says nothing about the one interval actually in hand. A Bayesian credible interval, covered later in a dedicated comparison, directly states the probability that the parameter lies within a specific range, given the one dataset collected. Both numbers can come out nearly identical under common conditions, yet one answers a question about procedures in general and the other answers a question about this result specifically.

The practical payoff of keeping frequentist fluency is that it makes the differences between the two frameworks visible rather than invisible. Someone who has never computed a p-value cannot appreciate why the probability that the null hypothesis is true is 0.04 is a misreading, because they have no frame of reference for what the 0.04 originally measured. Readers of this book bring that frame of reference already, which turns later chapters comparing the two approaches into a sharper, more useful exercise than they would be for a complete beginner.

There is also a professional reason to keep frequentist skills sharp rather than retire them. Most workplaces, journals, and regulatory bodies still expect p-values, confidence intervals, and significance thresholds as a baseline language, even in organizations that are open to Bayesian reporting alongside them. Being bilingual, able to produce a classical analysis when required and a Bayesian one when it better answers the actual question, makes an analyst more useful than someone who can only do one or the other. This book aims to produce that kind of bilingual fluency rather than a one-way conversion away from everything learned before.

What You Will Be Able to Do

By the end of this book, a reader should be able to take a real dataset, a conversion rate from a website test, a set of survey scores, a small clinical sample, and produce a full Bayesian analysis of it without relying on default software settings they cannot explain. That means stating a prior, choosing a likelihood that matches the data-generating process, computing or simulating a posterior, and summarizing that posterior in language a non-technical stakeholder can act on. The skill is not just computation. It is judgment about which model fits the situation and which summary of the results actually answers the decision-maker's question.

Four specific capabilities get built up over the course of the book, and it helps to see them listed together before they arrive one at a time in later chapters.

  • Mechanical fluency: applying Bayes' theorem by hand to update a belief given new evidence, and recognizing when a conjugate prior turns that update into a closed-form calculation rather than a simulation.
  • Model construction: picking a prior distribution that honestly reflects what was known before the data arrived, and a likelihood function that honestly reflects how the data were generated.
  • Decision framing: turning a posterior into a probability of winning or an expected loss figure for an A/B test, so a product decision follows directly from the analysis instead of from a significance threshold ritual.
  • Transparent communication: writing up a posterior summary with its assumptions, intervals, and checks stated plainly enough that a skeptical colleague trained only in classical statistics can evaluate it on its merits.

Each of these builds on the last. Mechanical fluency with Bayes' theorem is nearly useless without the judgment to build a sensible model around it, and a sensible model is nearly useless if its results get reported as an unexplained black-box probability. The chapters on conjugate updating, covering the Beta-Binomial model for proportions and the Normal-Normal model for means, exist specifically so that the mechanics can be done by hand or with a few lines of code, keeping the computation transparent rather than hidden inside a library function.

A short example previews what this looks like in practice. Suppose a team tests a new onboarding flow against the old one, with 40 conversions out of 500 users on the new flow and 32 out of 480 on the old one. A classical approach runs a two-proportion z-test and reports a p-value. A Bayesian approach instead places a Beta distribution prior on each conversion rate, updates each with the observed data, and simulates draws from both posteriors to estimate the probability that the new flow's true rate exceeds the old one's, perhaps finding that probability to be around 80 percent, alongside an expected loss if the decision turns out to be wrong. That second answer maps directly onto what a product manager actually wants to know.

The callout below captures the shift in mindset that every chapter is meant to produce.

Key takeaway: The shift this book is built around

A classical analysis asks how surprising the data would be under a fixed hypothesis. A Bayesian analysis asks how the data should change what is believed about a hypothesis or a parameter, starting from a stated prior belief and ending with a full posterior distribution over possible values.

Getting comfortable with that shift does not happen from reading definitions alone. It happens from working through the same kind of dataset repeatedly, first with a coin-flip-simple proportion, then with a mean, then with a comparison between two groups, until the steps of stating a prior, writing a likelihood, and reading off a posterior feel as automatic as setting up a t-test once did. The exercises distributed throughout later chapters are built for that repetition rather than for novelty.

Equally important is what this book does not promise. It will not claim that Bayesian methods are always correct where frequentist methods are always wrong, nor that a posterior probability is immune to the kind of misreading that afflicts p-values. A posterior probability can be just as easily misquoted or overtrusted as a p-value if its prior was chosen carelessly or its assumptions were never checked. The chapters on sensitivity analysis and model checking exist precisely because Bayesian results need their own form of scrutiny, not because they are exempt from it.

How to Work Through the Examples

Every worked example in this book follows the same skeleton on purpose, so that recognizing the pattern becomes easier with each repetition rather than harder. That skeleton has four parts: state what is known before seeing the data as a prior, state how the data would look under different possible values of the parameter as a likelihood, combine the two into a posterior, and then summarize that posterior in a way that answers the original question. Treating this as a fixed routine, rather than inventing a new approach for each example, is what makes Bayesian reasoning transferable from a textbook case to a messy real dataset later.

The steps below describe how to approach each worked example in the chapters ahead, and returning to this list whenever a new example feels unfamiliar is a reasonable habit to build.

A routine for working through each example

  1. Name the unknown - Identify exactly what parameter or hypothesis the question is about, such as a true conversion rate or a true mean difference, before touching any formula.
  2. State the prior - Write down, even roughly, what was believed about that parameter before seeing the new data, and pick a distribution that reflects it honestly rather than conveniently.
  3. Write the likelihood - Match the data-generating process (counts, continuous measurements, rare events) to a standard likelihood family such as Binomial or Normal.
  4. Compute or simulate the posterior - Use a conjugate formula when one applies, or simulate draws from the posterior when it does not, to get a full distribution rather than a single number.
  5. Summarize for the actual question asked - Translate the posterior into a probability, an interval, or an expected loss that directly answers the original decision, not just a textbook statistic.

Working through the routine by hand at least once, before relying on software, pays off even for readers who already know how to run Bayesian models in a statistical package. A hand calculation on a small Beta-Binomial model, with perhaps 10 observations and 3 successes, takes only a few lines of arithmetic and makes visible exactly how the prior and the data get combined. Software that returns a posterior instantly can hide that mechanism, which makes it harder to explain the result later to someone who is skeptical of the whole framework. The examples in chapters on conjugate updating are deliberately kept small enough for this kind of hand computation.

Some examples in later chapters use short code listings, mostly in Python, to simulate a posterior when no closed-form formula is available. These listings are written to be read and understood line by line, not copied and run without comprehension. A reader without a programming background can treat the code as a precise description of the simulation logic, similar to reading a recipe, rather than skipping past it entirely. Anyone comfortable with code is encouraged to actually run each listing with a few different numbers plugged in, since watching a posterior shift as the prior or the sample size changes builds intuition faster than reading about the shift in prose.

A recurring feature across chapters is the side-by-side comparison of a Bayesian result against the equivalent classical result on identical data. These comparisons are not included to declare a winner. They exist so the wording of each conclusion can be checked against what the method actually computed. When a p-value and a Bayesian probability of winning happen to produce a similar number, the temptation is to treat them as interchangeable, and the comparisons are built specifically to resist that temptation by keeping the underlying question each number answers clearly labeled.

Exercises appear at the end of most chapters starting with the probability chapter, and they are built to be attempted with a real or realistic dataset, not just plugged into an abstract formula. A reader who skips the exercises can still follow the book's argument, but the capabilities described earlier, model construction, decision framing, and transparent communication, are skill-based rather than fact-based, and skills only form through repeated practice. Setting aside even twenty minutes per chapter to work through an exercise before checking it against the text will do more for retention than rereading a worked example a second time.

One last habit worth adopting from the start: write down, in plain language, what each posterior or interval actually claims, before translating it into technical notation. If that plain-language sentence cannot be stated clearly, the technical result probably has not been understood yet, regardless of whether the arithmetic was correct. This habit is the same one that the final chapters on honest reporting ask readers to apply when writing up results for colleagues, so practicing it from the first worked example onward means it will already be second nature by the time it matters for a real report.

The chapters that follow move at a pace built for someone returning to statistics with existing tools in hand rather than starting from zero. Some sections will feel like review restated in new vocabulary, and others will feel genuinely unfamiliar even to an experienced analyst. Both reactions are expected, and neither is a sign of being behind. The next chapter starts exactly where this foundation points: with probability itself, and the question of what it actually means to say something is 70 percent likely to be true.

Back to contents

Chapter 1: Probability as a Degree of Belief

Two statisticians watch the same coin land on a table, still spinning, not yet settled, and both say there is a fifty percent chance it lands heads. They sound like they agree. They do not. The first one means that if this exact coin were flipped thousands of times under identical conditions, heads would come up in roughly half of them. The second one means something stranger and, in a way, more personal: given everything known right now, heads and tails are equally plausible outcomes of this one unrepeatable spin. Unpacking that gap, between a statement about long-run frequency and a statement about present belief, is where Bayesian thinking actually begins.

The first statistician is speaking as a frequentist. For a frequentist, probability is defined only in terms of repeatable events. A fair coin flipped many times gives heads about half the time, and that long-run proportion is what the number 0.5 refers to. This works beautifully for coins, dice, and manufacturing defect rates, where repetition is natural. It runs into trouble the moment someone asks about something that happens only once: the probability that a particular clinical trial drug works, the probability that a specific election outcome occurs, or the probability that a given fossil is really 65 million years old. There is no long run to average over. Strict frequentism has nothing to say about these cases, yet people ask probability questions about them every day.

The second statistician is speaking as a Bayesian, and the number she gives is a degree of belief. It is a quantified statement of confidence, not a claim about repeated trials. Degrees of belief apply to single events just as naturally as to repeatable ones, because they describe a state of knowledge rather than a physical frequency. Saying there is a 70 percent chance this particular drug outperforms placebo in the full population makes sense under this reading even though that drug will never be tested in that exact population infinitely many times. The number reflects how strongly the evidence supports the claim, on a scale from 0 (certain it is false) to 1 (certain it is true).

This distinction is not academic hairsplitting. It changes what a probability number is allowed to answer. A p-value, which belongs to the frequentist tradition and gets its own full treatment elsewhere in this book, only ever describes how unusual observed data would be under a null hypothesis, over imagined repetitions of the experiment. It cannot, by its own construction, tell anyone the probability that the hypothesis itself is true. A posterior probability, built on the degree-of-belief reading, can make exactly that statement, because it treats the hypothesis as the object of uncertainty rather than the data. Confusing the two readings is the single most common statistical error made by people trained only in classical methods.

The rest of this chapter builds the degree-of-belief interpretation on solid ground. It is not enough to simply assert that personal belief can be measured on a 0-to-1 scale and called a probability. That claim needs justification, and the justification comes from an elegant argument about what happens to anyone whose beliefs are not internally consistent. From there, the chapter addresses a worry that experienced researchers often raise immediately: if probability is personal, does Bayesian statistics abandon objectivity altogether? The answer is no, and seeing why sets up everything that follows in this book.

Two Meanings of the Word Probability

Classical statistics training tends to present frequentist probability as the only legitimate meaning of the word, largely because it was the dominant framework through most of the twentieth century. Under this view, a probability statement is meaningless unless it refers to a frequency across a hypothetical infinite sequence of identical trials. The probability that a manufacturing process produces a defective part is well-defined because the process runs millions of times. The probability that a specific merger will be approved by regulators next year is, strictly, not well-defined at all, because that event happens exactly once and can never be repeated to check a frequency against.

Yet people reason about one-off events constantly and productively. A weather forecaster who says there is a 30 percent chance of rain tomorrow is not claiming that tomorrow will repeat itself ten times with rain in three of them. That specific tomorrow will happen once. What the forecaster means, whether explicitly trained to think this way or not, is a degree of belief calibrated against past patterns: days with this atmospheric profile have historically produced rain about 30 percent of the time. The frequency data inform the belief, but the resulting number describes confidence about a single day, not a repeatable experiment.

The Bayesian interpretation makes this explicit and general. Probability measures a rational agent's degree of belief in a proposition, given the evidence available to that agent at a given time. This definition applies uniformly whether the proposition concerns a coin flip, a drug's efficacy, a historical event whose outcome is simply unknown, or the value of a physical constant. Nothing about the definition requires repeatability. This is precisely why Bayesian methods extend naturally into areas, such as one-off policy decisions, individual medical diagnoses, and rare historical events, where frequentist probability has no foothold at all.

Consider a concrete case that often appears in introductory statistics but gets reinterpreted here. Someone claims a coin is biased toward heads. A frequentist answers by asking: if the coin were actually fair, how often would a sample this lopsided occur across repeated experiments? That is a p-value question, and it describes the data's rarity under an assumption, not the coin's actual bias. A Bayesian instead asks: given this data and whatever is known about coins in general, how strongly should belief in this coin is biased be held? That is a direct statement about the hypothesis, phrased as a probability between 0 and 1, and it is the kind of answer most people actually want when they ask how likely is it that the coin is biased?

The table below lays out this contrast for several practical research questions, to make the difference concrete rather than abstract.

Table 1. What Each Framework's Probability Statement Actually Means
Research QuestionFrequentist ReadingBayesian Reading
Is this coin biased?How rare would this data be if the coin were fair, across repeated flips?How strongly does the data and prior knowledge support the coin being biased?
Does the new drug work?How rare would results this extreme be if the drug had no effect, across repeated trials?What is the current degree of belief that the drug has a real effect?
Will this specific election be close?Not well-defined; the event happens onceA quantified degree of belief based on polling and historical patterns
Is this fossil 65 million years old?Not well-defined for a one-time dating eventA degree of belief updated from measurement evidence

It helps to notice that frequentist probability is really a special case that fits inside the broader Bayesian framework rather than a rival framework. When an event genuinely is repeatable, such as flips of a particular coin under stable conditions, the long-run frequency and the rational degree of belief about any single flip should converge to the same number, roughly 0.5 for a fair coin. The Bayesian reading does not contradict the frequentist one in that setting. It simply generalizes to situations the frequentist reading cannot reach. This is part of why many practicing statisticians, including some who trained purely in classical methods, eventually adopt Bayesian language once they notice how often they are really asking belief questions and getting frequency answers.

A useful habit going forward is to pause, whenever a probability number appears in a report or a conversation, and ask which meaning is actually in play. A clinical trial report stating p = 0.03 is making a frequentist statement about data under a null hypothesis. A forecaster's 70 percent chance of a recession next year is a degree of belief, because a national economy does not repeat itself. Mixing the two, treating a p-value as though it were a degree of belief in the null hypothesis, is the error this book returns to repeatedly, because it is both common and consequential. Training the eye to separate the two meanings is the first real skill this chapter builds.

This separation also explains why Bayesian reasoning feels, to many newcomers, closer to ordinary human reasoning than frequentist statistics does. People update beliefs about specific, unrepeatable situations constantly: whether a friend is telling the truth, whether a business plan will succeed, whether a particular diagnosis is correct. Nobody imagines repeating these situations infinitely many times to define a frequency. The Bayesian framework simply gives mathematical structure to a kind of reasoning humans already do informally, and the chapters ahead on Bayes' theorem show exactly how that structure works.

None of this means frequentist methods are wrong or obsolete. They answer a real and useful question, namely how surprising data would be under a specified assumption, and that question matters for quality control, long-run error rates, and standardized hypothesis testing across a field. The point is narrower: frequentist and Bayesian probability are different objects that happen to share a name and a mathematical structure (both obey the same axioms, as the next subchapter shows). Keeping the two objects distinct in one's own vocabulary is a prerequisite for everything that follows in this book, including the honest comparison between p-values and posterior probabilities developed later.

Why Coherent Beliefs Must Obey Probability Rules

Calling something a degree of belief does not, by itself, justify treating it mathematically as a probability. Beliefs could, in principle, follow any arbitrary scale with any arbitrary rules. The argument that ties personal belief to the actual mathematics of probability, the same axioms used for coin flips and dice, comes from a result commonly called the Dutch book argument, developed in the work of early probability theorists[1]. The argument shows that anyone whose degrees of belief violate the probability axioms can be guaranteed to lose money through a cleverly constructed series of bets, regardless of how the underlying event turns out.

The mechanism works through betting odds. If someone assigns a degree of belief p to an event, a consistent interpretation implies they should accept a bet that pays out fairly at odds matching that belief. Suppose a forecaster says there is a 70 percent chance of rain tomorrow but, when offered the choice, also says there is a 50 percent chance of no rain tomorrow. These two numbers do not sum to 1, which means the forecaster's beliefs are internally inconsistent, or incoherent. A bookmaker exploiting this inconsistency can construct a pair of bets, one on rain and one on no rain, priced according to the forecaster's own stated odds, such that the forecaster loses money whether it rains or not.

Walking through a small worked example makes the mechanism concrete. Suppose someone states a 60 percent belief that a particular stock rises tomorrow and, separately, a 60 percent belief that it falls. These sum to 1.2, not 1. A bookmaker sells that person a bet on rises at those odds and a bet on falls at those odds, collecting stakes calibrated to 60 percent each. Because the two stakes sum to more than the total payout structure allows, the bookmaker pockets a guaranteed profit no matter what the stock actually does the next day. This guaranteed-loss scenario is exactly what gives the argument its name: a Dutch book is a set of bets that guarantee a loss for one side regardless of outcome.

The force of the argument is that coherence, meaning beliefs that cannot be exploited this way, requires degrees of belief to satisfy the same three axioms that define mathematical probability: they must lie between 0 and 1, certainty must get the value 1, and the belief in either of two mutually exclusive events must equal the sum of the beliefs in each one individually[2]. Nothing about this derivation assumes repeatable trials or long-run frequencies. It is a purely logical requirement on any agent who wants to avoid guaranteed losses from their own stated beliefs. This is the rigorous foundation beneath the casual claim that probability can represent belief: it is not an arbitrary choice of vocabulary but a consequence of demanding internal consistency.

A short list of what coherence actually demands in practice helps make the abstract axioms tangible:

  • Beliefs in an event and its complement must sum to exactly 1, never more and never less.
  • A belief in an impossible event must be exactly 0, and belief in a certainty must be exactly 1.
  • Beliefs across mutually exclusive outcomes of the same question must sum to 1, not independently assigned.
  • Updating a belief in light of new evidence must follow Bayes' theorem to remain coherent over time, a point the next chapter develops in full.

This framework also explains why Bayesian probability is sometimes called subjective probability, a label that makes some researchers uneasy on first encounter. The word subjective does not mean arbitrary or unprincipled. It means the number is attached to a particular agent's state of knowledge at a particular time, rather than to a physical frequency that exists independent of anyone's awareness. Two honest, well-informed people can coherently hold different degrees of belief about the same proposition if they have been exposed to different evidence. Once they share evidence and reason correctly, coherence plus a shared likelihood function tends to pull their beliefs together, which is a central reason Bayesian updating, covered fully in the Bayes' theorem chapter, functions as a rational convergence mechanism rather than a vehicle for permanent disagreement.

A useful self-check for practicing researchers is to apply the coherence test to their own informal claims before writing them down. Anyone who finds themselves saying I'm 80 percent sure the effect is real, but also there's basically no chance it's negative, and maybe a 30 percent chance it's exactly zero should notice that these numbers may not add up consistently once properly partitioned into mutually exclusive categories (effect positive, effect zero, effect negative). Working through whether stated beliefs are coherent, the way a Dutch book would expose them, is good practice before formalizing those beliefs into a prior distribution, the subject of a later chapter.

A degree of belief only deserves to be called a probability once it survives the coherence test: no clever sequence of bets, built from its own stated odds, can guarantee it a loss.

It is worth pausing on one more implication of the Dutch book result: it establishes that the probability axioms are not an assumption imported from the mathematics of games of chance and then applied, perhaps awkwardly, to belief. They are a requirement derived directly from demanding that belief be internally consistent. This reverses the usual teaching order. Rather than learning probability axioms first and later being told that they can also represent belief, the coherent betting argument shows that any consistent belief system is forced into those exact axioms whether or not dice or coins are ever mentioned. That reversal is the conceptual backbone that makes Bayesian statistics a legitimate branch of probability theory rather than a loose metaphor borrowed from it.

This foundation also clarifies a practical point for anyone building a Bayesian model later in this book: specifying a prior distribution is not an act of guessing or wishful thinking, it is an act of stating a coherent set of beliefs before seeing new data, in a form precise enough to be updated correctly. Sloppy, incoherent priors do exist and cause real problems, but the solution is not to abandon the idea of quantified belief. The solution is to build priors carefully, test their influence through sensitivity analysis, and report them transparently, all topics developed in later chapters once the mechanics of updating are in place.

Subjective Beliefs in Objective Science

The word subjective attached to probability makes many researchers trained in classical statistics uncomfortable, and the discomfort is reasonable on its face. Science is supposed to produce conclusions that do not depend on who is looking, and a method that explicitly builds personal belief into its core calculations can sound like an invitation to bias results toward whatever the researcher already wanted to find. This concern deserves a direct answer rather than a dismissal, because it is the single most common objection raised against Bayesian methods by researchers encountering them for the first time.

The first part of the answer is that subjectivity in this technical sense refers to dependence on available evidence, not dependence on personal preference. Two scientists examining the same data but holding different prior beliefs, perhaps because one has read more of the relevant literature, are not being unscientific. They are honestly reporting different starting points, and Bayesian analysis makes those starting points visible and quantified rather than hiding them inside unstated assumptions. Classical statistics also contains hidden subjective choices, such as which test to use, what significance threshold to adopt, or how to handle multiple comparisons, but these choices are rarely labeled as subjective because they are buried in convention rather than stated as explicit numbers.

The second part of the answer concerns what happens as evidence accumulates. A central mathematical property of coherent, Bayesian updating is that priors reflecting genuinely different starting beliefs tend to converge toward the same posterior conclusions as more data arrive, provided the data are informative enough to overwhelm the initial disagreement. Two researchers who start with meaningfully different priors about whether a new teaching method improves test scores will, after pooling results from a large well-run trial, typically end up with posterior distributions that look very similar. The data does the work of narrowing disagreement, exactly as intuition about good science demands. This convergence property is sometimes called washing out of the prior, and it is testable directly through the sensitivity analysis covered later in this book.

A concrete illustration makes the convergence property vivid. Suppose two analysts disagree sharply about a new website design: one believes there is only a 20 percent chance it increases conversion rate, the other believes there is an 80 percent chance. If both update on the same stream of 50,000 visitor outcomes using the same likelihood function, their posterior beliefs typically move toward each other and toward whatever the data actually show, often landing within a few percentage points of one another despite their wildly different starting points. The disagreement that mattered at 500 visitors becomes nearly irrelevant at 50,000. This is the mathematical mechanism behind the common Bayesian claim that enough data eventually overwhelms a reasonable prior.

This does not mean priors are harmless or interchangeable. A prior that assigns zero probability to the range of values that contains the true value of a parameter can never be updated away from that mistake, no matter how much data arrive, because Bayes' theorem can only redistribute probability among possibilities the prior already allows. This is a genuine failure mode, and it is why later chapters insist on checking prior sensitivity and favoring weakly informative priors as a default rather than overconfident ones. The subjectivity built into Bayesian probability is a feature that demands discipline, not an excuse for carelessness.

A short checklist captures the practical discipline that keeps subjective priors compatible with objective, defensible science:

  • State the prior explicitly, in a research report or analysis write-up, rather than leaving it implicit or hidden.
  • Justify the prior with a specific source: prior studies, domain knowledge, or a deliberately weak and non-committal choice.
  • Check how much the conclusion changes under a reasonably different prior, using the sensitivity analysis techniques covered later.
  • Avoid priors that rule out possibilities a careful reviewer would consider plausible, since no amount of data can recover from that.
  • Report the posterior alongside the prior so that readers can judge how much the data, rather than the starting assumption, drove the conclusion.

It also helps to recognize that frequentist statistics is not actually free of subjective judgment, despite often being presented as the objective alternative. Choosing a significance threshold of 0.05 rather than 0.01 is a convention, not a law of nature. Deciding which covariates to include in a regression model, when to stop collecting data, or how to define the population of interest all involve human judgment calls that shape the final p-value just as surely as a prior shapes a posterior. The difference is that Bayesian methods force these choices into the open as an explicit, examinable prior distribution, while classical methods often leave comparable choices implicit in the research design. Making assumptions visible is, if anything, a step toward more honest reporting rather than less.

The practical takeaway for a researcher moving from classical training into Bayesian methods is to stop treating subjective as a synonym for unscientific and start treating it as a synonym for evidence-dependent and explicitly stated. A well-constructed Bayesian analysis with a clearly justified prior, checked for sensitivity and reported transparently, meets or exceeds the standard of rigor expected from classical analysis, while answering the direct question that colleagues, clinicians, and decision-makers actually want answered. That question is rarely how rare would this data be under a null hypothesis, and it is almost always some version of given everything we now know, how strongly should we believe this is true, and what should we do about it. Bayes' theorem, developed in full in the next chapter, is simply the mechanical rule for moving from one coherent belief to the next whenever new evidence arrives.

Back to contents

Chapter 2: Bayes' Theorem Through Worked Examples

A patient takes a test for a rare disease that affects 1 in 1,000 people. The test is 99 percent accurate, meaning it correctly flags 99 percent of sick people and correctly clears 99 percent of healthy people. The result comes back positive. Most people, including many clinicians, assume the patient is now about 99 percent likely to have the disease. The actual answer is under 10 percent. That gap between intuition and the correct number is the base-rate trap, and Bayes' theorem is the tool that dissolves it by forcing you to weigh new evidence against how rare the condition was to begin with.

The formula behind this result is short enough to write on an index card, but its implications take a lifetime to internalize fully. In its basic form, Bayes' theorem states that the posterior probability of a hypothesis given data equals the likelihood of the data given the hypothesis, multiplied by the prior probability of the hypothesis, divided by the overall probability of the data.

P(H | D) = P(D | H) · P(H) / P(D)

Every term in that equation has a job. P(H) is the prior, what you believed before seeing the data. P(D | H) is the likelihood, how expected the data would be if the hypothesis were true. P(D) is the total probability of seeing that data under any hypothesis, and it acts as a normalizing constant so the output is a legitimate probability. The result, P(H | D), is the posterior, the updated belief after the evidence is folded in. This chapter treats these terms mechanically. The deeper question of how to justify a specific prior or likelihood choice belongs to the chapter on priors, likelihoods, and posteriors, but here the goal is to get comfortable turning the crank.

Three ideas carry the rest of this chapter. The first is the base rate trap, worked through fully with the diagnostic test example. The second is sequential updating, the practice of feeding evidence into the formula one piece at a time and watching belief shift with each new fact. The third is the odds form of Bayes' theorem, a rearrangement that replaces the fraction above with a cleaner multiplication involving something called a Bayes factor, often faster to compute and easier to reason about when evidence arrives piece by piece. Together these three ideas form the mechanical core of Bayesian updating that every later chapter in this book will build on.

None of this requires calculus or specialized software. Every example below can be worked with a calculator and a few minutes of patience. That is the point: Bayes' theorem is not an exotic add-on to statistics, it is arithmetic applied with discipline to the question everyone actually wants answered, namely given what I just observed, how should my belief change?

A Medical Test and the Base Rate Trap

Return to the disease with a 1 in 1,000 prevalence rate. Call having the disease D and testing positive +. The prior probability is P(D) = 0.001, meaning that before any testing, the chance a randomly chosen person has the disease is one in a thousand. The test's accuracy gives two likelihoods: the probability of testing positive given the disease is present, P(+ | D) = 0.99, and the probability of testing positive given the disease is absent, P(+ | not D) = 0.01, since the test wrongly flags 1 percent of healthy people as a false positive.

To apply Bayes' theorem, the denominator P(+) must be built from both ways a positive result can occur: a true positive among the sick, or a false positive among the healthy. This total probability breaks into two pieces.

P(+) = P(+ | D)·P(D) + P(+ | not D)·P(not D)

Plugging in the numbers gives P(+) = (0.99 × 0.001) + (0.01 × 0.999) = 0.00099 + 0.00999 = 0.01098. Notice that the false-positive contribution, 0.00999, is more than ten times larger than the true-positive contribution, 0.00099. That asymmetry exists because there are vastly more healthy people than sick people, so even a small false-positive rate among the healthy majority produces more false alarms in absolute terms than true alarms among the rare sick minority.

Now the full calculation: P(D | +) = P(+ | D)·P(D) / P(+) = 0.00099 / 0.01098 ≈ 0.0902. The patient who tested positive has roughly a 9 percent chance of actually having the disease, not 99 percent. The 99 percent figure describes the test's accuracy, not the patient's condition, and conflating the two is exactly the error that misleads so many first-time readers of medical statistics.

This result generalizes into a rule of thumb worth memorizing:

When a condition is rare, even a highly accurate test produces more false positives than true positives in absolute numbers, so a single positive result shifts belief less than intuition suggests.

This is the core insight behind what statisticians call the base rate, the background frequency of a condition in the population before any test result is considered[1]. Ignoring the base rate is sometimes called base rate neglect, and it shows up constantly outside medicine too, in fraud detection, spam filtering, and security screening, anywhere a rare event is being searched for with an imperfect detector.

Consider a second version of the same problem to see how sensitive the answer is to prevalence. If the disease instead affects 1 in 100 people rather than 1 in 1,000, the prior becomes P(D) = 0.01. Recomputing: P(+) = (0.99 × 0.01) + (0.01 × 0.99) = 0.0099 + 0.0099 = 0.0198, and P(D | +) = 0.0099 / 0.0198 = 0.50. The posterior probability jumps from 9 percent to 50 percent simply because the condition is ten times more common, even though the test itself did not change at all. The chart below shows how the posterior probability of disease rises as the base rate increases, holding test accuracy fixed at 99 percent.

Figure 1. Posterior probability of disease after a positive test, by prevalence. Illustrative values; not observed data.
Disease prevalenceP(disease | positive test)
1 in 1,0009%
1 in 10050%
1 in 1091.7%

This pattern explains why screening programs for rare conditions almost always require a confirmatory second test before a diagnosis is treated as settled. The first positive result updates belief meaningfully, from 0.1 percent up to around 9 percent in the original example, but it rarely crosses the threshold needed for a confident diagnosis on its own. A second independent positive test multiplies the odds again, as the next subchapter shows, often pushing the posterior well above 90 percent after just two rounds of evidence.

The same mechanics apply far outside medicine. A spam filter that is 99 percent accurate but applied to an inbox where only 1 in 500 emails is actually spam will still misclassify a surprising number of legitimate emails as spam relative to true spam caught, for the identical reason the disease test misleads: the population being screened is overwhelmingly one category, so error rates in the small minority get swamped by error rates in the large majority. Any analyst running a classification system, whether for fraud, churn, or defect detection, should compute this base-rate-adjusted number before trusting a model's reported accuracy figure at face value.

A practical checklist helps when a classification or test result lands in front of you and the first instinct is to trust the headline accuracy number.

Before trusting a positive test or flagged result

  • Find or estimate the base rate of the condition in the relevant population
  • Identify the true positive rate and the false positive rate separately
  • Compute the total probability of a positive result across both the true and false positive paths
  • Divide the true positive contribution by that total to get the posterior probability
  • Ask whether a confirmatory second test or signal is available before acting on a single result

Working through this example by hand, rather than trusting a canned software output, builds the intuition needed for every later chapter in this book. The Beta-Binomial model and Normal-Normal model covered under conjugate updating are nothing more than this same base-rate logic extended from a yes-or-no hypothesis to a continuous parameter. Once the two-outcome version feels natural, scaling it up to estimating a proportion or a mean is mostly a matter of bookkeeping.

One more detail deserves attention before moving on. The 99 percent accuracy figure quietly bundled two separate things, the true positive rate (sensitivity) and the true negative rate (specificity), and assumed they were equal. Real tests rarely have matched sensitivity and specificity, and the correct Bayesian update always keeps the two rates distinct, since each rate moves the posterior in its own way, and the right balance between them depends on which error is more costly. A test optimized to minimize missed diagnoses, for instance, often tolerates a higher false-positive rate on purpose, which changes this entire calculation.

The deepest lesson from this example is procedural rather than numerical. Bayes' theorem does not ask for a gut feeling about whether the patient is sick. It asks for three concrete numbers, the prior, and the two conditional probabilities of the test result, and it converts those three numbers mechanically into a fourth. Disagreements about the posterior almost always trace back to disagreements about one of the three inputs, not to a dispute about the arithmetic itself, which is exactly why stating assumptions explicitly matters so much in Bayesian work.

Updating a Belief One Observation at a Time

Bayes' theorem does not require waiting until all the evidence is collected before computing anything. It can be applied one observation at a time, with each posterior becoming the prior for the next piece of evidence. This process is called sequential updating, and it is one of the most practically useful features of the Bayesian framework, since real data almost always arrive in a stream rather than all at once.

Return to the diagnostic test scenario and suppose the patient takes a second, independent test after the first positive result. The posterior from the first test, approximately 0.0902, now becomes the prior for the second calculation. Applying the same formula with this updated prior: P(+) = (0.99 × 0.0902) + (0.01 × 0.9098) = 0.0893 + 0.0091 = 0.0984, giving P(D | ++) = 0.0893 / 0.0984 ≈ 0.907. Two independent positive results push the probability of disease from 9 percent to roughly 91 percent, a dramatic shift driven by the compounding effect of consistent evidence.

The steps below summarize this sequential process in a form that generalizes to any number of observations, whether they are test results, survey responses, or repeated experimental trials.

Sequential updating procedure

  1. Start with a prior - State the initial belief as a probability before any evidence is considered, such as a base rate or a previously established posterior.
  2. Observe one piece of evidence - Take in a single data point, test result, or observation rather than waiting to pool everything together.
  3. Compute the likelihood - Determine how probable that specific observation is under each hypothesis being compared.
  4. Apply Bayes' theorem - Combine the prior and likelihood through the formula to produce an updated posterior probability.
  5. Set the posterior as the new prior - Carry the updated belief forward as the starting point for the next observation.
  6. Repeat for each new observation - Continue the cycle for every additional piece of evidence, letting belief accumulate gradually.

A crucial assumption underlies this compounding effect: the two test results must be conditionally independent given the disease status, meaning the second test does not share a flaw that would make it fail in the same way as the first. If both tests used the same faulty batch of reagent, a second positive result would add far less information than the calculation above assumes, because the two results would not be truly independent pieces of evidence. Checking for this kind of hidden correlation between observations is one of the most common places sequential updating goes wrong in practice.

Sequential updating also explains why clinical trials, fraud investigations, and scientific research generally weigh cumulative evidence rather than any single result in isolation. A single positive drug trial might shift belief in a treatment's effectiveness only modestly, but three independent positive trials compound multiplicatively in odds space (explained fully in the next subchapter), often producing a posterior probability of effectiveness that no single trial could justify on its own. This is also the statistical logic behind why replication matters so much in science: one study updates belief by one factor, and a second independent study updates it again from wherever the first one left off.

Mathematically, sequential updating with independent observations produces the exact same final posterior as computing one giant joint update with all the data at once. This equivalence is reassuring for a practical reason: an analyst does not need to wait for a complete dataset to start forming defensible beliefs, and new data arriving later does not require restarting the whole computation from scratch. The running posterior from yesterday simply becomes today's starting prior, which is one reason Bayesian methods fit naturally into settings like ongoing monitoring dashboards or adaptive clinical trials, where decisions must be made before all the data exist.

Consider a quality control example to see this applied outside medicine. A factory manager believes, prior to inspection, that a batch of parts has a 95 percent probability of meeting the required tolerance, based on the supplier's historical track record. An inspector tests ten parts one at a time, and each test individually detects defects with 90 percent reliability. If the first part passes inspection, Bayes' theorem updates the 95 percent belief upward slightly, since a passing result is more likely under a good batch than a bad one. If the second part also passes, the belief rises further, and so on. A single failing part partway through the sequence would pull the posterior back down sharply, since a defect is strong evidence against the batch meeting tolerance, illustrating how sequential updating tracks belief dynamically rather than only moving in one direction.

A common mistake when applying sequential updating by hand is forgetting to carry forward the correct precision of the posterior before rounding it for the next step. Rounding 0.0902 to 0.09 before the second update introduces a small error that compounds across many sequential steps, producing a final answer noticeably off from the true value. In practice, especially when doing many rounds of updating, it is far safer to carry full decimal precision through every intermediate step and round only the final reported result, or better yet, to track the calculation in odds form, which the next subchapter shows is often numerically cleaner for exactly this reason.

Software implementations of sequential updating follow the same logic shown in the steps above, just automated. A simple loop that multiplies a running prior by each new likelihood and renormalizes after every observation reproduces the hand calculation exactly, and this is precisely the computational backbone behind the Beta-Binomial model and Normal-Normal model introduced in the chapter on conjugate updating, where closed-form formulas exist that avoid recomputing the full Bayes' theorem fraction after every single data point.

The practical upshot for an analyst is that belief under a Bayesian framework is never a single fixed verdict handed down once. It is a trajectory, nudged by each new fact, sometimes sharply and sometimes barely at all depending on how informative that fact is relative to what was already known. Framing results this way, as "updated belief after observation ten" rather than "the final answer," is also more honest about how evidence actually accumulates in most real research and business settings.

The Odds Form and Bayes Factors

The fraction-based version of Bayes' theorem used so far works well for two outcomes, but it requires computing the full denominator P(D) every time, a step that gets tedious with repeated updates. The odds form of Bayes' theorem avoids this by working directly with the ratio of two hypotheses' probabilities rather than their absolute values, and it turns out to simplify sequential updating dramatically.

Odds express a probability as a ratio rather than a fraction of one. A probability of 0.25 corresponds to odds of 1 to 3 (one favorable outcome for every three unfavorable ones), since odds = P / (1 - P). The odds form of Bayes' theorem states that the posterior odds equal the prior odds multiplied by a quantity called the Bayes factor.

Posterior odds = Prior odds × Bayes factor

The Bayes factor itself is the ratio of two likelihoods, how probable the observed data is under one hypothesis compared to another.

Bayes factor = P(D | H₁) / P(D | H₂)

Returning to the diagnostic test example, the prior odds of disease are 0.001 / 0.999 ≈ 0.001001, essentially 1 to 999. The Bayes factor for a positive test result is P(+ | D) / P(+ | not D) = 0.99 / 0.01 = 99. Multiplying gives posterior odds of 0.001001 × 99 ≈ 0.0991, which converts back to a probability of 0.0991 / (1 + 0.0991) ≈ 0.0902, matching the earlier result exactly but reached through a single multiplication rather than a full fraction with an explicit denominator.

The real payoff of the odds form appears with repeated, independent evidence, because Bayes factors multiply together directly. For the two sequential positive tests from before, the combined Bayes factor is simply 99 × 99 = 9,801, and the posterior odds become 0.001001 × 9,801 ≈ 9.81, converting to a probability of 9.81 / 10.81 ≈ 0.907, again matching the earlier step-by-step calculation. Instead of recomputing a denominator at every stage, each new piece of evidence just contributes one more multiplicative factor to a running product.

The table below compares the fraction form and the odds form side by side so the relationship between the two is clear at a glance.

Table 2. Fraction form versus odds form of Bayes' theorem
Fraction formOdds form
Computes P(H | D) directly as a probability between 0 and 1Computes a ratio of two probabilities, which can be converted to a probability afterward
Requires computing the full denominator P(D) across all hypothesesRequires only the ratio of two likelihoods, the Bayes factor
Each sequential update requires a fresh denominator calculationSequential updates multiply Bayes factors together directly
Natural when comparing many hypotheses at onceNatural when comparing exactly two hypotheses or two models

Bayes factors also carry an interpretation of their own, independent of any particular prior. A Bayes factor of 99, as in the test example, says the observed evidence is 99 times more likely under the hypothesis of disease than under the hypothesis of no disease. This number describes the strength and direction of the evidence itself, separate from how rare the disease was beforehand, which makes Bayes factors a convenient way to report the evidential weight of a result without forcing a reader to accept a specific prior.

A widely cited scale for interpreting the strength of a Bayes factor comes from the work of Harold Jeffreys, who proposed rough verbal categories for how convincing a given ratio should be treated as evidence[2]. A Bayes factor between 1 and 3 is typically read as barely worth mentioning, between 3 and 10 as substantial, between 10 and 30 as strong, between 30 and 100 as very strong, and above 100 as decisive. The value of 99 computed above sits at the top of the very strong band, just short of decisive evidence, which matches the intuitive sense that a single positive test result on a 99 percent accurate test is meaningful but not yet overwhelming on its own.

Bayes factors reappear constantly outside toy examples. In forensic science, a DNA match is often reported as a likelihood ratio comparing how probable the match would be if the suspect were the source of the sample versus if someone unrelated were the source, which is exactly a Bayes factor by another name. In scientific hypothesis comparison, Bayes factors are used to weigh one proposed model against a rival model directly, sidestepping some of the interpretive problems that plague the p-value, a contrast the chapter on comparing Bayesian and frequentist answers develops further.

One caution deserves attention before moving to the next chapter. The odds form works cleanly when comparing exactly two competing hypotheses, such as disease versus no disease, or variant A better versus variant B better. When more than two hypotheses are in play, the fraction form with its explicit denominator, summing across every hypothesis, remains the more direct tool, since odds comparisons between many pairs of hypotheses get unwieldy fast. Choosing between the two forms is a matter of convenience for the problem at hand, not a deeper mathematical disagreement, since both forms derive from the identical underlying theorem and always agree on the final answer.

Back to contents

Chapter 3: Priors, Likelihoods, and Posteriors

The posterior distribution is not a compromise between what you believed beforehand and what the data showed you. It is the single, mathematically unique distribution that is consistent with both of those things at once. That distinction matters more than it sounds. A compromise suggests averaging, splitting the difference, meeting halfway between stubbornness and evidence. A unique consequence suggests something closer to a court verdict: given the facts and the law, only one judgment follows. Once you treat the posterior this way, every Bayesian result you read or produce starts to look different, because the question shifts from how much weight did they give the prior to did they specify the prior and the likelihood correctly, because the posterior takes care of itself.

Bayes' theorem, covered in full mechanical detail in the previous chapter, is the engine that turns a prior and a likelihood into a posterior. This chapter steps back from the mechanics of updating to look at the three ingredients themselves as objects worth understanding individually. Each one answers a different question, does a different job, and can go wrong in a different way. The prior distribution encodes what you believed about a parameter before seeing the current data. The likelihood function encodes how probable the observed data would be under each possible value of that parameter. The posterior distribution is what results when the two are combined through Bayes' theorem, properly normalized so it integrates to one.

Confusing these three objects is the single most common source of Bayesian errors among analysts trained in classical statistics. A p-value is a statement about data under a fixed hypothesis, a confidence interval is a statement about a procedure's long-run coverage, and neither one carries the direct interpretation that a posterior probability carries. The three Bayesian ingredients, by contrast, are each stated directly in terms of the unknown parameter you actually care about. That directness is the appeal of the Bayesian approach, but it only pays off if each ingredient is built honestly. A sloppy likelihood or an unexamined prior produces a posterior that looks precise and authoritative while resting on assumptions nobody checked.

This chapter works through each ingredient in turn, with the goal of giving concrete, defensible practice rather than abstract description. Choosing a likelihood means matching a probability model to the actual process that generated the data, not reaching for the first familiar distribution. Choosing a prior means translating real background knowledge, or a deliberate lack of it, into a specific mathematical object, and being ready to defend that choice. Reading a posterior means resisting the urge to collapse it into a single number before extracting everything it has to say about plausible values and their relative weight. Model specification, taken together, is the set of decisions that happen before any arithmetic starts, and it deserves the same scrutiny a classical analyst gives to choosing a test statistic.

Choosing a Likelihood for Your Data

The likelihood function answers one specific question: given a particular value of the unknown parameter, how probable is the data you actually observed? Write it as L(θ) = P(data | θ), read as a function of θ with the data held fixed. This is the mirror image of how a classical analyst usually thinks about a distribution, where the parameter is fixed and the data varies. Here the data is fixed, already in hand, and θ is what sweeps across its possible range. Getting this function right is a modeling decision rooted in how the data was generated, not a statistical afterthought, and it determines everything the posterior can say.

Consider a simple, concrete case: counting how many of 40 website visitors clicked a button. If each visitor's click is independent of the others, and each one shares the same unknown probability θ of clicking, the number of clicks follows a Binomial distribution. The likelihood for observing k clicks out of n visitors is L(θ) = C(n,k) θk(1-θ)n-k. This is the same Binomial formula a classical analyst already knows from hypothesis testing, borrowed here as the engine of belief updating rather than the source of a p-value. The data-generating story, independent trials with a constant success probability, justifies the choice. If visitors were not independent, say because clicks cluster by referral source, this model would misrepresent the data and the likelihood would need adjusting.

A second common case involves measuring a continuous quantity, like the time a user spends on a page or the weight of a manufactured part. Here a Normal distribution likelihood is often appropriate, especially when the measurement reflects the sum of many small, independent influences, which is exactly what the central limit theorem predicts. The likelihood for a single observation x given mean μ and known standard deviation σ is L(μ) = (1/(σ√(2π))) exp(-(x-μ)2/(2σ2)), and for multiple independent observations the individual likelihoods multiply together. Matching the Normal distribution to data that is actually skewed, bounded at zero, or heavy-tailed produces a likelihood that systematically misjudges how probable the data really is under different parameter values, which quietly distorts the posterior before any prior is even considered.

Three questions help decide which likelihood fits a given dataset, and working through them before writing any code avoids a large share of modeling mistakes down the line:

  • What kind of outcome is being measured? A count of successes out of a known number of trials points toward Binomial; a count of rare events over time or space points toward Poisson; a continuous, roughly symmetric measurement points toward Normal.
  • What constraints does the outcome obey? A proportion is bounded between zero and one, a count cannot go negative, and a duration cannot be negative either. The likelihood should respect these bounds rather than assign positive probability to impossible values.
  • What does the data-generating process actually look like? Independent identical trials, a rate of occurrence over a fixed exposure, or a sum of many small effects each point toward a different standard family.

Multiplying individual likelihoods together across independent observations is standard practice, but in applied work it is almost always done on the log scale for numerical stability, since multiplying many small probabilities together quickly underflows to zero on a computer. The log-likelihood is log L(θ) = Σi=1n log P(xi | θ), and because the logarithm is a strictly increasing function, the value of θ that maximizes the log-likelihood is the same value that maximizes the likelihood itself. This detail matters less for understanding the concept than for doing the computation, but any analyst building these models in software will encounter it immediately.

A frequent mistake is treating the likelihood as if it were itself a probability distribution over θ. It is not. The Binomial likelihood above does not integrate to one when you treat θ as the variable and sweep it from zero to one, because the Binomial coefficient and the structure of the formula were built to sum to one over possible data outcomes, not over possible parameter values. This is precisely why Bayes' theorem needs the normalizing step that produces the posterior, and why the likelihood alone, however carefully built, cannot answer the question how probable is this value of θ on its own. It can only answer how well does this value of θ explain the data I saw, relative to other values.

Model specification errors in the likelihood tend to be invisible in the final output, which is what makes them dangerous. A posterior computed from a misspecified likelihood still produces a clean-looking distribution with a mean, a spread, and credible bounds. Nothing in the output flags that the underlying assumption, say independence between trials, was false. This is why a posterior predictive check, covered in depth when discussing model checking, exists as a safeguard: it asks whether data simulated from the fitted model resembles the data actually observed. Building the likelihood thoughtfully in the first place is the cheaper, earlier line of defense against the same problem.

A practical habit worth adopting before any analysis begins is to write out, in plain language, the story of how each data point came to exist. For the click-through example: each visitor independently decides to click or not, with the same underlying probability for everyone in this experiment. For the page-duration example: each visit time reflects a typical duration plus random variation from many small, unrelated factors. If that story feels implausible when stated explicitly, so does the likelihood built on it, and it is far easier to catch the problem at this stage than after a posterior has already been computed and shown to a colleague.

The table below summarizes four likelihood families an applied analyst encounters most often, alongside the kind of data each one is built for and a short note on when it tends to misfire.

Table 3. Common Likelihood Families and When to Use Them
DistributionTypical dataWatch out for
BinomialCount of successes out of a fixed number of trialsTrials that are not independent or do not share one true rate
PoissonCount of events over a fixed time or space windowOverdispersion, where variance exceeds the mean
NormalContinuous, roughly symmetric measurementsSkewed data, hard bounds at zero, or heavy tails
ExponentialWaiting time between independent eventsA rate that actually changes over time

Once a likelihood family is chosen, the next task is deciding how confident the data itself is, independent of any prior belief. A dataset of 40 clicks carries less information than one of 4,000 clicks, and the shape of the likelihood function reflects that directly: more data produces a sharper, more concentrated likelihood curve around the value of θ that best explains it, while less data produces a flatter, wider curve. This sharpness is exactly what will eventually compete with, or reinforce, whatever prior distribution gets paired with it, which is the subject taken up next.

One last point deserves emphasis before moving to priors: the likelihood function is the only place in the entire Bayesian calculation where the actual observed data enters. The prior does not see the data, and the posterior only sees the data through the likelihood. This means any debate about whether an analysis used the data correctly is really a debate about whether the likelihood was specified correctly, a fact that gets lost when attention drifts entirely toward arguing about the prior.

Choosing and Justifying a Prior

The prior distribution is where Bayesian analysis asks for something classical statistics never requires: an explicit, numerical statement of what was believed about the parameter before the current dataset arrived. This requirement makes some analysts uneasy, because it seems to inject subjectivity into what should be an objective exercise. The honest response is that every analysis already carries assumptions, whether stated or not. A frequentist test implicitly assumes the null hypothesis is the single value worth testing against, a classical confidence interval implicitly assumes particular things about the sampling distribution, and both choices reflect judgment calls made before the data was ever examined. The Bayesian framework simply forces that judgment into the open where it can be inspected, argued over, and tested.

A prior distribution over a proportion θ between zero and one is commonly built from the Beta distribution, written Beta(α, β), because its shape is flexible and it pairs cleanly with Binomial data (the full mechanics of this pairing, called the Beta-Binomial model, belong to the chapter on conjugate updating). Here the focus is on what the parameters α and β actually mean as statements of belief. A Beta(1, 1) prior is flat across the entire range from zero to one, treating every possible click-through rate as equally plausible in advance. A Beta(20, 20) prior concentrates belief tightly around 0.5, reflecting strong prior confidence that the true rate is close to one half. A Beta(2, 18) prior leans toward low rates, reflecting a belief that most visitors do not click.

Three broad strategies for justifying a prior cover most real analyses, and each one has a legitimate place depending on what is actually known before the data arrives:

  • Prior data or historical results. If a previous version of the same button averaged a 4 percent click-through rate across tens of thousands of visitors, that history can be translated directly into a Beta prior centered near 0.04, with its concentration reflecting how much that historical sample size should count.
  • Domain expertise. An engineer who has watched dozens of similar features launch might reasonably believe a new feature's adoption rate will fall between 10 and 30 percent, even without a dataset to point to, and that range can be converted into Beta parameters that place most of the prior's mass in that interval.
  • Deliberate near-ignorance. When nothing reliable is known in advance, a flat or weakly informative prior lets the likelihood dominate the posterior almost entirely, a strategy examined in depth in the chapter on sensitivity analysis and prior robustness.

Converting a verbal belief like somewhere around 10 to 30 percent into specific Beta parameters is a skill worth practicing directly. One workable approach is to pick a mean and an effective sample size that the prior should carry, since a Beta(α, β) distribution has mean α/(α+β) and behaves, in terms of how strongly it resists being moved by new data, like having already observed α+β prior trials. A prior centered at 0.20 that should carry roughly the same weight as 10 prior observations translates to α = 2 and β = 8, since α+β = 10 and α/(α+β) = 0.20. This effective sample size framing turns an abstract shape into something an analyst and a skeptical colleague can both reason about concretely.

A prior is not just a distribution chosen for its shape, it is a claim that can be wrong, and treating it that way is what separates careful Bayesian practice from motivated reasoning. If a team genuinely believed a new feature would see 20 percent adoption and the eventual data shows 2 percent, that mismatch is informative, not something to quietly paper over by picking a different prior after the fact and pretending it was the original plan. Choosing a prior after seeing the data specifically to produce a preferred posterior is the Bayesian equivalent of p-hacking, and it undermines the entire framework's claim to honesty. The prior should be written down and, ideally, shared before the data is examined.

Warning: Do not peek before choosing

Selecting or adjusting a prior after looking at the data, specifically to steer the posterior toward a preferred conclusion, defeats the purpose of stating a prior at all. Write the prior down, and the reasoning behind it, before the dataset is examined, the same discipline a pre-registered experiment demands of a frequentist hypothesis.

The idea of letting personal belief enter a statistical model has a long and sometimes contentious history. The mathematician and economist Bruno de Finetti argued that probability only makes coherent sense as a personal degree of belief, and his coherence argument, developed through exchangeability and representation theorems, remains a foundational justification for treating priors as legitimate rather than merely convenient.[1] Thomas Bayes himself, in the essay published after his death that gives the whole framework its name, worked through a version of this updating logic using a geometric setup, long before the modern machinery of conjugate families existed.[2]

A useful mental model for understanding the prior's role is to picture it as the foundation layer of a three-tier structure, with the likelihood as the connecting layer, and the posterior as the result that sits on top of both.

How a Posterior Is Built

Posterior distribution (30)

Likelihood function (the data) (60)

Prior distribution (prior belief) (100)

The pyramid is a reminder, not a formula: the posterior is not literally stacked proportionally on the other two the way a chart might suggest, since the actual balance between prior and likelihood depends on their relative sharpness, as the next subchapter discusses with the Normal-Normal model. What the image captures correctly is dependency. The posterior cannot exist without both layers beneath it, and removing either one, say by refusing to state a prior at all or by refusing to look at any data, leaves nothing stable to stand on.

When no strong prior information exists and the goal is simply to avoid injecting unjustified assumptions, a weakly informative prior is the standard, defensible default, covered in full in its own chapter later in this book. The short version worth internalizing now: weakly informative does not mean uninformative. A prior like Beta(2, 2) gently favors values away from the extremes of zero and one without strongly committing to any particular middle value, which is often more sensible than a perfectly flat prior that treats a 99.9 percent click-through rate as just as plausible as a 20 percent one.

A short checklist helps before finalizing any prior for a real analysis, and running through it takes a few minutes but prevents most downstream disputes about whether the prior was chosen in good faith:

Before Finalizing a Prior

  • Write out in plain language what the prior assumes, before translating it into a distribution
  • Check that the prior's mean and spread match a defensible real belief, not a convenient one
  • Confirm the prior was chosen before looking at the current dataset, or document the historical data used
  • Note the prior's effective sample size so a colleague can judge how strong an assumption it represents
  • Plan to test the posterior's sensitivity to reasonable alternative priors before reporting a final result

Reading a Posterior Distribution Carefully

The posterior distribution is the full, mathematically unique answer to the question given this prior and this data, what do I now believe about θ? It is computed by multiplying the prior by the likelihood and dividing by a normalizing constant so the result integrates to one, expressed formally as a direct application of Bayes' theorem:

posterior(θ) = [prior(θ) × likelihood(θ)] / ∫ prior(θ) × likelihood(θ) dθ

That denominator, the integral across all possible values of θ, is often the hardest part to compute directly and is the reason conjugate prior families and modern simulation methods both exist, as later chapters explore. But for understanding what the posterior means, the numerator tells the whole conceptual story: at every candidate value of θ, multiply how plausible that value was beforehand by how well it explains the observed data, and the result, once rescaled to sum to one, is the posterior. Values of θ that were plausible beforehand and explain the data well end up with high posterior density. Values that were implausible beforehand, or that explain the data poorly, end up with low posterior density, even if one of those two conditions alone might have looked favorable.

Treating a posterior as fully read once a single number, usually the mean, has been extracted is the most common way analysts waste the richest part of a Bayesian analysis. The posterior is a distribution, and distributions carry shape information that a single summary statistic throws away. A posterior for a click-through rate might have a mean of 0.12 whether it is tightly concentrated between 0.10 and 0.14, or spread broadly from 0.02 to 0.30. Those two situations call for completely different business decisions, even though they share the same point estimate, and only looking at the full shape reveals the difference. Extracting a posterior mean, a highest density interval, and other summaries properly is covered in depth in the chapter on Bayesian estimation, but recognizing that the full shape is the primary object, and any single number is a simplification of it, belongs here as a reading habit.

A concrete illustration makes the point vivid. Suppose two different experiments on two different features each produce a posterior for an adoption rate with a mean of exactly 0.15. In the first, the posterior is a tight Beta distribution built from 5,000 observed trials, with 95 percent of its mass between 0.14 and 0.16. In the second, the posterior comes from only 30 trials, with 95 percent of its mass spread between 0.04 and 0.32. A decision-maker told only the adoption rate is about 15 percent in both cases would be making a decision on equally confident-sounding language despite facing drastically different levels of actual uncertainty. Reading the full posterior, not just its center, is what prevents this kind of silent information loss.

Another habit worth building is checking where the posterior sits relative to the prior and the likelihood separately, rather than only looking at the final combined result. If the posterior lands very close to where the prior alone pointed, and far from where the likelihood alone pointed, that is a signal that the prior dominated the result, either because the prior was unusually strong or because the data was sparse. If the posterior lands close to the likelihood and far from the prior, the data dominated. Neither outcome is automatically wrong, but noticing which one occurred is essential for deciding whether to report the result with confidence or to flag that the conclusion rests heavily on prior assumptions, a judgment call that the sensitivity analysis chapter turns into a formal procedure.

The question a posterior answers is fundamentally different from the question a p-value answers, even when both are computed from the exact same dataset, a contrast the chapter on p-values develops at length. What belongs here is a narrower but equally important point: the posterior answers a question stated directly in terms of θ, such as what is the probability that the true click-through rate exceeds 0.10, given everything observed, and that probability can be read off the posterior directly by computing the area under its curve beyond 0.10. No such direct statement is available from a p-value, which is why analysts trained only in classical methods sometimes misdescribe a p-value as if it answered this kind of question when it structurally cannot.

A worked numeric example helps fix the idea concretely. Suppose a prior belief about a new feature's adoption rate is set at Beta(2, 8), reflecting a prior mean of 0.20 with an effective sample size of 10. After launch, 60 out of 300 users adopt the feature, an observed rate of 0.20. Because the Beta distribution is conjugate to the Binomial likelihood, the posterior is simply Beta(2+60, 8+240) = Beta(62, 248), with a posterior mean of 62/310 ≈ 0.20. Notice that the posterior mean matches both the prior mean and the observed rate almost exactly in this case, not because of any compromise, but because both sources of information happened to agree, which is exactly the kind of coincidence that can mislead an analyst into believing averaging is what happened.

Change the example slightly to see the uniqueness argument more clearly. Keep the same Beta(2, 8) prior, but suppose the 300 users instead produce 150 adopters, an observed rate of 0.50, sharply different from the prior's 0.20. The posterior becomes Beta(2+150, 8+150) = Beta(152, 158), with a posterior mean of 152/310 ≈ 0.49. The posterior sits almost entirely on the data's side, far from the prior's 0.20, because 300 observations carry far more information than the prior's effective sample size of 10. This is not a 50-50 split between prior and data: the posterior mean weights the prior by its effective sample size of 10 and the data by its 300 observations. It is the single distribution that Bayes' theorem produces from combining exactly this prior with exactly this likelihood, and a different prior or a different dataset would produce a different, but equally unique, answer.

A posterior that sits far from both the prior and the likelihood's implied estimate should almost never happen if the arithmetic is correct, and its appearance is usually a sign of a coding error, a mismatched likelihood, or a misread prior parameterization rather than a genuine statistical surprise. Catching this kind of inconsistency early, by routinely comparing the posterior against its two ingredients before reporting any result, is one of the simplest and most effective quality checks available to anyone running Bayesian models regularly. It costs almost nothing and it catches a meaningful share of real mistakes before they reach a colleague or a published report.

Carrying this reading habit forward, the next step in building a full Bayesian analysis is working through exactly how the prior and likelihood combine for standard, well-understood cases such as proportions and means, where the algebra works out in closed form rather than requiring simulation, which is exactly where the Beta-Binomial model and the Normal-Normal model pick up the thread.

Back to contents

Chapter 4: Conjugate Updating for Proportions and Means

When the prior is chosen to match the likelihood, so that the posterior lands in the same family as the prior, the posterior writes itself in one line. Conjugacy is the shortcut that makes Bayesian updating tractable by hand. Without it, finding a posterior distribution usually means solving an integral that has no closed form, which is why modern Bayesian software leans on simulation. But for two of the most common problems an analyst faces, estimating a proportion and estimating a mean, there is no need for simulation at all. The algebra collapses into a formula simple enough to compute on a spreadsheet, and that simplicity builds intuition that carries over even when a problem later requires heavier machinery.

The term conjugate prior describes a prior distribution that, when combined with a particular likelihood function, produces a posterior distribution from the same family as the prior. Pick a Beta distribution as a prior for a proportion, pair it with a binomial likelihood, and the posterior comes back as another Beta distribution with updated parameters. Pick a Normal distribution as a prior for a mean, pair it with a Normal likelihood, and the posterior comes back as another Normal distribution. Nothing is approximated. The update is exact, and it happens through simple arithmetic on the parameters rather than through numerical integration.

This chapter works through the two conjugate pairings that cover the bulk of everyday analysis: the Beta-Binomial model for proportions (conversion rates, click-through rates, pass rates, approval rates) and the Normal-Normal model for means (average revenue, average response time, average test score). Both follow the same underlying logic introduced earlier: a prior distribution encodes belief before seeing data, a likelihood function encodes what the data say, and the posterior distribution is their product, renormalized. What conjugacy adds is a formula for doing that multiplication without calculus.

Along the way, a concept called effective sample size gives a way to think about how much weight a prior carries relative to real data, measured in the same units as the data itself. This turns an abstract worry (did the prior bias my result?) into a concrete number (the prior behaved as if it were twenty extra observations). That number is the key to defending a prior to a skeptical colleague, and it sets up the sensitivity analysis techniques covered later in the book.

The Beta-Binomial Model for Proportions

Picture an analyst testing a new onboarding flow, watching 40 new users and recording how many complete signup. That is a binomial process: each user either converts or does not, and the quantity of interest is the underlying conversion rate, call it θ. The Beta distribution is the natural prior for θ because it is defined only on the interval from 0 to 1, exactly where a proportion lives, and because it is flexible enough to represent strong opinions, weak opinions, or near-total ignorance. A Beta distribution is written Beta(α, β), where α can be thought of as a count of prior successes and β as a count of prior failures.

The binomial likelihood says: given θ, the probability of observing k successes out of n trials follows the binomial formula. When this likelihood multiplies a Beta(α, β) prior, the algebra simplifies beautifully. The posterior is another Beta distribution, and the update rule is:

posterior = Beta(α + k, β + (n - k))

In words, just add the observed successes to α and the observed failures to β. No integration, no software, no approximation. This is the entire mechanism, and it is why the Beta-Binomial pairing is the first conjugate model taught in every Bayesian course[1].

Returning to the onboarding example: suppose the analyst starts with a Beta(2, 2) prior, reflecting mild belief that the rate is somewhere near 50% but without strong conviction. Out of 40 users, 28 complete signup, so k = 28 and n - k = 12. The posterior becomes Beta(2 + 28, 2 + 12) = Beta(30, 14). The following steps lay out this update as a repeatable procedure.

Running a Beta-Binomial update

  1. Pick a prior - Choose α and β for a Beta(α, β) prior that reflects belief about the proportion before seeing data. A flat Beta(1, 1) says every value from 0 to 1 is equally plausible.
  2. Collect binomial data - Count the number of successes k and the number of trials n from the observed data, such as conversions out of visitors.
  3. Add successes to α - Compute the new first parameter as α + k.
  4. Add failures to β - Compute the new second parameter as β + (n - k).
  5. Read off the posterior - The result, Beta(α + k, β + n - k), is the full posterior distribution over the proportion, ready to summarize with a posterior mean or credible interval.

The posterior mean of a Beta(α, β) distribution has a simple closed form, α/(α + β). For the updated Beta(30, 14), that works out to 30/44 ≈ 0.68, a sensible blend between the prior's neutral guess near 0.5 and the raw sample rate of 28/40 = 0.70. The posterior leans close to the data because 40 observations carry far more information than a prior built from the equivalent of four pseudo-observations. This blending behavior, where the posterior mean sits between the prior mean and the sample proportion, is the signature of every conjugate update and is worth internalizing before moving to the Normal-Normal case.

Choosing α and β is itself a modeling decision covered in more depth under choosing and justifying a prior, but a few common starting points are worth naming here. A Beta(1, 1) prior is flat, equivalent to saying every conversion rate from 0% to 100% is equally plausible, a reasonable default when there is no prior experience to lean on. A Beta(2, 2) or Beta(5, 5) prior is mildly informative, gently centered at 50% but easy for data to override. A Beta(20, 80) prior encodes strong prior belief that the rate sits near 20%, appropriate when historical data from similar campaigns exists.

A table clarifies how these choices translate into concrete prior shapes before any data arrive.

Table 4. Common Beta prior choices and what they imply
PriorImplied prior meanInterpretation
Beta(1, 1)50%Flat, no information favored
Beta(2, 2)50%Weak belief near 50%, four pseudo-observations
Beta(5, 5)50%Moderate belief near 50%, ten pseudo-observations
Beta(20, 80)20%Strong belief near 20%, one hundred pseudo-observations

One frequent mistake is treating the posterior mean as the only output worth reporting. The full Beta(30, 14) posterior also supports a credible interval, the range that contains, say, 95% of the posterior probability, which communicates the remaining uncertainty about the conversion rate. For the onboarding example, the 95% credible interval runs from roughly 0.54 to 0.81, a wide enough band to recommend collecting more data before declaring victory. Reporting only the point estimate without this band is the Bayesian equivalent of dropping a confidence interval from a classical t-test, and it misleads anyone reading the result.

Another trap is applying the Beta-Binomial model to data that are not actually binomial. If users can complete signup more than once, or if trials are not independent (say, friends signing up together after seeing each other's experience), the binomial likelihood no longer describes the data-generating process accurately, and the clean conjugate update stops being valid. Always check that the process genuinely consists of independent yes-or-no trials with a constant underlying probability before reaching for this model.

Example: A worked mini-example

A support team wants to estimate the share of tickets resolved within one hour. Starting prior: Beta(3, 7), reflecting a belief the rate is near 30% based on last quarter. This quarter, 18 out of 50 tickets resolve within the hour. Posterior: Beta(3 + 18, 7 + 32) = Beta(21, 39). Posterior mean: 21/60 = 0.35, slightly above the prior's 0.30 and pulled toward the sample rate of 0.36.

The Beta-Binomial model also handles sequential updating gracefully, a property worth naming explicitly. If ten more tickets arrive next week with 4 resolved in time, the previous posterior, Beta(21, 39), simply becomes the new prior, and the update rule applies again: Beta(21 + 4, 39 + 6) = Beta(25, 45). The order in which data arrive, all at once or in batches, does not change the final posterior, since the arithmetic of adding successes and failures is commutative. This makes the model well suited to dashboards that refresh daily, since each day's data can update yesterday's posterior without recomputing from scratch.

Before moving to continuous outcomes, it helps to see the Beta-Binomial model stated as a formal definition, since that phrasing will recur in later discussions of A/B testing and estimation.

Definition: Beta-Binomial model

A model in which a proportion θ has a Beta(α, β) prior distribution, data consist of k successes out of n independent binomial trials, and the resulting posterior distribution is Beta(α + k, β + n - k).

A Normal Model for Estimating a Mean

Not every quantity of interest is a proportion. Average order value, average response time, average test score, and countless other measures are continuous rather than binary, and the Beta-Binomial model does not apply to them. The standard conjugate tool for a continuous mean is the Normal-Normal model, which pairs a Normal prior for the unknown mean μ with a Normal likelihood for the data, under the simplifying assumption that the data's variance is known or can be treated as known[2]. Just as the Beta-Binomial pairing turns an integral into addition, the Normal-Normal pairing turns it into a weighted average.

Suppose the prior belief about a mean is μ ~ Normal(μ₀, σ₀²), where μ₀ is the prior guess and σ₀² measures how uncertain that guess is. Suppose the data consist of n observations with sample mean x̄ drawn from a population with known variance σ². The posterior is another Normal distribution, with mean and variance given by:

posterior mean = (σ²μ₀ + nσ₀²x̄) / (σ² + nσ₀²)

posterior variance = (σ²σ₀²) / (σ² + nσ₀²)

These formulas look dense at first glance, but they say something intuitive: the posterior mean is a weighted average of the prior guess and the sample mean, where the weights reflect how confident each source is. A prior with small σ₀² (high confidence) pulls the posterior toward μ₀, while a large sample size n pulls it toward x̄.

A concrete case makes this tangible. A retailer wants to estimate average order value for a new product line. Past experience with similar products suggests a prior of μ₀ = 45 dollars with prior standard deviation σ₀ = 10, so σ₀² = 100. After the first week, 25 orders come in with sample mean x̄ = 52 dollars, and the known population standard deviation from historical order data is σ = 20, so σ² = 400. Plugging into the formula:

posterior mean = (400 × 45 + 25 × 100 × 52) / (400 + 25 × 100) = (18000 + 130000) / 2900 ≈ 51.03

The posterior mean, about $51.03, sits close to the sample mean of $52 because 25 observations outweigh the prior's influence, but it is pulled down slightly by the prior's lower guess of $45.

As more data accumulate with the prior and the sample mean held fixed, the posterior mean migrates toward the sample mean, and beyond a few dozen observations it barely moves, because the data have already overwhelmed the prior's contribution. This is a general feature of conjugate updating: the influence of any fixed prior shrinks as sample size grows, which answers a common worry that a subjective prior might distort results indefinitely. It does not. It only matters when data are scarce, which is precisely when some outside information is most valuable.

A caution belongs here about the known-variance assumption. The formulas above assume σ², the variance of individual observations, is already known, which is rarely exactly true in practice. In real applications, analysts often substitute the sample variance as a stand-in, which works reasonably well for moderate to large samples but becomes shakier for very small samples, where a more complete treatment would use a Normal-Inverse-Gamma conjugate prior that updates both the mean and the variance together. That extension is beyond this chapter's scope, but it is worth knowing it exists for situations where sample sizes are small and variance is genuinely unknown.

As with the Beta-Binomial model, the Normal-Normal update supports sequential updating without penalty. Each new batch of data can use the previous posterior as its new prior, and the formula applies again with updated numbers for μ₀, σ₀², and the next batch's x̄ and n. This property is what makes conjugate models attractive for dashboards and monitoring systems that recompute estimates as fresh data streams in, without needing to store every individual observation, only the current posterior's parameters.

It is worth contrasting this model briefly with the classical approach to estimating a mean, the familiar sample mean plus standard error. The Bayesian version produces a near-identical point estimate when the prior is weak relative to the data, but it additionally produces a full distribution over plausible values of μ, from which any probability statement can be read directly (for instance, the probability that the true average order value exceeds $50). That kind of direct probability statement is unavailable from a classical confidence interval, a distinction explored further in the comparison between confidence intervals and credible intervals.

How Prior Strength Compares to Sample Size

Both conjugate models share a hidden parameter: a measure of how much the prior is worth, expressed in the same currency as the data itself. For the Beta-Binomial model, that currency is observation count, and the prior Beta(α, β) behaves exactly as if α + β prior observations had already been seen. This quantity is called the effective sample size of the prior, and it gives an immediate, concrete way to judge whether a prior is strong or weak relative to the data at hand.

Take the earlier onboarding example again. A Beta(2, 2) prior has an effective sample size of 4, meaning it carries about as much weight as four prior observations. Against a dataset of 40 real observations, that prior is barely noticeable, contributing a small fraction of the total weight in the posterior. Contrast that with a Beta(50, 50) prior, which has an effective sample size of 100 and would dominate a dataset of 40 observations, pulling the posterior firmly toward 50% regardless of what the data show. Neither choice is inherently wrong, but each should be made deliberately, with the effective sample size stated so a reader can judge whether it is appropriate.

For the Normal-Normal model, the analogous quantity is the ratio σ²/σ₀², which plays the same role as a pseudo-sample-size. A prior with small σ₀² (tight, confident) behaves like a large number of pseudo-observations, while a prior with large σ₀² (loose, uncertain) behaves like only a handful. In the order-value example, σ² = 400 and σ₀² = 100 gives a ratio of 4, meaning the prior behaved as if it were worth about 4 pseudo-observations, far less than the 25 real orders that arrived, which is why the posterior mean sat so close to the sample mean.

A common error is picking prior parameters by trial and error until the posterior matches a preferred answer, then presenting that prior as if it were chosen in advance. This reverses the honest order of operations and defeats the purpose of stating a prior at all. The defensible practice is to fix the prior and its effective sample size before looking at the outcome data, ideally documenting the reasoning (previous studies, domain expertise, a deliberately weak default) in the write-up, a discipline connected to the later discussion of transparent reporting.

Effective sample size also offers a practical sanity check when a result looks surprising. If a Beta-Binomial posterior lands far from both the prior mean and the raw sample proportion, something is likely wrong, perhaps a coding error in how α and β were updated, or a mismatch between the stated prior and the one actually used in the calculation. Because the posterior must always be a weighted blend between prior and data, any result that falls outside that blend signals a bug rather than a surprising finding.

Effective sample size also clarifies why conjugate models are forgiving of a mediocre prior guess, provided the data are plentiful. Even a prior centered on the wrong value gets corrected quickly once real observations start to dominate the weighted average, so the main risk of a poor prior is in applications with genuinely small samples, like early-stage A/B tests or rare-event monitoring, where few observations exist to overrule it. This is exactly where the sensitivity analysis techniques introduced later in the book become essential, running the same update under several candidate priors to see whether conclusions hold up.

A short exercise helps cement the arithmetic. Given a Beta(4, 6) prior (effective sample size 10, implying a prior mean of 40%) and a new dataset of 60 trials with 33 successes, the posterior becomes Beta(4 + 33, 6 + 27) = Beta(37, 33), with posterior mean 37/70 ≈ 0.529. Working through a handful of these by hand, varying the prior strength and the sample size, builds the kind of intuition that no formula alone provides, and it pays off directly when explaining a posterior to a colleague who wants to know exactly how much the prior mattered.

Carrying this forward, the next step in a real analysis is rarely to stop at a single posterior mean. Once a Beta or Normal posterior is in hand, the natural follow-up questions, how to summarize it as a point estimate, how wide an interval to report, and how to check whether the model actually fits, are the subject of the chapter on extracting posterior summaries and checking model fit.

Back to contents

Chapter 5: What a p-Value Really Says

The American Statistical Association issued a landmark formal statement on p-values, the first time the ASA had taken a formal position on a specific matter of statistical practice[1]. The statement did not ban the p-value or declare it useless. It said something more specific: the number that most scientists learn in their first statistics course, and lean on for the rest of their careers, is routinely misread even by people who have published hundreds of papers using it. The ASA listed six principles meant to correct the record, and most of those principles amount to saying what the p-value is not, because the positive definition alone keeps failing to stick.

That failure is not a minor technicality. A p-value sits at the center of how modern science decides what counts as a discovery, which drugs get approved, and which effects make it into textbooks. If the number is misread at that scale, the cost is not abstract. It shows up as findings that later fail to replicate, as journals that reward lucky noise over real signal, and as practitioners who report certainty where none exists. The ASA statement was an attempt to stop the bleeding at the level of definition, before it ever reaches interpretation.

This chapter gives the exact definition, lists the specific ways that definition gets bent in practice, and then sets the p-value next to a posterior probability so the contrast is concrete rather than philosophical. None of this requires abandoning the p-value. It requires knowing precisely what question it answers, so it never gets asked to answer a different one.

The three sections ahead build in that order: first the formal definition and the logic of the significance threshold, then a catalog of the misreadings that keep recurring across fields, and finally a side-by-side comparison with the Bayesian posterior probability, which answers a genuinely different question using the same data.

The Definition Behind the Number

A p-value is the probability, calculated under a specified null hypothesis, of observing data at least as extreme as what was actually observed. The null hypothesis is a fixed statement, typically that there is no effect, no difference between groups, or no relationship between variables. The p-value never speaks about the hypothesis itself. It speaks about the data, conditional on that hypothesis being true.

p = P(data at least this extreme | null hypothesis true)

Walk through a concrete case. A researcher runs a clinical trial comparing a new drug to a placebo and observes a difference in recovery rates. The null hypothesis states the true difference is zero. The p-value answers one narrow question: if the drug genuinely does nothing, how often would a difference this large or larger appear just from random sampling? A p-value of 0.03 means that, under a world where the drug has no effect, a difference this extreme would appear about 3% of the time by chance alone. It says nothing directly about how likely the drug is to actually work.

The significance threshold, conventionally set at 0.05, is a decision rule bolted onto this probability. Researchers agree in advance that if the p-value falls below the threshold, they will call the result statistically significant and reject the null hypothesis. This threshold is a convention, not a law of nature. Ronald Fisher proposed 0.05 as a rough, practical cutoff for experiments, not as a universal boundary between truth and noise[2]. Its persistence owes more to habit than to any proof that 0.05 is the correct line.

The threshold connects directly to type I error, the error of rejecting a true null hypothesis, that is, declaring an effect real when it is not. Setting the threshold at 0.05 means that, if the null hypothesis is actually true and the experiment is run many times, about 5% of those experiments will produce a p-value below 0.05 purely by chance. This is a long-run frequency guarantee about the testing procedure, not a statement about any single result. One experiment either found a real effect or it did not. The 5% describes the behavior of the method across repetition, not the odds attached to the result in hand.

That distinction matters because it clarifies what a small p-value actually buys. It buys control over how often the testing procedure will cry wolf when nothing is happening, averaged across many uses. It does not certify that a given alarm is a real fire. Confusing procedure-level error rates with case-level certainty is the root error from which most of the misreadings in the next section grow.

A table makes the chain of reasoning easier to hold in view.

Table 5. Building Blocks of a p-Value
TermRole
Null hypothesisThe fixed claim being tested, usually no effect or no difference
Test statisticA number summarizing how far the observed data lies from what the null predicts
p-valueProbability of a test statistic this extreme or more, assuming the null is true
Significance thresholdA preset cutoff (often 0.05) for calling a result statistically significant
Type I errorRejecting a true null hypothesis, controlled in the long run by the threshold

Notice what is missing from that chain: at no point does a prior probability for the null hypothesis enter the calculation. Classical hypothesis testing as formalized in the frequentist tradition was built deliberately without that ingredient, treating the null and alternative hypotheses as fixed states of the world rather than objects that carry degrees of belief[3]. That omission is not a flaw in the math. It is a design choice, and the Bayesian framework later in this book exists partly to supply the missing ingredient when that is the question actually being asked.

It also follows that a p-value says nothing about effect size on its own. A trial with ten thousand participants can produce a tiny, practically meaningless difference with a p-value of 0.001, simply because large samples make even trivial effects statistically detectable. A trial with thirty participants might miss a genuinely important effect and report a p-value of 0.2. Statistical significance and practical importance are separate axes, and the p-value speaks only to the first.

One more precision matters: as extreme or more extreme depends on which tail or tails of the distribution count as extreme, which depends on how the hypothesis is framed before the data are collected. A one-tailed test asks about extremity in a single predicted direction. A two-tailed test asks about extremity in either direction. Switching between them after seeing the data, a practice sometimes called p-hacking when done to chase significance, changes the definition of extreme after the fact and invalidates the long-run guarantee the threshold was supposed to provide.

The ASA statement's first principle summarizes this cleanly: p-values can indicate how incompatible the data are with a specified statistical model, nothing more direct than that[1]. Holding onto that single sentence, data versus model, rather than hypothesis versus truth, is the discipline that prevents almost every error catalogued next.

Definition: The one-sentence definition to memorize

A p-value is the probability of seeing data this extreme or more, assuming the null hypothesis is true. It is a statement about data given a hypothesis, never a statement about the hypothesis given data.

Frequent Misreadings and Why They Persist

The most common misreading inverts the conditional entirely. A p-value of 0.03 gets reported as there is a 3% probability the null hypothesis is true or, worse, there is a 97% probability the effect is real. Neither statement is what the calculation produced. The p-value conditions on the null hypothesis and asks about the data. The claims above condition on the data and ask about the hypothesis, which is a different quantity entirely, one that classical statistics never computed in the first place. This single flip, swapping P(data | hypothesis) for P(hypothesis | data), is sometimes called the transposed conditional, and it is probably the single most repeated statistical error in published science.

A worked illustration shows how large the gap can be. Suppose a screening test for a rare condition affecting 1 in 1,000 people produces a p-value of 0.04 against the null hypothesis that a patient does not have the condition. It is tempting to read that as a 4% chance the patient is healthy. But folding in how rare the condition is in the first place, using the same base-rate logic developed with Bayes' theorem, can leave the actual probability of disease far below what the p-value seems to suggest, sometimes by an order of magnitude. The p-value never had access to the base rate. It was never built to produce that number, so it cannot be blamed for failing to give it, but readers who skip this point reliably believe it did.

A second error treats the threshold as a bright line between knowledge and ignorance, often phrased as the effect is real because p is less than 0.05 or there is no effect because p is greater than 0.05. A p-value of 0.049 and a p-value of 0.051 reflect almost identical evidence, yet the binary framing treats them as opposite conclusions. The ASA statement's third principle directly targets this habit, warning that scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold[1]. Treating 0.05 as a cliff edge, rather than a point on a continuous scale of evidence, produces false confidence on both sides of the line.

A third error, closely related, is mistaking not statistically significant for no effect exists. A study with a small sample and a p-value of 0.3 has simply failed to rule out chance as an explanation. It has not demonstrated that the null hypothesis is true. An underpowered study can fail to detect a real and meaningful effect, and reporting that failure as proof of absence confuses lack of evidence with evidence of lack. This error shows up constantly in public reporting of inconclusive trials, where no significant difference was found quietly becomes the treatment does not work somewhere between the abstract and the headline.

A fourth error treats the p-value as a direct measure of effect size or importance, assuming that a smaller p-value automatically means a bigger or more meaningful effect. It does not. The p-value is a joint function of the effect size and the sample size, so a huge sample can manufacture a tiny p-value out of a difference too small to matter in practice, while a modest sample can leave a genuinely large effect statistically ambiguous. Reporting effect sizes and confidence intervals alongside the p-value, rather than the p-value alone, is the standard remedy, and increasingly a requirement in major journals.

A fifth and more subtle error is the multiple comparisons problem, sometimes summarized as the garden of forking paths. Running twenty independent tests at a 0.05 threshold against a true null hypothesis will, on average, produce one false positive just by chance, since each test carries its own 5% risk and the risks compound across tests. A researcher who runs twenty comparisons, finds one with p below 0.05, and reports only that one result has effectively hidden the other nineteen attempts from the reader. The type I error rate advertised by the single test no longer describes the actual risk of the overall exercise, because the exercise silently involved many tests, not one.

A sixth error, closely tied to the fifth, is optional stopping: checking results partway through data collection and halting as soon as significance appears. Each peek at accumulating data is itself a small test, and repeated peeking inflates the true false-positive rate well above the nominal 0.05, even though each individual test looks correctly calibrated in isolation. This exact problem motivates the discussion of continuous monitoring and sequential decision rules that Bayesian A/B testing addresses directly, since a Bayesian framework handles accumulating evidence without needing a fixed stopping rule decided in advance.

Quiz: Check the misreading
  1. A study reports p = 0.08 comparing a new teaching method to the old one. What is the correct conclusion?

    • The new method definitely does not work
    • The data do not rule out chance as an explanation for the observed difference, at the chosen threshold
    • There is an 8% chance the new method works
    • The study proves the two methods are equally effective

    A p-value above the threshold means the data failed to meet the agreed bar for rejecting the null hypothesis. It does not prove the null hypothesis true, and it says nothing about the probability that the method works.

  2. Why does running twenty hypothesis tests and reporting only the one with p below 0.05 distort the result?

    • Because p-values are always wrong with large samples
    • Because the 5% error rate applies to each test, so roughly one false positive is expected by chance across twenty tests
    • Because p-values cannot be computed for more than one test at a time
    • Because the null hypothesis changes with each test

    Multiple comparisons inflate the overall chance of a false positive, so a single significant result pulled from many attempts carries much weaker evidence than it appears to.

A seventh error treats replication as automatic once a result clears the significance threshold. Because the threshold guarantees only a long-run error rate, not certainty for any one study, a meaningful fraction of published significant results are expected to be false positives by the very logic of the method, particularly in fields running many small studies on noisy phenomena. The large-scale replication crisis documented across psychology and other fields in recent decades, where a substantial share of published significant findings failed to reproduce under direct replication attempts, traces in part to exactly this gap between what a single p-value promises and what the scientific literature as a whole assumed it promised[4].

An eighth, quieter error is assuming a p-value from one study can be directly compared across different studies, samples, or designs as though it were a standardized effect measure. A p-value of 0.01 in a study of 50 people and a p-value of 0.01 in a study of 5,000 people reflect very different underlying evidence about effect size, because the same p-value can arise from a large effect in a small sample or a tiny effect in a huge one. Comparing p-values across studies without accounting for sample size and design is comparing numbers that are not actually on the same scale.

Taken together, these eight errors share a single root: the p-value is narrow by design, answering one conditional probability about data under a fixed null hypothesis, while researchers and readers routinely ask it to answer broader questions about truth, importance, and certainty that it was never built to carry. The ASA statement's warning holds up well as a working rule: use the p-value for what it measures, compatibility between data and a specified model, and reach for other tools, effect sizes, intervals, replication, and when appropriate a full posterior distribution, for everything else.

Contrasting a p-Value With a Posterior Probability

The cleanest way to see what a p-value cannot do is to place it next to a quantity that can do it: the posterior distribution produced by Bayesian updating. A posterior probability answers exactly the question that gets mistakenly attached to p-values every day, namely the probability that a hypothesis is true, or the probability that a parameter lies in some range, given the data actually observed. Building that quantity requires three ingredients the p-value never uses: a prior distribution expressing belief before the data, a likelihood function describing how probable the data are under different parameter values, and Bayes' theorem combining the two into the posterior.

Return to the screening test example from the previous section. The p-value of 0.04 described how surprising the result would be if the patient were healthy. A Bayesian version of the same question starts from a base rate, the 1-in-1,000 prevalence of the condition in the population, treats that as the prior, folds in the test's known sensitivity and specificity as the likelihood, and produces a posterior probability that the patient actually has the condition given this specific positive result. That posterior can come out far lower than the p-value's complement would suggest, precisely because the base rate was never part of the p-value calculation in the first place.

The same contrast applies to a clinical trial. A p-value of 0.03 for a new drug states how often a difference this large would appear if the drug truly had zero effect. A posterior probability, by contrast, might state directly: given the trial data and a reasonable prior belief about plausible effect sizes for drugs of this class, there is a high probability the drug produces a clinically meaningful benefit. That second statement answers the question a physician or regulator actually wants answered. The first statement answers a narrower question about the behavior of chance under one fixed assumption.

The table below places the two quantities side by side on the exact dimensions that cause the confusion.

Table 6. p-Value Versus Posterior Probability
Dimensionp-valuePosterior probability
What it conditions onThe null hypothesis is assumed trueThe observed data, combined with the prior
What it answersHow extreme is this data under the null?How probable is the hypothesis, given everything known?
Uses a prior?NoYes, explicitly stated and open to sensitivity analysis
InterpretationLong-run frequency across repeated testingDirect degree of belief about this specific case
Threshold needed?Yes, a significance threshold to decide significanceNo fixed threshold required, though decision rules can use it

This comparison should not be read as the posterior simply being the correct version of the p-value. The two numbers answer different questions by design, a point developed fully when Bayesian and frequentist answers are placed side by side on identical data elsewhere in this book. The p-value's long-run guarantee about type I error rates remains genuinely useful for controlling false discoveries across many repeated tests, which is exactly the setting where regulatory bodies and journals often need it. The posterior's direct statement about this case is more useful whenever the actual question on the table is given everything I know, how likely is this?, which is the question most working scientists silently assume the p-value is answering.

Recognizing which question is actually being asked changes which tool belongs on the table. A quality-control process screening thousands of manufactured parts per day benefits from the p-value's long-run error control, since the relevant concern is the aggregate false-alarm rate across a huge number of repeated tests, not the certainty attached to any one part. A single high-stakes medical decision about one patient, or a one-time business decision about whether to launch a product, usually calls for the posterior's direct statement of probability for that specific case, because there will be no long run of repetitions to average over.

The prior in a Bayesian analysis is not a loophole for injecting bias, provided it is stated openly and tested. Sensitivity analysis, covered in depth later in this book, checks whether a conclusion survives a reasonable range of prior assumptions rather than depending on one convenient choice. A posterior probability that shifts wildly under mild changes to the prior is flagged as fragile. A posterior that holds steady across weakly informative priors earns more trust than a p-value ever claimed to provide, precisely because the dependence on assumptions is visible and checkable rather than hidden inside a single number.

The practical habit worth carrying forward is simple to state even if it takes effort to apply consistently: before reporting or reading any p-value, name the exact question it is answering out loud, in the conditional form P(data at least this extreme | null hypothesis). If the question that actually needs answering is P(hypothesis | data), a posterior probability is the tool built for that job, and reaching for a p-value to supply it will keep reproducing the exact error the American Statistical Association spent its 2016 statement trying to correct.

Back to contents

Chapter 6: Comparing Bayesian and Frequentist Answers

A comparison makes the deepest fault line between the two schools visible almost immediately. Run the same study, compute a 95% confidence interval and a 95% credible interval, and the two ranges of numbers can come out identical to the decimal point. Yet one statement describes a procedure's long-run behavior across imagined repetitions, and the other describes a probability distribution over the parameter itself, right now, given the data in hand. Treating these as interchangeable, which many analysts do, erases a distinction that matters the moment someone asks so how likely is it that the true effect is positive? A frequentist confidence interval cannot answer that question honestly. A Bayesian credible interval can.

This chapter puts the two frameworks side by side on identical data so the contrast stops being abstract. The goal is not to declare a winner. Both schools are internally consistent, both have survived a century of use, and both are taught in this book because competent analysts need to speak each language fluently. The goal is to make it impossible to confuse frequentist probability statements with degree of belief statements, because that confusion is exactly what produces the misreadings of the p-value cataloged in the previous chapter.

Consider a simple running example that will carry through the chapter. A team tests a new onboarding flow against the old one, with 400 users seeing each version. 52 of the new-flow users convert, versus 40 of the old-flow users. A frequentist two-proportion test and a Bayesian Beta-Binomial model can both be run on this exact dataset. They will produce numbers that look similar in shape: an estimated difference, an interval around it, some measure of how confident to be. What differs is what those numbers are licensed to mean, and that license is the entire subject of this chapter.

Three sections build the comparison. The first lays out, carefully, how the two frameworks define the question they are answering before any calculation starts, since the arithmetic is almost beside the point if the question itself is mismatched to what you want to know. The second does a direct, numeric comparison of a confidence interval against a credible interval on the onboarding data, showing exactly where the interpretations split. The third looks at when and why the two approaches tend to agree numerically despite disagreeing philosophically, so you know when the choice of framework is mostly cosmetic and when it is substantive.

None of this requires re-deriving Bayes' theorem or the mechanics of a prior distribution combining with a likelihood function, since those are covered in full in the chapter on priors, likelihoods, and posteriors. This chapter assumes that machinery and uses it for a single purpose: making sure the sentence you write in a report matches the method you actually used.

Same Data, Different Questions

Start with the question each framework is built to answer, stated as plainly as possible. Frequentist inference treats the parameter, say the true conversion rate of the new onboarding flow, as a fixed but unknown constant. Probability statements in this framework describe the behavior of a procedure across hypothetical repeated samples, not a degree of confidence about the fixed constant itself. A frequentist confidence interval says: if you repeated this exact experiment many times and built an interval the same way each time, 95% of those intervals would contain the true value. It says nothing about whether this particular interval, the one sitting in front of you, contains it.

Bayesian inference treats the parameter itself as uncertain and assigns it a probability distribution, which is simply a formal way of representing a degree of belief that can be updated by data. Once you have a posterior distribution for the conversion rate, built from a prior distribution combined with the observed conversions through the likelihood function, you can make direct probability statements about the parameter: there is a 90% probability the true rate exceeds 11%. That sentence is simply illegal in frequentist language, not because frequentists are being difficult, but because their framework never treats the parameter as a random quantity with a distribution in the first place.

This difference traces back to a real split in the history of statistics. Ronald Fisher's development of significance testing and Jerzy Neyman and Egon Pearson's development of confidence intervals and hypothesis testing both built on a frequency-based definition of probability[1]. Thomas Bayes and later Pierre-Simon Laplace worked from a different starting point, one revived in the twentieth century by figures like Harold Jeffreys and Bruno de Finetti, who formalized probability as coherent degree of belief[2]. These are not two techniques for the same job. They are two different definitions of what the word probability is allowed to describe.

The practical consequence shows up the moment a non-technical stakeholder asks a natural question. Suppose a product manager asks, what's the chance the new flow is actually better? A frequentist p-value cannot answer this, because a p-value is the probability of data this extreme or more extreme, assuming the null hypothesis is exactly true, as covered in the chapter on p-values. It is a statement about data given a hypothesis, never a statement about the hypothesis given data. A Bayesian posterior can answer the manager's question directly, because the posterior is itself a distribution over the parameter, and you can simply compute the proportion of that distribution lying above zero.

The table below lays out four questions analysts commonly want answered and which framework is actually built to answer them, which is a useful quick reference when deciding how to phrase a conclusion.

Table 7. Which framework answers which question
Question askedFrequentist answer availableBayesian answer available
How likely is it that the data would look this way if there were no real effect?Yes, this is exactly what a p-value measuresIndirectly, via the likelihood, but not the headline output
How likely is it that the true effect is positive?No, the parameter is not treated as randomYes, directly from the posterior distribution
What range plausibly contains the true parameter, as a probability statement about the parameter?No, only about the procedure's long-run coverageYes, this is exactly what a credible interval states
What should we do, given costs of being wrong?Indirectly, via decision rules built on top of the testYes, directly via expected loss on the posterior

One concrete worked contrast makes the gap stick. On the onboarding data, a frequentist test of the null hypothesis that the two rates are equal might return a p-value around 0.18. The correct sentence is: if the two flows truly converted at the same rate, data this far apart or farther would appear about 18% of the time by chance alone. It is tempting, and wrong, to say there's an 18% chance the flows perform the same. That second sentence requires treating the null hypothesis itself as a random event with a probability attached to it, which is precisely the move frequentist probability does not permit.

Running the Bayesian version of the same comparison, using weakly informative Beta priors on each conversion rate and updating with the observed conversions, yields a posterior distribution over the difference in rates. From that posterior you might find that about 91% of the distribution's mass lies above zero, meaning the new flow is better. That 91% figure is a direct probability statement about the difference being positive, something the p-value structurally cannot provide. Notice how the two numbers relate: with weak priors, the 91% is close to one minus half of the two-sided p-value of 0.18, which is not a coincidence but also not a guarantee, as the next section explores.

A common failure mode is translating a frequentist result into Bayesian-sounding language without doing Bayesian arithmetic, essentially borrowing the credibility of one framework's vocabulary for the other framework's conclusions. Watch for this specific pattern in your own writing and in colleagues' reports.

Warning: A sentence that silently switches frameworks

Writing "p = 0.04, so there's a 96% chance the effect is real" smuggles a posterior probability out of a p-value. The p-value never assigned any probability to the hypothesis being true. If you want that 96%-style claim, you need an actual posterior distribution, built from a stated prior and likelihood, not a relabeled p-value.

Decide which question you are actually being asked before choosing a method, rather than running whichever test is habitual and hoping the output answers the question anyway. If a stakeholder wants a probability attached to a claim, such as how likely is this drug better than placebo, only a Bayesian posterior delivers that directly. If the goal is strict error-rate control across many repeated decisions, such as a regulatory process that must cap the rate of false approvals over years of trials, the frequentist framework's long-run guarantees are exactly the right tool. Matching the method to the question, rather than the reverse, is the single most useful habit this section can leave you with.

The two frameworks can diverge sharply even when both are applied correctly, not just when one is misused. A small sample with a surprising result might produce a p-value just under the significance threshold while a Bayesian analysis with a sensible prior finds the posterior probability of a real effect still well below what most people would call convincing. Neither answer is wrong. They are answering different things, and a sample size too small to update a reasonable prior very far is a genuinely different situation from a sample size large enough to overwhelm rejection of a null hypothesis by brute statistical power.

One more layer worth naming explicitly: a frequentist hypothesis test fixes the sample size in advance (at least in its classical form) and treats the data as the random element across hypothetical repetitions, while a Bayesian analysis conditions on the data you actually have and treats the parameter as the uncertain element. This is why a frequentist p-value's validity can be disturbed by peeking at the data partway through and stopping early, a problem covered in depth in the chapter on monitoring Bayesian A/B tests without inflating error rates, while Bayesian updating handles sequential data more naturally by design.

Keep a mental checklist for the moment you sit down with a new dataset and have to choose a reporting language, since this decision shapes every sentence that follows in the write-up.

Before choosing how to phrase a conclusion

  • Identify the exact question the stakeholder is asking, in their own words
  • Check whether that question is about the parameter's probability or about long-run procedure behavior
  • If a direct probability statement about the effect is needed, plan a Bayesian posterior, not a p-value
  • If strict error-rate guarantees across repeated future decisions are the goal, plan a frequentist test
  • Decide the reporting language before running the analysis, not after seeing which number looks better

Confidence Intervals Versus Credible Intervals

Return to the onboarding example and build both intervals explicitly. The observed new-flow conversion rate is 52 out of 400, or 13%. A standard frequentist confidence interval for a proportion, using the normal approximation, comes out to roughly 9.8% to 16.2% at the 95% level. The Bayesian version starts from a weakly informative Beta distribution prior, say Beta(1,1), representing almost no prior information, and updates it with the 52 successes and 348 failures to get a posterior Beta(53, 349). The resulting 95% highest density interval on that posterior comes out close, something like 10.0% to 16.5%. The two ranges nearly overlap.

Despite the numeric closeness, the statements licensed by each interval are not interchangeable, and this is the heart of the chapter's opening comparison. The confidence interval's correct interpretation is a statement about the procedure: if this experiment were repeated many times and this interval-construction method applied each time, 95% of the resulting intervals would contain the true conversion rate. Nothing in that sentence says anything about this specific interval, 9.8% to 16.2%, containing the true value with 95% probability. Once the data are observed and the interval is computed, the true rate either is or is not in that range. Frequentist theory has nothing further to say about which.

The credible interval's interpretation is direct and, for most people's intuition, far more natural: given the data and the stated prior, there is a 95% probability the true conversion rate lies between 10.0% and 16.5%. This is a genuine probability statement about the parameter, licensed because the Bayesian framework treats the parameter as having a distribution in the first place. This is precisely the sentence most people assume a confidence interval is telling them, and it is precisely the sentence a confidence interval cannot support, which is why this misreading is so widespread and so persistent among researchers trained only in frequentist methods[3].

The matrix below organizes this contrast along two axes that matter for choosing and explaining intervals: what the interval is a statement about, and whether that statement survives once you have a single observed dataset in hand rather than an imagined sequence of repetitions.

Table 8. What each interval is actually a claim about
Statement about this one datasetStatement about a hypothetical long run
Claim about the parameter's probabilityCredible interval
95% probability the parameter lies in this range, given this data and prior
No standard tool lives here
Not how either framework is built
Claim about the fixed procedureNo standard tool lives here
Not how either framework is built
Confidence interval
95% of intervals built this way would contain the true value, across repetitions

A useful worked illustration of how badly the misinterpretation can go wrong involves a narrow interval built from a tiny, unlucky sample. Imagine a lab testing a rare condition in only 5 patients, 1 of whom tests positive, giving an observed rate of 20%. A naive 95% confidence interval calculation here can produce nonsensical bounds, sometimes extending below 0% or behaving unstably, because the normal approximation underlying many confidence interval formulas breaks down at small sample sizes. A Bayesian credible interval built from an actual Beta posterior never produces an impossible bound, since it is a real probability distribution over the valid 0 to 1 range by construction. This is a genuine practical advantage of the Bayesian approach at small sample sizes, not just a philosophical one.

The role of the prior in the credible interval deserves a direct caution here, since it is the piece most often used to dismiss Bayesian results unfairly. A credible interval's correctness as a probability statement depends on the prior being a reasonable reflection of what was known before the data arrived. A badly chosen, overly strong prior can pull the credible interval toward values the data do not support, and an analyst reporting a credible interval has an obligation to show the prior was not doing unacknowledged work. This is exactly why the sensitivity analysis covered in a later chapter exists: to demonstrate the conclusion is not an artifact of an arbitrary prior choice.

Conversely, the confidence interval's correctness as a long-run coverage guarantee depends on assumptions baked into the chosen procedure, such as the normal approximation holding, the sample being drawn the way the method assumes, and the experiment not being stopped early based on looking at results partway through. These assumptions are frequently violated in practice, and a confidence interval computed under violated assumptions loses its long-run guarantee just as surely as a credible interval loses its validity under a bad prior. Neither method is assumption-free; they simply place their assumptions in different places.

One more distinction worth making explicit: a credible interval is not unique the way a confidence interval formula tends to be. A highest density interval picks the narrowest range containing 95% of posterior probability, but an equal-tailed interval, which simply cuts 2.5% off each end of the posterior, is also a valid 95% credible interval and may give a different range, especially for a skewed posterior. Frequentist confidence intervals have their own family of construction choices too, but the point stands: reporting the 95% interval without naming which construction was used leaves out information a careful reader needs.

The practical takeaway for an analyst moving between the two worlds is not to treat the interval width as the main number to report. Report the method name, the exact interpretation sentence, and the prior or assumptions that make that sentence true. A reader who only sees 13%, 95% CI [9.8%, 16.2%] without knowing which framework produced it, and without the correct interpretation attached, is being handed a number without the meaning that makes it useful.

When the Two Approaches Converge

Despite the philosophical gap, Bayesian and frequentist numbers frequently land close together, and understanding why clarifies when the choice of framework is mostly a matter of which sentence you want to say, rather than a matter of which number is more defensible. The key mathematical fact is that as the sample size grows, the influence of the prior on the posterior shrinks relative to the influence of the data, a pattern sometimes summarized by noting that the likelihood eventually dominates the prior in the posterior's shape. With enough data, a Bayesian credible interval and a frequentist confidence interval, computed from the same data under matching assumptions, tend to converge to nearly the same numerical range, even though their interpretations remain distinct.

This convergence is closely related to the idea of effective sample size introduced in the chapter on conjugate updating. A weakly informative prior behaves, in its influence on the posterior, like a small number of extra observations added to the real dataset. A Beta(1,1) prior contributes the equivalent of a small number of extra trials. Against a real sample of 400, that is a negligible nudge, which is exactly why the onboarding example's confidence interval and credible interval came out so close. Against a real sample of only 10, that same prior would pull the posterior noticeably away from the raw sample proportion, and the two intervals would diverge more visibly.

Imagine running the same Beta-Binomial update at increasing sample sizes, holding the observed proportion fixed near 13%, and tracking the width of a 95% credible interval against the width of a 95% confidence interval at each size.

This is the mathematical content behind the informal claim that with enough data, the prior stops mattering, a claim that is true only in this gradual, sample-size-dependent sense, not as an absolute rule, and only when the prior was not wildly inconsistent with the data to begin with.

A second condition for convergence concerns the choice of prior itself. A flat or weakly informative prior, one that does not strongly favor any particular value of the parameter before seeing data, tends to produce a posterior whose peak sits very close to the maximum likelihood estimate that frequentist methods also target. This is not an accident. Under broad conditions, a flat prior combined with Bayesian updating reproduces numbers close to classical maximum-likelihood-based estimates, which is part of why the two schools so often agree in routine applied work where strong prior information is not in play[4]. The convergence breaks down precisely when the analyst has a genuinely informative prior worth including, which is also the situation where Bayesian methods have the most to add beyond what a frequentist analysis alone could tell you.

A concrete case where the two methods diverge sharply, despite large data, helps mark the boundary of convergence. Suppose a rare-disease screening test is applied to a general population where the disease's true prevalence, the base rate, is known from long clinical experience to be about 1 in 10,000. A single positive test result, even from a test with high accuracy, should not move belief in the patient having the disease anywhere close to 99%, because the base rate is a strong, well-justified prior. A frequentist significance test applied narrowly to the single test result, ignoring the base rate entirely, has no natural mechanism for incorporating that prior information at all, since significance testing is not built to combine a base rate with a single observation's likelihood. Here the two frameworks do not converge no matter the sample size of the test's accuracy study, because the discrepancy is not about sample size, it is about one framework structurally incorporating the base rate and the other having no slot for it.

This base-rate example connects directly back to the diagnostic test case worked through in the chapter on Bayes' theorem, and it is worth restating the lesson in this chapter's specific vocabulary: convergence between frequentist and Bayesian answers should be expected when the prior is weak and the sample is large, and divergence should be expected, and is not a flaw of either method, when there is genuine prior information the frequentist framework has no mechanism to include. Treat convergence as a useful sanity check rather than as proof that the two frameworks are secretly the same thing.

A practical exercise consolidates this section well. Take any dataset already on hand, perhaps the results of a past internal experiment, and compute both a confidence interval and a credible interval using a weakly informative prior, then compute the two again after artificially truncating the dataset down to a tenth of its original size. Compare how much each interval shifted. The pattern predicted here, close agreement at full size and a visible gap at reduced size, should show up directly, and seeing it happen on real numbers builds the kind of intuition that no amount of reading substitutes for.

Carrying this forward, the practical discipline is to run both calculations when the audience includes both classically trained and Bayesian-literate colleagues, and to use any meaningful gap between the two as a diagnostic signal rather than an inconvenience: it tells you exactly how much the stated prior is doing, and whether that influence is something you can defend out loud. The next chapter puts this machinery to direct use in a decision-making context, turning a posterior into an actual probability of winning and an expected loss figure that a product team can act on without needing to parse any of this interpretive nuance themselves.

Back to contents

Chapter 7: Bayesian A/B Tests and Decision Making

Picture an analyst who checks a live A/B test every morning before coffee, running a fresh significance test on whatever data has accumulated overnight. The moment the p-value dips below 0.05, the test gets stopped and a winner gets declared. This habit feels disciplined, even scientific, but it quietly destroys the guarantee that a frequentist test promises. Each new peek is another chance for random noise to cross the threshold, so a test that is supposed to produce a false positive 5% of the time can end up producing one at a substantially higher rate if checked daily[1]. The fix is not more discipline about when to look. It is a different question altogether, one that a posterior distribution can actually answer honestly no matter how often you look at it.

A Bayesian A/B test asks a question decision-makers already have in mind: given the data collected so far, how likely is it that variant B beats variant A, and how much would it cost to be wrong? That framing does not depend on a fixed sample size decided in advance, and it does not treat every peek as a new roll of the dice against some error budget. The posterior distribution over the difference between two variants is updated as data arrive, using the same Beta-Binomial model introduced earlier for proportions, and at any moment it represents a complete, honest summary of current belief. Three ideas make this practical for a working analyst: probability of winning, expected loss, and a monitoring policy that does not require pretending you never looked at the data early.

None of this requires abandoning the instincts built from years of running t-tests. The likelihood function for conversions is still binomial, the prior is still a Beta distribution, and the mechanics of combining them follow exactly the conjugate updating rules from earlier chapters. What changes is the output and the decision rule built on top of it. Instead of a single p-value compared to a significance threshold, the output is a full distribution over the difference between two variants, and the decision rule can be written in terms that map directly onto business costs rather than abstract error rates.

The payoff shows up clearest in situations where stopping early actually matters: a checkout page redesign that is losing revenue every day it stays live, a feature flag that affects millions of users, or a marketing campaign with a hard budget. In each case the pressure to look early is real and legitimate, not a sign of bad discipline. Bayesian methods let that pressure be satisfied without invalidating the analysis, because the posterior at any stopping time means exactly what it says.

Estimating the Probability One Variant Wins

Start with the same setup used for a single proportion: each visitor to variant A either converts or does not, and the same is true for variant B. Treat each conversion rate as an unknown parameter, call them θA and θB, and place a prior Beta distribution on each. A common, defensible choice when no strong prior information exists is Beta(1, 1) for both variants, which is uniform over the interval [0, 1] and lets the data dominate quickly. After observing xA conversions out of nA visitors to A, and xB out of nB visitors to B, conjugate updating gives two independent posteriors.

θA | data ~ Beta(1 + xA, 1 + nA - xA)

θB | data ~ Beta(1 + xB, 1 + nB - xB)

Suppose after two weeks variant A has 1,000 visitors with 95 conversions, and variant B has 1,020 visitors with 118 conversions. The posterior for θA is Beta(96, 906) with a posterior mean of about 9.6%, and the posterior for θB is Beta(119, 903) with a posterior mean of about 11.7%. The question that matters is not whether either rate differs from some fixed null value, but how likely it is that θB exceeds θA given everything observed so far. That quantity, P(θB > θA | data), is called the probability of winning, and it is computed by drawing many paired samples from both posteriors (a technique called Monte Carlo simulation) and counting how often the B draw beats the A draw.

Running that simulation with tens of thousands of paired draws for the numbers above typically yields a probability of winning for B somewhere around 90% to 95%, depending on the exact random draws. That number answers the question a product manager actually asked: how likely is it that the new design is genuinely better? Compare this to a two-proportion z-test on the same data, which would report a p-value and either reject or fail to reject a null hypothesis of equal rates. The p-value answers a different, more roundabout question (how surprising this data would be if the rates were truly equal), while the probability of winning speaks directly to the comparison at hand.

It helps to see how the probability of winning evolves as data accumulates, rather than treating it as a single snapshot. Early in a test, with only a few hundred visitors per arm, the two posteriors overlap heavily and the probability of winning sits close to 50%, reflecting genuine uncertainty. As more visitors arrive, each posterior narrows, the overlap shrinks, and the probability of winning drifts toward 0% or 100% depending on which variant is actually better. The chart below shows an illustrative version of this pattern across four stages of an A/B test, tracking the probability that variant B wins.

Figure 2. Probability B wins, by test stage. Illustrative values; not observed data.
Visitors per armP(B beats A)
20058%
50071%
100088%
200094%

One practical trap is reading the probability of winning as if it were the only number that matters, ignoring the size of the effect. A posterior might give variant B a 97% chance of winning while the expected improvement is a fraction of a percentage point, far too small to justify the engineering cost of shipping it. The probability of winning tells you about direction, not magnitude. Always report alongside it a credible interval for the difference θB - θA, built from the same simulated draws, so stakeholders can see both how likely B is to be better and roughly by how much.

A second trap runs the other direction: treating a high probability of winning as equivalent to statistical significance and stopping the moment it crosses some arbitrary threshold like 95%, without thinking about what decision follows. The probability of winning is a continuous, always-valid summary of current belief, not a trigger for an automatic action. Whether 95% is enough to act depends on what happens if you are wrong, which is exactly the question the next subchapter addresses through expected loss.

Extending this Beta-Binomial setup to more than two variants (a common real-world case, such as testing three headline variations at once) works the same way in principle. Each variant gets its own Beta posterior from the same prior family, and the probability that any given variant is the single best among all of them is computed by drawing from all posteriors simultaneously and counting how often each variant's draw is the maximum. This avoids the multiple-comparisons correction problem that plagues frequentist tests with many arms, since the full joint posterior already accounts for comparing several variants at once rather than running separate pairwise tests.

Software for running this kind of analysis does not require writing a Monte Carlo simulation from scratch, although doing so once by hand builds useful intuition. A short script using any language with a Beta-distribution sampler can do it in a few lines.

import numpy as np

a_samples = np.random.beta(96, 906, size=100000)
b_samples = np.random.beta(119, 903, size=100000)

prob_b_wins = np.mean(b_samples > a_samples)
lift = b_samples - a_samples
print(prob_b_wins, np.percentile(lift, [2.5, 97.5]))

Running this snippet reports both the probability of winning and a 95% credible interval for the lift in one pass, giving a complete picture rather than a single yes-or-no verdict. Keep in mind that the exact posterior probability will shift slightly between runs because of the randomness in simulation, though with 100,000 draws the variation is small enough to ignore for decision purposes. If the simulation needs to be reproducible for a report, set a fixed random seed before drawing.

The choice of prior for each variant deserves the same scrutiny given to any conjugate updating problem. A flat Beta(1, 1) prior is often reasonable for a brand-new feature with no track record, but if historical conversion rates from similar past tests cluster around 8% to 12%, a more informative prior such as Beta(10, 90) centers the analysis near that range and avoids over-reacting to the first few hundred visitors. Whichever choice is made, state it in the report rather than letting it sit as an invisible default, a point developed further in the chapter on sensitivity analysis.

Expected Loss as a Decision Criterion

Probability of winning answers whether one variant is likely better, but it says nothing about the cost of guessing wrong, and that cost is rarely symmetric. Shipping a worse checkout flow to all traffic is expensive. Keeping a slightly better flow on hold for another week of testing is a smaller, different kind of expense. Expected loss turns the posterior into a direct decision criterion by asking: if this variant is chosen and it turns out to be the worse one, how large is the expected damage, averaged over everything still uncertain in the posterior?

Formally, the expected loss from choosing variant B is the average amount by which A would have beaten B, counted only in the scenarios where A actually is better, weighted by how likely those scenarios are under the posterior.

Loss(choose B) = E[max(θA - θB, 0)]

This expectation is computed from the exact same simulated draws used for the probability of winning, so no extra modeling work is required. Take the paired samples of θA and θB drawn earlier, compute max(θA - θB, 0) for every pair, and average the result. Symmetrically, Loss(choose A) = E[max(θB - θA, 0)] measures the expected damage from picking A if B is secretly the better variant. Whichever option has the smaller expected loss is the safer default decision, and the gap between the two losses tells you how much is riding on the choice.

Continuing the earlier example, with posteriors Beta(96, 906) for A and Beta(119, 903) for B, a Monte Carlo pass typically finds the expected loss from choosing B to be very small (on the order of a few hundredths of a percentage point of conversion rate), while the expected loss from choosing A is noticeably larger, often several times bigger. That asymmetry, not the probability of winning alone, is the strongest argument for shipping B. A team could insist on 99% certainty before acting, but if the expected loss of waiting (lost conversions during the extra testing period) outweighs the expected loss of being wrong, waiting is the worse decision even at seemingly weak confidence.

A practical decision rule many teams adopt sets a loss threshold in the real units that matter, such as percentage points of conversion rate or dollars of expected revenue, rather than an abstract probability cutoff. For example, a team might decide in advance: stop the test and ship the variant with the lower expected loss once that expected loss falls below 0.1 percentage points of conversion rate. This threshold is chosen based on how costly a wrong decision actually is for the business, not based on convention, and it can be revisited whenever the stakes of a particular test change.

Example: Setting a loss threshold in dollars

A checkout test runs 50,000 visitors per week per arm. A conversion is worth $40 on average. An expected loss of 0.1 percentage points translates to roughly 50,000 × 0.001 × $40 = $2,000 per week of expected missed revenue if the wrong variant is kept. Framing the threshold this way, rather than as an abstract probability, makes the stopping decision something a non-statistician on the team can evaluate and approve.

Expected loss also clarifies a question that probability of winning cannot answer well: what should happen when a test shows a 70% probability that B wins, a number too weak to feel decisive on its own? If the expected loss from choosing B anyway is tiny (because even in the losing scenarios, B loses by very little), shipping B might still be the right call. Conversely, a 95% probability of winning paired with a large expected loss (because the rare losing scenarios are catastrophic) might argue for more data before deciding. Decisions should be built on expected loss, with probability of winning as a complementary, more intuitive number to report alongside it.

Building this into a repeatable workflow helps avoid ad hoc judgment calls each time a test concludes. The steps below outline a standard procedure that works for most two-variant tests.

Running a Bayesian A/B decision

  1. Set priors - Choose a Beta prior for each variant's conversion rate, using a flat Beta(1, 1) by default or an informative prior backed by historical data.
  2. Update posteriors - Add observed conversions and non-conversions to each prior's parameters as data arrive, using the conjugate Beta-Binomial update.
  3. Simulate the difference - Draw a large number of paired samples from both posteriors and compute the probability of winning and a credible interval for the lift.
  4. Compute expected loss - Average the shortfall of each variant against the other across all simulated draws to get the expected loss for choosing each one.
  5. Compare to a pre-set threshold - Decide in advance what expected loss, in real units like revenue or percentage points, is small enough to act on.
  6. Decide and document - Ship the variant with lower expected loss once the threshold is crossed, and record the posterior, prior, and loss numbers in the report.

Notice that this procedure never requires fixing a sample size in advance or committing to a single check-in date, which is precisely what makes it compatible with continuous monitoring, the subject of the next subchapter. The expected loss at any moment is a valid, well-defined number regardless of how many times it has already been checked, because it is a direct summary of the current posterior and not a test statistic calibrated against a long-run error rate.

One caution: expected loss as defined here treats the cost of a unit shortfall in conversion rate as equal for both variants, which is a simplification. In practice, the cost of choosing wrongly might depend on engineering effort to roll back a change, reputational cost, or regulatory exposure, none of which show up in a simple conversion-rate difference. A more complete decision analysis multiplies the loss in conversion-rate terms by a dollar value per conversion and, where relevant, by additional cost terms for each type of error. The mechanics stay the same; only the units and the weighting change.

Monitoring Results Without Inflating Errors

Return to the analyst checking the test every morning. Under a frequentist significance test, that habit is dangerous because the significance threshold of 0.05 is calibrated assuming a single look at a pre-specified sample size. Checking repeatedly and stopping at the first crossing is a form of continuous monitoring that inflates the true false-positive rate well beyond the nominal 5%, a phenomenon well documented in the sequential testing literature[2]. Frequentist methods do have principled fixes for this, such as group sequential designs with pre-specified alpha spending, but they require planning the monitoring approach before the test starts, which teams often skip.

Bayesian updating sidesteps this problem structurally rather than through a correction formula. The posterior distribution at any point in time is a valid, complete summary of belief given the data observed so far, full stop. There is no long-run error rate being spent down with each look, because a posterior probability is not calibrated against repeated sampling in the frequentist sense. Checking the posterior every morning and checking it once after a fixed sample size both produce the same correct answer for the data actually in hand at that moment. This is sometimes summarized as the stopping rule having no effect on Bayesian inference, a property formalized in the statistical literature on likelihood principles[3].

This does not mean continuous monitoring comes with zero risk of any kind. It means the specific risk that plagues frequentist peeking (treating a fluctuation as a real effect simply because it happened to cross a line) is not present in the same form. A Bayesian probability of winning can still bounce around early in a test, climbing to 85% on day three and settling back to 60% by day five as more data arrives, simply because small samples are noisy. The difference is that this bouncing is honestly reflected in a wide credible interval and a probability estimate that has not yet stabilized, not hidden behind a binary significant/not-significant flag. One limit still applies, though: a stopping rule that halts the test the first time the posterior crosses a fixed threshold, checked many times, will still stop on a difference that is not real more often than the threshold alone suggests, so a pre-set sample size or a stricter threshold is what keeps that rate in check.

Should you act on an early Bayesian result?

  • Check expected loss for each variant
    • Yes Expected loss below your pre-set threshold
      • Credible interval for lift is also fairly narrow
        • Act now: ship the lower-loss variant
      • Credible interval for lift is still wide
        • Act with caution, flag the result as early
    • No Expected loss still above threshold
      • Keep collecting data before deciding

The practical takeaway is that a Bayesian analyst can look at the data as often as useful for business purposes, maybe every morning, maybe after every thousand visitors, without needing to apply any correction for the number of looks. What matters is building the discipline to pair every look with both the probability of winning and the expected loss, rather than reacting to probability alone. Looking often is fine; acting prematurely on a noisy early signal is the actual risk, and expected loss is the tool that guards against it by quantifying how much a premature action could cost.

There is a related subtlety worth being explicit about: nothing in Bayesian updating prevents an analyst from stopping a test the instant it happens to look favorable and never reporting the times it did not, a form of selective reporting sometimes called the garden of forking paths. This is a reporting-ethics problem, not a flaw in Bayesian mathematics, and it applies to frequentist testing too. The honest practice regardless of framework is to pre-register the intended decision rule (for example, the loss threshold from the previous subchapter) before watching the data, and to report the full history of posterior probabilities over time rather than just the final number at the moment of stopping.

Teams moving from frequentist to Bayesian A/B testing often ask how to communicate this shift to stakeholders who are used to hearing statistically significant at p < 0.05. A useful equivalent framing is to replace the significance threshold with an explicit statement of the decision rule in advance: we will ship whichever variant has lower expected loss once that loss drops below $2,000 per week in expected lost revenue, and we will report the probability of winning and credible interval at whatever point we stop. This keeps the rigor of a pre-committed standard while using a criterion tied to actual business cost rather than an arbitrary statistical convention.

Running a final sensitivity check on the prior matters more than it might seem. A test stopped early, with only a few hundred visitors per arm, can still be meaningfully influenced by the choice between a flat prior and a mildly informative one, even though both are defensible. Trying both and confirming the recommended action does not flip is a quick, concrete safeguard against over-interpreting a thin early signal, and it previews the more systematic sensitivity analysis covered later for Bayesian work generally.

The broader shift this chapter asks for is moving away from a single bright-line verdict (significant or not) toward a running, always-valid summary of belief that updates smoothly as data arrives. A team comfortable reading probability of winning and expected loss together can check a test hourly if the business needs it, stop the moment the numbers justify it, and defend that decision with language that matches exactly what the analysis measured, rather than borrowing the vocabulary of a method whose guarantees it has already broken.

Back to contents

Chapter 8: Bayesian Estimation and Uncertainty

The posterior distribution is not the answer. It is the raw material from which you carve the answer, and the choice of how to summarize it changes the story you tell. A full posterior over a parameter such as a conversion rate or an average response time is a curve, often an awkward one to hand to a colleague who wants a single number and a sense of how much to trust it. The work of estimation is deciding which cut of that curve to report, and how to be honest about what got left on the floor.

This matters because two analysts looking at the identical posterior can walk away with different headline numbers, not because either made an error, but because they chose different summaries for different purposes. One reports the posterior mean because a downstream calculation needs an expected value. Another reports the posterior median because the distribution has a long tail and the mean would be misleading. A third reports an interval because the question was never what is the single best guess but what range of values remains plausible. None of these choices is wrong on its own, but conflating them is.

The chapter also turns to a second problem that classical statistics handles awkwardly: estimating many related groups at once, such as conversion rates for fifty stores or test scores for thirty classrooms. Treating each group in total isolation wastes the information that groups resemble each other. Treating all groups as identical ignores real differences. Partial pooling sits between these extremes, and it is one of the places where Bayesian reasoning earns its keep in applied work rather than remaining a philosophical stance.

Finally, no estimate is worth reporting until the model that produced it has been checked against the data it was supposed to explain. A posterior can be computed correctly and still describe a world that looks nothing like the one that generated your numbers. The posterior predictive check is the tool for catching that mismatch before it reaches a report or a decision. Together, posterior summaries, partial pooling, and model checking form the practical toolkit for turning a fitted Bayesian model into something you can defend.

Means, Medians, and Intervals From Posteriors

The posterior mean is the expected value of the parameter under the posterior distribution, computed as ∫ θ · p(θ|data) dθ for a continuous parameter θ. It is the single number that minimizes expected squared error if you had to guess one value and be penalized for how far off you were. For a Beta-Binomial model with posterior Beta(α, β), the mean has a closed form: α/(α + β). This convenience is one more reason conjugate families, introduced earlier through the Beta-Binomial and Normal-Normal models, remain popular even when more flexible tools exist.

The posterior median is the value that splits the posterior probability exactly in half, so that the parameter is equally likely to fall above or below it. When a posterior is symmetric, as a Normal-Normal posterior usually is, the mean and median coincide and the choice barely matters. When a posterior is skewed, such as a Beta distribution with a small α and a much larger β, the two summaries pull apart and the median is often the more honest single number, because it is less distorted by a long tail of unlikely but extreme values. A financial example makes this concrete: estimating the probability that a rare defect occurs often produces a posterior skewed toward zero, where the mean sits noticeably higher than the median.

Point estimates alone discard the one feature that separates Bayesian output from a classical point guess: the shape of uncertainty. The highest density interval (often abbreviated HDI) answers the question a credible interval is meant to answer, but it does so with a specific construction rule. An HDI at the 95 percent level is the narrowest interval that contains 95 percent of the posterior probability, which means every point inside the interval has higher density than every point outside it. For a symmetric posterior this interval looks like the familiar interval centered on the mean. For a skewed posterior it can look lopsided, hugging one side of the distribution, and that asymmetry is itself information worth reporting.

Consider a landing page test where 40 out of 500 visitors convert, and a weakly informative prior of Beta(1, 1) is used, yielding a posterior Beta(41, 461). The posterior mean is 41/502 ≈ 0.0817, close to the raw rate of 8 percent, and a 95 percent HDI might run from roughly 0.060 to 0.106. Reporting the conversion rate is about 8.2 percent, and it is 95 percent probable that the true rate lies between 6.0 percent and 10.6 percent is a direct, correct statement in Bayesian language, a sentence a classical confidence interval cannot support no matter how it is worded.

A table helps keep these three summaries straight, since mixing their names in conversation is one of the most common small errors in applied Bayesian write-ups.

Table 9. Three Ways to Summarize a Posterior
SummaryWhat it reportsBest used when
Posterior meanExpected value of the parameterYou need a number for further calculation, like expected revenue
Posterior medianValue splitting probability in halfThe posterior is skewed and a robust center is wanted
Highest density intervalNarrowest range holding a chosen probability massYou need to communicate a plausible range, not a single guess

A frequent mistake is reporting an interval built the way a confidence interval is built, by taking equal tail areas (say, cutting 2.5 percent from each end of the posterior), and calling it an HDI. That equal-tailed interval is a legitimate credible interval, but it is not generally the highest density interval unless the posterior happens to be symmetric. For a strongly skewed posterior, the equal-tailed interval can include values with lower density than some values it excludes, which defeats the purpose of reporting a plausible range. Most Bayesian software defaults to one or the other, so check which is being returned before quoting it.

Point estimates also need a companion statement about how much data actually informed them, a concept closely tied to effective sample size. A posterior built from 500 observations and a weak prior behaves differently from one built from 20 observations and a strong prior, even if the two posterior means happen to match. Reporting a mean or an HDI without noting the amount of data behind it can mislead a reader into trusting a thin estimate as much as a thick one. A short note such as based on 500 visitors attached to the headline number costs little and prevents overconfidence.

A worked comparison across sample sizes shows how the interval narrows as data accumulates, holding the observed rate fixed at 8 percent.

Figure 3. Width of a 95% HDI as Sample Size Grows (illustrative, 8% observed rate). Illustrative values; not observed data.
VisitorsInterval width
5015.2
2007.6
5004.6
20002.3

The practical lesson from the chart above is that interval width shrinks roughly with the square root of sample size, the same arithmetic that governs classical standard errors, because a Beta posterior's variance scales in a comparable way. Bayesian estimation does not escape the law of diminishing returns on data. It does, however, let you fold in a prior distribution that reflects real knowledge, so small early samples do not swing to extreme conclusions the way an unregularized frequentist estimate can.

When reporting any of these summaries, state the credibility level alongside the interval, since 95 percent HDI and 50 percent HDI describe very different ranges from the same posterior. Narrower intervals at lower credibility levels are sometimes more useful for quick decisions, where a 50 percent HDI answers where does the bulk of the probability sit without the wider spread a 95 percent level demands. Choosing the credibility level is itself a communication decision, not a mathematical one, and it should match the stakes of the decision being made.

A checklist condenses the reporting habits worth building into routine practice whenever a posterior is the final product of an analysis.

Posterior Summary Checklist

  • State which summary is reported: mean, median, or an interval
  • Specify the interval type (HDI or equal-tailed) and the credibility level
  • Note the sample size or effective sample size behind the posterior
  • Mention the prior used, even briefly, so readers can judge its influence
  • Avoid quoting a point estimate without an accompanying interval

The deeper habit worth building is to treat the full posterior as the primary object and every summary as a lossy projection of it. A single mean cannot show bimodality; a single interval cannot show that most of the probability mass sits near one edge. Whenever the decision allows it, plotting the posterior density itself, even as a rough sketch, communicates more than any single number can, and it gives a skeptical colleague the chance to see for themselves why a particular summary was chosen.

Partial Pooling Across Groups

Imagine measuring click-through rates across fifteen stores for a chain, some with thousands of visitors and some with only a few dozen. Two obviously flawed strategies present themselves. Complete pooling lumps every store into one estimate, ignoring that a flagship downtown location and a sleepy suburban outlet likely behave differently. No pooling estimates each store separately from its own data alone, which leaves the small stores with wildly noisy estimates, since a store with 30 visitors and 2 conversions produces a rate estimate that swings enormously with one more sale either way.

Partial pooling threads between these extremes by letting each store's estimate borrow strength from the overall pattern across stores, while still allowing each store its own distinct value. The mechanism is a hierarchical model: each store's true rate is drawn from a shared population distribution, and that population distribution itself has parameters estimated from all the stores together. A store with little data gets pulled toward the overall average, since there is not enough local evidence to override it. A store with abundant data stays close to its own observed rate, since its evidence is strong enough to dominate the shared prior pulling on it.

This pulling effect has a name worth remembering: hierarchical shrinkage. The term describes exactly what happens geometrically, each group's raw estimate shrinks toward the grand mean, with the amount of shrinkage inversely related to how much data that group contributed. A store with 5,000 visitors shrinks almost imperceptibly. A store with 20 visitors might shrink halfway or more toward the overall average. This is not a statistical trick to flatter weak data; it reflects a real epistemic fact, that with little evidence, the best guess for an unknown group looks a lot like the typical group until proven otherwise.

A concrete illustration: suppose the overall click-through rate across all fifteen stores averages 4 percent, with meaningful variation store to store. Store A, with 3,000 visitors and 150 clicks, has an observed rate of exactly 5 percent. A hierarchical model might estimate Store A's true rate at 4.9 percent, barely shrunk, because its own data overwhelms the population prior. Store B, with only 40 visitors and 4 clicks, has an observed rate of 10 percent, a number almost nobody would trust at face value. The hierarchical estimate for Store B might land closer to 4.5 percent, reflecting that a tiny sample produced a surprising number mostly by chance, and the population pattern is a better guide until more data arrives.

The table below sketches a simplified version of this effect across stores of different sizes, to make the shrinkage pattern visible at a glance.

Table 10. Illustrative Partial Pooling Across Stores
StoreVisitorsObserved ratePooled estimate
Store A3,0005.0%4.9%
Store B4010.0%4.5%
Store C5002.0%2.6%
Store D1513.3%4.3%

Notice in the table above that Store D, with the most extreme observed rate and the smallest sample, receives the most dramatic shrinkage. This is the pattern to expect: extreme observed values from tiny samples are exactly the estimates that most need tempering, since they are the ones most likely driven by a handful of lucky or unlucky outcomes rather than a genuinely unusual underlying rate. A frequentist analysis run store by store has no built-in mechanism for this correction, which is part of why hierarchical Bayesian models have become standard in fields like education research and multi-site clinical trials, where group sizes vary enormously.

The statistical idea behind partial pooling traces back to work on shrinkage estimation that predates modern Bayesian computing, most notably the demonstration that shrinking individual estimates toward a common target can reduce total estimation error even when each individual shrinkage target seems unrelated to the others[1]. The hierarchical Bayesian framing gives that shrinkage a natural probabilistic story: groups are not independent accidents but draws from a shared population, and the model should reflect that structure rather than pretend each group exists in isolation.

A caution belongs alongside this enthusiasm. Partial pooling assumes the groups genuinely belong to a shared population worth borrowing strength from. Pooling across fifteen stores in the same retail chain is reasonable; pooling a struggling corner shop with a Fortune 500 flagship store under one hierarchical umbrella would misrepresent the underlying structure, since the two may not share anything like the same population distribution. Judgment about which groups belong together is a modeling decision, not something the mathematics decides for you, and it deserves the same scrutiny given to choosing a prior distribution or a likelihood function.

Partial pooling also interacts with the posterior summaries from the first section in a direct way. Each group in a hierarchical model has its own posterior distribution, its own posterior mean, and its own highest density interval, all shaped by both its own data and the shared population estimate. Reporting results for Store D, from the table above, should show not just the shrunk point estimate but an interval, and that interval will typically be narrower than what a no-pooling analysis of Store D alone would produce, because the hierarchical model has effectively supplemented Store D's 15 visitors with information borrowed from the other fourteen stores.

One more subtlety deserves attention: the degree of shrinkage is itself estimated from the data, not fixed in advance. If the fifteen stores actually show very little variation among their true rates, the model will infer a tight population distribution and shrink every store heavily toward the average. If the stores genuinely differ a great deal, the model infers a wide population distribution and shrinks much less. This adaptivity is one of the quiet strengths of the hierarchical approach: the amount of pooling is not a knob an analyst tunes by hand, it emerges from how similar or different the groups turn out to be.

Applied this way, partial pooling turns a scattered collection of noisy, individually unreliable estimates into a coherent set of estimates that respects both local evidence and shared structure. The payoff is largest exactly where it matters most, in the small, thin-data groups that a no-pooling analysis would otherwise leave dangerously exposed to chance. That protection, more than any elegance in the mathematics, is why hierarchical models have become a default choice whenever data arrives grouped.

Checking Whether the Model Fits the Data

Fitting a posterior is not the end of the work, because a posterior can be computed flawlessly from a model that simply does not describe the world the data came from. A Beta-Binomial model assumes every visitor has the same underlying chance of converting, independent of every other visitor. If conversions actually cluster, say because a single marketing email drives a burst of conversions in one afternoon, that independence assumption is false, and the resulting posterior will understate the true uncertainty even though every calculation inside it was correct.

The tool for catching this mismatch is the posterior predictive check. The idea is direct: use the fitted posterior to simulate new datasets, as if the model's story about the world were true, and then compare those simulated datasets to the real data that was actually observed. If the real data looks like a typical draw from the simulations, the model has passed a meaningful test. If the real data looks like an outlier compared to the simulations, something about the model's assumptions is wrong, even if the posterior itself was computed without any numerical error.

A worked example clarifies the mechanics. Suppose a Beta-Binomial model was fit to 20 days of website visits, with a posterior over the daily conversion rate. To check it, draw a conversion rate from the posterior, then simulate 20 days of conversions using that rate and the actual visitor counts for each day, repeating this process thousands of times to build up a distribution of simulated outcomes. One natural check is the number of days with zero conversions. If real data shows 6 zero-conversion days out of 20, but the simulations typically produce only 1 or 2 such days, the model is failing to capture something, likely overdispersion or clustering that the simple Binomial likelihood cannot represent.

This connects directly back to the hierarchical thinking from the previous section: treating each day, or each week, as its own group with partial pooling across days is often exactly the fix that a posterior predictive check reveals is needed.

Posterior predictive checks are not limited to counting rare events like zero-conversion days. Useful checks for a continuous measurement, such as a mean response time, might compare the simulated range of values to the observed range, or compare the simulated skewness to the observed skewness. The guiding principle stays the same throughout: pick a summary statistic that reflects something the model should be getting right, simulate that statistic many times under the fitted posterior, and see where the real data's version of that statistic falls within the simulated distribution.

The statistical foundation for this approach was formalized through work on posterior predictive p-values, which quantify how extreme the observed data's statistic is relative to the simulated distribution, giving the check a numeric handle rather than leaving it purely visual[2]. It is worth being careful not to confuse this quantity with the p-value from classical hypothesis testing covered earlier; a posterior predictive p-value measures model fit against simulated data generated from the posterior, not the probability of data under a fixed null hypothesis, and the two should never be reported as if they answer the same question.

Model checking also guards against a quieter failure: a posterior that looks reasonable on paper but was built on a likelihood that silently assumes something false, such as independence between observations that are actually correlated, or a Normal distribution for data that actually has heavy tails and frequent outliers. A posterior predictive check built around the maximum value in the dataset is a quick way to catch this second failure, since a Normal likelihood will systematically underestimate how extreme the largest observed value can be when the true data-generating process has fatter tails.

The broader discipline here is to treat every fitted model as a claim about how the world generates data, a claim that deserves testing rather than blind acceptance once the posterior comes out of the computation. Posterior summaries, partial pooling, and posterior predictive checks form a loop rather than a sequence: a check might reveal that pooling needs adjusting, which changes the posterior, which changes the summaries reported, which might prompt another check. A Bayesian analysis that skips this loop and reports a single headline number straight from a first-pass model risks exactly the overconfidence that careful Bayesian reasoning was supposed to prevent in the first place.

Back to contents

Chapter 9: Sensitivity Analysis and Prior Robustness

In surveys of published Bayesian analyses, a minority of studies report any sensitivity check on their prior, yet a single robustness sweep is often all it takes to show the conclusion is prior-proof. That gap matters because every posterior distribution is a joint product of two inputs, the prior distribution and the likelihood function, and a reader has no way to judge how much of the final answer came from the data versus from an assumption chosen before any data arrived. Skeptical colleagues trained in classical statistics are right to ask this question, because it is the most natural line of attack against a Bayesian result. The good news is that answering it well is not complicated or expensive. It requires rerunning the same model with a handful of different priors and reporting whether the posterior mean, the credible interval, or a decision threshold moves in any way that matters.

Think of sensitivity analysis as the Bayesian equivalent of a robustness check in a regression, where an analyst drops a variable, changes a control group, or trims outliers to see if the main effect survives. The habit is the same: vary something you are not fully sure about, and watch what happens to the conclusion. In the Bayesian case the thing under suspicion is the prior distribution, since it is the one ingredient chosen by judgment rather than measured in the data. Running that check is not a sign of weakness in the original analysis. It is a sign that the analyst understands exactly where uncertainty in the modeling choices could leak into uncertainty in the final claim, and has gone looking for it rather than hoping nobody asks.

This chapter builds two closely linked skills. The first is a concrete procedure for sweeping across a range of priors and reading the results, covered in the subchapter on testing results across a range of priors. The second is a default strategy for picking a sensible starting prior in the first place, so that the sweep rarely produces surprises, covered in the subchapter on weakly informative priors as a safe default. Together they turn the prior from a liability into an asset, a place where assumptions are visible, testable, and defensible rather than buried in a footnote or left unstated entirely.

Neither skill asks for exotic mathematics on top of what has already been built with the Beta-Binomial model and the Normal-Normal model. Every sweep reuses those conjugate families, changing only the parameters that describe the prior's location and strength before rerunning the same update rule from Bayes' theorem. The payoff is proportional to how simple the method is. A short paragraph in a report that says the conclusion held across five reasonable priors, backed by one small table, does more to earn trust than a page of justification for why one particular prior was chosen.

The two subchapters that follow walk through the full procedure with a worked example, show how to visualize a sweep so it reads clearly to a non-Bayesian audience, and lay out the reasoning behind weakly informative priors as the default choice when there is no strong external information to encode.

Testing Results Across a Range of Priors

A sensitivity analysis starts with a simple question: if a reasonable colleague disagreed with the prior chosen and picked a different one, would the two of you still reach the same practical conclusion? To answer it, pick a small set of alternative priors that span the range of what a thoughtful skeptic might propose, rerun the posterior update for each one, and lay the resulting posterior summaries side by side. The goal is not to find the single correct prior, because in most applied problems no such thing exists. The goal is to find out whether the headline claim, such as the new design converts better than the old one, survives the switch from a lenient prior to a skeptical one.

Consider a Beta-Binomial model for a conversion rate, where 42 conversions were observed out of 300 visitors. An analyst who starts with a flat Beta(1, 1) prior, treating every rate between 0 and 1 as equally plausible, computes a posterior of Beta(43, 259) with a posterior mean of about 0.142. A more skeptical colleague might argue that conversion rates for this type of product usually fall below 20 percent, and encode that belief as a Beta(4, 20) prior centered near 0.167. Updating that prior with the same data gives a posterior of Beta(46, 278), with a posterior mean of about 0.142 as well. The near match shows the 300 observations are already informative enough to dominate a moderately informative prior, which is exactly the reassurance a sensitivity check is meant to produce.

Now suppose a stakeholder insists the true baseline rate is close to 30 percent based on an old campaign, and encodes that as a stronger Beta(30, 70) prior. Updating with the same 42 out of 300 conversions yields a posterior of Beta(72, 328), with a posterior mean near 0.180. That is a meaningfully different number from 0.142, and it illustrates the other half of what a sweep can reveal: a prior strong enough, or badly enough mismatched to the data, to actually shift the conclusion. The honest response is not to discard that prior because it is inconvenient. It is to report that the result is sensitive to this particular assumption and to explain why the 30 percent figure may or may not still apply to the current product.

A practical sweep typically varies two things independently: the center of the prior, representing a belief about what the typical value should be, and its strength, representing how firmly that belief is held. In the Beta-Binomial model, strength is captured directly in the size of the two shape parameters, since a Beta(4, 20) prior behaves like having already observed 24 prior data points, while a Beta(30, 70) prior behaves like 100 prior data points, an idea formalized through the concept of effective sample size. In a Normal-Normal model, strength is controlled by the prior variance, with a smaller variance acting like more prior data points. Sweeping across both center and strength, rather than just one, catches cases where a mild shift in belief combined with high confidence in that belief produces more drag on the posterior than a wild guess held loosely.

The chart below shows how the posterior mean conversion rate shifts as the prior moves from flat, to mildly skeptical, to strongly informed by old data, while the number of observations stays fixed at 300. Reading the chart left to right, the leftmost two bars barely move, which is the expected sign of a robust result, while the rightmost bar shows a visible jump, flagging exactly where sensitivity creeps in.

Figure 4. Posterior mean conversion rate under four priors. Illustrative values; not observed data.
Prior usedPosterior mean
Flat Beta(1,1)0.14
Mild Beta(4,20)0.14
Moderate Beta(10,40)0.15
Strong Beta(30,70)0.18

Running this kind of sweep by hand for every analysis would be tedious, so most practitioners build a short loop in their analysis code that iterates over a list of candidate prior parameters, computes the conjugate update for each, and stores the posterior mean and credible interval in a table. The steps below describe that workflow in a form that applies whether the model is a Beta-Binomial proportion or a Normal-Normal mean.

Running a prior sensitivity sweep

  1. List candidate priors - Choose three to five priors spanning flat, mildly informative, and strongly informative, including at least one that a reasonable skeptic would propose.
  2. Fix the data - Use the exact same observed data for every run so that only the prior varies between comparisons.
  3. Compute each posterior - Apply the conjugate update rule (Beta-Binomial or Normal-Normal) once per candidate prior to get a posterior distribution for each.
  4. Extract common summaries - Record the posterior mean and a credible interval, such as the highest density interval, for every run in one table.
  5. Compare the decision, not just the number - Check whether a decision threshold (for example, probability of winning above 95 percent) is crossed consistently across all priors.
  6. Report the range - State the narrowest and widest posterior mean across the sweep, and flag any prior that changes the practical conclusion.

Judging what counts as the conclusion changing depends on context, and it helps to set a threshold before running the sweep rather than after. For an estimation problem, a reasonable rule is that the posterior mean should not cross a decision-relevant boundary, such as moving from below to above a minimum acceptable effect size. For an A/B test framed around probability of winning, the rule might be that the probability should stay on the same side of a 95 percent threshold across every prior in the sweep. Setting the threshold in advance prevents the common trap of quietly redefining close enough after seeing results that look inconvenient.

A table is often the clearest way to present a sweep to colleagues who are unfamiliar with Bayesian updating, since it lets them see the prior, the resulting posterior, and the practical takeaway in one glance without needing to parse distributional notation.

Table 11. Sensitivity sweep for a conversion rate (42 of 300 observed)
PriorEffective prior data pointsPosterior meanConclusion changes?
Beta(1, 1), flat20.14No
Beta(4, 20), mild skeptic240.14No
Beta(10, 40), moderate skeptic500.15No
Beta(30, 70), strong old-data prior1000.18Yes, worth discussing

It is tempting to treat a sensitivity sweep as a box to check once and forget, but the exercise is most useful when it is repeated anytime the sample size is small relative to the strength of a candidate prior. With 300 observations in the example above, even a fairly informative prior could not pull the posterior mean far, because the likelihood function carried enough weight on its own. With 30 observations instead of 300, that same strong prior would have pulled the posterior mean much closer to its own center, and a sweep run on that smaller sample would show far more disagreement across priors. This is exactly the dynamic explored under prior strength compared to sample size, and it is the reason small pilot studies deserve a more careful sweep than large, mature datasets.

One mistake to avoid is sweeping across priors that are not actually plausible to anyone, just to manufacture the appearance of robustness. A prior claiming a conversion rate is almost certainly above 90 percent, when nothing like that has ever been observed in the product category, adds no real test and only wastes space in a report. The discipline of sensitivity analysis depends on choosing alternative priors that a genuine skeptic, not a straw one, would defend. A useful habit is to ask a colleague unfamiliar with the specific analysis what prior belief they would bring, and use their answer as one of the points in the sweep rather than inventing an artificial range alone.

Another mistake is reporting only the posterior mean across the sweep while ignoring the width of the credible interval. Two priors might produce nearly identical posterior means but very different interval widths, especially when one prior is much stronger than another, since forcing a narrow prior onto thin data compresses the resulting interval even if the center barely moves. A full sensitivity report always includes both the point estimate and an interval for each candidate prior, because a narrow interval built on an overconfident prior can mislead a decision-maker into thinking the estimate is more precise than the data alone would support.

When the sweep does reveal disagreement, the correct next step is not to simply pick the prior that gives the preferred answer. That practice, sometimes called prior shopping, defeats the entire purpose of transparent reporting and would be immediately suspect to anyone checking the analysis. Instead, the disagreement itself becomes part of the reported finding: state plainly that the conclusion depends on which prior is used, explain the substantive reason the priors disagree (for example, old campaign data versus a genuinely new product), and let the reader or stakeholder judge which assumption is more credible for the decision at hand. This turns a potential weakness into a precise, well-labeled piece of information.

Sensitivity analysis also interacts directly with sequential updating, since a model updated repeatedly as new data arrive effectively uses yesterday's posterior as today's prior. A sweep run early in a data collection process, when sample sizes are small, should be expected to show more prior sensitivity than a sweep run later, after more observations have accumulated. Reporting a sensitivity sweep at each major checkpoint, not just once at the end, gives an accurate picture of how much the conclusion still depends on starting assumptions as evidence builds. This practice fits naturally into monitoring workflows already used for Bayesian A/B tests, where results are checked periodically without the inflated error rates that come from continuous monitoring in frequentist tests.

For a Normal-Normal model estimating a mean, the same sweep logic applies with one change: instead of varying the shape parameters of a Beta distribution, vary the prior mean and the prior variance of a Normal prior distribution. A tight prior variance behaves like a large effective sample size, pulling the posterior mean strongly toward the prior mean regardless of what the data show, while a wide prior variance lets the data dominate almost entirely. Running the sweep across, say, three prior variances spanning tight, moderate, and wide, while holding the prior mean fixed, isolates how much of the final answer comes from confidence in the prior rather than its central value, which is a distinct question from the one answered by varying the center alone.

A useful mental checklist before finalizing any Bayesian report is to confirm that a sensitivity sweep has actually been run, not just considered.

Before reporting a Bayesian conclusion

  • At least three priors spanning flat to strongly informative have been tested
  • One alternative prior reflects a genuine skeptic's view, not a straw-man extreme
  • The posterior mean and a credible interval are recorded for every prior in the sweep
  • A decision threshold was defined before the sweep, not adjusted afterward
  • Any prior that changes the practical conclusion is named and explained in the report
  • The sweep has been rerun if the sample size changed materially since the last check

Treat the sensitivity sweep as inexpensive insurance rather than an afterthought bolted onto a finished analysis. The computational cost of rerunning a conjugate update five times instead of once is close to nothing, since each run is a closed-form calculation rather than a slow simulation. The reporting cost is a short paragraph and one table. What that small investment buys is the ability to say, with evidence rather than assertion, that a conclusion does not rest on a single arbitrary choice made at the start of the analysis. That claim is precisely the one a skeptical, frequentist-trained colleague is most likely to challenge, and precisely the one this chapter equips an analyst to defend.

Weakly Informative Priors as a Safe Default

Running a sensitivity sweep is far less work when the starting prior was chosen carefully in the first place, and this is where the idea of a weakly informative prior earns its place as a default strategy. A weakly informative prior is deliberately built to rule out values that are substantively impossible or absurd, while remaining spread out enough that it exerts only gentle influence on the posterior compared to a reasonable amount of data. It sits between two extremes that each cause trouble: a completely flat, uninformative prior that treats wildly implausible values as equally likely as sensible ones, and a strongly informative prior that locks in a narrow belief which may not survive contact with real data.

The case against a flat prior is easiest to see with an example. A flat Beta(1, 1) prior on a conversion rate assigns the same plausibility to a rate of 0.001 as to a rate of 0.5, even though almost no realistic product converts half its visitors. With a large dataset this rarely matters, because the likelihood function quickly overwhelms a flat prior regardless of how it was shaped. With a small dataset, however, a flat prior can produce a posterior that technically obeys Bayes' theorem but assigns non-trivial probability to values any domain expert would call implausible, simply because nothing in the prior ruled them out. A weakly informative prior fixes this by gently downweighting the far tails, for example centering a Beta(2, 8) prior around a plausible baseline rate near 0.2 while still allowing the data to move the estimate substantially if the evidence calls for it.

The case against a strongly informative prior is the mirror image. Suppose a prior encodes very high confidence, such as a Beta(200, 800) distribution expressing near-certainty that the true rate is close to 0.2, built from a belief that is actually based on thin or outdated evidence. That prior behaves, in effective sample size terms, like 1,000 prior observations, which means a genuine dataset of 300 new observations would barely move the posterior at all even if the true rate had shifted substantially. This is the scenario a sensitivity sweep is designed to catch, but it is better to avoid creating it in the first place by reserving strong priors for cases where the underlying justification is itself strong, such as a well-replicated prior study rather than a single old campaign.

A practical way to build a weakly informative prior for a proportion is to ask what effective sample size feels appropriate for the strength of prior knowledge actually available, then choose Beta parameters that match it. If prior knowledge is roughly equivalent to having seen 10 prior observations, a Beta(2, 8) prior (for a plausible rate near 0.2) carries an effective sample size of 10, which is a fraction of a typical experiment's few hundred observations and will be easily overridden if the data disagree. This approach keeps the reasoning behind the prior auditable: anyone can ask why 10 observations' worth of confidence, and not 50 or 100?, and the analyst has a concrete, defensible answer tied to how much genuine prior evidence actually exists.

For a Normal-Normal model estimating a mean, the equivalent move is to set the prior variance wide enough that it only rules out values that are physically or practically impossible. If a company is estimating the average session length in minutes for a new app feature, a weakly informative prior might center at a plausible guess, say 5 minutes based on similar features, with a standard deviation of 10 minutes and truncated at zero so that negative lengths are ruled out, wide enough to comfortably include values from near zero up to 25 minutes without specifying much more than probably somewhere in a reasonable range for this kind of feature. This differs sharply from a flat prior over all real numbers, which would assign equal plausibility to a session length of negative 50 minutes, a value with no physical meaning at all.

Weakly informative priors also serve a quiet technical purpose beyond interpretability: they act as a mild form of regularization, pulling extreme or noisy estimates gently toward plausible territory in the same spirit as ridge regression pulls regression coefficients toward zero. This regularization role matters most in settings with many parameters estimated from limited data, such as partial pooling across many groups, where a weakly informative prior on the group-level variance prevents individual group estimates from swinging wildly on the basis of just a handful of observations per group. Without that gentle pull, a group with only three or four data points can produce an estimate so extreme it distorts the whole analysis, even though the underlying cause is simply too little data for that one group, not a real effect.

Andrew Gelman and colleagues have argued for exactly this kind of default, proposing weakly informative priors as a general-purpose middle ground between flat priors, which can behave badly with sparse data, and strongly informative priors, which risk overriding the evidence actually collected[1]. The same spirit appears in earlier work on default and reference priors, where statisticians sought systematic rules for choosing a prior that lets the data speak clearly without smuggling in unjustified assumptions[2]. The practical lesson for an applied analyst is not to chase a mathematically perfect default prior, which does not exist for every model, but to build the habit of asking what range of values is genuinely plausible and shaping the prior to respect that range without pretending to more precision than is warranted.

A common objection from colleagues trained purely in classical statistics is that any prior at all introduces subjectivity that a p-value supposedly avoids. The weakly informative prior is the most direct answer to that objection, because it makes the subjectivity small, explicit, and testable rather than large, hidden, or absent by assumption. A flat prior is not actually free of assumptions either, since choosing to spread belief uniformly across every possible value is itself a substantive choice, and often a poor one when some of those values are impossible. Framing the weakly informative prior as ruling out only what everyone already agrees is implausible tends to defuse this objection quickly in practice, since it is hard for a skeptic to argue that a product really might convert 99 percent of visitors.

It helps to close the loop between the two halves of this chapter with one more worked comparison. Returning to the conversion rate example, a weakly informative Beta(4, 16) prior, centered near 0.2 with an effective sample size of 20, updates against the 42-of-300 data to a posterior of Beta(46, 274), giving a posterior mean near 0.144, extremely close to the flat-prior result of 0.142. That near-identical outcome is exactly what a well-chosen weakly informative prior should produce once enough data has accumulated: a result almost indistinguishable from an uninformative analysis, but grounded in a prior that never assigned meaningful probability to clearly impossible values in the first place, and that would have behaved sensibly even if the sample size had been much smaller.

The practical takeaway for routine work is to treat a weakly informative prior as the first thing reached for on any new analysis, not a special technique saved for difficult cases. Building a short internal reference, a one-page table listing the team's standard weakly informative priors for common metrics such as conversion rates, session lengths, or error rates, turns this from a one-off judgment call into a repeatable, auditable practice. New analyses then start from a known, defensible baseline, sensitivity sweeps confirm that baseline is not doing unwarranted work, and reports can state plainly that the prior used was the team's standard weakly informative choice for that metric, which is a far stronger sentence to put in front of a skeptical colleague than silence about where the prior came from at all.

Back to contents

Chapter 10: Reporting Results Honestly to Colleagues

A colleague leans over your desk and asks, so what is the probability your result is a fluke? That question sounds simple, but answering it honestly requires knowing exactly what your analysis can and cannot say. A frequentist answer would dodge the question entirely, since a p-value never states the probability that a hypothesis is true. A Bayesian analysis can actually answer it, because the posterior distribution assigns probability directly to the parameter you care about. The trouble is that having the right number does not guarantee you explain it correctly. This chapter is about closing that gap between a correct analysis and an honest, understandable report of it.

Every skill built across the earlier chapters, from constructing a likelihood function to running a sensitivity analysis across priors, exists to support one final act: telling someone else what you found and how confident you should both be in it. A posterior distribution sitting in your analysis software helps nobody. Translated into a sentence, a table, or a chart, it can change a decision. The translation step is where good analyses go bad, not because the math was wrong, but because the words overstated, understated, or hid something that mattered.

Three failure modes show up again and again in Bayesian write-ups. The first is overclaiming: stating a posterior probability as if it were a fact of nature rather than a conclusion conditional on a prior and a model. The second is underclaiming: burying a genuinely informative probability of winning or expected loss inside dense technical language that nobody not already fluent in Bayesian updating can parse. The third is omission: reporting a single headline number (there is a 92% chance the new design is better) without ever naming the prior, the model, or the checks run on it. Honest reporting avoids all three by being precise, plain, and complete at the same time.

The remainder of this chapter builds that skill in three stages. First, a method for writing a posterior summary that is both accurate and readable. Second, a set of rehearsed, honest answers to the hard questions a skeptical colleague is likely to ask, including the exact one that opened this chapter. Third, a checklist you can run against any Bayesian report before it leaves your hands, so transparent reporting becomes a habit rather than an afterthought.

Writing a Clear Summary of a Posterior

A posterior summary has to do two jobs at once: convey a central estimate and convey the uncertainty around it, without letting either one crowd out the other. A single number like posterior mean = 0.34 is precise but silent about how much that estimate might be wrong. A full plot of the posterior distribution is complete but unreadable to someone who has never seen one. The skill is choosing the smallest set of numbers and words that still tells the whole story, and then writing them in a sentence a non-statistician would actually understand on first read.

Start every summary with the quantity of real interest, stated in the units your colleague thinks in, not the units your model happens to use. If the question was did the new checkout flow increase conversion, do not open with the posterior mean of the lift is 0.071. Open with the new flow is estimated to raise conversion by about 7 percentage points. The statistical object behind that sentence, built in the Beta-Binomial model covered earlier, does not need to appear until the reader asks where the number came from. Lead with meaning, follow with mechanism.

Attach an uncertainty interval to every point estimate, and choose the interval type on purpose rather than by habit. A credible interval such as the 95% highest density interval states a range that has a 95% posterior probability of containing the true value, which is the direct answer to how sure are we. Report it the same way every time: the 7-point lift has a 95% credible interval of 2 to 12 points, never just 7 points, give or take. Vague hedges like give or take or roughly without a number attached are the single most common way a true result gets reported dishonestly by omission.

Decision-oriented numbers deserve their own sentence, separate from the estimate and interval. If the analysis is an A/B test, state the probability of winning and the expected loss explicitly: Variant B has an 89% probability of outperforming Variant A, and choosing it carries an expected loss of 0.3 conversion points if that belief turns out to be wrong. These two numbers, introduced earlier as the core of a Bayesian decision criterion, are often what a business colleague actually wants, more than the raw posterior distribution itself. Giving them by name, with their definitions intact, prevents a reader from substituting their own (often frequentist) interpretation onto a Bayesian number.

Name the prior in every summary, even a brief one. A sentence as short as this estimate uses a weakly informative prior centered at zero effect, so the result is driven mostly by the data does enormous work. It tells a skeptical reader that the conclusion was not engineered by a convenient prior choice, and it points them toward the sensitivity analysis if they want to check further. Skipping this line is the single most common way an otherwise rigorous Bayesian report invites (justified) suspicion from colleagues trained in classical statistics.

Consider a concrete case. A product team ran a Beta-Binomial analysis on a new onboarding flow, observing signups among roughly 1,200 visitors against a historical baseline. Using a weakly informative prior reflecting mild skepticism toward large jumps, the posterior mean conversion rate came out to 28.3%, with a 95% highest density interval of 25.7% to 30.9%. A dishonest-by-omission summary would say conversion is up to 28%. An honest summary says: Conversion is estimated at 28.3%, with 95% credible interval 25.7% to 30.9%, using a Beta(2,5) prior; this is a 2.3-point improvement over the 26% baseline, and the probability the true rate exceeds baseline is 94%.

Example: Weak vs. Strong Reporting

Weak: "The new flow converts better, about 94% sure."
Strong: "Posterior mean conversion is 28.3% (95% credible interval 25.7%-30.9%) under a Beta(2,5) prior, a 2.3-point lift over baseline, with a 94% posterior probability that the true rate exceeds 26%."

Visuals carry weight that sentences cannot always match, especially for an audience skimming a slide deck rather than reading a report line by line. A single plotted posterior distribution, shaded to mark the credible interval, communicates the shape of your uncertainty (symmetric, skewed, bimodal) in a way no sentence fully captures. When comparing two variants, plot both posterior distributions on the same axis rather than reporting two separate numbers, since overlap (or its absence) is itself the finding a reader needs to see.

Figure 5. Posterior Mean Conversion Rate by Variant. Illustrative values; not observed data.
VariantPosterior mean
Baseline26%
New flow28.3%

Resist the temptation to report only the number that supports the preferred conclusion. If a sensitivity analysis showed the result holding steady across a range of plausible priors, say so in one sentence: the headline figure ranged across a narrow band across priors reflecting mild skepticism to mild optimism. If the result was fragile, that is equally important to report, and arguably more important, since a fragile conclusion built on a convenient prior should not drive a real decision without acknowledgment.

Avoid translating a posterior probability into frequentist language out of habit. Writing statistically significant at the 95% level about a Bayesian credible interval imports a concept (the significance threshold) that does not belong to this framework and will mislead a reader trained to associate that phrase with a p-value's specific guarantees. Say instead that the credible interval excludes zero, or that the posterior probability of a positive effect is some stated percentage. Precision in vocabulary protects precision in meaning.

Keep a fixed template for repeated analyses, such as weekly A/B test readouts, so that stakeholders learn to read your reports quickly and consistently. A template might read: question, model and prior in one line, posterior mean and interval, decision-relevant probability, sensitivity note, and a one-line recommendation. Consistency here is not cosmetic. It trains your audience to know where to look for each piece of information, which speeds up decisions and reduces the chance that an unstated assumption slips through unnoticed.

Finally, separate the statistical summary from the business recommendation, even though both appear in the same document. The posterior tells you what the data and model imply about a parameter. The recommendation involves cost, risk tolerance, and context the model never saw. Write them as two distinct statements: the data give B a 94% probability of being better, with an expected loss of 0.4 points if wrong, followed by given our low cost of switching, we recommend launching B. Keeping these separate lets a colleague agree with your statistics while disagreeing with your recommendation, which is a sign of a report that respects its reader.

Answering Questions From Skeptical Colleagues

A colleague trained in classical statistics will ask predictable questions, and preparing honest, short answers in advance makes the conversation go far better than improvising under pressure. The goal in each case is not to win an argument for Bayesian methods over frequentist ones, but to state clearly what your number means and let the listener judge its relevance. None of these answers require apologizing for using a prior. A stated, justified prior is a strength of the method, not a weakness to be minimized.

Return now to the opening question: what is the probability your result is a fluke? The honest Bayesian answer is direct: Based on this model and prior, there is a small posterior probability that the true effect is zero or negative. This is not evasive, and it is not the same claim a p-value makes. It is possible to add, for contrast, that a small p-value from the same data would not mean an equivalently small chance the effect is fake, since a p-value is computed under the assumption the null hypothesis is already true and says nothing about the probability that it is. Naming that contrast explicitly often resolves years of built-up confusion in a single sentence.

The next common challenge is isn't your prior just your opinion? The accurate answer acknowledges that a prior is a stated assumption, then immediately points to the evidence that it was handled responsibly. A good response: The prior encodes what was known before this data arrived, chosen to be weakly informative so it does not drive the conclusion. A sensitivity analysis checked the result against priors ranging from skeptical to optimistic, and the conclusion held in each case. This converts a potential attack on the method into a demonstration that the method was followed carefully, which is a far stronger position than claiming the prior does not matter.

A related question: why didn't you just use a flat, uninformative prior to be objective? The honest answer is that a flat prior is itself a strong assumption, not a neutral one. It can assign equal weight to implausible extreme values, which distorts the posterior when sample sizes are small. A weakly informative prior, as covered earlier, is a more defensible default precisely because it rules out absurd values without dictating the answer. Explaining this reframes the prior choice as a technical decision made for good statistical reasons, not an ideological commitment to Bayesian philosophy.

Skeptics often ask how do I know your model fits the data at all? This is a fair and important question, and the honest answer points to the posterior predictive check performed as part of the analysis, described in the earlier chapter on estimation and uncertainty. A short answer: Simulated data generated from the fitted model were compared against the observed data on key summary statistics, and they matched closely, accompanied by a plot if one is available. Saying the model should be fine without having run this check is not an option in an honest report, and admitting a check was not run is better than implying one was.

A sharper version of the skepticism appears as couldn't you have picked a prior that would give you any answer you wanted? This deserves a direct, non-defensive answer, because the honest truth is that yes, an adversarial analyst could do exactly that. The defense is not to claim priors are beyond manipulation, but to point to the practice that prevents it: the prior was chosen and documented before looking at the outcome data, it matches established effect sizes from related work where available, and the sensitivity analysis shows the conclusion is not fragile to that specific choice. Transparency about the process, not a denial of the risk, is what restores trust.

Some colleagues ask a version of why should I trust a credible interval over a confidence interval? The fair answer avoids declaring one framework superior and instead clarifies what each interval actually promises. A confidence interval is constructed so that, across repeated sampling, a certain percentage of such intervals would contain the true parameter. A credible interval states that, given the model and prior, there is a stated probability the parameter falls within that specific range.[1] Many practitioners interpret a confidence interval as if it had the second meaning, which it does not, and pointing this out respectfully rather than triumphantly keeps the conversation useful.

When a colleague asks what would change your conclusion?, treat this as an invitation rather than a threat. A strong answer names the specific evidence that would move the posterior meaningfully: If the next batch of visitors converted at anywhere near the baseline rate, the probability of a true lift would drop substantially. Being able to state this crisply shows the analysis was built on falsifiable reasoning, not a predetermined conclusion dressed up in probability language. It also sets a concrete, pre-agreed bar for any follow-up data collection.

A particularly common and reasonable pushback is this all sounds more subjective than a p-value, why switch? The honest answer concedes the subjectivity of the prior while pointing out that frequentist methods carry their own hidden choices, including the stopping rule, the exact null hypothesis tested, and the significance threshold itself, all of which are chosen by the analyst and rarely disclosed in full. A Bayesian report simply makes its assumption visible as a named prior, where a frequentist report often leaves equally consequential choices unstated. Visibility of assumptions, not their absence, is the real standard to aim for in either framework.

Watch for one failure mode in these conversations: answering a skeptic's statistical question with a philosophical defense of Bayesian reasoning in general. A colleague who asks what does a 94% posterior probability mean wants a definition, not a lecture on degree of belief versus frequentist probability covered in an earlier chapter. Keep answers scoped to the specific question asked, state the definition plainly, and only expand into broader framework comparisons if asked directly. Over-explaining reads as defensiveness even when the content is correct.

Written answers to anticipated questions, prepared ahead of a presentation, reduce the chance of fumbling under real-time pressure. The table below gives a short reference for four of the most common challenges and a tight, honest response to each one.

Table 12. Common Skeptic Questions and Honest Responses
QuestionHonest Response
Is this just your opinion?The prior is stated, weakly informative, and tested across a range in a sensitivity analysis; the conclusion held throughout.
Why not use a flat prior?A flat prior is also an assumption, and often a worse one for small samples, since it gives weight to implausible extremes.
Does the model even fit?A posterior predictive check compared simulated data to the observed data, and the summary statistics matched closely.
Isn't a credible interval the same as a confidence interval?No. A credible interval states a probability the parameter is in that range; a confidence interval describes long-run coverage of the procedure.

Keep in mind that a skeptical colleague asking hard questions is often doing exactly what good statistical practice requires, and treating the exchange as collaborative rather than adversarial produces better long-term trust in your work. The strongest signal of a trustworthy analyst is comfort naming the limits of an analysis unprompted, before anyone has to ask. That habit, more than any specific answer, is what turns a skeptic into a repeat reader of your reports.

A Checklist for Transparent Bayesian Reports

A checklist run before any report leaves your hands catches the omissions that slip in under deadline pressure, when a headline number feels complete enough to ship without its supporting context. The value of a fixed checklist is that it does not depend on remembering what mattered last time. Treat it as a gate a report must pass, not a suggestion to consider loosely. Each item targets a failure mode covered in the preceding analysis: overclaiming, underclaiming, omission, fragile priors, unchecked model fit, or imprecise language.

The first group of items concerns the model itself: has the likelihood been named, has the prior been stated with its parameters, and has the source of that prior (prior data, expert judgment, or a deliberately weak default) been disclosed. A report that says we used a Bayesian model without naming whether it was a Beta-Binomial model, a Normal-Normal model, or something else leaves a technically literate reader unable to check your work at all. Specificity here costs one sentence and buys enormous credibility.

The second group concerns the posterior itself: has a point summary (posterior mean or median) been given alongside an interval (a highest density interval or another credible interval), and has the interval's width been stated in the same units as the point estimate, not left as an abstract percentage. A posterior mean without any interval is functionally equivalent to a p-value stripped of its sample size: a number without the context needed to weigh it. The interval is not optional decoration; it is half of the actual finding.

The third group concerns decision relevance: if the analysis supports a choice between options, has the probability of winning been stated, and has the expected loss of the less-favored option been computed and reported, not just assumed to be small. These numbers, built from the Bayesian A/B testing framework discussed earlier, are often the single most useful output of the whole analysis for a non-technical stakeholder, and omitting them while including only a posterior plot wastes the main practical advantage of the Bayesian approach.

The fourth group concerns robustness: has a sensitivity analysis been run across at least two or three alternative, reasonable priors, and has the result of that check (stable or fragile) been stated plainly rather than buried in an appendix nobody reads. A one-sentence summary such as the conclusion was stable across skeptical and optimistic priors belongs in the main body of the report, immediately after the headline finding, not in a footnote.

The fifth group concerns model fit: has a posterior predictive check been run, and has its result been stated, even briefly. Skipping this step entirely is common under time pressure, but an honest report says so rather than implying a check that never happened. A single sentence, a posterior predictive check was not run for this quick turnaround analysis; results should be treated as preliminary, is far more honest than silence on the matter.

The sixth and final group concerns language discipline: has frequentist vocabulary, such as statistically significant, been avoided in describing a Bayesian result, and has every probability statement been attached to the specific claim it describes rather than left floating as a bare percentage. A number like 87% without a stated subject (87% probability of what, exactly) is not a report, it is a fragment that invites a reader to supply their own interpretation, which is precisely the risk honest reporting exists to prevent.

Pre-Submission Checklist for a Bayesian Report

  • Likelihood and model family named explicitly (e.g. Beta-Binomial, Normal-Normal)
  • Prior stated with its parameters and its source (data, expert judgment, or weakly informative default)
  • Posterior mean or median reported alongside a credible interval in real-world units
  • Probability of winning and expected loss reported for any decision-relevant comparison
  • Sensitivity analysis run across at least two alternative priors, with result stated in plain language
  • Posterior predictive check run and its outcome reported, or its absence explicitly flagged
  • No frequentist terms (significance threshold, statistically significant) applied to a Bayesian result
  • Every probability statement attached to a named, specific claim, never left as a bare percentage
  • Statistical summary kept separate from the business recommendation built on top of it

Apply this checklist even to short, informal updates shared in a chat message or a one-slide summary, scaling the detail down but never dropping an item entirely. A compressed version might read: New flow, Beta-Binomial model, weakly informative prior, 94% probability of a true lift (stable 91 to 96 across priors tested), expected loss if wrong is small, recommend shipping. Every checklist item is present in a single sentence, proving that transparency and brevity are not in tension, only completeness and laziness are.

Treat a failed checklist item as a signal to go back to the analysis, not just the write-up. If the sensitivity analysis was never run, the honest move is to run it before publishing, not to word around its absence. If the model fit was never checked, check it. A checklist used only to police language while skipping the underlying statistical work defeats its own purpose, since the goal is honest reporting of work actually done well, not the appearance of rigor layered over shortcuts.

Over time, running this checklist on every report trains a kind of reflex: naming the prior, stating the interval, flagging the sensitivity result, and separating statistics from recommendation become automatic rather than effortful. That reflex is the practical endpoint of everything this book has built toward, from treating probability as a calibrated degree of belief through updating that belief with Bayes' theorem to summarizing a finished posterior for someone who was not in the room when it was computed. The next report that lands on a skeptical colleague's desk, built this way, earns its trust on the page, before a single follow-up question gets asked.

Back to contents

Conclusion

Picture the analyst from the opening chapters again, the one staring at a p-value of 0.047 and trying to decide whether a new onboarding flow actually helped. That analyst now has a second option sitting next to the old one. Instead of asking only whether the data would be surprising under a null hypothesis of no effect, that analyst can report a posterior distribution: a statement about how large the effect probably is, and how confident that statement should be. Nothing about the data changed. What changed is the question being asked of it, and the vocabulary available to answer honestly.

The ten chapters before this one built that vocabulary piece by piece. Degree of belief replaced the vague idea that probability only measures long-run frequency. Bayes' theorem turned out to be a simple rule for combining a prior distribution with a likelihood function to produce a posterior distribution, applied first to diagnostic tests, then to proportions and means through the Beta-Binomial model and the Normal-Normal model. The p-value got a careful rereading, stripped of the meanings it does not carry. A/B tests became exercises in probability of winning and expected loss rather than binary accept-or-reject verdicts. None of this erased classical statistics. It added a second lens, one that answers the question decision-makers actually ask more often than they realize.

What ties all of it together is a single discipline: state your assumptions, update them with evidence, and report the result along with how much it depends on those assumptions. A prior is not a confession of bias, it is a starting point that sensitivity analysis can stress-test. A credible interval is not a confidence interval with a friendlier name, it is an honest answer to the question people actually ask when they see an interval. A posterior summary written for a skeptical colleague is not a retreat from rigor, it is rigor made legible to someone who never ran the model themselves.

None of this makes classical tools obsolete. A p-value still has a narrow, correct use: it quantifies how surprising data would be under a specific null hypothesis, nothing more. Confidence intervals still carry useful long-run guarantees. The shift this book asked for is not abandonment but fluency: knowing which tool answers which question, and refusing to let the wording of a conclusion outrun what the method actually computed. An analyst fluent in both frameworks is harder to mislead and harder to be misled by, because that analyst can recognize when a familiar-looking number is quietly answering an unfamiliar question.

The remaining pages turn from summary to practice. The next section is shorter than the chapters before it, by design. Its purpose is not to reteach anything but to point toward the specific moments in daily analytical work where these ideas pay off first, and to suggest a realistic pace for adopting them without abandoning the methods already serving well.

Carrying These Ideas Into Your Own Work

The temptation after finishing a book like this is to rebuild every existing analysis in a Bayesian framework by next Monday. Resist it. The more durable path is to pick one recurring analysis, the kind run every month or every sprint, and convert only that one first. A conversion funnel test, a churn-rate comparison, a response-rate estimate from a survey: these are small, bounded problems where a Beta-Binomial model or a Normal-Normal model applies cleanly, where the stakes of getting the first attempt slightly wrong are low, and where colleagues already have intuition for the underlying question. Mastering the mechanics on a familiar, low-stakes problem builds the muscle memory needed before tackling something larger and more consequential.

Keep the classical version running in parallel for a while rather than replacing it outright. Report both the p-value and the posterior probability that the effect is positive, both the confidence interval and the credible interval, on the same slide or in the same table. The table below shows the kind of worked example that pairing creates, using numbers from a hypothetical sign-up test (300 visitors per variant, 54 conversions on the control and 66 on the treatment) so both frameworks can be read side by side on identical data.

Table 13. Same sign-up test, two framings
Question askedFrequentist answerBayesian answer
How surprising is this gap under no true difference?p-value of 0.22, not below the 0.05 thresholdNot directly answered by this framework
How likely is treatment to be better?Not a question this framework answersPosterior probability of about 0.89
Plausible range for the true liftConfidence interval of about -2.4 to 10.4 percentage pointsHighest density interval of about -2.4 to 10.3 percentage points
Decision given one month of dataNo significant effect, do not shipReasonable chance of a true lift, consider expected loss before shipping

Notice what the table makes visible: the two frameworks do not contradict each other, they report different quantities computed from the same counts. The p-value of 0.22 says the observed gap would not be rare under a null hypothesis of zero difference, so a strict 0.05 threshold calls this inconclusive. The posterior probability of 0.89 says that, given a weakly informative prior and the observed counts, there is roughly an 89 percent chance the treatment's true conversion rate exceeds the control's. Neither number is wrong. Reporting only one of them, worded as if it answered the other's question, is the actual error worth eliminating from practice.

Running both side by side for a few months also builds trust with colleagues who have spent years reading p-values and are reasonably cautious about new terminology showing up in a dashboard. Trust is earned by showing that the Bayesian number does not disagree with the familiar one, it answers a question the familiar one was never built to answer. Once a colleague sees that the probability of winning lines up with their own intuition about the confidence interval's width and direction, the conversation shifts from why are you changing the test to can we get this number for the other experiments too.

Set a concrete point at which the parallel run ends and the Bayesian version becomes the primary report. A useful trigger is the fifth or sixth analysis where the two methods lead to the same practical decision despite differently worded conclusions. At that point, the parallel reporting has done its job: it demonstrated equivalence of judgment while teaching the new vocabulary, and continuing it indefinitely just doubles the writing effort for no added insight. Shifting to Bayesian-primary reporting after that point is a natural transition rather than an abrupt switch that leaves colleagues behind.

Apply the same incremental logic to priors. The earliest Bayesian analyses should lean on weakly informative priors, the safe default established earlier in the book, because they let the data dominate the result and because defending a mild, pre-registered prior to a skeptical reviewer is straightforward. As familiarity grows and a team accumulates a track record of similar experiments, it becomes reasonable to build genuinely informative priors from that history, for instance centering a new landing-page test's prior on the average lift observed across the last ten similar tests. That move should always be accompanied by a sensitivity analysis showing the conclusion holds, or does not hold, across a reasonable range of alternative priors.

Watch for a specific failure mode as confidence with these tools grows: treating a convenient posterior probability as license to skip the posterior predictive check. A model can produce a tidy, decision-ready number while fitting the data poorly in ways that matter, for example a Normal model applied to heavily skewed response times. The discipline of simulating data from the fitted model and comparing it against the real data, covered in the chapter on estimation and uncertainty, is not an optional flourish for academic papers. It is the step that catches a wrong likelihood before that wrong likelihood turns into a wrong business decision reported with false confidence.

The checklist below condenses the habits that keep a Bayesian analysis trustworthy once it moves from a worked textbook example into a live decision that other people will act on.

Before sending a Bayesian result to a decision-maker

  • State the model and the prior in one sentence a non-statistician can read
  • Report a posterior summary (mean or median) alongside a credible interval, not a single number alone
  • Run a sensitivity analysis across at least two alternative reasonable priors
  • Run a posterior predictive check to confirm the model actually fits the data
  • Translate the probability of winning or expected loss into a plain-language recommendation
  • Note any continuous monitoring and confirm it was handled without inflating error rates
  • Keep the frequentist equivalent on hand in case a reviewer asks for it

Think about where this discipline pays off most immediately inside common analyst workflows. A/B testing is the obvious candidate, since expected loss gives a direct answer to the question what do we risk by shipping this now, which a p-value never addresses. Forecasting and capacity planning benefit similarly, since a posterior distribution over demand naturally produces a range of plausible outcomes rather than a single point forecast that implies more certainty than the data supports. Any recurring estimate with a small sample, a rare event's rate, a new product line's early conversion rate, a pilot study's effect size, is exactly where a sensible prior does the most good, because classical methods struggle to say anything useful when the sample is thin and a Bayesian model can still produce a defensible answer by borrowing strength from prior knowledge.

Partial pooling deserves particular attention as a habit worth carrying forward, because it solves a problem that comes up constantly and rarely gets named. A chain of 40 stores, a set of 25 sales regions, a cohort of 15 product categories: each one individually has too little data for a reliable separate estimate, yet treating them as one undifferentiated group throws away real variation between them. The hierarchical approach from the estimation chapter lets each unit's estimate borrow strength from the group while still reflecting its own data, shrinking extreme, noisy estimates toward a sensible group-level average without erasing genuine differences. That single technique, applied consistently, often improves decision quality more than any other single idea in this book.

Consider a concrete extension of the sign-up test example to see this in practice. Suppose the same test ran independently in 12 different countries, each with only 20 to 40 visitors per variant, far too few for a reliable estimate on their own. A naive approach either pools all countries together, hiding real regional differences, or analyzes each country alone, producing wildly noisy estimates driven by a handful of conversions. A partial pooling model instead lets each country's estimate shrink toward the overall average in proportion to how little data that country contributed, while still letting countries with clearer signals (more visitors, more extreme results) retain more of their own estimate. The result is a set of 12 country-level posteriors that are more stable and more defensible than either extreme.

Software is not the obstacle it once was. Probabilistic programming languages such as Stan and PyMC, along with accessible wrappers built on top of them, have made fitting the models described in this book a matter of a few dozen lines of code rather than custom mathematics[1]. For the conjugate models covered here, the Beta-Binomial model and the Normal-Normal model, no specialized software is even required, since the posterior has a closed form that a spreadsheet can compute directly. The barrier to starting is conceptual, not technical, which is exactly why this book spent its pages on the ideas rather than on installation instructions.

Keep a short, personal glossary of the terms that caused the most friction while learning this material, separate from the book's own glossary, and revisit it after each new analysis. Terms like Bayes factor or highest density interval tend to make sense in isolation while reading a chapter and then slip during the pressure of a real deadline. Writing a one-line definition in a personal phrase, tested against a real example from a current project, cements the term far more reliably than rereading the chapter a second time. This is a small habit, but it is the kind of habit that separates someone who read a book about Bayesian reasoning from someone who can actually defend a posterior in a meeting three months later.

Anticipate the pushback that will come from colleagues trained exclusively in classical statistics, because it will come, and it is usually reasonable rather than hostile. The most common objection is some version of you chose the prior, so you chose the answer. The honest response is not to deny that priors matter, it is to show the sensitivity analysis: present the posterior under the chosen prior next to the posterior under a flat prior and under a skeptical prior, and let the reviewer see that the conclusion holds, or see exactly how much it depends on the choice if it does not. A reviewer who sees that demonstration once tends to stop raising the objection reflexively, because the demonstration answers the real concern rather than dismissing it.

A second common objection is that Bayesian results are harder to audit because there is no universal threshold like 0.05 to check against. This is true, and it is also an opportunity rather than a weakness. A fixed threshold creates a false sense of objectivity, since the choice of 0.05 itself is a convention with no deeper justification than widespread habit. Replacing it with an explicit, stated decision rule, for example ship if the probability of a positive lift exceeds 0.9 and the expected loss from shipping is under $2,000, forces the organization to have the conversation about acceptable risk that the 0.05 threshold always let it avoid. That conversation is harder, but the resulting decisions tend to be better aligned with what the organization actually cares about.

None of this argues for abandoning the significance threshold where it is embedded in regulatory or legal requirements, where it may be genuinely non-negotiable. Clinical trials, for instance, often operate under statutory frameworks that specify classical hypothesis tests, and a Bayesian analysis there serves a complementary role rather than a replacement one[2]. Recognizing where a framework is mandated by policy rather than chosen for its explanatory power is itself part of using these tools responsibly. The goal throughout this book was never to declare one framework universally superior, it was to make sure the choice between them is made consciously, with full knowledge of what each one actually says.

Return, for a moment, to the original diagnostic test example from early in the book, the one involving a rare disease and an imperfect test. That example did more work than its modest length suggested, because it demonstrated in miniature the entire argument of this book: a number that looks like an answer to one question (how accurate is this test) is actually the answer to a narrower question (how often does the test return this result given the true condition), and confusing the two leads to a systematically wrong conclusion. Every subsequent chapter was a variation on that same warning, applied to proportions, means, A/B tests, and reported findings. The habit worth keeping, long after the specific formulas fade from memory, is the instinct to ask what question does this number actually answer before repeating it to anyone else.

That instinct does not require abandoning years of classical training. It requires adding one more question to the checklist already running during any analysis: not just is this significant but what do I actually believe now, and how confident should that belief be. The first question has a long and useful history. The second question is the one colleagues, stakeholders, and decision-makers are usually asking anyway, whether or not they know to phrase it that way. Answering it directly, with a stated prior, an honest likelihood, and a clearly summarized posterior, is a small change in process that produces a large change in how useful an analysis becomes to the people who have to act on it.

Back to contents

Further Reading and Resources

Every chapter in this book builds a working vocabulary, but no single volume can cover the full depth of Bayesian statistics. The texts and papers below extend the ideas on proportions, means, A/B testing, and reporting into territory that a dedicated analyst will eventually want to explore: hierarchical models with many levels, computational sampling methods, and the philosophical debates that still animate statistics departments. Some are technical and assume comfort with calculus and linear algebra. Others are aimed at practitioners who want worked code rather than proofs. Treat this list as a map, not a syllabus. Pick the entry that matches the next problem actually sitting on your desk.

For a rigorous but readable foundation, Bayesian Data Analysis remains the standard graduate reference, covering everything from conjugate models to hierarchical structures and model checking in far more depth than a single book for working analysts can afford[1]. It is dense, but the chapters on posterior predictive checks and hierarchical models pair directly with the partial pooling and model fit ideas introduced earlier in this book. Keep it on hand as a reference rather than reading it cover to cover. Analysts who want a gentler ramp into the same material often start with its earlier chapters on single-parameter models before attempting the hierarchical sections.

The historical roots of Bayesian reasoning deserve attention too, since the odds form and the base rate logic used throughout this book trace back further than most working statisticians realize. Thomas Bayes' original essay, published posthumously, laid out the inverse probability problem that gives the theorem its name, and Pierre-Simon Laplace independently developed and popularized the same machinery decades later[2]. Reading the original is less about extracting new technique and more about seeing how old the core idea is. The modern notation and conjugate families came much later, but the logic of updating a belief with evidence has not changed.

On the frequentist side of the comparison this book draws throughout, Ronald Fisher's writing on significance testing is the primary source behind the p-value machinery that most working analysts were trained on[3]. Reading Fisher directly clarifies that he never intended the p-value to answer the question analysts often ask of it today. Jerzy Neyman and Egon Pearson's later work on hypothesis testing as a decision procedure, built on a different logic from Fisher's, is also worth tracing if you want to understand why confidence intervals and significance thresholds are often conflated in modern teaching despite coming from separate traditions.

For a shorter, more opinionated take on why the misreadings cataloged earlier in this book persist, the American Statistical Association's formal statement on p-values is a concise document written specifically to correct common errors across scientific fields[4]. It is only a few pages and makes a useful handout for a colleague who insists a p-value of 0.03 means a 97 percent chance the null hypothesis is false. Pair it with a concrete worked example from your own data, since abstract statements rarely change habits as effectively as a side-by-side comparison does.

If the conjugate models in this book left you wanting to run analyses that cannot be solved in closed form, the next step is learning a probabilistic programming language. Stan and its R interface brms, along with Python's PyMC library, let you specify a hierarchical model with custom priors and let a sampling algorithm estimate the posterior numerically rather than analytically. Richard McElreath's Statistical Rethinking teaches this workflow from first principles with unusually clear explanations and real code, making it a natural next book after this one[5]. It revisits many of the same themes, including sensitivity to priors and model checking, at a slower and more computational pace.

The following checklist gathers the resources above by what they are best used for, so you can match a reference to the task at hand rather than rereading the whole chapter's prose.

  • Comprehensive technical reference: Bayesian Data Analysis
  • Historical origin of the theorem: Bayes' original essay
  • Classical significance testing source: Fisher's Statistical Methods for Research Workers
  • Short corrective document on p-value misuse: The ASA Statement on p-Values
  • Hands-on computational modeling: Statistical Rethinking, plus the Stan, brms, and PyMC documentation

Beyond books and papers, online communities built around these tools are often more useful day to day than any printed reference. The Stan forums and the PyMC discourse board both have active threads where practitioners post real models, including odd convergence problems and prior choices that did not behave as expected. Searching these archives before posting a new question will often turn up someone who hit the exact same issue with a hierarchical model or a Beta-Binomial setup. These forums are also a good place to see how experienced analysts phrase sensitivity analysis and transparent reporting in practice, which is harder to learn from a textbook than from watching a real exchange unfold.

Finally, a caution about reading order. Jumping straight into a textbook like Bayesian Data Analysis without first internalizing the distinction between a prior, a likelihood, and a posterior as separate objects, as this book covered in detail, often leads to frustration rather than insight. The algebra in advanced texts assumes that conceptual foundation is already solid. If a concept from an earlier chapter felt shaky while reading one of these resources, it is worth returning to that chapter's worked examples before pushing further into denser material. Depth is easier to add to a sturdy foundation than to one still being poured.

Back to contents

Glossary

A term that gets used loosely in conversation often needs a fixed meaning on the page, and this is where those meanings live in one place. Each entry below matches exactly how the term was used earlier in the book, so you can check your own writing against it before sending a report to colleagues. Read these definitions as working tools rather than textbook trivia. When a term appears in another entry, its meaning is the one given here, not a looser everyday sense.

Degree of belief is the Bayesian reading of probability: a number between 0 and 1 that represents how confident someone is in a claim, given everything they currently know. Coherence is the requirement that a set of such beliefs obey the ordinary rules of probability (they sum correctly, they don't contradict each other), so that no clever opponent could construct a combination of bets guaranteed to make the belief-holder lose money. Frequentist probability, by contrast, defines probability as the long-run frequency of an event across repeated trials, which is why a frequentist hesitates to assign a probability to a one-off hypothesis like this coin is biased.

Bayes' theorem is the rule for turning a prior belief into a posterior belief once new evidence arrives, built from the relationship between a hypothesis and the data it might produce[1]. The base rate is the prior prevalence of a condition or event in the population before any individual evidence is considered, and ignoring it is the single most common error in interpreting a diagnostic test. The odds form of Bayes' theorem restates the update as a multiplication of prior odds by a Bayes factor, the ratio of how likely the evidence is under one hypothesis versus another. Sequential updating is the process of folding in observations one at a time, where each new posterior becomes the prior for the next piece of data.

The prior distribution encodes what is believed about a parameter before seeing the current data. The likelihood function describes how probable the observed data would be under each possible value of that parameter. The posterior distribution is what results from combining the two, and it is the complete answer a Bayesian analysis produces, not a single number pulled out of it. A conjugate prior is a prior chosen from a family that, when combined with a particular likelihood, produces a posterior in that same family, which keeps the arithmetic closed and avoids simulation.

The Beta distribution is the standard conjugate prior for a proportion, defined on the interval from 0 to 1 and shaped by two parameters often called successes and failures. The Beta-Binomial model pairs a Beta prior with binomial data (a count of successes out of a fixed number of trials) to produce a Beta posterior with updated parameters. The Normal-Normal model plays the same role for a continuous mean, pairing a Normal prior with Normally distributed data to produce a Normal posterior whose variance shrinks as more data arrive.

Effective sample size describes how much weight a prior carries, expressed in the same units as the data (for instance, a Beta prior might carry the same influence as having already observed a certain number of trials). This is how a prior stops being a vague commitment and becomes a comparable, almost tangible, quantity. A prior with an effective sample size of 4 next to a dataset of 400 real observations contributes almost nothing to the posterior, while the same prior against a dataset of only 10 observations can dominate the result.

The p-value is the probability of observing data at least as extreme as what was actually seen, calculated under the assumption that the null hypothesis is true. It is not the probability that the null hypothesis is true, and it is not the probability that the result happened by chance, two of the most persistent misreadings in applied statistics. The significance threshold is the cutoff, commonly 0.05, below which a p-value is conventionally labeled statistically significant, though the threshold itself carries no special scientific meaning beyond the convention attached to it.

A confidence interval is a frequentist interval built so that, across many repeated experiments, a certain percentage of such intervals would contain the true parameter value. It does not mean there is a 95% probability that this particular interval contains the true value, which is the interpretation most people actually want. A credible interval delivers that wanted interpretation directly: it is a range on the posterior distribution such that the parameter has, say, a 95% probability of falling inside it, given the model and the data.

In a Bayesian A/B test, probability of winning is the posterior probability that one variant's true rate exceeds the other's, computed directly from the two posterior distributions rather than from a hypothesis test. Expected loss is the average cost of choosing the wrong variant, weighted by how probable and how large that mistake would be, which lets a decision-maker pick a winner even when the probability of winning sits short of a confident majority. Continuous monitoring is the practice of checking results repeatedly as data accumulate, which inflates error rates under frequentist testing while a Bayesian posterior stays valid however often it is checked, although stopping the moment a threshold is crossed still raises the false-positive rate of that stopping rule.

A posterior mean is the average value of the parameter under the posterior distribution, a common single-number summary alongside the posterior median. A highest density interval is the narrowest possible interval that still captures a given amount of posterior probability (for example 95%), which differs from a plain percentile interval whenever the posterior is skewed. Partial pooling is a hierarchical technique that lets estimates for individual groups borrow strength from the overall pattern across all groups, pulling noisy, small-sample group estimates toward the group average without erasing real differences between groups.

A posterior predictive check compares data simulated from the fitted model against the data that were actually observed, as a way of catching a model that fits the numbers mathematically but fails to reproduce patterns that matter. If a model of call center wait times keeps predicting negative waiting times in its simulations, that mismatch is a sign the model needs rethinking, not a sign the posterior math was done wrong.

A sensitivity analysis reruns the same analysis under several different reasonable priors to see whether the conclusion holds up or depends heavily on which prior was chosen. A weakly informative prior is a prior built to rule out implausible values (a conversion rate of negative 10%, for instance) without otherwise pushing the posterior toward any particular answer, making it a sensible default when no strong outside information is available.

Transparent reporting is the practice of stating the full model, the chosen priors, the resulting uncertainty intervals, and any checks performed, rather than presenting a single headline number stripped of its context. A posterior summary is the written or visual account of a posterior distribution, typically combining a central estimate, a credible interval, and enough description of the model for a skeptical reader to judge the result on its own terms.

Back to contents

Notes

Chapter 1: Probability as a Degree of Belief

  1. 1. Frank Ramsey, "Truth and Probability (written 1926), in The Foundations of Mathematics," Kegan Paul, 1931
  2. 2. Bruno de Finetti, Theory of Probability, Wiley, 1974

Chapter 2: Bayes' Theorem Through Worked Examples

  1. 1. Daniel Kahneman and Amos Tversky, "On the Psychology of Prediction," Psychological Review, 1973
  2. 2. Harold Jeffreys, Theory of Probability, Oxford University Press, 1939

Chapter 3: Priors, Likelihoods, and Posteriors

  1. 1. Bruno de Finetti, Theory of Probability, Wiley, 1974
  2. 2. Thomas Bayes, "An Essay towards solving a Problem in the Doctrine of Chances," Philosophical Transactions of the Royal Society, 1763

Chapter 4: Conjugate Updating for Proportions and Means

  1. 1. Thomas Bayes, "An Essay towards solving a Problem in the Doctrine of Chances," Philosophical Transactions of the Royal Society, 1763
  2. 2. Carl Friedrich Gauss, "Theoria Motus Corporum Coelestium," Perthes et Besser, 1809

Chapter 5: What a p-Value Really Says

  1. 1. Ronald Wasserstein and Nicole Lazar, "The ASA Statement on p-Values," The American Statistician, 2016
  2. 2. Ronald Fisher, "Statistical Methods for Research Workers," Oliver and Boyd, 1925
  3. 3. Jerzy Neyman and Egon Pearson, "On the Problem of the Most Efficient Tests of Statistical Hypotheses," Philosophical Transactions of the Royal Society A, 1933
  4. 1. Ronald Wasserstein and Nicole Lazar, "The ASA Statement on p-Values," The American Statistician, 2016
  5. 1. Ronald Wasserstein and Nicole Lazar, "The ASA Statement on p-Values," The American Statistician, 2016
  6. 4. Open Science Collaboration, "Estimating the Reproducibility of Psychological Science," Science, 2015

Chapter 6: Comparing Bayesian and Frequentist Answers

  1. 1. Jerzy Neyman, "Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability," Philosophical Transactions of the Royal Society, 1937
  2. 2. Bruno de Finetti, Theory of Probability, Wiley, 1974
  3. 3. Rink Hoekstra and others, "Robust Misinterpretation of Confidence Intervals," Psychonomic Bulletin and Review, 2014
  4. 4. Andrew Gelman and others, "Bayesian Data Analysis," Chapman and Hall, 2013

Chapter 7: Bayesian A/B Tests and Decision Making

  1. 1. John Kruschke, Doing Bayesian Data Analysis, Academic Press, 2014
  2. 2. Peter Armitage and others, "Repeated Significance Tests on Accumulating Data," Journal of the Royal Statistical Society, 1969
  3. 3. James Berger and Robert Wolpert, "The Likelihood Principle," Institute of Mathematical Statistics, 1988

Chapter 8: Bayesian Estimation and Uncertainty

  1. 1. Bradley Efron and Carl Morris, "Stein's Paradox in Statistics," Scientific American, 1977
  2. 2. Andrew Gelman and others, "Posterior Predictive Assessment of Model Fitness via Realized Discrepancies," Statistica Sinica, 1996

Chapter 9: Sensitivity Analysis and Prior Robustness

  1. 1. Andrew Gelman and others, "Bayesian Data Analysis," CRC Press, 2013
  2. 2. James Berger, "The Case for Objective Bayesian Analysis," Bayesian Analysis, 2006

Chapter 10: Reporting Results Honestly to Colleagues

  1. 1. Jerzy Neyman, "Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability," Philosophical Transactions of the Royal Society A, 1937

Conclusion

  1. 1. Andrew Gelman and others, "Bayesian Data Analysis," Chapman and Hall, 2013
  2. 2. David Spiegelhalter and others, Bayesian Approaches to Clinical Trials and Health-Care Evaluation, Wiley, 2004

Further Reading and Resources

  1. 1. Andrew Gelman and others, "Bayesian Data Analysis," Chapman and Hall, 2013
  2. 2. Thomas Bayes, "An Essay towards solving a Problem in the Doctrine of Chances," Philosophical Transactions of the Royal Society, 1763
  3. 3. Ronald Fisher, "Statistical Methods for Research Workers," Oliver and Boyd, 1925
  4. 4. Ronald Wasserstein and Nicole Lazar, "The ASA Statement on p-Values," The American Statistician, 2016
  5. 5. Richard McElreath, "Statistical Rethinking," Chapman and Hall, 2020

Glossary

  1. 1. Thomas Bayes, "An Essay towards solving a Problem in the Doctrine of Chances," Philosophical Transactions of the Royal Society, 1763

Use this book

  • Read the whole book here for free. No account needed.
  • Link to the book or any chapter, and share the links anywhere.
  • Share or host the complete PDF or EPUB file for free, including with a class or a library. Keep it unchanged, with the credit inside.
  • Quote up to 500 words with credit and a link back to the book.
  • Do not post the text on other websites, sell it, change it, translate it, or present it as your own.

Suggested credit: From "Thinking in Degrees of Belief", a free book by TailoredRead: https://tailoredread.com/book/thinking-degrees-belief-practical-bayesian-guide-74e6c9fc6704. See the terms of service for the full rules.

Want a book written for you?

Tell us your goals and background, and get a complete book on this subject or any other, tailored to you.