Description Usage Arguments Value References Examples
View source: R/draw.beta.alphabeta.less.than.one.R
This function implements pseudo-random number generation for a Beta distribution for \max(α,β)<1 with pdf
f(x|α,β)=\frac{1}{B(α,β)}x^{α-1}(1-x)^{β-1}
for 0 ≤q x ≤q 1, 0 < α < 1, and 0 < β < 1 where α and β are the shape parameters and B(α,β) is the complete beta function.
1 | draw.beta.alphabeta.less.than.one(nrep,alpha,beta)
|
nrep |
Number of data points to generate. |
alpha |
First shape parameter. Must be less than 1. |
beta |
Second shape parameter. Must be less than 1. |
A list of length five containing generated data, the theoretical mean, the empirical mean, the theoretical variance, and the empirical variance with names y, theo.mean, emp.mean, theo.var, and emp.var, respectively.
Jhonk, M. D. (1964). Erzeugung von betaverteilter und gammaverteilter zufallszahlen. Metrika, 8, 5-15.
1 | draw.beta.alphabeta.less.than.one(nrep=100000,alpha=0.7,beta=0.4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.