Statistics/Distributions/Bernoulli
|
|
A Wikibookian suggests that R_Programming/Probability_Functions/Bernoulli be merged into this book or chapter. Discuss whether or not this merger should happen on the discussion page. |
Contents |
[edit] Bernoulli Distribution: The coin toss
There is no more basic random event than the flipping of a coin. Heads or tails. It's as simple as you can get! The "Bernoulli Trial" refers to a single event which can have one of two possible outcomes with a fixed probability of each occurring. You can describe these events as "yes or no" questions. For example:
- Will the coin land heads?
- Will the newborn child be a girl?
- Are a random person's eyes green?
- Will a mosquito die after the area was sprayed with insecticide?
- Will a potential customer decide to buy my product?
- Will a citizen vote for a specific candidate?
- Is an employee going to vote pro-union?
- Will this person be abducted by aliens in their lifetime?
The Bernoulli Distribution has one controlling parameter: the probability of success. A "fair coin" or an experiment where success and failure are equally likely will have a probability of 0.5 (50%). Typically the variable p is used to represent this parameter.
If a random variable X is distributed with a Bernoulli Distribution with a parameter p we write its probability mass function as:
Where the event X=1 represents the "yes."
This distribution may seem trivial, but it is still a very important building block in probability. The Binomial distribution extends the Bernoulli distribution to encompass multiple "yes" or "no" cases with a fixed probability. Take a close look at the examples cited above. Some similar questions will be presented in the next section which might give an understanding of how these distributions are related.
[edit] Mean
The mean (E[X]) can be derived:
This page may need to be 
![\operatorname{E}[X] = \sum_i f(x_i) \cdot x_i](http://upload.wikimedia.org/wikibooks/en/math/9/e/7/9e748b7762c9b4151f64ce19a0c713b4.png)
![\operatorname{E}[X] = p \cdot 1 + (1-p) \cdot 0](http://upload.wikimedia.org/wikibooks/en/math/5/4/1/541d886794586dc3a1626700ca382535.png)
![\operatorname{E}[X]= p \,](http://upload.wikimedia.org/wikibooks/en/math/5/2/1/521d4d6d99379660aa67a8be596c33e1.png)
![\operatorname{Var}(X) = \operatorname{E}[(X-\operatorname{E}[X])^2] = \sum_i f(x_i) \cdot (x_i - \operatorname{E}[X])^2](http://upload.wikimedia.org/wikibooks/en/math/a/8/1/a81d3af92ad732a83d1254ba620aa3bb.png)

 \,](http://upload.wikimedia.org/wikibooks/en/math/1/5/c/15cba5a2d0083c65401be96ea63a6e0a.png)
