Difference between revisions of "Documentation/How Tos/Calc: B function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Example:)
(Syntax:)
Line 5: Line 5:
  
 
=== Syntax: ===
 
=== Syntax: ===
<tt>'''B(n; p; s; s2)'''</tt>
+
<tt>'''B(n; p; k; k2)'''</tt>
  
: With <tt>'''n'''</tt> independent trials, each with a probability <tt>'''p'''</tt> of success, <tt>'''B'''</tt> returns the probability that the number of successes will be between <tt>'''s'''</tt> and <tt>'''s2'''</tt> inclusive, or if <tt>'''s2'''</tt> is omitted the probability that the number of successes will be exactly <tt>'''s'''</tt>.
+
: With <tt>'''n'''</tt> independent trials, each with a probability <tt>'''p'''</tt> of success, <tt>'''B'''</tt> returns the probability that the number of successes will be between <tt>'''k'''</tt> and <tt>'''k2'''</tt> inclusive, or if <tt>'''k2'''</tt> is omitted the probability that the number of successes will be exactly <tt>'''k'''</tt>.
  
 
=== Example: ===
 
=== Example: ===

Revision as of 19:02, 25 April 2008


B

Returns a probability in a binomial distribution.

Syntax:

B(n; p; k; k2)

With n independent trials, each with a probability p of success, B returns the probability that the number of successes will be between k and k2 inclusive, or if k2 is omitted the probability that the number of successes will be exactly k.

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.

See also:

BINOMDIST

Statistical functions

Personal tools