Probability and Statistics in
Engineering
ENGR 371
Lecture 11
Joint Probability Distributions for Two Random Variables
Lecture 10 Title Slide
1
Lecture Outline
4.7 Exponential Distribution
5.1 Joint Probability Distributions for Two Random Variables
Lecture 11 Contents
2
Lecture Outline
4.7 Exponential Distribution
5.1 Joint Probability Distributions for Two Random Variables
Lecture 11 Contents
3
Exponential Distribution
Exponential Distribution (time between events): extended from Poisson Distribution (number
of events)
Section 4.7 Exponential Distribution
4
Exponential Distribution
Exponential Distribution: extended from Poisson Distribution
Section 4.7 Exponential Distribution
5
Exponential Distribution
Exponential Distribution: extended from Poisson Distribution
The random variable đ that equals the distance between successive events from a Poisson process
with mean number of events đ > 0 per unit interval is an exponential random variable with
parameter đ (consistent). The probability density function of đ is
đ đĨ = đđ −đđĨ for 0 ≤ đĨ < ∞ 4.14
Mean and Variance
If the random variable đ has an exponential distribution with parameter đ,
1
1
2
đ=đ¸ đ =
and đ = đ đ = 2 4.15
đ
đ
Section 4.7 Exponential Distribution
6
Example | Exponential Distribution From Poisson Process
• The number of flaws (đ) on a length of copper wire follows a Poisson distribution.
• The distances (đ) between flaws can be described by an exponential distribution.
• Let the đ denote the number of flaws in đĨ millimeters of wire, with the mean number of flaws is đ per
millimeter. Let the đ denote the distance between any two adjacent flaws.
The probability that the distance between any two adjacent defects is greater than đĨ is equivalent to
the probability of having 0 defects within đĨ, that is,
đ −đđĨ (đđĨ)0
đ đ>đĨ =đ đ=0 =
= đ −đđĨ
0!
đš đĨ = đ đ ≤ đĨ = 1 − đ −đđĨ ,
đĨ≥0
which is a cumulative distribution function of đ, therefore,
đ đĨ =
đ
đš(đĨ) = đđ −đđĨ ,
đđĨ
đĨ≥0
Section 4.7 Exponential Distribution
7
Lecture Outline
4.7 Exponential Distribution
5.1 Joint Probability Distributions for Two Random Variables
Lecture 11 Contents
8
Joint Probability Distribution for Two
Random Variables
• It is often useful to have more than one random variable defined in a random experiment.
• For example, the continuous random variable đ can denote the length of one
dimension of an injection-molded part, while đ may denote the length of another
dimension
• Variations in the process might be more likely to generate values for đ and đ in
specific regions of two-dimensional space
• The probability distribution that defines their simultaneous behavior is called a joint
probability distribution.
Sec 5.1 Joint Probability Distributions for Two Random Variables
9
Joint Probability Mass Function
Joint Probability Mass Function
The joint probability mass function of the discrete random variables đ and đ, denoted as
đđđ (đĨ, đĻ), satisfies
(1) đđđ (đĨ, đĻ) ≥ 0
(2) σđ σđ đđđ đĨ, đĻ = 1
(3) đđđ đĨ, đĻ = đ đ = đĨ, đ = đĻ
(5.1)
Sec 5.1 Joint Probability Distributions for Two Random Variables
10
Joint Probability Density Function
Joint Probability Density Function
A joint probability density function for the continuous random variables đ and đ, denoted as
đđđ đĨ, đĻ ≥ 0, satisfies the following properties:
(1) đđđĻ đĨ, đĻ ≥ 0 for all đĨ, đĻ
∞
∞
(2) âĢ×ŦâŦ−∞ âĢ×ŦâŦ−∞ đđđ đĨ, đĻ đđĨđđĻ = 1
(3) For any region đ
of two-dimensional space,
đ đ, đ ∈ đ
= āļĩ đđđ đĨ, đĻ đđĨđđĻ 5.2
đ
Sec 5.1 Joint Probability Distributions for Two Random Variables
11
Example 5.2 | Server Access Time (a)
Let the random variable đ denote the time until a computer server connects to your machine (in
milliseconds), and let đ denote the time until the server authorizes you as a valid user (in milliseconds).
đ and đ measure the wait from a common starting point (đĨ < đĻ).
The joint probability density function for đ and đ is
đđđ đĨ, đĻ = 6 × 10−6 exp −0.001đĨ − 0.002đĻ
for 0 < đĨ < đĻ
The region with nonzero probability is shaded in Figure 5.4. The property that this joint probability density
function integrates to 1 can be verified by the integral of đđđ đĨ, đĻ over this region as follows:
∞
∞
āļĩ đđđ đĨ, đĻ đđĻđđĨ = āļą
−∞
0
∞
āļą 6 × 10−6 đ −0.001đĨ−0.002đĻđđĻ đđĨ
đĨ
∞
−6
= 6 × 10 āļą
0
đ −0.002đĨ −0.001đĨ
đ
đđĨ = 1
0.002
Sec 5.1 Joint Probability Distributions for Two Random Variables
12
Example 5.2 | Server Access Time (b)
The probability that đ < 1000 and đ < 2000 is determined as the integral over the darkly shaded
region in Figure 5.5.
1000 2000
đ đ < 1000, đ < 2000 = āļą
āļą đđđ đĨ, đĻ đđĻđđĨ
0
đĨ
1000
2000
= āļą
0
āļą 6 × 10−6đ −0.001đĨ−0.002đĻđđĻ đđĨ
đĨ
1000
2000
= 6 × 10−6 āļą
0
= 0.003
Practical Interpretation: A joint probability density
function enables probabilities for two (or more) random
variables to be calculated as in these examples.
āļą đ −0.002đĻđđĻ đ −0.001đĨđđĨ
đĨ
1 − đ −3
1 − đ −3
−4
−đ
0.003
0.003
= 0.915
Sec 5.1 Joint Probability Distributions for Two Random Variables
13
Marginal Probability Distributions
(discrete)
• The individual probability distribution of a random variable is referred to as its marginal
probability distribution.
• Consider discrete random variables đ and đ. To determine đ(đ = đĨ), we sum đ(đ =
đĨ, đ = đĻ) over all points in the range of (đ, đ) for which đ = đĨ. Subscripts on the
probability mass functions distinguish between the random variables.
Sec 5.1 Joint Probability Distributions for Two Random Variables
14
Example 5.3 | Marginal Distribution
The marginal probability distribution for is found by summing the probabilities in each
column whereas the marginal probability distribution for is found by summing the
probabilities in each row.
For example:
đđ 3 = đ đ = 3
= đ đ = 3, đ = 1 + đ đ = 3, đ = 2
+đ đ = 3, đ = 3 + đ đ = 3, đ = 4
= 0.25 + 0.2 + 0.05 + 0.05 = 0.55
Sec 5.1 Joint Probability Distributions for Two Random Variables
15
Marginal Probability Density Function
Marginal Probability Density Function
If the joint probability density function of random variables đ and đ is đđđ (đĨ, đĻ), the marginal probability
density functions of đ and đ are
đđ đĨ = āļą đđđ đĨ, đĻ đđĻ
and
đđ đĻ = āļą đđđ đĨ, đĻ đđĨ 5.3
where the first integral is over all points in the range of (đ, đ) for which đ = đĨ and the second integral is over
all points in the range of (đ, đ) for which đ = đĻ.
A probability for only one random variable, đ đ < đ < đ can be found from the marginal probability
distribution of đ or from the integral of the joint probabilitydistribution of đ and đ as
đ
đ
đ đ < đ < đ = āļą đđ đĨ đđĨ = āļą
đ
đ
∞
đ
∞
āļą đđđ đĨ, đĻ đđĻ đđĨ = āļą āļą đđđ đĨ, đĻ đđĻ đđĨ
−∞
đ
−∞
Sec 5.1 Joint Probability Distributions for Two Random Variables
16
Example 5.4 | Server Access Time (a)
For the random variables that denotes times in Example 5.2, find the probability that đ exceeds 2000
milliseconds. đđđ đĨ, đĻ = 6 × 10−6 exp −0.001đĨ − 0.002đĻ for 0 < đĨ < đĻ
This probability is determined as the integral of đđđ (đĨ, đĻ) over the darkly shaded region in Figure 5.7.
The region is partitioned into two parts and different limits of integration are determined for each part.
2000
∞
āļą 6 × 10−6 đ −0.001đĨ−0.002đĻ đđĻ đđĨ
đ đ > 2000 = āļą
0
2000
∞
+ āļą
2000
∞
āļą 6 × 10−6 đ −0.001đĨ−0.002đĻđđĻ đđĨ
đĨ
Sec 5.1 Joint Probability Distributions for Two Random Variables
17
Example 5.4 | Server Access Time (b)
The first integral is
2000
6 × 10−6 āļą
0
2000
−6
−6
−2
đ −0.002đĻ ∞
6
×
10
6
×
10
1
−
đ
á
đ −0.001đĨđđĨ =
đ −4 × āļą
đ −0.001đĨđđĨ =
đ −4
−0.002 2000
0.002
0.002
0.001
0
= 0.0475
The second integral is
∞
6 × 10−6 āļą
2000
∞
đ −0.002đĻ ∞ −0.001đĨ
6 × 10−6
6 × 10−6 đ −6
−0.003đĨ
á đ
đđĨ =
×āļą đ
đđĨ =
= 0.0025
−0.002 đĨ
0.002
0.002
0.003
2000
Therefore,
đ đ > 2000 = 0.0475 + 0.0025 = 0.05
Sec 5.1 Joint Probability Distributions for Two Random Variables
18
Example 5.4 | Server Access Time (c)
Alternatively, the probability can be calculated from the marginal probability distribution of đ as follows.
For đĻ > 0,
đĻ
đđ đĻ = āļą đđđ đĨ, đĻ đđĨ = āļą 6 × 10−6 đ −0.001đĨ−0.002đĻđđĨ
0
= 6 × 10−6đ −0.002đĻ
đ −0.001đĨ đĻ
á = 6 × 10−3đ −0.002đĻ 1 − đ −0.001đĻ
−0.001 0
for đĻ > 0
We have obtained the marginal probability density function of đ. Now,
∞
đ đ > 2000 = āļą
2000
∞
đđ đĻ đđĻ = āļą
= 6 × 10−3
6 × 10−3đ −0.002đĻ 1 − đ −0.001đĻ đđĻ
2000
đ −0.002đĻ ∞
đ −0.003đĻ ∞
á
−
á
−0.002 2000
−0.003 2000
= 0.05
Sec 5.1 Joint Probability Distributions for Two Random Variables
19
Mean and Variance from a Joint Distribution
đ¸(đ) and đ(đ) can be determined from the marginal probability distribution of đ or from the
joint probability distribution of đ and đ.
Mean and Variance from a Joint Distribution
∞
∞
∞
đ¸ đ = āļą đĨđđ đĨ đđĨ = āļą āļą đĨđđđ đĨ, đĻ đđĻ đđĨ
−∞
−∞ −∞
and
∞
đ đ =āļą
∞
∞
đĨ − đđ 2 đđ đĨ đđĨ = āļą āļą
−∞
đĨ − đđ 2 đđđ đĨ, đĻ đđĻ đđĨ 5.4
−∞ −∞
Sec 5.1 Joint Probability Distributions for Two Random Variables
20
Mean and Variance from a Joint Distribution
In Figure 5.6, the marginal probability distributions of đ and đ are used to obtain the means as
đ¸ đ = 1(0.2) + 2(0.25) + 3(0.55) = 2.35
đ¸(đ) = 1(0.28) + 2(0.25) + 3(0.17) + 4(0.3) = 2.49
Sec 5.1 Joint Probability Distributions for Two Random Variables
21
Thank you!
22