Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Beta function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Software implementation== Even if unavailable directly, the complete and incomplete beta function values can be calculated using functions commonly included in [[spreadsheet]] or [[computer algebra system]]s. In [[Microsoft Excel]], for example, the complete beta function can be computed with the <code>[[Gamma_function#Log-gamma function|GammaLn]]</code> function (or <code>special.gammaln</code> in [[Python (programming language)|Python's]] [[SciPy]] package): :<code>Value = Exp(GammaLn(a) + GammaLn(b) β GammaLn(a + b))</code> This result follows from the properties [[#Properties|listed above]]. The incomplete beta function cannot be directly computed using such relations and other methods must be used. In [https://www.gnu.org/software/gsl/doc/html/specfunc.html#incomplete-beta-function GNU Octave], it is computed using a [[continued fraction]] expansion. The incomplete beta function has existing implementation in common languages. For instance, <code>betainc</code> (incomplete beta function) in [[MATLAB]] and [[GNU Octave]], <code>pbeta</code> (probability of beta distribution) in [[R (programming language)|R]] and <code>betainc</code> in [[SymPy]]. In [[SciPy]], <code>special.betainc</code> computes the [[Beta distribution#Cumulative distribution function|regularized incomplete beta function]]βwhich is, in fact, the cumulative beta distribution. To get the actual incomplete beta function, one can multiply the result of <code>special.betainc</code> by the result returned by the corresponding <code>beta</code> function. In [[Mathematica]], <code>Beta[x, a, b]</code> and <code>BetaRegularized[x, a, b]</code> give <math> \Beta(x;\,a,b) </math> and <math> I_x(a,b) </math>, respectively.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)