Docsity

The Bernoulli Distribution - Lecture Notes | MATH 329, Study notes of Probability and Statistics

Toggle sidebar
bg1
Dr. Neal, WKU
MATH 329 The Bernoulli Distribution
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 1A( ) = 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 1F( ) = 1 if ∈F
0 if ∉F.
(ii) Let Ω = (1,2) : i∈{1,2, ..., 6}
{ }
and let S=(
1,2)∈Ω :1+2=7
{ }
. Then
p=P(S)=1/ 6. So 1S:Ω → {0, 1} defined by
1S(( 1,2)) = 1 if ( 1,2)∈S
0 if ( 1,2)∉S
designates whether or not the pair (
1,2)
sums to 7. Here 1S~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
given by 1H( ) = 1 if ∈H
0 if ∉H
designates
whether or not the drawn card is a Heart. Here 1
H~b(1, 1 / 4)
.
pf3
pf4

Partial preview of the text

Download The Bernoulli Distribution - Lecture Notes | MATH 329 and more Study notes Probability and Statistics in PDF only on Docsity!

MATH 329 The Bernoulli Distribution

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.

(ii) Let Ω = {( 1 , 2 ) : i ∈{1,2, ..., 6}} and let S = { ( 1 , 2 ) ∈Ω : 1 + 2 = 7 }. Then

p = P ( S ) = 1/ 6. So (^1) S : Ω → {0, 1} defined by

1 S (( 1 , 2 )) =

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

∑ =^0 q^ +^1 p^ =^ p.

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

∑ 5 P ( X^ =^ 5)^ +^10 P (^ X^ =^ 10)^ +^15 P (^ X^ =^ 15)

= 5 × 0.3 + 10 × 0.5 + 15 × 0.2 = 9..

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

  1. Draw a single card from a standard deck of 52. Let Ω be the sample space of

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.

  1. Let Ω be a set of WKU undergraduates which consists of 30% freshmen ( A ), 15%

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.