Discrete Random Variables Completed
Discrete Random Variables Completed
Discrete Random
Variables
● Every experiment outcome a value for RV. RV values form a sample space.
● The probability that an RV, takes a value is denoted
Formally,
Distribution of a Random Variable
The sum of two fair dice rolls, .
No. of heads in 5 fair coin tosses, .
● Distribution of :
.
and so on.
and so on.
● Distribution of : for
● . Also, .
In general,
Expected Value of a Random Variable
● The average value of an RV if the experiment is repeated infinite times.
Expected value or mean value,
● Alternately, [Proof]
The outcome of a fair dice roll, .
No. of heads in 3 fair coin tosses, . .
The sum of two fair dice rolls, .
Alternately,
Useful Property of Expectation
● .
The outcome of a fair dice roll, . .
The sum of two fair dice rolls, .
Previous example:
[Proof]
Note that
Variance of an RV
● A measure of how much an RV deviates from it’s expected value.
If , then
The outcome of a fair dice roll, . .
.
● [Proof]
Previous example: . .
.
Bernoulli and Binomial RVs
● A coin is tossed. Let .
Bernoulli RV, . ~ly,
.
● A coin is tossed times. Let .
is the No. of heads obtained, Binomial RV, .
● [Proof]
Let be the Bernoulli RV for coin toss . .
● An urn contains 5 red balls, 6 white balls and 7 black balls. If 6 balls are drawn at
random from the urn with replacement, what is the probability of getting 2 balls of
each color?
● 5 cards are randomly chosen with replacement from a deck of 52 cards. What is the
probability of obtaining exactly 3 kings?
Geometric RV
● An RV can take (countably) infinite number of values.
● Toss a coin repeatedly until a head is obtained [].
No. of tosses, Geometric RV.
● . , infinite!
● .
● [Proof]
● An urn contains white and black balls. A ball is selected repeatedly (with
replacement) until a black ball is obtained. ?
Poisson RV
● Poisson RV: If is a Poisson RV with parameter , then
(a) (b) . The probability distribution is valid.
● There are about 25 errors Rosen’s 1000-pages book. What is the probability that a
randomly chosen page contains multiple errors?
● If on average events occur per unit of time, then probability of events happening
in time,
● Earthquakes occur in Alaska at the rate of 2 times per week. What is the probability
of 3 earthquakes occurring in the next 2 weeks?