DAily_LEC._sep_18_notes
DAily_LEC._sep_18_notes
Random Variables
Notes
Random Variables
Consider an experiment of tossing 3 fair coins and counting the number of heads.
Certainly, the same model suits the number of girls in a family with 3 children,
the number of 1’s in a random binary string of 3 characters, etc.
For every outcome ω, the variable X takes one and only one value x. This makes events
{X = x} disjoint and exhaustive
X X
P (x) = P {X = x} = 1
x x
When A is an interval, its probability can be computed directly from the cdf F(x),
P {a < X ≤ b} = F (b) − F (a)
The following code simulate 3 coin tosses 10,000 times and produce a histogram of the obtained
values of X
A program consists of two modules. The number of errors X1 in the first module has the
pmf P1 (x), and the number of errors X2 in the second module has the pmf P2 (x),
independently of X1 , where
Find the pmf and cdf of Y = X1 + X2 , the total number of errors
A computer virus is trying to corrupt two files. The first file will be
corrupted with probability 0.4. Independently of it, the second file will be
corrupted with probability 0.3.
a Compute the probability mass function (pmf) of X, the number of
corrupted files.
b Draw a graph of its cumulative distribution function (cdf).
Suppose that P(0) = 0.75 and P(1) = 0.25. Then, in a long run, X is
equal 1 only 1/4 of times, otherwise it equals 0. Suppose we earn $1
every time we see X = 1. On the average, we earn $1 every four
times, or $0.25 per each observation
Consider a variable that takes values 0 and 1 with probabilities P(0)
= P(1) = 0.5.
Consider two users.One receives either 48 or 52 e-mail messages per
day, with a 50-50% chance of each. The other receives either 0 or 100
e-mails, also with a 50-50% chance. Calculate E(x) for both users.
Question: What is the probability of making exactly four sales to 10 customers entering the
store.
we have a binomial experiment with n = 10, x = 4, and p =.30
Shahid Ashraf DS5003 27 / 31
Five percent of all DVD players manufactured by a large electronics company are
defective. Three DVD players are randomly selected from the production line of this
company. What is the probability that exactly one of these three DVD players is defective
At the Express House Delivery Service, providing high-quality service to customers is the
top priority of the management. The company guarantees a refund of all charges if a
package it is delivering does not arrive at its destination by the specified time. It is known
from past data that despite all efforts, 2% of the packages mailed through this company
do not arrive at their destinations within the specified time. Suppose a corporation mails
10 packages through Express House Delivery Service on a certain day.
Calculating the probability using the binomial formula.
Find the probability that exactly one of these 10 packages will not arrive at its
destination within the specified time.
Find the probability that at most one of these 10 packages will not arrive at its
destination within the specified time.
An exciting computer game is released. Sixty percent of players complete all the levels.
Thirty percent of them will then buy an advanced version of the game. Among 15 users,
what is the expected number of people who will buy the advanced version? What is the
probability that at least two people will buy it?
The number of rare events occurring within a fixed period of time has
Poisson distribution.
The following examples also qualify for the application of the Poisson
probability distribution.
The number of accidents that occur on a given highway during a
1-week period
The number of customers entering a grocery store during a 1-hour
interval
The number of television sets sold at a department store during a
given week
The following three conditions must be satisfied to apply the Poisson
probability distribution.
x is a discrete random variable.
The occurrences are random.
The occurrences are independent.
Shahid Ashraf DS5003 29 / 31
Notes