Joint Probability Function 111409
Joint Probability Function 111409
Joint Probability
Distributions
Joint
Probability
Distributions
CHAPTER OUTLINE
Two or More Random Variables
6.1 Joint Probability Distributions
6.2 Marginal Probability Distributions
6.3 Conditional Probability Distributions
6.4 Independence
6.5 More Than Two Random Variables
Learning Objectives
After careful study of this chapter, you
should be able to do the following:
1. Use joint probability mass functions and
joint probability density functions to
calculate probabilities.
2. Calculate marginal and conditional
probability distributions from joint
probability distributions.
Joint Probability Mass Function
Joint Probability Density Function
The joint probability density function for the continuous random
variables X and Y, denotes as fXY(x,y), satisfies the following
properties:
0.001x 0.002 y 0.002 y 0.001x
f XY x, y dydx ke dy dx k e dy e dx
00 00
e 0.002 x 0.001x
k e dx 0.003 e 0.003 x
dx
0
0.002 0
1
0.003 1
0.003
Example 6-2: Server Access Time-3
Now calculate a probability:
1000 2000
P X 1000, Y 2000 f XY x, y dydx
0 x
f X x f xy
y = Response x = Number of Bars of
time(nearest Signal Strength
y second) 1 2 3 f (y )
fY y f xy 1
2
0.01
0.02
0.02
0.03
0.25
0.20
0.28
0.25
x
3 0.02 0.10 0.05 0.17
4 0.15 0.10 0.05 0.30
f (x ) 0.20 0.25 0.55 1.00
0.001 x y
e0.002 y e 0.003 y
e 6 103
ke0.002 y 0.002 2000 0.003 2000
0.001 0
e 4 e6
0.002 y 1 e
0.001 y 3
6 10 0.05
ke 0.002 0.003
0.001
6 103 e 0.002 y 1 e 0.001 y for y 0
Mean & Variance of a Marginal Distribution
E(X) and V(X) can be obtained by first calculating the marginal
probability distribution of X and then determining E(X) and V(X) by
the usual method.
E X x fX x
R
V X x 2 f X x X2
R
E Y y fY y
R
V Y y 2 fY y Y2
R
Mean & Variance for Example 6-1
y = Response x = Number of Bars
time(nearest of Signal Strength 2
f (y ) y *f (y ) y *f (y )
second)
1 2 3
1 0.01 0.02 0.25 0.28 0.28 0.28
2 0.02 0.03 0.20 0.25 0.50 1.00
3 0.02 0.10 0.05 0.17 0.51 1.53
4 0.15 0.10 0.05 0.30 1.20 4.80
f (x ) 0.20 0.25 0.55 1.00 2.49 7.61
x *f (x ) 0.20 0.50 1.65 2.35
2
x *f (x ) 0.20 1.00 4.95 6.15
e 0.002 y
ke0.001x
0.002 x
e 0.002
ke0.001x
0.002
0.003e 0.003 x for x 0
f XY x, y ke0.001x 0.002 y
fY x y
f X ( x) 0.003e 0.003 x
0.002e0.002 x 0.002 y for 0 x and x y
Example 6-6: Conditional Probability-2
Now find the probability that Y exceeds 2000 given that X=1500:
P Y 2000 X 1500
fY 1500 y dy
2000
0.002e0.00215000.002 y
2000
e 0.002 y
0.002e3
0.002 2000
e 4
1
0.002e
3
e 0.368
0.002
Mean & Variance of Conditional Random Variables
E Y x y fY x y
y
V Y x y Y x
2
fY x y y 2 fY x y Y2 x
y y
Example 6-8: Conditional Mean And Variance
From Example 6-2 & 6-6, what is the conditional mean for
Y given that x = 1500?
E Y X 1500 y 0.002e 0.0021500 0.002 y
dy 0.002e 3
y e 0.002 y dy
1500 1500
e 0.002 y
e 0.002 y
0.002e y
3
dy
0.002 1500 1500
0.002
0.002 y
3 1500 3 e
0.002e e
0.002 0.002 0.002 1500
3 1500 3 e 3
0.002e e
0.002 0.002 0.002
3 e
3
0.002e 2000 2000
0.002
If the connect time is 1500 ms, then the expected time to be authorized is 2000 ms.
Example 6-9
For the discrete random variables in Exercise 6-1,
what is the conditional mean of Y given X=1?
y = Response x = Number of Bars
time(nearest of Signal Strength f (y )
second)
1 2 3
1 0.01 0.02 0.25 0.28
2 0.02 0.03 0.20 0.25
3 0.02 0.10 0.05 0.17
4 0.15 0.10 0.05 0.30
2
f (x ) 0.20 0.25 0.55 y*f(y|x=1) y *f(y|x=1)
1 0.050 0.080 0.455 0.05 0.05
2 0.100 0.120 0.364 0.20 0.40
3 0.100 0.400 0.091 0.30 0.90
4 0.750 0.400 0.091 3.00 12.00
Sum of f(y|x) 1.000 1.000 1.000 3.55 13.35
12.6025
0.7475
The mean number of attempts given one bar is 3.55 with variance of 0.7475.
Independent Random Variables
For random variables X and Y, if any one of the
following properties is true, the others are also true.
Then X and Y are independent.
Example 6-11: Independent Random Variables
• Suppose the Example 6-2 is modified such that the joint
PDF is:
f XY x, y 2 10 e
6 0.001 x 0.002 y
for x 0 and y 0.
f X x 2 10 e
6 0.001 x 0.002 y
dy fY y 2 106 e 0.001x 0.002 y dx
0 0
P (X2 = 0) = f x1x2 x3(3,0,0) + f x1x2 x3(0,0,3) + f x1x2 x3 (1,0,2) + f x1x2 x3(2,0,1) = 0.4
P (X2 = 1) = f x1x2 x3(2,1,0) + f x1x2 x3(0,1,2) + f x1x2 x3 (1,1,1) = 0.3
P (X2 = 2) = f x1x2 x3(1,2,0) + f x1x2 x3(0,2,1) = 0.2
P (X2 = 3) = f x1x2 x3(0,3,0) = 0.1
Answer:
Mean and Variance of an Average
General Function of a Discrete Random Variable
fY(y) = fX[u(y)]∙|J|
fY y
y 4 2 1 y 4
for 4 y 12.
8 2 32