Decision Lab
HDI · ETI · ROPE — From posterior to decision
© Dr. Rainer Düsing · Interactive Tools by Claude
Interactive bayestestR Kruschke McElreath
Posterior distribution · ROPE · Intervals
Posterior Median HDI ROPE
Value range
Min 50
Max 160
Default: IQ scale.
For Gamma: from 0.
Approach A — Kruschke
HDI vs. ROPE
Trichotomous decision: HDI outside, inside, or overlapping ROPE.
Approach B — Full ROPE
% in ROPE
Gradual: proportion of posterior mass in the ROPE. <2.5% = effect, >97.5% = equivalence (Makowski et al. 2019).
Approach C — ETI
ETI vs. ROPE
Invariant under transformations. Equal to HDI for normal distributions. Differences appear with skewed posteriors.
Metric D — bayestestR
Probability of Direction
Proportion of posterior mass in the more probable direction. pd ≥ 97.5% ≈ p ≤ .05 (two-sided).
Explanations & Background

HDI (Highest Density Interval) — The shortest interval containing X% of the posterior mass. The key property: no value outside the HDI has a higher density than any value inside. This means the HDI contains exactly the "most plausible" parameter values — those most strongly supported by the posterior. Density is proportional to probability, so a value with higher density is more credible than one with lower density. For a unimodal distribution the HDI is always a contiguous interval around the mode (densest point). For symmetric posteriors (Normal, t) HDI = ETI.

ETI (Equal-Tailed Interval) — Cuts equal probability mass from both tails (at 95%: 2.5% each). The ETI corresponds to what frequentist confidence intervals approximate. Key property: invariant under monotone transformations. If you transform a parameter (e.g. log(σ) instead of σ), the ETI on the original scale gives the same decision as on the transformed scale. The HDI can lead to different decisions depending on parameterisation (HDI on log scale ≠ exp(HDI on log scale)). For Normal and t distributions: HDI = ETI, since both distributions are symmetric. Differences arise only with skewed posteriors (here: Gamma).

Kruschke's decision rule (Approach A) — Trichotomous using the chosen interval (HDI or ETI): Interval completely outside ROPE → accept effect as real Interval completely inside ROPE → accept practical equivalence Interval overlaps ROPE → withhold judgment

Full-ROPE approach (Approach B, bayestestR) — Computes the proportion of the entire posterior mass that lies within the ROPE. This is a gradual, continuous statement: "37% of the posterior mass lies in the ROPE." Decision rule following Makowski et al. (2019): <2.5% = effect (negligible proportion in ROPE); >97.5% = practical equivalence; in between = undecided.

Setting the ROPE: SESOI — The ROPE should always be determined by content. The key concept is SESOI (Smallest Effect Size Of Interest): Which effect would be so small that it has no practical relevance for your research question? This is a scientific, not a statistical question. Example therapy study: An IQ gain of less than 3 points is indistinguishable in practice — so ROPE = [−3, +3]. Methods for determining SESOI: (1) pilot data / expert knowledge, (2) standardised effect size (e.g. d=0.2 as "small effect"), (3) what clinicians specify as the minimal clinically important difference (MCID). Lakens et al. (2018) provide a detailed introduction: Lakens, D., Scheel, A. M., & Isager, P. M. (2018). Equivalence testing for psychological research: A tutorial. Advances in Methods and Practices in Psychological Science, 1(2), 259–301. — Without any prior knowledge: Kruschke suggests ±0.1·SD(y).

Interval width 89% vs. 95% — McElreath prefers 89% because there is no special privilege for the number 95 — this convention comes from the frequentist world. 89 is the largest prime number below 90. The 95% interval is widely used and facilitates communication. Choose deliberately and justify the choice.

R Code (bayestestR)

Install bayestestR: install.packages("bayestestR")

library(bayestestR) # Generate posterior samples (here: normal distribution) posterior <- rnorm(10000, mean = 105, sd = 8) # Compute HDI hdi(posterior, ci = 0.95) # Compute ETI eti(posterior, ci = 0.95) # ROPE analysis rope(posterior, range = c(97, 113), ci = 0.95) # Full decision p_direction(posterior) equivalence_test(posterior, range = c(97, 113), ci = 0.95)
ℹ Decision Lab — Help
What will I learn here?
A posterior alone does not make a decision — that requires a decision framework. This tool shows three complementary approaches: HDI describes where the most plausible values lie; ETI provides symmetric quantile bounds; ROPE tests whether an effect is practically meaningful. All three come from the Bayesian toolkit (Kruschke, McElreath) and are implemented in bayestestR.
Recommended exploration
The three decision approaches
HDI (red): Highest Density Interval — shortest region containing the desired posterior mass. Optimal for skewed distributions.

ETI (blue): Equal-Tailed Interval — symmetric quantiles (e.g. 5 % / 95 %). Follows the same procedure as frequentist confidence intervals, but with a Bayesian interpretation based on the posterior distribution.

ROPE (green): Region of Practical Equivalence — proportion of the posterior within the «practically zero» range. Kruschke's decision rule: > 97.5 % → accept H₀; < 2.5 % → reject; in between → withhold judgement.