AMA2104 Probability and Engineering Statistics 3 Joint Distribution
AMA2104 Probability and Engineering Statistics 3 Joint Distribution
3 Joint Distribution
Dr Bob He
1
Joint Distributions, discrete case
Definition
The function f(x, y) is a joint probability mass function of the discrete
random variables X and Y if
1. J ( x, y) > 0 for a II ( x, y)
2.
X y
3
Joint Distributions, continuous case
Definition
The function f(x, y) is a joint probability density function of the
continuous random variables X and Y if
1. f ( x, y) > 0 for aII ( x, y).
2.
f ( X' y) ={ ¾ ( 2x
0,
+ 3y), 0 � X � 1, 0 � y � 1,
otherwise.
5
Double Integrals
6
Over each
of these smaller rectangles we will construct
a box whose height is given by f (xi , yj ).
Each of the rectangles has a base area of ∆A
and a height of f (xi , yj ) so the volume of each
of these boxes is f (xi , yj )∆A. The volume
under the function is then approximately,
n X
X m
V ≈ f (xi , yj ) ∆A.
i=1 j=1
7
Definition
We define the double integral of the function f (x, y ) over the
rectangle R to be the limit
ZZ ZZ n X
X m
f (x, y )dA = f (x, y )dxdy = lim f (xi , yj ) ∆A.
R R n,m→∞
i=1 j=1
Iterated Integrals
ZZ Z b Z d Z d Z b
f (x, y )dA = f (x, y )dydx = f (x, y )dxdy
R a c c a
8
Bounded Irregular Region
Theorem
Suppose that f (x, y ) is continuous on the region R.
1 If R is a vertically simple region a 6 x 6 b,
y1 (x) 6 y 6 y2 (x), then
!
ZZ Z b Z y2 (x)
f (x, y )dA = f (x, y )dy dx.
R a y1 (x)
9
Finding The Limits of Integration
11
Marginal distributions
Definition
The marginal distributions of X alone and Y alone are:
• For the discrete case,
12
Example
Suppose that X and Y are two discrete random variables and their joint
probability mass function f(x, y) is given by the table below.
X
f(x,y) Row Totals
0 1 2
0 0.13 0.05 0.05 0.23
y 1 0.23 0.21 0.07 0.51
2 0.15 0.03 0.08 0.26
Column Totals 0.51 0.29 0.20 1.00
f(x,y) --1�-2
-0
- Row Totals
0.05 0.05
y
f(x,y) h(y)
g(x)
13
Example
Let X and Y be two continuous random variables having the joint
probability density function
14
Definition
Let X and Y be two random variables, discrete or continuous. The
conditional distribution of the random variable Y given that X = x is
f(x,y)
f(yIx) = provided that g(x) > 0.
g(x) '
Definition
Let X1 , ... , Xn be n random variables, discrete or continuous, with joint
probability distribution f(x1, ... ,xn ) and marginal distributions fi(x 1 ),
... , fn (xn ) respectively. Then we say that the random variables
X1 , ... , Xn are (mutually) independent if
Facts
Let X and Y be two independent random variables. Then
IE[XY] = IE[X]IE[Y].
15
Example
Let X and Y be two continuous random variables having the joint probability
density function
(
2
5
(2x + 3y ), 0 ≤ x ≤ 1, 0 ≤ y ≤ 1,
f (x, y ) =
0, otherwise.
16
17
Moment Generating Functions (MGF's)
Definition
The moment generating function of a random variable X is a function
Mx(s) defined by
Example
Suppose X ~ Poisson(.X), find the MGF of X.
18
Theorem (properties of MGF)
Let random variables X and Y be independent. Let Mx(s) and My(s)
be th eir MGF respectively. Assume that they are finite at an open
interval that covers 0.
1. Mi_m ) (0) = IE(X m ) for every positive integer m.
2. Mx+y(s) Mx(s)My(s)
3. If Mx(s) My(s), then X and Y have the same distribution.
4. Max+b(s) = e bsMx(as) for any constants a and b.
19
20
Example
~ ~
Suppose X1 Poisson(.\1), X2 Poisson(.\2), ... , and
~
Xm Poisson(.\m ) are independent. Let Y = X1 + · · · + Xm . Then
~
Y Poisson(.\1 +···+A m ).
21
Example
Suppose X ~ Poisson(-\). Find JE[X] and Var(X).
22
Example
If X ~ Exp(A), find Mx(s). Find lE[X].
23
Example
Suppose X ~ N(O, 1). Find Mx(s).
24
25