Module 1
Module 1
Complement of an Event
• Given a set E, the complement of E is the set of
elements that are not in E. The complement is
denoted as E’.
Probability Properties
Probability functions
12 .25
1.0
Answer (b)
4 (3-4)/2=-.5
Answer (c)
c. f(x)= (x2+x+1)/25 for x=0,1,2,3
x f(x)
0 1/25
1 3/25 Doesn’t sum to 1. Thus,
2 7/25 it’s not a probability
function.
3 13/25
24/25
Probability distribution
Specifying a random variable means being able to
determine the probability
• The probability distribution of X says how the total
probability of 1 is distributed among (allocated to) the
various possible X values.
e.g., 4 Printers purchased, number of printers to be serviced
within warranty period. Possible X values are then 0, 1, 2, 3, and
4.
- how much probability is associated with the X value 0, P(X=0)=
p(0)
- how much is apportioned to the X value 1, P(X=1)= p(1)
and so on
p(x) – probability assigned to value x
Discrete Random Variable- Probability mass function (pmf)
Binomial:
The binomial r.v. represents, for example, the number of
heads in n independent coin flips
Poisson
-The Poisson r.v. often represents the number of random
events
e.g., arrivals of packets, photons, customers, etc.in some time
interval, e.g., (0,1)
Geometric
This r.v. represents, for example, the number of coin flips
until the first heads shows up (assuming independent
coin flips)
Binomial Experiments
A binomial experiment is a probability experiment that
satisfies the following conditions:
x n −x
n!
P (x ) = nC x p q = − x )! x ! p x q n − x
(n
where x=0,1,2,…n
Symbol Description
n =8 p= 4 = 1 q = 1 − 1 = 12 x = 0,1,2,3,4,5,6,7,8
52 13 13 13
Binomial Experiments
Example:
Decide whether the experiment is a binomial experiment.
If it is, specify the values of n, p, and q, and list the
possible values of the random variable x. If it is not a
binomial experiment, explain why.
• You roll a die 10 times and note the number the die lands
on.
For example:
b) µ = 6, 𝑥 = 0
60𝑒−6
𝑃 𝑥=0 = = 0.0024
0!
𝐶) µ = 6, 𝑥 = 2
𝑃 𝑥 ≥ 3 = 1 − 𝑃(𝑥 < 3)
𝑃 𝑥 ≥ 3 = 1 − *𝑃 0 + 𝑃 1 + 𝑃 2
60𝑒−6 61𝑒−6 62𝑒−6
𝑃 𝑥 ≥ 3 =1−* + +
0! 1! 2!
𝑃 𝑥 ≥ 3 = 0.9380
Poisson Distribution
Example:
The mean number of power outages in a city is 4 per year. Find the
probability that in a given year,
a) there are exactly 3 outages,
b) there are more than 3 outages
a) = 4, x = 3 b) P (more than 3)
= 1 − P (x 3)
3 -4
P (3) = 4 (2.71828)
3! = 1 − [P (3) + P (2) + P (1) + P (0)]
a.) x = 3 b.) x = 3, 4
= (0.2)(0.64) 0.230
= 0.128
Geometric Distribution
A bag contains six blue balls and four red balls. Balls are
randomly drawn from the bag, one at a time, until a red ball is
obtained. If we assume that each drawn ball is replaced before
the next one is drawn, what is the probability that the
experiment stops after exactly five balls have been drawn?
Success with Probability = 4/10=0.4
The probability that the success will occur on trial x is, here x=5
P (x) = p(q)x – 1, where q = 1 – p.
• Binomial distribution
• The number of trials is fixed, and the random
variable counts the number of successes in
those trials.
• Geometric distribution
• The number of trials is not fixed, and the
random variable counts the number of trials
required to get the first success.
Continuous Random Variable
Suppose a r.v. X can take on a continuum of values and
probability of taking specific value is 0
Examples:
- Pick a number between 0 and 1
- Measure the voltage across a heated resistor
- Measure the phase of a random sinusoid. . .
• How do we describe probabilities of interesting events?
Idea:
• For discrete r.v., we sum a pmf over points in a set to find
its probability
• For continuous r.v., integrate a probability density over a
set to find its probability—analogous to mass density in
physics (integrate mass density to get the mass)
Continuous Random Variable-Probability Density
Function
A continuous r.v. X can be specified by a probability density function 𝑓𝑋 𝑥 (pdf) such
that, for any event A,
𝑃 𝑋 ∈ 𝐴 = න 𝑓𝑋 𝑥 𝑑𝑥
𝐴
𝑃 𝑎 < 𝑋 < 𝑏 = න 𝑓𝑋 𝑥 𝑑𝑥
𝑎
pdf is used to specify the probability of the random variable falling within a particular
range of values
Properties of 𝑓𝑋 𝑥 :
1. 𝑓𝑋 𝑥 > 0
∞
2. −∞ 𝑓𝑋 𝑥 𝑑𝑥 = 1
Important note: of 𝑓𝑋 𝑥 should not be interpreted as the probability that 𝑋 = 𝑥, in
fact it is not a probability measure, e.g., it can be > 1
Notation: 𝑋~𝑓𝑋 𝑥 means that 𝑋 has pdf 𝑓𝑋 𝑥
Continuous Random Variables
Example: Metal Cylinder Production
Random variable X is the diameter of a randomly chosen
cylinder manufactured by the company. Random variable can
take any value between 49.5 and 50.5
Suppose that the diameter of a metal cylinder has a p.d.f
1.5 − 6 𝑥 − 50 2 𝑓𝑜𝑟 49.5 ≤ 𝑥 ≤ 50.5
𝑓 𝑥 =ቊ
0 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒
f (x)
i. Check whether it is a valid pdf
ii. Determine the probability that the metal
cylinder has a diameter between 49.8 and
50.1 mm
49.5 50.5
Probability Density Function
• The probability that a metal cylinder has a
diameter between 49.8 and 50.1 mm can be
calculated to be
50.1
(1.5 − 6( x − 50.0) 2 )dx = [1.5 x − 2( x − 50.0) 3 ]50.1
49.8
49.8
f (x)
= [1.5 50.1 − 2(50.1 − 50.0) 3 ]
−[1.5 49.8 − 2(49.8 − 50.0) 3 ]
= 75.148 − 74.716 = 0.432
𝑘𝑥 1 − 𝑥 , 0 ≤ 𝑥 ≤ 1
• 𝑓 𝑥 =𝑓 𝑥 =ቊ
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟
• Let X and Y are random variables defined on a sample space S, where x and y
are specific values of X and Y respectively.
• When two random variables X and Y defined on a sample space S, they are the
components of 2D Random variables.
• When N random variables X1, X2, …, XN are defined on a sample space S, then
they are the components of N-Dimensional random vector or N-dimensional
random variable.
• σ𝑥 σ𝑦 𝑝 𝑥, 𝑦 = 1
𝐸 𝑔 𝑋, 𝑌 = 𝑔 𝑥, 𝑦 𝑝(𝑥, 𝑦)
𝑥 𝑦
Joint Distribution Function Joint Density Function
•
𝑓𝑋,𝑌(𝑥,𝑦)
• 𝑓𝑋 𝑥 𝑌 = 𝑦 = 𝐹𝑋 𝑥 𝑌 = 𝑦𝑘 =
𝑓𝑌 (𝑦)
𝑃(𝑥𝑖 , 𝑦𝑘 )
σ𝑁
𝑖=1 𝑢(𝑥 − 𝑥𝑖 )
𝑓𝑋,𝑌(𝑥,𝑦) 𝑃(𝑦𝑘 )
• 𝑓𝑋 𝑥 𝑦 =
𝑓𝑌 (𝑦)
𝑓𝑋,𝑌(𝑥,𝑦)
• 𝑓𝑌 𝑦 𝑥 =
𝑓𝑋 (𝑥)
Density function after
differentiation,
𝑓𝑋 𝑥 𝑌 = 𝑦𝑘
𝑁
𝑃(𝑥𝑖 , 𝑦𝑘 )
= 𝛿(𝑥 − 𝑥𝑖 )
𝑃(𝑦𝑘 )
𝑖=1
Statistical Independence
• Two events are statistically independent if and only if,
are independent iff
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 𝑃(𝐵)
• Two random variables X and Y are said to be statistically
independent random variables, if and only if
𝑃 𝑋 ≤ 𝑥, 𝑌 ≤ 𝑦 = 𝑃 𝑋 ≤ 𝑥 𝑃{𝑌 ≤ 𝑦}
For a density function a • For distribution function
𝑓𝑋𝑌 𝑥𝑦 = 𝑓𝑋 𝑥 𝑓𝑌 𝑦 𝐹𝑋𝑌 𝑥𝑦 = 𝐹𝑋 𝑥 𝐹𝑌 𝑦
Conditional density function for • Conditional distribution
function for independent
independent X and Y events
𝐹𝑋 𝑥 𝑌 ≤ 𝑦 =𝐹𝑋 𝑥
𝑓𝑋 𝑥 𝑌 ≤ 𝑦 =𝑓𝑋 𝑥 𝐹𝑦 𝑦 𝑋 ≤ 𝑥 =𝐹𝑌 𝑦
𝑓𝑌 𝑦 𝑋 ≤ 𝑥 =𝑓𝑌 𝑦
Problems
1.1
1.2
i) Find k
ii) Find the marginal pdf of X and Y
iii)Are X and Y independent
iv)fy/x(y/x) and fX/Y(x/y)
1
0<𝑦<
v)𝑃 ൗ𝑋=1
2