CO1.6 Joint Probability Distribution
CO1.6 Joint Probability Distribution
DISTRIBUTION
MATH142
Engineering Data Analysis
Outcomes
Compute the probability distribution of a random variable for both discrete and continuous data.
(2) σ𝑥 σ𝑦 𝑓𝑋𝑌 𝑥, 𝑦 = 1
(3) fXY(x, y) = P(X = x, Y = y) 5-1/156 Mobile Response Time The response time
is the speed of page downloads and it is critical for a
(5-1) mobile Web site. As the response time increases,
customers become more frustrated and potentially
Sometimes referred to as the bivariate
abandon the site for a competitive one. Let X denote
probability distribution or bivariate the number of bars of service, and let Y denote the
distribution of the random variables X and Y. response time (to the nearest second) for a particular
P(X = x and Y = y) is usually written as user and site
P(X = x, Y = y).
The individual probability distribution of a random
variable
By specifying the probability of each of the points in The marginal probability distribution for X is found by
Fig. 5-1, we specify the joint probability distribution summing the probabilities in each column, whereas
of X and Y. Similarly to an individual random
variable, we define the range of the random the marginal probability distribution for Y is found by
variables (X, Y) to be the set of points (x, y) in two- summing the probabilities in each row. The results
dimensional space for which the probability that X = are shown in Fig. 5-6.
x and Y = y is positive.
x=1 x=2 x=3 fy
2
𝑓 𝑥, 𝑦 = ቐ3 𝑥 + 2𝑦 , 0 ≤ 𝑥 ≤ 1, 0 ≤ 𝑦 ≤ 1,
0, elsewhere.
and evaluate
P(¼ < X < ½|Y = ⅓).
Conditional Probability Density Function
3.53/106 Given the joint density function
6−𝑥−𝑦
𝑓𝑋𝑌 𝑥, 𝑦 = ቐ , 0 < 𝑥 < 2, 2 < 𝑦 < 4,
8
0, elsewhere,
𝑓𝑌 𝑦 = න 2 × 10−6 𝑒 −0.001𝑥−0.002𝑦 𝑑𝑥
0
= 0.002e−0.002y for y > 0
Independence
• 3.21/102 Show that the random variables of
Example 3.14 are not statistically
independent.
• Table 3.1: Joint Probability Distribution for
Example 3.14
x Row Totals
f(x, y) 0 1 2
0 3/28 9/28 3/28 15/28
y 1 3/14 3/14 0 3/7
2 1/28 0 0 1/28
Column Totals 5/14 15/28 3/28 1
Examples
• 5-1/170 Show that the following function satisfies the
properties of a joint probability mass function.
x y fXY(x, y)
Determine the following:
1 1 1/4
(a) P(X < 2.5, Y < 3)
1.5 2 1/8
(b) P(X < 2.5)
1.5 3 1/4
(c) P(Y < 3)
2.5 4 1/4
(d) P(X > 1.8, Y > 4.7)
3 5 1/8
(e) E(X) E(Y) V(X) V(Y)
(f) Marginal probability distribution of the random variable X
(g) Conditional probability distribution of Y given that X = 2.5
(h) Conditional probability distribution of X given that Y = 2.
(i) E(Y|X = 1.5)
(j) Are X and Y independent?
Examples
• 5-2/170 Determine the value of c that makes the • 5-6/171 A small-business Web site contains 100
function f(x, y) = c(x + y) a joint probability mass pages and 60%, 30%, and 10% of the pages
function over the nine points with x = 1, 2, 3 and y contain low, moderate, high graphic content,
= 1, 2, 3. Determine the following: respectively. A sample of four pages is selected
• (a) P(X = 1, Y < 4) (b) P(X = 1) without replacement, and X and Y denote the
• (c) P(Y = 2) (d) P(X < 2, Y < 2) number of pages with moderate and high graphics
output in the sample. Determine:
• (e) E(X), E(Y), V(X), and V(Y)
• (a) fXY(x, y)
• (f) Marginal probability distribution of the random
variable X • (b) fX(x)
• (g) Conditional probability distribution of Y given • (c) E(X)
that X = 1
• (d) fY|3(y)
• (h) Conditional probability distribution of X given
that Y = 2 • (e) E(Y|X = 3)
• (i) E(Y|X = 1) • (f) V(Y|X = 3)
• (j) Are X and Y independent? • (g) Are X and Y independent?
Expected Value of a Function of Two Random Variables
• 𝐸 ℎ 𝑋, 𝑌 =
σ σ ℎ 𝑥, 𝑦 𝑓𝑋𝑌 𝑥, 𝑦 𝑋, 𝑌 discrete
൝
ℎ 𝑥, 𝑦 𝑓𝑋𝑌 𝑥, 𝑦 𝑑𝑥 𝑑𝑦 𝑋, 𝑌 continuous
(5-13)
5-19/174 Expected Value of a Function of
Two Random Variables For the joint
probability distribution of the two random
variables in Example 5-1, calculate E[(X −
μX)(Y − μY)].
Covariance
A measure of linear relationship between the
random variables
If the relationship between the random
variables is nonlinear, the covariance might
not be sensitive to the relationship, as
illustrated in Fig. 5-12(d). The only points with
nonzero probability are the points on the circle.
2
𝑓 𝑥, 𝑦 = ቐ3 𝑥 + 2𝑦 , 0 ≤ 𝑥 ≤ 1, 0 ≤ 𝑦 ≤ 1,
0, elsewhere
Covariance
• 5-21/176 Covariance For the discrete random
variables X and Y with the joint distribution
shown in Fig. 5-13, determine σXY and ρXY.
Correlation
• The correlation between random variables X and Y,
denoted as ρXY, is
cov 𝑋, 𝑌 σ𝑋𝑌
𝜌𝑋𝑌 = =
𝑉 𝑋 𝑉 𝑌 𝜎𝑋 𝜎𝑌
(5-15)
For any two random variables X and Y
−1 ≤ ρXY ≤ +1
(5-16)
x 1 1 2 4
y 3 4 5 6
fXY(x, y) 1/8 1/4 1/2 1/8
Examples
• 5-35/178 Determine the value for c and the
covariance and correlation for the joint
probability mass function fXY(x, y) = c(x + y)
for x = 1, 2, 3 and y = 1, 2, 3.