# 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
independent trials, each with a probability**n**of success,**p**returns the probability that the number of successes will be between**B**and**s**inclusive, or if**s2**is omitted the probability that the number of successes will be exactly**s2**.**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.