Bayesian vs Frequentist approach (to statistics)

30 minutes including questions. Allow roughly 18–20 minutes for prepared remarks. Take questions as they arise.

Press End for the main conclusion. The next two slides open discussion and list the backup topics. B1–B10 are available for questions throughout the talk.

All counts, times, prior choices and the benchmark are illustrative. The repeated-count figure uses simulated data.

The question

1. Bayesian vs Frequentist approach (to statistics)

Before counting, we thought the rate might exceed five. That was our reason to take a measurement.

Now we have eight events. Ask what the audience would like to say about the rate that produced them.

The question

2. Two probability questions

For the first question, imagine repeating the count at a rate of five.

For the second, keep the observed eight and ask which rates remain plausible.

The question

3. The model both analyses use

The model assumes a constant positive rate and independent counts in disjoint time intervals. If the rate drifts, both analyses need a different model.

Read the curve at eight and at five. Its height compares how well different rates explain this count. Its area has no probability interpretation for the rate by itself.

Two approaches to inference

4. A test of the reference rate

We decided to look for an increase before seeing the count. Add the probabilities for eight, nine and every higher count.

This is also a valid p-value for a null rate at or below five. Five gives the largest upper-tail probability within that null.

Two approaches to inference

5. A confidence interval for the rate

Near the left endpoint, eight events would be unusually many. Near the right endpoint, eight would be unusually few.

Each endpoint comes from a 2.5% tail. Because counts are discrete, coverage is at least 95% under this model.

Two approaches to inference

6. A posterior probability for the rate

The exponential prior has mean four and standard deviation four. Updating with the observed count gives a Gamma posterior with shape nine and rate 1.25.

Read the shaded area to answer the opening question. Then ask which range of rates contains most of the posterior probability.

Two approaches to inference

7. A credible interval for the rate

As the rate increases along the horizontal axis, the curve accumulates posterior probability. Read the rates where it reaches 2.5% and 97.5%.

Given these eight events and our exponential prior, the posterior probability between those rates is 95%.

Two approaches to inference

8. The p-value and the probability of no increase

We asked about an increase on the posterior plot. Here we use its complement, a rate at or below five. The p-value on the left still refers to repeated counts.

If someone subtracts the p-value from one, what does that give? The chance of fewer than eight events at the reference rate.

Two approaches to inference

9. What 95% means in each analysis

The left panel fixes the true rate at five. Each count gives a new interval. A cross marks a miss. Repeat the counts if someone wants to see coverage in action.

The right panel keeps our eight events. Its shaded interval contains 95% of the posterior probability for this record.

Two approaches to inference

10. Prediction for the next count

Earlier, we fixed the rate at five and obtained 13.3%. Now we average the chance of a future count over the rates supported by the data.

We use the fitted posterior to predict a count that we could check with another observation.

Choices made before observing

11. What does “anywhere in the range” mean?

We thought this experiment stood a chance of finding an increase. Suppose all we can say about the rate is that it lies between a quarter and twenty-five.

Read the halfway mark on each row. The same bounds put half the probability below very different rates. What did we mean by “anywhere”?

Choices made before observing

12. Earlier observations in both analyses

The broad prior precedes both independent records. Add each count to the Gamma shape and each observation time to its rate parameter.

Both methods can use the original counts. What if the earlier paper gives us only its upper limit?

Choices made before observing

13. Using a published upper limit as a prior judgment

A 95% confidence limit describes the earlier procedure’s coverage. If rates above its reported value seem unlikely in our study, how unlikely?

Here we choose a 5% tail. A hard cutoff would assign zero. Use either the earlier limit or the original counts so the earlier record enters once.

Prior sensitivity

14. Five priors for the same rate

The dashed curve shows what we assumed about the rate before counting. The solid curve shows what the same eight events do to that assumption.

Compare “Earlier counts” with “Earlier limit”. One uses the original count. The other chooses a shape and tail probability using only the reported limit.

Try either flat prior. Both start with the same endpoints, but the log prior puts more probability near small rates.

Prior sensitivity

15. The same counts under five priors

Each dot gives the posterior probability at or below five under one prior. Select the earlier-limit prior to see the effect of the published bound.

Increase observation time while keeping the observed rate at eight. Follow the dots on the same probability scale.

Prior sensitivity

16. Prior influence as observation time increases

Each record averages eight. The spread narrows because longer observation gives a more precise rate.

All five priors put density near eight. Here the data can increasingly outweigh the prior.

Prior sensitivity

17. The weight given to earlier information

The earlier-count prior carries the weight of 1.25 time units. Its contribution to the posterior mean falls from about 56% to 11%.

At a fixed true rate, the bias equals the prior weight times the difference between the prior mean and that rate.

Setting a limit

18. A one-sided 95% upper limit

For each proposed rate, blue gives the chance of a count at or below the one we observed. Rose gives the posterior probability above that rate.

Start with one unit. Read where the curves cross 5%. The small points show where each prior puts the posterior limit.

Select ten units. The observed rate stays at eight. The five limits move closer as the count grows from eight to eighty.

Conclusion

19. Frequentist and Bayesian inference

Return to the opening question. On the left we can check how our procedure behaves across repeated counts. On the right we can answer directly how plausible an increase is.

