Discrete Random Variables
Discrete Random Variables
Probability Distribution
Binomial Distribution
Poisson Distribution
1
6/15/2010
Probability Distribution
The Probability distribution of a random variable X is a
description of the probabilities associated with the possible
values of X.
Ex. Let X equal to the number of error bits in the next 4 bits
transmitted. X={0,1,2,3,4}. Probabilities for these values are:
P(X=0)=0.6561, P(X=1)=0.2916, P(X=2)=0.0486
P(X=3)=0.0036, P(X=4)=0.0001
2
6/15/2010
3
6/15/2010
F (0) = P( X ≤ 0) = 0.886
F (1) = P ( X ≤ 1) = 0.886 + 0.111 = 0.997
F (2) = P ( X ≤ 2) = 1
4
6/15/2010
5
6/15/2010
Binomial Distribution
A trial with only two possible outcomes is called
“Bernoulli trial”.
Flipa coin (Head, Tail)
Guess the gender of baby (Male, Female)
...
6
6/15/2010
Binomial Distribution
Binomial Distribution
Example: Each sample of water has a 10% chance of
containing a particular organic pollutant.
Assume that the samples are independent with regard to the
presence of the pollutant.
Find the probability that in the next 18 samples, exactly 2
contain the pollutant.
X: the number of samples that contain the pollutant in the next
18 samples.
18
P( X = 2) = (0.1) 2 (0.9)16 = 0.284
2
7
6/15/2010
Binomial Distribution
Determine the probability that at least 4 samples contain the
pollutant. 18
18
P( X ≥ 4) = ∑ (0.1) x (0.9)18− x
x=4 x
= 1 − P ( X < 4)
3
18
= 1 − ∑ (0.1) x (0.9)18− x
x=0 x
Binomial Distribution
Ex. An automated egg carton loader has a 1% probability of
cracking an egg, and a customer will complain if more than
one egg per dozen is cracked. Assume each egg load is an
independent event.
(a) What is the distribution of cracked eggs per dozen? Include
parameter values.
(b) What is the prob. That a carton of a dozen eggs results in a
complaint?
(c) What is the mean and sd. of the number of cracked eggs in
a carton of one dozen?
8
6/15/2010
Geometric Distributions
Similar to Binomial Distribution: Bernoulli trials with
constant prob. P
No fixed number of trials. Trials are conducted until
a success is obtained.
Geometric Distributions
Example: The probability that a wafer contains a large
particle of contamination is 0.01.
If it is assumed that the wafers are independent, what is the
probability that exactly 125 wafers need to be analyzed
before a large particle is detected?
X: the number of samples analyzed until a large particle is
detected.
9
6/15/2010
10
6/15/2010
Hypergeometric Distribution
11
6/15/2010
Hypergeometric Distribution
Ex. A batch of parts contains 100 parts from a local supplier of tubing and
200 parts from outside supplier. If 4 parts are selected randomly without
replacement, what is the probability that they are all from the local
supplier?
Let X equal the number of parts in the sample from the local supplier.
Hypergeometric Distribution
Hypergeometric VS Binomial
12
6/15/2010
Poisson Distribution
Let X denote the random variable that counts the
number of flaws in a length of L mm. The average
number of flaws in L mm. is λ
L mm.
n subintervals
Poisson Distribution
The probability of a number of events occurring in a fixed
interval if these events occur with a known average rate and
independently of the intervals.
13
6/15/2010
Poisson Distribution
Example: For the case of the thin copper wire, suppose that the
number of flaws follows a Poisson distribution with a mean of
2.3 flaws per millimeter.
Determine the probability of exactly 2 flaws in 1 millimeter of
wire. −2.3 2
e 2.3
λ = 2.3, P ( X = 2) = = 0.265
2!
Determine the probability of 10 flaws in 5 mm of wire.
λ = 5 mm × 2.3 flaws/mm = 11.5 flaws,
11.510
P(X = 10 ) = e −11.5 = 0.113
10!
Poisson Distribution
Ex. Message arrive to a computer server according to a
Poisson distribution with a mean rate of 10 per hour. Determine
the length of an interval of time such that the probability that
no message arrive during this interval is 0.90.
14
6/15/2010
Homework
1. Heart failure is due to either natural occurrences (87%) or out side factor (13%). Outside factors
are related to induced substances or foreign objects. Natural occurrences are caused by arterial
blockage, disease, and infection. Suppose that 20 patients will visit an emergency room with heart
failure. Assume that causes of heart failure between individuals are independent.
(a) What is the probability that three individuals have conditions caused by outside factors?
(b) What is the probability that three or more individuals have conditions caused by outside factors?
(c) What is the mean and sd. Of the number of individuals with conditions caused by outside factors?
2. A trading company has eight computers that it uses to trade on the New York Stock Exchange
(NYSE). The probability of a computer failing in a day is 0.005 and the computer fail
independently. Computers are repaired in the evening and each day is an independent trial.
(a) What is the probability that all eight computers fail in a day?
(b) What is the mean number of a days until a specific computer fails?
(c) What is the mean number of a days until all eight computer fails in the same day?
Homework
3.The number of flaws in bolts of cloth in textile manufacturing is assumed to be Poisson distributed
with a mean of 0.1 flaw per square meter.
(a) What is the probability that there are two flaws in 1 square meter of cloth?
(b) What is the probability that there is one flaw in 10 square meters of cloth?
(c) What is the probability that there is no flaws in 20 square meters of cloth?
(d) What is the probability that there are at least 2 flaws in 10 square meters of cloth?
4. A congested computer network has a 1% chance of losing a data packet and packet losses are
independent events. An email message requires 100 packets.
(a) What is the distribution of data packets that must be resent? Include the parameter values.
(b) What is the probability that two or more packets must be sent?
(c) What is the mean and sd. of the number of packet that must be resent?
(d) If there are 10 messages and each contains 100 packets, what is the probability that at
least one message requires two or more packets be resent?
15