fbpx
Wikipedia

Bernoulli distribution

In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli,[1] 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", respectively, and p would be the probability of the coin landing on heads (or vice versa where 1 would represent tails and p would be the probability of tails). In particular, unfair coins would have

Bernoulli distribution
Probability mass function

Three examples of Bernoulli distribution:

   and
   and
   and
Parameters


Support
PMF
CDF
Mean
Median
Mode
Variance
MAD
Skewness
Ex. kurtosis
Entropy
MGF
CF
PGF
Fisher information

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. [2]

Properties edit

If   is a random variable with a Bernoulli distribution, then:

 

The probability mass function   of this distribution, over possible outcomes k, is

 [3]

This can also be expressed as

 

or as

 

The Bernoulli distribution is a special case of the binomial distribution with  [4]

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.

 
The probability mass distribution function of a Bernoulli experiment along with its corresponding cumulative distribution function.

Mean edit

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

 [3]

Variance edit

The variance of a Bernoulli distributed   is

 

We first find

 

From this follows

 [3]

With this result it is easy to prove that, for any Bernoulli distribution, its variance will have a value inside  .

Skewness edit

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 edit

The raw moments are all equal due to the fact that   and  .

 

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 edit

The Bernoulli distribution is simply  , also written as  

See also edit

References edit

  1. ^ Uspensky, James Victor (1937). Introduction to Mathematical Probability. New York: McGraw-Hill. p. 45. OCLC 996937.
  2. ^ Dekking, Frederik; Kraaikamp, Cornelis; Lopuhaä, Hendrik; Meester, Ludolf (9 October 2010). A Modern Introduction to Probability and Statistics (1 ed.). Springer London. pp. 43–48. ISBN 9781849969529.
  3. ^ a b c d Bertsekas, Dimitri P. (2002). Introduction to Probability. Tsitsiklis, John N., Τσιτσικλής, Γιάννης Ν. Belmont, Mass.: Athena Scientific. ISBN 188652940X. OCLC 51441829.
  4. ^ 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.
  5. ^ Orloff, Jeremy; Bloom, Jonathan. "Conjugate priors: Beta and normal" (PDF). math.mit.edu. Retrieved October 20, 2023.

Further reading edit

  • 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 edit

