plot_beta_ci function

Plot a Beta Model with Credible Interval

Plot a Beta Model with Credible Interval

Plots the probability density function (pdf) for a Beta(alpha, beta) model of variable π\pi with markings indicating a credible interval for π\pi.

plot_beta_ci(alpha, beta, ci_level = 0.95)

Arguments

  • alpha, beta: positive shape parameters of the Beta model
  • ci_level: credible interval level

Returns

A density plot for the Beta model

Examples

plot_beta_ci(alpha = 7, beta = 12, ci_level = 0.80)