Prior Elicitation for Bayesian Trials
Technical documentation for constructing interpretable Beta priors from expert knowledge, historical data, or quantile specifications. This module is the foundation for all other Bayesian trial design calculators in Zetyra.
Contents
1. Overview & Use Cases
The Prior Elicitation module transforms qualitative clinical knowledge into quantitative Beta distribution parameters. This is the critical first step in Bayesian trial design, as the prior directly impacts sample size requirements and operating characteristics.
Why Beta Distributions?
For binary endpoints (response rates, success proportions), the Beta distribution is the conjugate prior to the Binomial likelihood:
This conjugacy enables closed-form posterior updates, fast computation, and exact credible intervals without MCMC sampling.
Mean
Variance
ESS
Key Insight: Effective Sample Size (ESS)
The sum represents the prior's “effective sample size”—how much weight the prior carries relative to observed data. A prior with ESS = 20 has the same influence as 20 observations.
2. Elicitation Methods
Zetyra supports three complementary methods for specifying a Beta prior:
| Method | Input Requirements | Best For | Regulatory Strength |
|---|---|---|---|
| Quantile Matching | Median + credible interval bounds | Expert opinion elicitation | Medium |
| ESS-Based | Target mean + desired ESS | Controlling prior influence | Medium |
| Historical Data | Events/total from prior study + discount | Published Phase II data | Strong |
3. Quantile Matching
Quantile matching finds Beta parameters that satisfy specified quantile constraints. This is the most natural way to translate expert beliefs into a prior distribution.
Algorithm
Given a median and a credible interval at confidence level , we solve:
Example
An oncologist believes the response rate is around 12%, and is 90% confident it lies between 5% and 20%.
Input
- Median: 0.12
- Lower bound (5%): 0.05
- Upper bound (95%): 0.20
- Confidence: 90%
Output
- ESS = 50
- Mean = 12%
Validation Check
Always verify the fitted distribution by checking that the actual quantiles of the resulting Beta match your specifications. The calculator displays the achieved coverage to confirm fit quality.
4. ESS-Based Prior
The ESS-based method allows direct control over prior influence. This is useful when you want to specify “the prior should count as N pseudo-observations.”
Formula
Given a target mean and effective sample size :
Weakly Informative
ESS = 2–10: Minimal prior influence, data-dominated inference
Example: for , ESS = 10
Moderately Informative
ESS = 20–50: Balanced prior/data contribution
Example: for , ESS = 50
Rule of Thumb
For a trial planning to enroll patients, a prior ESS of to typically provides meaningful information without dominating the data.
5. Historical Data Prior
When prior data is available (e.g., Phase II results, published studies), the historical data method converts observed counts directly into Beta parameters with optional discounting.
Power Prior Formula
Given historical data with events out of patients, and discount factor :
| Discount Factor | Interpretation | When to Use |
|---|---|---|
| Full borrowing | Same population, same treatment | |
| Skeptical borrowing | Similar but not identical population | |
| Conservative borrowing | Different indication, mechanism-based prior | |
| No borrowing (uninformative) | Historical data not relevant |
Example: Phase II to Phase III
A Phase II trial observed 24 responders out of 200 patients (12% response rate).
Full Borrowing ()
ESS = 202
Skeptical ()
ESS = 102
Conservative ()
ESS = 42
6. Predictive Distributions
The prior predictive distribution shows what outcomes the prior expects before seeing data. This is essential for validating prior plausibility.
Beta-Binomial Predictive
If and, then the marginal distribution is:
Where is the Beta function.
Prior Predictive Check
The calculator displays the prior predictive distribution for a future trial. Use this to verify: “Does the range of predicted outcomes match clinical expectations?” If the prior predicts implausible outcomes (e.g., 50% response rate when 15% is expected), revise the prior.
7. Integration Workflow
Prior Elicitation is designed to feed directly into other Bayesian calculators. The workflow is:
Elicit Prior
Use this calculator
Transfer
Click “Use in Sample Size”
Size Trial
Get N with operating characteristics
Document
Export SAP-ready justification
Connected Calculators
- Bayesian Sample Size— Single-arm trial sizing
- Bayesian Borrowing— Historical data incorporation
- Two-Arm Bayesian Design— Randomized trial sizing
8. Regulatory Considerations
FDA Bayesian Guidance (January 2026)
Section V.D requires sponsors to provide “clear justification for the choice of prior distribution” including the source of information, any discounting applied, and sensitivity analyses.
Documentation Requirements
- Source of Information: Specify whether prior is based on historical data, expert opinion, meta-analysis, or other sources.
- Prior Parameters: Report exact values with corresponding mean, variance, and ESS.
- Discounting Rationale: If using historical data, justify the discount factor choice.
- Sensitivity Analysis: Show results under alternative priors (e.g., uninformative, skeptical, enthusiastic).
9. API Quick Reference
Key Parameters
| Parameter | Type | Description |
|---|---|---|
| method | string | "quantile_matching" | "ess_based" | "historical" (required) |
| median, lower_bound, upper_bound | float | For quantile_matching method |
| prior_mean, ess | float, int | For ess_based method |
| n_events, n_total | int | For historical method |
Key Response Fields
prior_parameters.alpha/beta— Beta distribution parameterssummary.mean, summary.ess— Prior mean and effective sample sizepdf_data, cdf_data— Plot data for visualizationprior_predictive— Predictive distribution statistics