bernoulli, distribution, probability, theory, statistics, named, after, swiss, mathematician, jacob, bernoulli, discrete, probability, distribution, random, variable, which, takes, value, with, probability, displaystyle, value, with, probability, displaystyle,. In probability theory and statistics the Bernoulli distribution named after Swiss mathematician Jacob Bernoulli 1 is the discrete probability distribution of a random variable which takes the value 1 with probability p displaystyle p and the value 0 with probability q 1 p displaystyle q 1 p 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 respectively and p would be the probability of the coin landing on heads or vice versa where 1 would represent tails and p would be the probability of tails In particular unfair coins would have p 1 2 displaystyle p neq 1 2 Bernoulli distributionProbability mass function Three examples of Bernoulli distribution P x 0 0 2 displaystyle P x 0 0 2 and P x 1 0 8 displaystyle P x 1 0 8 P x 0 0 8 displaystyle P x 0 0 8 and P x 1 0 2 displaystyle P x 1 0 2 P x 0 0 5 displaystyle P x 0 0 5 and P x 1 0 5 displaystyle P x 1 0 5 Parameters0 p 1 displaystyle 0 leq p leq 1 q 1 p displaystyle q 1 p Supportk 0 1 displaystyle k in 0 1 PMF q 1 p if k 0 p if k 1 displaystyle begin cases q 1 p amp text if k 0 p amp text if k 1 end cases CDF 0 if k lt 0 1 p if 0 k lt 1 1 if k 1 displaystyle begin cases 0 amp text if k lt 0 1 p amp text if 0 leq k lt 1 1 amp text if k geq 1 end cases Meanp displaystyle p Median 0 if p lt 1 2 0 1 if p 1 2 1 if p gt 1 2 displaystyle begin cases 0 amp text if p lt 1 2 left 0 1 right amp text if p 1 2 1 amp text if p gt 1 2 end cases Mode 0 if p lt 1 2 0 1 if p 1 2 1 if p gt 1 2 displaystyle begin cases 0 amp text if p lt 1 2 0 1 amp text if p 1 2 1 amp text if p gt 1 2 end cases Variancep 1 p p q displaystyle p 1 p pq MAD1 2 displaystyle frac 1 2 Skewnessq p p q displaystyle frac q p sqrt pq Ex kurtosis1 6 p q p q displaystyle frac 1 6pq pq Entropy q ln q p ln p displaystyle q ln q p ln p MGFq p e t displaystyle q pe t CFq p e i t displaystyle q pe it PGFq p z displaystyle q pz Fisher information1 p q displaystyle frac 1 pq 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 2 Contents 1 Properties 2 Mean 3 Variance 4 Skewness 5 Higher moments and cumulants 6 Related distributions 7 See also 8 References 9 Further reading 10 External linksProperties editIf X displaystyle X nbsp is a random variable with a Bernoulli distribution then Pr X 1 p 1 Pr X 0 1 q displaystyle Pr X 1 p 1 Pr X 0 1 q nbsp The probability mass function f displaystyle f nbsp of this distribution over possible outcomes k is f k p p if k 1 q 1 p if k 0 displaystyle f k p begin cases p amp text if k 1 q 1 p amp text if k 0 end cases nbsp 3 This can also be expressed as f k p p k 1 p 1 k for k 0 1 displaystyle f k p p k 1 p 1 k quad text for k in 0 1 nbsp or as f k p p k 1 p 1 k for k 0 1 displaystyle f k p pk 1 p 1 k quad text for k in 0 1 nbsp The Bernoulli distribution is a special case of the binomial distribution with n 1 displaystyle n 1 nbsp 4 The kurtosis goes to infinity for high and low values of p displaystyle p nbsp but for p 1 2 displaystyle p 1 2 nbsp the two point distributions including the Bernoulli distribution have a lower excess kurtosis than any other probability distribution namely 2 The Bernoulli distributions for 0 p 1 displaystyle 0 leq p leq 1 nbsp form an exponential family The maximum likelihood estimator of p displaystyle p nbsp based on a random sample is the sample mean nbsp The probability mass distribution function of a Bernoulli experiment along with its corresponding cumulative distribution function Mean editThe expected value of a Bernoulli random variable X displaystyle X nbsp is E X p displaystyle operatorname E X p nbsp This is due to the fact that for a Bernoulli distributed random variable X displaystyle X nbsp with Pr X 1 p displaystyle Pr X 1 p nbsp and Pr X 0 q displaystyle Pr X 0 q nbsp we find E X Pr X 1 1 Pr X 0 0 p 1 q 0 p displaystyle operatorname E X Pr X 1 cdot 1 Pr X 0 cdot 0 p cdot 1 q cdot 0 p nbsp 3 Variance editThe variance of a Bernoulli distributed X displaystyle X nbsp is Var X p q p 1 p displaystyle operatorname Var X pq p 1 p nbsp We first find E X 2 Pr X 1 1 2 Pr X 0 0 2 p 1 2 q 0 2 p E X displaystyle operatorname E X 2 Pr X 1 cdot 1 2 Pr X 0 cdot 0 2 p cdot 1 2 q cdot 0 2 p operatorname E X nbsp From this follows Var X E X 2 E X 2 E X E X 2 p p 2 p 1 p p q displaystyle operatorname Var X operatorname E X 2 operatorname E X 2 operatorname E X operatorname E X 2 p p 2 p 1 p pq nbsp 3 With this result it is easy to prove that for any Bernoulli distribution its variance will have a value inside 0 1 4 displaystyle 0 1 4 nbsp Skewness editThe skewness is q p p q 1 2 p p q displaystyle frac q p sqrt pq frac 1 2p sqrt pq nbsp When we take the standardized Bernoulli distributed random variable X E X Var X displaystyle frac X operatorname E X sqrt operatorname Var X nbsp we find that this random variable attains q p q displaystyle frac q sqrt pq nbsp with probability p displaystyle p nbsp and attains p p q displaystyle frac p sqrt pq nbsp with probability q displaystyle q nbsp Thus we get g 1 E X E X Var X 3 p q p q 3 q p p q 3 1 p q 3 p q 3 q p 3 p q p q 3 q p q p p q displaystyle begin aligned gamma 1 amp operatorname E left left frac X operatorname E X sqrt operatorname Var X right 3 right amp p cdot left frac q sqrt pq right 3 q cdot left frac p sqrt pq right 3 amp frac 1 sqrt pq 3 left pq 3 qp 3 right amp frac pq sqrt pq 3 q p amp frac q p sqrt pq end aligned nbsp Higher moments and cumulants editThe raw moments are all equal due to the fact that 1 k 1 displaystyle 1 k 1 nbsp and 0 k 0 displaystyle 0 k 0 nbsp E X k Pr X 1 1 k Pr X 0 0 k p 1 q 0 p E X displaystyle operatorname E X k Pr X 1 cdot 1 k Pr X 0 cdot 0 k p cdot 1 q cdot 0 p operatorname E X nbsp The central moment of order k displaystyle k nbsp is given by m k 1 p p k p 1 p k displaystyle mu k 1 p p k p 1 p k nbsp The first six central moments are m 1 0 m 2 p 1 p m 3 p 1 p 1 2 p m 4 p 1 p 1 3 p 1 p m 5 p 1 p 1 2 p 1 2 p 1 p m 6 p 1 p 1 5 p 1 p 1 p 1 p displaystyle begin aligned mu 1 amp 0 mu 2 amp p 1 p mu 3 amp p 1 p 1 2p mu 4 amp p 1 p 1 3p 1 p mu 5 amp p 1 p 1 2p 1 2p 1 p mu 6 amp p 1 p 1 5p 1 p 1 p 1 p end aligned nbsp The higher central moments can be expressed more compactly in terms of m 2 displaystyle mu 2 nbsp and m 3 displaystyle mu 3 nbsp m 4 m 2 1 3 m 2 m 5 m 3 1 2 m 2 m 6 m 2 1 5 m 2 1 m 2 displaystyle begin aligned mu 4 amp mu 2 1 3 mu 2 mu 5 amp mu 3 1 2 mu 2 mu 6 amp mu 2 1 5 mu 2 1 mu 2 end aligned nbsp The first six cumulants are k 1 p k 2 m 2 k 3 m 3 k 4 m 2 1 6 m 2 k 5 m 3 1 12 m 2 k 6 m 2 1 30 m 2 1 4 m 2 displaystyle begin aligned kappa 1 amp p kappa 2 amp mu 2 kappa 3 amp mu 3 kappa 4 amp mu 2 1 6 mu 2 kappa 5 amp mu 3 1 12 mu 2 kappa 6 amp mu 2 1 30 mu 2 1 4 mu 2 end aligned nbsp Related distributions editIf X 1 X n displaystyle X 1 dots X n nbsp 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 k 1 n X k B n p displaystyle sum k 1 n X k sim operatorname B n p nbsp binomial distribution 3 The Bernoulli distribution is simply B 1 p displaystyle operatorname B 1 p nbsp also written as B e r n o u l l i p textstyle mathrm Bernoulli p nbsp 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 5 The geometric distribution models the number of independent and identical Bernoulli trials needed to get one success If Y B e r n o u l l i 1 2 textstyle Y sim mathrm Bernoulli left frac 1 2 right nbsp then 2 Y 1 textstyle 2Y 1 nbsp has a Rademacher distribution See also editBernoulli process a random process consisting of a sequence of independent Bernoulli trials Bernoulli sampling Binary entropy function Binary decision diagramReferences edit Uspensky James Victor 1937 Introduction to Mathematical Probability New York McGraw Hill p 45 OCLC 996937 Dekking Frederik Kraaikamp Cornelis Lopuhaa Hendrik Meester Ludolf 9 October 2010 A Modern Introduction to Probability and Statistics 1 ed Springer London pp 43 48 ISBN 9781849969529 a b c d Bertsekas Dimitri P 2002 Introduction to Probability Tsitsiklis John N Tsitsiklhs Giannhs 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 Orloff Jeremy Bloom Jonathan Conjugate priors Beta and normal PDF math mit edu Retrieved October 20 2023 Further reading editJohnson 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 amp Row pp 162 171 External links edit nbsp Wikimedia Commons has media related to Bernoulli distribution Binomial distribution Encyclopedia of Mathematics EMS Press 2001 1994 Weisstein Eric W Bernoulli Distribution MathWorld Interactive graphic Univariate Distribution Relationships Retrieved from https en wikipedia org w index php title Bernoulli distribution amp oldid 1185386653, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.