Description Usage Arguments Details See Also Examples
Draw values from a beta distribution and plot the probability density function
1 | beta_plot(n = 10000, a = 1, b = 3)
|
n |
number of observations to draw |
a |
non-negative alpha parameter of the beta distribution |
b |
non-negative beta parameter of the beta distribution |
The Beta distribution with parameters a and b has density:
Γ(a+b)/(Γ(a)Γ(b))x^(a-1)(1-x)^(b-1)
for a > 0, b > 0 and 0 ≤ x ≤ 1.
1 2 | # Draw from beta distribution with parameters a = 1 and b = 3
beta_plot(a = 1, b = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.