CH 3 Random Variables and Probability Distributions
CH 3 Random Variables and Probability Distributions
CH 3 Random Variables and Probability Distributions
2. f ( x) 1
x
3. P( X x) f ( x)
Chapter 3.2 Discrete Probability Distributions
P (a X b) P (a X b) P ( X b) P (a X b)
Chapter 3.3 Continuous Probability Distributions
x x x
Chapter 3.3 Continuous Probability Distributions
b
P (a X b) f ( x )dx
a
Chapter 3.3 Continuous Probability Distributions
2. f ( x)dx 1
b
3. P (a X b) f ( x )dx
a
Chapter 3.3 Continuous Probability Distributions
2 2 3 2
x x 8 1
(a) f ( x)dx dx 1
1
3 9 1 9 9
1 2 3 1
x x 1
(b) P (0 X 1)
0
3
dx
9
9
0
Chapter 3.3 Continuous Probability Distributions
For the density function in the last example, find F(x) and use it to
evaluate P(0 < X ≤ 1).
x x 3 x
t 2
t x3 1
F ( x) f (t )dt dt , for 1 x 2
1
3 9 1
9
0, x 1
x 3 1
F ( x) , 1 x 2
9
1, x 2
2 1 1
P (0 X 1) F (1) F (0)
9 9 9
Chapter 3.4 Joint Probability Distributions
2. f ( x, y) 1
x y
3. P ( X x, Y y ) f ( x, y )
3 C x 2 C y 3 C2 x y
(a) f ( x, y ) ,
C2 8
for x 0,1, 2; y 0,1, 2; 0 x y 2
(b) P ( X , Y ) A P ( X Y 1)
f (0, 0) f (0,1) f (1, 0)
3 3 9
28 14 28
9
14
Chapter 3.4 Joint Probability Distributions
3. P ( X , Y ) A f ( x, y) dxdy
A
For any region A in the xy plane.
Chapter 3.4 Joint Probability Distributions
1 1 1 x 1
2 2 2 6
(a) f ( x, y ) dxdy (2 x 3 y ) dxdy x yx dy
y x 0 0
5 0
5 5 x 0
1 1
2 6 2 6 2
y dy y y
0
5 5 5 10 0
2 6
1
5 10
Chapter 3.4 Joint Probability Distributions
12 12
1 3 1 3 2
y dy y y
1 4
10 5 10 10 1 4
1 1 1 3 1 1
10 2 4 10 4 16
13
160
Chapter 3.4 Joint Probability Distributions
3 3 1 5
28 14 28 14
2
g (1) f (1, y ) f (1, 0) f (1,1) f (1, 2)
y 0
9 3 15
0
28 14 28
2 It is found that the values of
g (2) f (2, y ) f (2, 0) f (2,1) f (2, 2) g(x) are just the column totals
y 0 of the table above.
3 3 In similar manner we could
00 show that the values of h(y) are
28 28 given by the row totals.
Chapter 3.4 Joint Probability Distributions
1
2
g ( x) f ( x, y ) dy (2 x 3 y ) dy
0
5
1
4 6 4 3
xy y 2 x
5 10 0 5 5
1
2
h( y ) f ( x, y ) dx (2 x 3 y ) dx
0
5
1
2 6 2 6
x 2 yx y
5 5 0 5 5
Chapter 3.4 Joint Probability Distributions
f ( x, y )
f ( x y)
h( y )
f ( x,1)
f ( x 1) , x 0,1, 2
h(1)
f (0,1) 3 14 1
f (0 1)
h(1) 37 2
f (1,1) 3 14 1
f (11)
h(1) 37 2
1
f (2,1) P X 0 Y 1 f 0 1
0 2
f (2 1) 0
h(1) 37
Chapter 3.4 Joint Probability Distributions
find g(x), h(y), f(x|y), and evaluate P(1/4 < X < 1/2|Y = 1/3).
1
1 2
x(1 3 y ) x( y y )
3
x
g ( x) f ( x, y ) dy dy , 0x2
0
4 4 0 2
2
2
2
x(1 3 y ) x (1 3 y )
2 2
1 3y2
h( y ) f ( x, y ) dx dx , 0 y 1
0
4 8 0 2
f ( x, y ) x(1 3 y 2 ) 4 x
f ( x y) 2 , 0 x 2, 0 y 1
h( y ) (1 3 y ) 2 2
12 12 12
x x2 3
P(1 4 X 1 2 Y 1 3) f ( x y ) dx dx
14 14
2 4 14
64
Chapter 3.4 Joint Probability Distributions
Statistical Independence
Let X and Y be two random variables, discrete or continuous, with
joint probability distribution f(x, y) and marginal distributions g(x)
and h(y), respectively. The random variables X and Y are said to be
statistically independent if and only if
f ( x, y ) g ( x ) h ( y )
for all (x, y) within their range.
Chapter 3.4 Joint Probability Distributions
Statistical Independence
Consider the following joint probability density function of random
variables X and Y.
3x y
, 1 x 4, 1 y 2
f ( x, y ) 18
0, elsewhere
(a) Find the marginal density functions of X and Y
(b) Are X and Y statistically independent?
(c) Find P(X > 2|Y = 2)
2
2
3x y 6 xy y 2
6x 3 2x 1
(a) g ( x) f ( x, y ) dy dy , 1 x 4
1
18 36 1 36 12
4
4
3x y 3 x 2 yx
2
45 6 y 15 2 y
h( y ) f ( x, y ) dx
dx , 1 y 2
1
18 36 1 36 12
Chapter 3.4 Joint Probability Distributions
Statistical Independence
(b) Are X and Y statistically independent?
2 x 1 15 2 y 3 x y
g ( x)h( y ) f ( x, y )
12 12 18
X and Y are not statistically independent
4 4 4
(3 x 2) 18 2 2 3 28
dx (3 x 2) dx x 2 2 x
2
(15 4) 12 2
33 33 2 2 33
Chapter 3.4 Joint Probability Distributions
Statistical Independence
Let X1, X2, ..., Xn be n random variables, discrete or continuous,
with joint probability distribution f(x1, x2, ..., xn) and marginal
distributions f1(x1), f2(x2), ..., fn(xn), respectively. The random
variables X1, X2, ..., Xn are said to be mutually statistically
independent if and only if
Statistical Independence
Suppose that the shelf life, in years, of a certain perishable food
product packaged in cardboard containers is a random variable
whose probability density function is given by
e x , x 0
f ( x)
0, elsewhere
Let X1, X2, and X3 represent the shelf lives for three of these
containers selected independently and find P(X1<2, 1<X2<3, X3>2)
f ( x1 , x2 , x3 ) f ( x1 ) f ( x2 ) f ( x3 ) e x1 e x2 e x3
3 2
P ( X 1 2,1 X 2 3, X 3 2) e x1 e x2 e x3 dx1dx2dx3
2 1 0
x1 2 x2 3 x3
e e e
0 1 2
2. Let the random variable X denote the time until a computer server
connects to your notebook (in milliseconds), and let Y denote the time
until the server authorizes you as a valid user (in milliseconds). Each of
these random variables measures the wait from a common starting time.
Assume that the joint probability density function for X and Y is
2 10 6 e 0.001x 0.002 y , x 0, y 0
f ( x, y )
0, elsewhere
(a) Show that X and Y are independent.