Parameter estimation & hypothesis testing
University of Amsterdam
13 November 2026
In this lecture we aim to:
Reading: A Brief Introduction to Bayesian Inference
(chapters 1–6 repeat RMS, chapter 7 on ANOVA is new)

\[\large \underbrace{P(\theta \mid data)}_{\text{Posterior beliefs}} = \underbrace{P(\theta)}_{\text{Prior beliefs}} \times \overbrace{\underbrace{\frac{P(data \mid \theta)}{P(data)}}_{\substack{\text{Average prediction} \\ \text{across all } \theta\text{'s}}}}^{\text{Prediction for specific } \theta}\]
Each model has assigned a prior probability distribution to the parameter \(\theta\) by means of a probability distribution. In the case of a proportion, a convenient distribution is the Beta distribution because it also has a domain of [0,1].
\(\begin{aligned} k &= 8 \\ n &= 10 \end{aligned}\)
How likely is 8 out of 10 for all possible \(\theta\) values?
\[\binom{n}{k} \theta^k (1-\theta)^{n-k}\]
How likely is 8 out of 10 for all \(\theta\) values in the model, on average?
Now we can update Alex’s belief about the possible values of theta based on the data (the likelihood function) we found. Values with a likelihood higher than the average likelihood receive a boost, and others receive a penalty, in plausibility.
The posterior distribution is a probability distribution, so we can make probabilistic statements based on it:
In the Bayesian framework, this is known as the credible interval. This interval entails taking the middle \(x\)% of the posterior distribution. For instance, we can take a 95% credible interval, which ranges from \(0.482\) to \(0.940\) in this case. This means that under Alex’s model, there is a 95% probability that the true value of \(\theta\) is between \(0.482\) and \(0.940\).
\[\large \underbrace{\frac{P(H_A \mid data)}{P(H_0 \mid data)}}_\textrm{Posterior odds} = \underbrace{\frac{P(H_A)}{P(H_0)}}_\textrm{Prior odds} \times \underbrace{\frac{P(data \mid H_A)}{P(data \mid H_0)}}_\textrm{Bayes Factor}\]
\[\underbrace{\frac{P(data \mid H_A)}{P(data \mid H_0)}}_\textrm{Bayes Factor}\] A ratio of the marginal likelihood of the data for the alternative and the null models.
A Bayes factor of \({BF}_{10} = 3\), means that the data are 3 times more likely under the alternative model than under the null model.
Heuristics for the Interpretation of the Bayes Factor by Harold Jeffreys
| BF | Evidence |
|---|---|
| 1 – 3 | Anecdotal |
| 3 – 10 | Moderate |
| 10 – 30 | Strong |
| 30 – 100 | Very strong |
| >100 | Extreme |




Show model predictions using dummy variables:
\[ y_i = b_0 + b_1 \times x_i. \] where \(x_i\) indicates whether we are in group A or group B, then \(b_1\) indicates the group difference (if equal to 0, then no group difference)
\[ y_i = b_0 + b_1 \times x_i \]
\[\mathcal{M_0}: b_1 = 0 \] \[\mathcal{M_1}: b_1 \sim Cauchy(0.707)\]
\[\mathcal{M_0}: b_1 = 0 \] \[\mathcal{M_1}: b_1 \sim Cauchy(0.707)\]
How well did each model predict the data?
\(\rightarrow\) Marginal likelihood
\[\frac{P(data \mid \mathcal{M}_1)}{P(data \mid \mathcal{M}_0)} \approx 10,000\] The data are 10,000 times more likely under \(\mathcal{M}_1\) than under \(\mathcal{M}_0\)
\[ tastiness = b_0 + b_1 \times alcoholic + b_2 \times correct\]






Pfadt et al. (2026): The prevalence of Bayesian inference, preregistration, and open data in psychology, 2004–2024, 45 authors

Source: Pfadt et al. (2026), Fig. 1

Source: Pfadt et al. (2026), Fig. 2

Source: Pfadt et al. (2026), Fig. 3

Source: Pfadt et al. (2026), Fig. 6

Source: Pfadt et al. (2026), Fig. 5
\[\text{Outcome} = \text{Model} + \text{Error}\]
| Theme | In SSR | |
|---|---|---|
| Model | Statistics is relative | Many tests compare the predictions of two models (interaction vs main effects, \(\mathcal{M}_1\) vs \(\mathcal{M}_0\)) Bayes makes the comparison explicit |
| Error | Threats to statistical validity | Most assumptions are about the residuals, get a grip on these Robust alternatives exist, but are usually less powerful Many choices along the way |
| All of it | Complete reporting | Numbers for accuracy (effect size, hypothesis test) Graphs for vibes |
| Question | Metrics |
|---|---|
| Do we have evidence for an effect? | \(p\)-value (\(t\), \(F\), \(\chi^2\)), \(\text{BF}_{10}\) |
| Which model predicted the data the best? | \(R^2\)/\(F\) change + \(p\), adjusted \(R^2\), \(\text{BF}_{10}\), \(\text{BF}_{\text{incl}}\) |
| How big is the effect? | \(d\), \(r\), \(R^2\), \(\omega^2\), rank-biserial \(r\), odds ratio |
| How precise is this effect estimate? | Standard error, 95% CI, 95% credible interval |

Scientific & Statistical Reasoning