Académique Documents
Professionnel Documents
Culture Documents
1
Joint Probability Mass Function
• Assume that X X , Y assumes a countable set of values, i.e. both X and Y
are discrete random variables.{ X x } {Y y }
j k
• The joint probability mass function specifies the probabilities of the
product-form event
p X ,Y x j , yk P[{ X x j } {Y yk }]
2
Marginal Statistics
p [ x ] P[ X x ] P[ X x , Y anything]
X j j j
p [x , y ] X ,Y j k
k 1
• Similarly, pY [ yk ] p X ,Y [ x j , yk ]
j 1
3
Example
(x,y)
5
Joint density
• The joint probability density function (pdf) f(x,y) of X and Y is the derivative
of the joint distribution: 2
F ( x, y )
f ( x, y )
xy
• Properties: y x
F ( x, y ) f ( , )dd
•
•
f ( , )dd 1
• P[( x, y ) A] f ( , )dd
A
6
The joint pdf is not a probability
x X
• It is true that f(x,y) ≥ 0 for all x and y. However, it is not necessarily true that f(x,y)
≤ 1.
7
Marginal densities
• The marginal densities fX(x) or fY(y) can always be recovered from the joint
density f(x,y):
dFX ( x) dFX ,Y ( x, )
f ( y) Y
f ( , y )d
X ,Y
f X ( x)
dx dx Y
d x
y
f X ,Y ( , )d d Integrate along
dx this horizontal line
Integrate
d
for fY(y)
x
f X ,Y ( , )d d
along this
vertical line
dx
for fX(x)
f X ,Y ( x, )d x X
• However, it is not generally possible to determine the joint density from the
marginal densities.
8
Independence
9
Theorem
Proof:
(1) → (2) Set AX = {X ≤ x} and AY = {Y ≤ y}.
f X x dx fY y dy PX AX PY AY
A 10 A
X Y
Additional facts about independent RVs
• Discrete random variables X and Y are independent if and only if the joint
pmf is the product of the marginal pmf
p X ,Y ( x j , yk ) p X ( x j ) pY ( yk )
11
Conditional Probability Density Functions
PY y x X x h
f , d d
X ,Y
FY X y x lim lim x
h 0 Px X x h h 0 xh
f d
x
X
y y
h f x, d f x, d
X ,Y X ,Y
lim
if f X x 0
h 0 f X x h f X x
f X ,Y x, y
Differentiating with respect to y,
fY X y x
f X x
12
Graphical Interpretation
f X ,Y x, y
fY | X y | x
x
f X ,Y x, y dy X
13
Properties of the Conditional Density
f X ,Y ( x, y ) f X |Y ( x | y) fY ( y) or f X ,Y ( x, y ) fY | X ( y | x) f X ( x)
fY | X ( y | x) f X ( x)
• Bayes Theorem f X |Y ( x | y )
fY | X ( y | x) f X ( x)dx
over X
over Y
More generally,
15
2. N Random Variables
X3
X1
X2
X2
X3
X1
16
Joint Cumulative Distribution Function
FX1 , X 2 ,...,X n ( x1 , x2 ,..., xn ) P[ X 1 x1 , X 2 x2 ,....., X n xn ]
•
• To eliminate a variable:
FX1 , X 2 ,...,X n1 ( x1 , x2 ,..., xn 1 ) FX1 , X 2 ,...,X n ( x1 , x2 ,..., xn 1 , )
17
Joint Probability Density/Mass Functions
n
f X 1 , X 2 ,..., X n ( x1 , x2 ,..., xn ) FX 1 , X 2 ,..., X n ( x1 , x2 ,..., xn )
x1...xn
• Joint Probability Density Function
PA f X 1 , X 2 ,..., X n ( x1 , x2 ,..., xn )dx1dx2 dxn
A
• For any set A,
18
f X 1 X 2 X n1 x1 , x2 ,, xn 1 f X1 X 2 X n x1 , x2 , x3 ,, xn dxn
Marginal Statistics
p X 1 X 2 X n1 x1 , x2 ,, xn 1 p
xn
X1 X 2 X n x1 , x2 , x3 ,, xN
• Eliminate variables from a pdf (pmf) by integrating (summing)
f X 1 x1 f X1 X 2X n x1 , x2 , x3 ,, xn dx2 dxn
p X 1 x1 , x2 ,, xn 1 p
x2 xn
X1 X 2X n x1 , x2 , x3 ,, x N
19
Graphical Interpretation
20
Conditional densities
f X1 X 2 X 3 x1 , x2 , x3
f X1 X 2 | X 3 x1 , x2 | x3
f X 3 x3
f X1 X 2 X 3 x1 , x2 , x3
f X1| X 2 X 3 x1 | x2 , x3
f X 2 X 3 x2 , x3
Conditional probability mass functions
p X 1 X 2 X 3 x1 , x2 , x3
p X 1 X 2 | X 3 x1 , x2 | x3
p X 3 x3
p X 1 X 2 X 3 x1 , x2 , x3
p X 1| X 2 X 3 x1 | x2 , x3
p X 2 X 3 x2 , x3
21
Independence
2. FX 1 , X 2 ,..., X n ( x1 , x2 ,..., xn ) FX 1 ( x1 ) FX 2 ( x2 ) FX n ( xn )
22
Expected value of a function of random variables
Z g ( X 1 , X 2 ,..., X n )
Suppose Z is a function of n random variables X1, X2, … Xn.
E[ Z ] ...
g ( x1 , x2 ,..., xn ) f ( x1 , x2 ,..., xn )dx1dx2 ...dxn
23
Linearity of the Expectation
• For any two random variables, the mean of the sum is the sum of the
means: E[ Z ] E[ X Y ] ( x y) f ( x, y)dxdy
Let Z = X + Y
x f ( x, y )dydx y f ( x, y )dxdy
xf X ( x)dx yfY ( y )dy E[ X ] E[Y ]
E
i
ai X i
a E X
i
i i where the ai are real constants
• More generally, the order of expectation and any linear operation can
be swapped. For example,
24
Expectation of the product
E[ X ] E[Y ]
Joint moment: E[ X Y ]
j k
x j y k f ( x, y )dxdy (the jkth moment)
27