Both analyses use the count model. To put a probability on the rate itself, we also state what we believed about it beforehand.

Conclusion

20. Two mistakes in interpreting frequentist results

Someone might stop investigating after a result misses the chosen threshold. Here even a doubling of the rate remains consistent with the count.

The earlier upper limit describes the coverage of a procedure. Someone who discards every higher rate makes a much stronger claim about the rate.

Conclusion

21. Why we chose to run the experiment

Recall why we started counting. A rate above the reference seemed plausible enough to investigate before we had seen any events.

Two people could choose this experiment and expect different increases. We can state both priors and see whether that disagreement changes the conclusion.

Questions?

Leave this slide up during discussion.

The next slide lists the backup topics. The speaker notes link to each topic.

Backup slides

Press the topic number. Use zero for B10. Press I on a backup slide to return to this index.

B1–B5 cover beliefs and decisions. B6–B10 cover prediction, design and inference.

Backup slides

B1 · A skeptical prior for an increase

Suppose someone gives an increase a one-in-ten chance before counting. Within the exponential family, that judgment fixes the prior rate parameter.

Multiply the Poisson likelihood by each prior. The power of eight gives a Gamma shape of nine, and one unit of observation adds one to its rate.

The rose bars integrate each posterior above five. The same eight events give an increase 68.9% probability under the skeptical prior and 82.0% under the broad prior.

Backup slides

B2 · Costs of missed increases and false alarms

We can report an increase or withhold the report. A false alarm means the actual rate was at most five. A miss means it exceeded five.

Reporting incurs \(F\) with probability \(1-p\). Withholding incurs \(C\) with probability \(p\). Choose the smaller expected loss. At equality either action is optimal.

Both rows use \(C=1\). Raising \(F\) from four to nine raises the threshold from 80% to 90%. At the observed 82%, the decision switches to withholding.

Backup slides

B3 · Risk aversion with fixed error costs

Both choices below the plot lose two units on average. Squared loss gives the gamble twice the expected penalty of the sure loss. That is the risk aversion here.

For \(F=4\), squaring raises the false-alarm penalty from four to sixteen. For \(C=1\), the missed-increase penalty stays at one.

With linear loss, report the increase. With squared loss, withhold it. The physical costs and the count stay fixed.

Backup slides

B4 · A prior on risk aversion

Suppose the team agrees on the resource costs but is unsure how severely to penalise large losses. Both scales assign zero to a correct decision and one to a miss.

Average each error’s penalty over the two loss functions. \(F_w\) is the mean penalty for a false alarm and \(C_w\) for a missed increase. The count supplies no evidence about the preference.

At \(w=0.25\), \(F_w=7\) and \(C_w=1\). Reporting needs probability above seven eighths. At zero weight it needs four fifths, and the decision changes.

Backup slides

B5 · Decisions under the five priors

Each row uses one of the rate priors from the main comparison. Integrate its likelihood times prior above five, then divide by the integral across all rates.

With \(C=1\) and \(F=9\), the threshold is \(9/(9+1)=0.90\). Only the flat-in-rate prior clears it with eight events.

The longer record has the same observed rate. With eighty events all five priors favour reporting under these costs.

Backup slides

B6 · What counts did the priors predict?

Average the Poisson probability for a given count over the exponential prior. The resulting probabilities form a geometric series.

Each extra event multiplies its probability by one divided by one plus b. Summing from eight upward gives the displayed tail.

The skeptical prior assigns only 10% probability to rates above five. It predicts eight or more events in about one run out of twenty. Would that match your expectations?

Backup slides

B7 · The value of taking a measurement

Decide before observing any events. The prior chance of an increase is about 29%, so withholding is the cheaper action.

For a possible count \(k\), compare the Gamma posterior tail above five with \(F/(F+C)=4/5\). Report at 8 or more events.

The exponential–Poisson mixture gives the predictive weight \(0.2(0.8)^k\). Average over all counts. Buying the observation pays if its cost is below the saving.

Backup slides

B8 · Counting an earlier record twice

Condition on a common rate. Each real count supplies one Poisson likelihood. The exponential prior contributes the first quarter-unit to the Gamma rate parameter.

A second use of the four events multiplies their likelihood in again. It invents a time unit and four events, which pulls the mean down and narrows the interval.

Read the middle 95% between each Gamma distribution’s 2.5th and 97.5th percentiles.

Backup slides

B9 · Why two upper limits can agree

Start with a proposed upper rate. In the sampling calculation ask how often a new count would be eight or lower. In the posterior calculation ask how much mass lies above that rate.

For the improper flat prior these two tails equal the same finite sum. Setting either tail to 5% gives the same endpoint and retains each interpretation.

With finite bounds, remove the tail above 25 and divide by the original mass between the bounds. That small correction explains the last row.

Backup slides

B10 · A second look at the count

Testing only the total needs sixteen events for a report. The extra look allows an early report at ten, using the same nominal 5% rule.

For the sum, fix an early count below ten. A report at the end needs at least sixteen minus that many further events. The two routes to a first report are disjoint.

The overall false-alarm probability exceeds 5% with these cutoffs. A frequentist design can choose both cutoffs together to meet an overall error target.