Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Binomial distribution (binomial_distribution)

The number of successes in n independent trials that each succeed with chance p.

How to write it

binomial_distribution(n, p)

n
The number of trials, a whole number. Takes an expression.
p
The chance of success, between 0 and 1. Takes an expression.

Examples

  • binomial_distribution⁡(10,14)\displaystyle \operatorname{binomial\_distribution}\left(10, \frac{1}{4}\right)
    binomial_distribution(10, 1/4)Open in the solver
  • P(x≥2), x∼B(5,12)=1316\displaystyle P(x \ge 2),\ x \sim \mathrm{B}\left(5, \frac{1}{2}\right) = \frac{13}{16}
    probability(x >= 2, distributed(x, binomial_distribution(5, 1/2)))

    In the solver, probability(x >= 2, distributed(x, binomial_distribution(5, 1/2))) gives 13/16.

    Open in the solver

Functions its examples use

  • probability

    The probability that a condition holds for a variable with a distribution.

  • distributed

    A variable and the distribution it follows, as probability and expectation read it.