Difference between revisions of "Documentation/How Tos/Calc: B function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m (→Example:) |
||
Line 11: | Line 11: | ||
=== Example: === | === Example: === | ||
<tt>'''B(10; 1/6; 2) '''</tt> | <tt>'''B(10; 1/6; 2) '''</tt> | ||
− | : returns approximately 29%, the probability that the number four will be thrown exactly twice in 10 throws of a die. | + | : returns approximately 0.29 (29%), the probability that the number four will be thrown exactly twice in 10 throws of a die. |
=== See also: === | === See also: === |
Revision as of 19:01, 25 April 2008
B
Returns a probability in a binomial distribution.
Syntax:
B(n; p; s; s2)
- With n independent trials, each with a probability p of success, B returns the probability that the number of successes will be between s and s2 inclusive, or if s2 is omitted the probability that the number of successes will be exactly s.
Example:
B(10; 1/6; 2)
- returns approximately 0.29 (29%), the probability that the number four will be thrown exactly twice in 10 throws of a die.