The Beta distribution has two shape parameters \(\alpha>0\), \(\beta>0\) and lives on \([0,1]\).
It is flexible: it can be uniform, U-shaped, right-skewed, left-skewed, or mound-shaped depending on \(\alpha,\beta\).
\[
f(x)=\frac{x^{\alpha-1}(1-x)^{\beta-1}}{B(\alpha,\beta)},\qquad 0\le x\le 1,
\]
Here \(B(\alpha,\beta)\) is the Beta function, related to the Gamma function:
\[
B(\alpha,\beta)=\frac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha+\beta)}.
\]
Mean and variance
\[
E[X]=\frac{\alpha}{\alpha+\beta},\qquad
\mathrm{Var}(X)=\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}.
\]
CDF and incomplete beta
The CDF uses the regularized incomplete beta function \(I_x(\alpha,\beta)\):
\[
F(x)=P(X\le x)=I_x(\alpha,\beta).
\]
In practice, \(I_x(\alpha,\beta)\) is computed using stable continued fraction methods (with symmetry transforms to improve accuracy).