Difference between revisions of "Documentation/How Tos/Calc: BETADIST function"
(→Syntax) |
|||
Line 8: | Line 8: | ||
The beta distribution is a family of continuous probability distributions, where <tt>'''α'''</tt> and <tt>'''β'''</tt> are parameters controlling the shape of the distribution. | The beta distribution is a family of continuous probability distributions, where <tt>'''α'''</tt> and <tt>'''β'''</tt> are parameters controlling the shape of the distribution. | ||
+ | |||
+ | <tt>'''x'''</tt> is the number, at which you will evaluate the Beta distribution. | ||
The parameters <tt>'''a'''</tt> and <tt>'''b'''</tt> are lower and upper bounds of the distribution. You can interpret the value a as ''location'' and the value b−a as ''scale''. | The parameters <tt>'''a'''</tt> and <tt>'''b'''</tt> are lower and upper bounds of the distribution. You can interpret the value a as ''location'' and the value b−a as ''scale''. | ||
Line 13: | Line 15: | ||
<tt>'''a'''</tt> and <tt>'''b'''</tt> are optional parameters which default (if omitted) to <tt>'''0'''</tt> and <tt>'''1'''</tt>. | <tt>'''a'''</tt> and <tt>'''b'''</tt> are optional parameters which default (if omitted) to <tt>'''0'''</tt> and <tt>'''1'''</tt>. | ||
− | <tt>'''cumulative'''</tt> is an optional parameter which defaults to TRUE() if omitted. | + | <tt>'''cumulative'''</tt> is an optional, logical parameter which defaults to TRUE() if omitted. |
Before OOo version 3.1 the parameter ''cumulative'' doesn't exist and only the cumulative probability function is calculated. | Before OOo version 3.1 the parameter ''cumulative'' doesn't exist and only the cumulative probability function is calculated. |
Revision as of 22:26, 6 December 2008
BETADIST
Calculates the cumulative distribution function or the probability density function of a beta distribution.
Syntax
BETADIST(x; α; β; a; b; cumulative)
The beta distribution is a family of continuous probability distributions, where α and β are parameters controlling the shape of the distribution.
x is the number, at which you will evaluate the Beta distribution.
The parameters a and b are lower and upper bounds of the distribution. You can interpret the value a as location and the value b−a as scale.
a and b are optional parameters which default (if omitted) to 0 and 1.
cumulative is an optional, logical parameter which defaults to TRUE() if omitted.
Before OOo version 3.1 the parameter cumulative doesn't exist and only the cumulative probability function is calculated.
Constraints:
- α > 0 , β > 0 , a < b
- If α < 1, than the density function has a pole at x = a.
- If β < 1, than the density function has a pole at x = b.
Semantic
For cumulative = FALSE() the function BETADIST calculates the probability density function (besides the constraints given above):
For cumulative = TRUE() the function BETADIST calculates the cumulative distribution function:
Notice, that
where
and is the regularized incomplete Beta function.
Example
BETADIST(1;5;3;-2;4;FALSE())
|
BETADIST(0.2;0.7;4;0;1;FALSE())
|
BETADIST(1;1;0.5;0;1;FALSE())
BETADIST(1.1;1;0.5;0;1;FALSE())
|
BETADIST(1;5;3;-2;4;TRUE())
call before version 3.1: BETADIST(1;5;3;-2;4) |
BETADIST(0.2;0.7;4;0;1;TRUE())
call before version 3.1: BETADIST(0.2;0.7:4;0;1) other valid call: BETADIST(0.2;0.7;4) |
BETADIST(1.1;1;0.5;0;1;TRUE())
before version 3.1: BETADIST(1.1;1;0.5;0;1)
|
See also
Functions listed alphabetically, Functions listed by category