Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Complete beta function B(a,b)
0.333333
last row x = 1: Bx = 0.333333, Ix = 1
x Bx(a,b) Ix(a,b)
0 0 0
0.02 0.01960267 0.058808
0.04 0.03842133 0.115264
0.06 0.056472 0.169416
0.08 0.07377067 0.221312
0.1 0.09033333 0.271
0.12 0.106176 0.318528
0.14 0.12131467 0.363944
0.16 0.13576533 0.407296
0.18 0.149544 0.448632
0.2 0.16266667 0.488
0.22 0.17514933 0.525448
0.24 0.187008 0.561024
0.26 0.19825867 0.594776
0.28 0.20891733 0.626752
0.3 0.219 0.657
0.32 0.22852267 0.685568
0.34 0.23750133 0.712504
0.36 0.245952 0.737856
0.38 0.25389067 0.761672
0.4 0.26133333 0.784
0.42 0.268296 0.804888
0.44 0.27479467 0.824384
0.46 0.28084533 0.842536
0.48 0.286464 0.859392
0.5 0.29166667 0.875
0.52 0.29646933 0.889408
0.54 0.300888 0.902664
0.56 0.30493867 0.914816
0.58 0.30863733 0.925912
0.6 0.312 0.936
0.62 0.31504267 0.945128
0.64 0.31778133 0.953344
0.66 0.320232 0.960696
0.68 0.32241067 0.967232
0.7 0.32433333 0.973
0.72 0.326016 0.978048
0.74 0.32747467 0.982424
0.76 0.32872533 0.986176
0.78 0.329784 0.989352
0.8 0.33066667 0.992
0.82 0.33138933 0.994168
0.84 0.331968 0.995904
0.86 0.33241867 0.997256
0.88 0.33275733 0.998272
0.9 0.333 0.999
0.92 0.33316267 0.999488
0.94 0.33326133 0.999784
0.96 0.333312 0.999936
0.98 0.33333067 0.999992
1 0.33333333 1

What this calculator does

This tool tabulates two closely related special functions over a range of x for shape parameters a and b. The lower incomplete beta function \(B_x(a,b)\) is the integral of the beta kernel from 0 to x, and the regularized incomplete beta function \(I_x(a,b)\) is that integral divided by the complete beta function \(B(a,b)\). \(I_x(a,b)\) is also the cumulative distribution function of the Beta(a,b) distribution and underlies the CDFs of the binomial, Student t, F and many other distributions.

How to use it

Enter the shape parameters a and b (both must be positive). Choose a starting x (the Initial value of x), an Increment step, and the Number of repetitions (rows). Row i uses \(x = \text{initialX} + i \times \text{step}\). Values are kept inside [0, 1]; once x reaches 1 the table stops. The hero box shows the complete beta \(B(a,b)\) and the final row, while the scrollable table lists every x with \(B_x(a,b)\) and \(I_x(a,b)\).

The formula explained

The complete beta is computed stably as $$B(a,b) = \exp(\operatorname{lgamma}(a) + \operatorname{lgamma}(b) - \operatorname{lgamma}(a+b))$$ using a Lanczos approximation for the log-gamma function. The regularized value \(I_x(a,b)\) is evaluated with the classic Numerical Recipes continued-fraction (Lentz's algorithm): with \(bt = \exp(\operatorname{lgamma}(a+b) - \operatorname{lgamma}(a) - \operatorname{lgamma}(b) + a\cdot\ln x + b\cdot\ln(1-x))\), we use \(I_x = bt\cdot\operatorname{betacf}(a,b,x)/a\) when \(x < (a+1)/(a+b+2)\), otherwise \(I_x = 1 - bt\cdot\operatorname{betacf}(b,a,1-x)/b\). Finally \(B_x(a,b) = I_x(a,b) \times B(a,b)\). The endpoints \(I_0 = 0\) and \(I_1 = 1\) are handled exactly to avoid \(\log(0)\).

Advertisement
S-shaped regularized incomplete beta function curve increasing from 0 to 1
The regularized incomplete beta function \(I_x(a,b)\) rises monotonically from 0 to 1 as x goes from 0 to 1.
Beta density curve with the area from 0 to x shaded, illustrating the incomplete beta integral
The lower incomplete beta function is the shaded area under the integrand from 0 to x.

Worked example

For a = 1, b = 3: $$B(1,3) = \frac{\Gamma(1)\Gamma(3)}{\Gamma(4)} = \frac{1\cdot 2}{6} = \frac{1}{3} \approx 0.333333.$$ At x = 0.5 the closed form gives $$B_x = \frac{1 - (1-x)^3}{3} = \frac{1 - 0.125}{3} = 0.291667,$$ so \(I_x = 0.291667 / 0.333333 = 0.875\). The symmetry check \(I_x(1,3) = 1 - (1-x)^3 = 1 - 0.125 = 0.875\) confirms it.

FAQ

What is the difference between Bx and Ix? \(B_x(a,b)\) is the raw integral; \(I_x(a,b) = B_x(a,b)/B(a,b)\) is normalized to lie between 0 and 1.

Why must a and b be positive? The integral and the gamma functions only converge for \(a > 0\) and \(b > 0\).

What if my step pushes x past 1? Each x is clamped to 1 and the table stops at x = 1, where \(B_x(a,b) = B(a,b)\) and \(I_x(a,b) = 1\).

Last updated: