


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Let Ω be a sample space with a defined probability measure P , and let A be an event
that occurs with probability p = P ( A ). A Bernoulli random variable, denoted by
X ~ b (1, p ) , is a function defined on Ω that is 1 if ∈ A and 0 if ∉ A :
X : Ω → {0, 1} given by X ( ) =
1 if ∈ A
0 if ∉ A.
A Bernoulli random variable is often written as an indicator function (^1) A : Ω → {0, 1}
defined by (^1) A ( ) =
1 if ∈ A
0 if ∉ A.
Example. (i) Let Ω be WKU students and let F be the set of female students in Ω so
that p = P ( F ) ≈ 0.60. Write a function that designates whether or not a student is
female.
(ii) Roll two dice. Write a function that designates whether or not a sum of 7 has been
rolled.
(iii) Draw one card from a standard deck of 52. Write a function that designates
whether or not a Heart is drawn.
Solutions. (i) The function X : Ω → {0, 1} defined by X ( ) =
1 if ∈ F
0 if ∉ F
designates
whether or not a specific student is a female, and X ~ b (1, 0.60).
This function also can be written as (^1) F : Ω → {0, 1} where (^1) F ( ) =
1 if ∈ F
0 if ∉ F.
p = P ( S ) = 1/ 6. So (^1) S : Ω → {0, 1} defined by
1 if ( 1 , 2 ) ∈ S
0 if ( 1 , 2 ) ∉ S
designates whether or not the pair ( 1 , 2 ) sums to 7. Here (^1) S ~ b (1, 1 / 6).
(iii) Let Ω be the set of 52 cards and let H be the set of 13 Hearts so that
p = P ( H ) = 1 / 4. Then (^1) H : Ω → {0, 1} given by (^1) H ( ) =
1 if ∈ H
0 if ∉ H
designates
whether or not the drawn card is a Heart. Here (^1) H ~ b (1, 1 / 4).
Probability Distribution Function
The Bernoulli random variable X has a range of {0, 1}. The probability distribution
function (or pdf) of X ~ b (1, p ) is defined on the range of X as being the probability that
X equals k. Letting q = 1 − p , this pdf is then given by
P ( X = k ) =
q if k = 0
p if k = 1.
This pdf also can be written as P ( X = k ) = p
k q
1 − k for k = 0,1. Because p + q = 1 , the
sum of the probabilities over the range of X equals 1.
Expected Value, Variance, and Standard Deviation
The expected value (or mean ) of a Bernoulli distribution X ~ b (1, p ) is the average value
from all the occurrences of 0's and 1's when evaluating the function X. This value is
easily computed by = E [ X ] = p.
Theorem 1. Let X ~ b (1, p ). Then E [ X ] = p.
Proof. Using the direct definition of expected value of a discrete random variable, we
have
E [ X ] = k P ( X = k ) k ∈ Range X
For instance, if p = 0.60 , then q = 0..
So 1 occurs 60% of the time and 0 occurs 40%
of the time. The average is then
0 × 0.40 + 1 × 0.60 = 0.60 = p. 0 1
q
p
We can easily derive the variance of X as well:
Theorem 2. Let X ~ b (1, p ). Then Var ( X ) = pq.
Proof. We simply have
Var ( X ) = E [ X
2 ] − ( E [ X ])
2 = (
2 q + 1
2 p ) − p
2 = p − p
2 = p (1− p ) = pq.
So for X ~ b (1, p ), the standard deviation is given by (^) X = pq.
Note: We also have
E [ X ] = k P ( X = k ) = k
Finally, the cdf of X is defined for all real numbers x and can be written as
F : ℜ → [0,1] defined by
F ( x ) = P ( X ≤ x ) =
0 if x < 5
0.3 if 5 ≤ x < 10
0.8 if 10 ≤ x < 15
1 if x ≥ 15.
Exercises
outcomes.
(a) Define a random variable on Ω that denotes whether or not a Face card (J, Q, K)
has been drawn.
(b) Give the expected value and standard deviation of this random variable.
sophomores ( B ), 20% juniors ( C ) and the remainder seniors ( D ). Let X be the
function defined on Ω which specifies the minimum number of earned hours required
to be in each class.
(a) Write X with indicator functions.
(b) Give the pdf and cdf of X.
(c) Compute the expected value and standard deviation of X.