Revision as of 21:56, 12 September 2020 editMiaumee (talk | contribs)Extended confirmed users765 edits Minor C/E fixes. + inline refs. - "Mathworld" entry in External Links (inline-cited already). + "Continuous Bernoulli distribution" to See Also.Tags: Reverted Visual edit← Previous edit | Revision as of 15:34, 21 September 2020 edit undoJayBeeEll (talk | contribs)Extended confirmed users, New page reviewers28,266 edits Undid revision 978097866 by Miaumee (talk) Per User talk:Miaumee, this is apparently the preferred response to poor editingTag: UndoNext edit → | ||
Line 39: | Line 39: | ||
}} | }} | ||
In ] and ], the '''Bernoulli distribution''', named after Swiss mathematician ],<ref>James Victor Uspensky: ''Introduction to Mathematical Probability'', McGraw-Hill, New York 1937, page 45</ref> is the ] of a ] which takes the value 1 with probability <math>p</math> and the value 0 with probability <math>q = 1-p</math>, |
In ] and ], the '''Bernoulli distribution''', named after Swiss mathematician ],<ref>James Victor Uspensky: ''Introduction to Mathematical Probability'', McGraw-Hill, New York 1937, page 45</ref> is the ] of a ] which takes the value 1 with probability <math>p</math> and the value 0 with probability <math>q = 1-p</math>. Less formally, it can be thought of as a model for the set of possible outcomes of any single ] that asks a ]. Such questions lead to ] that are ]-valued: a single ] whose value is success/]/]/] with ] ''p'' and failure/no/]/] with probability ''q''. It can be used to represent a (possibly biased) ] where 1 and 0 would represent "heads" and "tails" (or vice versa), respectively, and ''p'' would be the probability of the coin landing on heads or tails, respectively. In particular, unfair coins would have <math>p \neq 1/2.</math> | ||
⚫ | The Bernoulli distribution is a special case of the ] where a single trial is conducted (so ''n'' would be 1 for such a binomial distribution). It is also a special case of the '''two-point distribution''', for which the possible outcomes need not be 0 and 1. | ||
Less formally, a Bernoulli distribution can be thought of as a model for the set of possible outcomes of any single ] that asks a ]. Such questions lead to ] that are ]-valued: a single ] whose value is success/]/]/] with ] ''p'', and failure/no/]/] with probability ''q''. It can be used to represent, for example, a (possibly biased) ] where 1 and 0 would represent "heads" and "tails" (or vice versa), respectively, and where ''p'' and ''q'' would be the probability of the coin landing on heads or tails, respectively. In particular, unfair coins would have <math>p \neq 1/2.</math> | |||
⚫ | The Bernoulli distribution is a special case of the ] |
||
==Properties== | ==Properties== | ||
Line 51: | Line 49: | ||
:<math>\Pr(X=1) = p = 1 - \Pr(X=0) = 1 - q.</math> | :<math>\Pr(X=1) = p = 1 - \Pr(X=0) = 1 - q.</math> | ||
The ] <math>f</math> of this distribution, over possible outcomes ''k'', is |
The ] <math>f</math> of this distribution, over possible outcomes ''k'', is | ||
:<math> f(k;p) = \begin{cases} | :<math> f(k;p) = \begin{cases} | ||
Line 68: | Line 66: | ||
The Bernoulli distribution is a special case of the ] with <math>n = 1.</math><ref name="McCullagh1989Ch422">{{cite book | last = McCullagh | first = Peter | authorlink= Peter McCullagh |author2=Nelder, John |authorlink2=John Nelder | title = Generalized Linear Models, Second Edition | publisher = Boca Raton: Chapman and Hall/CRC | year = 1989 | isbn = 0-412-31760-5 |ref=McCullagh1989 |at=Section 4.2.2 }}</ref> | The Bernoulli distribution is a special case of the ] with <math>n = 1.</math><ref name="McCullagh1989Ch422">{{cite book | last = McCullagh | first = Peter | authorlink= Peter McCullagh |author2=Nelder, John |authorlink2=John Nelder | title = Generalized Linear Models, Second Edition | publisher = Boca Raton: Chapman and Hall/CRC | year = 1989 | isbn = 0-412-31760-5 |ref=McCullagh1989 |at=Section 4.2.2 }}</ref> | ||
The ] goes to infinity for high and low values of <math>p,</math> but for <math>p=1/2</math> |
The ] goes to infinity for high and low values of <math>p,</math> but for <math>p=1/2</math> the two-point distributions including the Bernoulli distribution have a lower ] than any other probability distribution, namely −2. | ||
The Bernoulli distributions for <math>0 \le p \le 1</math> form an ]. | The Bernoulli distributions for <math>0 \le p \le 1</math> form an ]. | ||
Line 75: | Line 73: | ||
== Mean == | == Mean == | ||
The ] of a Bernoulli random variable <math>X</math> is |
The ] of a Bernoulli random variable <math>X</math> is | ||
:<math>\operatorname{E}\left(X\right)=p</math> | :<math>\operatorname{E}\left(X\right)=p</math> | ||
This is due to the fact that for a Bernoulli distributed random variable <math>X</math> with <math>\Pr(X=1)=p</math> and <math>\Pr(X=0)=q</math> |
This is due to the fact that for a Bernoulli distributed random variable <math>X</math> with <math>\Pr(X=1)=p</math> and <math>\Pr(X=0)=q</math> we find | ||
:<math>\operatorname{E} = \Pr(X=1)\cdot 1 + \Pr(X=0)\cdot 0 | :<math>\operatorname{E} = \Pr(X=1)\cdot 1 + \Pr(X=0)\cdot 0 | ||
Line 85: | Line 83: | ||
== Variance == | == Variance == | ||
The ] of a Bernoulli distributed <math>X</math> is |
The ] of a Bernoulli distributed <math>X</math> is | ||
:<math>\operatorname{Var} = pq = p(1-p)</math> | :<math>\operatorname{Var} = pq = p(1-p)</math> | ||
Line 93: | Line 91: | ||
:<math>\operatorname{E} = \Pr(X=1)\cdot 1^2 + \Pr(X=0)\cdot 0^2 = p \cdot 1^2 + q\cdot 0^2 = p</math> | :<math>\operatorname{E} = \Pr(X=1)\cdot 1^2 + \Pr(X=0)\cdot 0^2 = p \cdot 1^2 + q\cdot 0^2 = p</math> | ||
From this |
From this follows | ||
:<math>\operatorname{Var} = \operatorname{E}-\operatorname{E}^2 = p-p^2 = p(1-p) = pq</math><ref name=":0" /> | :<math>\operatorname{Var} = \operatorname{E}-\operatorname{E}^2 = p-p^2 = p(1-p) = pq</math><ref name=":0" /> | ||
== Skewness == | == Skewness == | ||
The ] is <math>\frac{q-p}{\sqrt{pq}}=\frac{1-2p}{\sqrt{pq}}</math>. |
The ] is <math>\frac{q-p}{\sqrt{pq}}=\frac{1-2p}{\sqrt{pq}}</math>. When we take the standardized Bernoulli distributed random variable <math>\frac{X-\operatorname{E}}{\sqrt{\operatorname{Var}}}</math> we find that this random variable attains <math>\frac{q}{\sqrt{pq}}</math> with probability <math>p</math> and attains <math>-\frac{p}{\sqrt{pq}}</math> with probability <math>q</math>. Thus we get | ||
:<math>\begin{align} | :<math>\begin{align} | ||
Line 139: | Line 137: | ||
==Related distributions== | ==Related distributions== | ||
*If <math>X_1,\dots,X_n</math> are independent, identically distributed (]) random variables, all ] with success probability ''p'', then their ] according to a ] with parameters ''n'' and ''p'': |
*If <math>X_1,\dots,X_n</math> are independent, identically distributed (]) random variables, all ] with success probability ''p'', then their ] according to a ] with parameters ''n'' and ''p'': | ||
*:<math>\sum_{k=1}^n X_k \sim \operatorname{B}(n,p)</math> (]).<ref name=":0" /> | *:<math>\sum_{k=1}^n X_k \sim \operatorname{B}(n,p)</math> (]).<ref name=":0" /> | ||
Line 154: | Line 152: | ||
*] | *] | ||
*] | *] | ||
*] | |||
==References== | ==References== | ||
Line 166: | Line 163: | ||
{{Commons category|Bernoulli distribution}} | {{Commons category|Bernoulli distribution}} | ||
*{{springer|title=Binomial distribution|id=p/b016420}} | *{{springer|title=Binomial distribution|id=p/b016420}} | ||
*{{MathWorld|title=Bernoulli Distribution|urlname=BernoulliDistribution}} | |||
* Interactive graphic: | * Interactive graphic: | ||
Revision as of 15:34, 21 September 2020
probability distribution modeling a coin toss which need not be fair
Parameters |
| ||
---|---|---|---|
Support | |||
PMF | |||
CDF | |||
Mean | |||
Median | |||
Mode | |||
Variance | |||
Skewness | |||
Excess kurtosis | |||
Entropy | |||
MGF | |||
CF | |||
PGF | |||
Fisher information |
In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability and the value 0 with probability . Less formally, it can be thought of as a model for the set of possible outcomes of any single experiment that asks a yes–no question. Such questions lead to outcomes that are boolean-valued: a single bit whose value is success/yes/true/one with probability p and failure/no/false/zero with probability q. It can be used to represent a (possibly biased) coin toss where 1 and 0 would represent "heads" and "tails" (or vice versa), respectively, and p would be the probability of the coin landing on heads or tails, respectively. In particular, unfair coins would have
The Bernoulli distribution is a special case of the binomial distribution where a single trial is conducted (so n would be 1 for such a binomial distribution). It is also a special case of the two-point distribution, for which the possible outcomes need not be 0 and 1.
Properties
If is a random variable with this distribution, then:
The probability mass function of this distribution, over possible outcomes k, is
This can also be expressed as
or as
The Bernoulli distribution is a special case of the binomial distribution with
The kurtosis goes to infinity for high and low values of but for the two-point distributions including the Bernoulli distribution have a lower excess kurtosis than any other probability distribution, namely −2.
The Bernoulli distributions for form an exponential family.
The maximum likelihood estimator of based on a random sample is the sample mean.
Mean
The expected value of a Bernoulli random variable is
This is due to the fact that for a Bernoulli distributed random variable with and we find
Variance
The variance of a Bernoulli distributed is
We first find
From this follows
Skewness
The skewness is . When we take the standardized Bernoulli distributed random variable we find that this random variable attains with probability and attains with probability . Thus we get
Higher moments and cumulants
The central moment of order is given by
The first six central moments are
The higher central moments can be expressed more compactly in terms of and
The first six cumulants are
Related distributions
- If are independent, identically distributed (i.i.d.) random variables, all Bernoulli trials with success probability p, then their sum is distributed according to a binomial distribution with parameters n and p:
- The Bernoulli distribution is simply , also written as
- The categorical distribution is the generalization of the Bernoulli distribution for variables with any constant number of discrete values.
- The Beta distribution is the conjugate prior of the Bernoulli distribution.
- The geometric distribution models the number of independent and identical Bernoulli trials needed to get one success.
- If , then has a Rademacher distribution.
See also
- Bernoulli process, a random process consisting of a sequence of independent Bernoulli trials
- Bernoulli sampling
- Binary entropy function
- Binary decision diagram
References
- James Victor Uspensky: Introduction to Mathematical Probability, McGraw-Hill, New York 1937, page 45
- ^ Bertsekas, Dimitri P. (2002). Introduction to Probability. Tsitsiklis, John N., Τσιτσικλής, Γιάννης Ν. Belmont, Mass.: Athena Scientific. ISBN 188652940X. OCLC 51441829.
- McCullagh, Peter; Nelder, John (1989). Generalized Linear Models, Second Edition. Boca Raton: Chapman and Hall/CRC. Section 4.2.2. ISBN 0-412-31760-5.
Further reading
- Johnson, N. L.; Kotz, S.; Kemp, A. (1993). Univariate Discrete Distributions (2nd ed.). Wiley. ISBN 0-471-54897-9.
- Peatman, John G. (1963). Introduction to Applied Statistics. New York: Harper & Row. pp. 162–171.
External links
- "Binomial distribution", Encyclopedia of Mathematics, EMS Press, 2001
- Weisstein, Eric W. "Bernoulli Distribution". MathWorld.
- Interactive graphic: Univariate Distribution Relationships