Bernoulli Distribution
Where do you meet this distribution?
- Coin toss
- 1-dim. random walk
Shape of Distribution
Basic Properties
-
A parameter is required.
-
Discrete distribution defined at
Probability
-
How to compute these on Excel.
A | B | |
---|---|---|
1 | Data | Description |
2 | 0 | Value for which you want the distribution |
3 | 0.3 | Value of parameter p |
4 | Formula | Description (Result) |
5 | =IF(A2<0,0,IF(A2<1, 1-A3, 1)) | Cumulative distribution function for the terms above |
6 | =IF(A2=0,1-A3,A3) | Probability mass function for the terms above |
Characteristics
Mean -- Where is the "center" of the distribution? (Definition)
- Mean of the distribution is given as
Standard Deviation -- How wide does the distribution spread? (Definition)
-
Variance of the distribution
Standard Deviation is a positive square root of Variance
-
How to compute this on Excel
A | B | |
---|---|---|
1 | Data | Description |
2 | 0.6 | Value of parameter p |
3 | Formula | Description (Result) |
4 | =SQRT(A2*(1-A2)) | Variance of the distribution for the terms above |
Skewness -- Which side is the distribution distorted into? (Definition)
-
How to compute this on Excel.
A | B | |
---|---|---|
1 | Data | Description |
2 | 0.6 | Value of parameter p |
3 | Formula | Description (Result) |
4 | =(1-2*A2)/(SQRT(A2*(1-A2)) | Skewness of the distribution for the terms above |
Kurtosis -- Sharp or Dull, consequently Fat Tail or Thin Tail (Definition)
-
How to compute this on Excel
A | B | |
---|---|---|
1 | Data | Description |
2 | 0.6 | Value of parameter p |
3 | Formula | Description (Result) |
4 | =(6*A2^2-6*A2+1)/(A2*(1-A2)) | Kurtosis of the distribution for the terms above |
Random Numbers
- How to generate random numbers on Excel.
A | B | |
---|---|---|
1 | Data | Description |
2 | 0.3 | Value of parameter p |
3 | Formula | Description (Result) |
4 | =IF(NTRAND(100)<A2,0,1) | 100 Bernoulli deviates based on Mersenne-Twister algorithm for which the parameters above |
Note The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range A4:A103 starting with the formula cell. Press F2, and then press CTRL+SHIFT+ENTER.
NtRand Functions
Not supported yet