Instructions
What this website does
This website allows you to perform exploratory Bayesian analyses of event rates observed in single-arm experiments. The site was designed to facilitate the exploration of potential safety issues associated with a medical product in early-phase clinical trials, but the methods are applicable to any problem where the parameter of interest is the probability of occurrence of some binary outcome.
How Bayesian analysis works
In a Bayesian analysis, information external to an experiment is used to form a prior probability distribution for the parameter of interest (in this case, a proportion). This prior distribution expresses the analyst's belief about where the parameter is likely to lie and how much confidence the analyst has about the value of the parameter before the experiment is conducted. The prior distribution can be based on historical data or expert opinion, or can be chosen to represent a state of relative ignorance about the parameter (a so-called non-informative prior).
The prior distribution is then combined with data from the experiment to form an updated posterior probability distribution for the parameter of interest. The posterior distribution represents the revised state of belief about where the parameter is likely to lie after taking into account both the prior information and the experimental data. The posterior distribution can then be explored to come to an understanding of the experimental data in the wider context represented by the prior distribution.
For more detailed information on Bayesian statistics, Wikipedia isn't a bad place to start.
How to use this site
The plots to the left show the current prior distribution (top), the likelihood function for the experimental data that have been input (middle) and the current posterior distribution (bottom).
The tabs at the top of the page provide access to the four main sections of this site. Under the Prior distribution tab, there are a number of ways to interact with the program to form a prior distribution, including providing guesses as to the most likely value for the parameter and the confidence you have in that value, providing historical data, or choosing a non-informative prior. Each menu item for forming a prior distribution contains its own instructions. Note that you may use more than one method for forming a prior distribution; in this case, the resulting prior distribution will represent a compromise between the distribution generated by each menu item individually.
The top of the prior distribution section contains a table showing interactive summary statistics about the currently specified prior distribution. These statistics can be used as a check on the information you've provided. For instance, if you specify a prior based on historical data but then find that the 95% credible interval is unrealistically wide or narrow, you can revise the information you used to form the prior to obtain more realistic results.
The Study data tab allows you to enter the number of subjects and number of events observed in your experiment. A table of summary statistics provides access to typical frequentist analyses of binary data, including exact binomial confidence intervals and hypothesis tests.
When a prior distribution has been specified and study data have been input, the Posterior distribution tab provides an interactive table of summary statistics concerning the posterior distribution. This table can be used to explore the posterior distribution in order to understand the updated state of belief about the event rate of interest. The summary tables from the prior distribution and study data sections are also repeated here for reference.
The Sensitivity analysis section allows you to explore how changes in the prior mode and sample size would affect the conclusions of your analysis.
Sensitivity analysis
You can use the sliders and boxes below to explore how different assumptions about the prior distribution would affect your conclusions. The prior mode is the single most likely value for the event rate before performing the experiment. The prior sample size refers to the effective sample size of the prior distribution (i.e., how many subjects worth of data the prior represents). Note that checking the box below will temporarily override your other choices for the prior distribution.
Sensitivity analysis mode| Prior mode: | ||
| Prior sample size: |
Posterior distribution summary
| Center | Spread | Credible interval | Probability that proportion is | Percentile | Beta parameters | |
|---|---|---|---|---|---|---|
| a | b | |||||
Current prior
| Center | Spread | Credible interval | Probability that proportion is | Percentile | Beta parameters | |
|---|---|---|---|---|---|---|
| a | b | |||||
Determining the prior distribution
Use one or more of the following sections to help determine the prior distribution for the event rate. If more than one method is used to determine a prior, note that the final prior distribution will represent a compromise between each prior specified. We recommend this approach in general.
Observed study data
Enter the data observed in your study here. This section may also be useful for exploring hypothetical experimental scenarios that would lead to specific conclusions along with a given prior distribution.
Data summary
The numbers presented in this table represent a standard 'frequentist' analysis of the study data.