2-distributions-of-random-variables
2-distributions-of-random-variables
Distribution
A continuous probability distribution is
a distribution which cannot be given in
tabular form because since the
variable is continuous, it has zero
probability of exactly assuming its
values. This type of probability
distribution deals with intervals rather
than point values. It uses a formula
and could be graphed as a continuous
curve.
Problem:
2(1 2) 6 2(1 4) 10
f (2) = f (4) =
27 27 27 27
2(1 3) 8 2(1 5) 12
f (3) = f (5) =
27 27 27 27
Probability Graph
f(x)
x
1 6 10 16
P (x 4) ( )(2)( )
2 27 27 27
1 8 10 9
P (3 x 4) ( )(1)( )
2 27 27 27
Problem
w
Problem
w
Problem
w
Joint Probability Distribution
y f ( x, y )
f
x g ( x)
g(x) > 0
Interdependent Random Variables
f ( x, y )
X
x Y
y
Z
z
nS
f ( x, y )
X
x Y
y Z
z
nS
f (0,0)
3
0
2
0
3
2
3
28 28
f (0,1)
3
0
2
1
3
1
6
28 28
f (0,2)
3
0
2
2
3
0
1
28 28
f ( x, y )
X
x Y
y Z
z
nS
f (1,0)
3
1
2
0
3
1
9
28 28
f (1,1)
3
1
2
1
3
0
6
28 28
f ( 2,0)
3
2
2
0
3
0
3
28 28
Joint Probability Distribution:
X
f(x,y)
0 1 2
3 9 3 15
0
28 28 28 28
6 6 12
Y 1
28 28 28
1 1
2
28 28
1
10 15 3
28 28 28
b) the marginal distributions of X and Y
Marginal Distribution of X
x 0 1 2
10 15 3
g(x)
28 28 28
Marginal Distribution of Y
y 0 1 2
15 12 1
h(y)
28 28 28
c) conditional distribution f ( x ) for all
1
values of x and determine P ( X 0 )
Y 1
f ( x , y )
f(x ) ; h(y) > 0
y h( y )
x f ( x,1)
f( )
1 h(1)
Solving for h(1):
x f ( x ,1)
f( )
1 3
7
7
f ( x ) f ( x,1)
1 3
x 7
f ( ) f ( x,1)
1 3
when x = 0:
0 7 7 6 1
f ( ) f (0,1) ( )
1 3 3 28 2
when x = 1:
1 7 7 6 1
f ( ) f (1,1) ( )
1 3 3 28 2
when x = 2:
2 7 7
f ( ) f ( 2,1) (0)
1 0
3 3
Therefore the conditional distribution
f ( x ) for all values of x is:
1
x 0 1 2
1 1
f (x ) 0
1 2 2
To find P ( X 0 Y 1)
f ( 0 )
P( X 0 )
1
Y 1
1
P( X 0 )
Y 1 2
d) are random variables X and Y
statistically independent?
n
E ( X ) xi f ( xi )
i 1
If X is a discrete random variable
with the probability distribution given
by P(X=x) where x = x1, x2, ...xn. The
mean of the random variable g(X) is:
n
g ( X ) E[ g ( X )] g ( xi ) f ( xi )
i 1
If X and Y are discrete random
variables with the joint probabilities
given by f(x,y) where x = x1, x2, ...xm and
y = y1, y2, …yn .The mean of the random
variable g(X,Y) is:
m n
g ( X ,Y ) E[ g ( X , Y )] g(x y ) f (x , y )
i i i i
i 1 i 1
Problem:
X 0 1 2 3
8 4 2 1
P( X x)
27 9 9 27
Solution:
X 0 1 2 3
8 4 2 1
P( X x)
27 9 9 27
n
E ( X ) xi f ( xi )
i 1
x E ( X ) 0278 1 94 2 92 3 271
x E( X ) 1
Problem:
nS = 2 x 2 x 2 = 8
2 6
p (W ) p ( L)
8 8
Gambler on the
average will lose $1
per toss of the 3 coins
For the joint probability distribution shown
below, find the expected value of g(X,Y) = XY.
Also find x and y.
X
f(x,y)
0 1 2
3 9 3 15
0 28 28 28 28
6 6 12
Y 1 28 28 28
1 1
2
28 28
10
28
15
28
3
28 1
Solution: Solving for g ( X ,Y )
2 2
g ( X ,Y ) g ( xy) f ( x, y)
x 0 y 0
10
( X ) (0) (1) 15 (2) 3
28 28 28
( X ) 21
28
Solving for (Y )
2
(Y ) y h ( y )
y 0
15
(Y ) (0) (1) 12 (2) 1
28 28 28
14
(Y )
28
Variance
The variance of a random variable can be interpreted as the
variance of the population or distribution whose observations
are all the values of X that are generated by repeating the
experiment over and over again indefinitely. It can be
computed using the formula:
n
2 E[( X ) 2 ] ( xi ) 2 f ( xi )
i 1
If X is a discrete random variable with
the probability distribution given by
f(X), the variance of the random
variable X is:
n
2
g ( x) E{[ g ( X ) g ( x ) ] } [ g ( xi ) g ( X ) ]2 f ( xi )
2
i 1
Problem:
Find of 2, 5, 5, 8, 8, 8.
2
x x ( x )2
2 -4 16 x
N
5 -1
5 -1 36
6
8 2 4 6
8 2 4
8 2 4
x 36
x 2 1 4 16
2 3 1
Px
2
6 6 6
n
2 ( xi ) 2 f ( xi )
i 1
x = no. of boys
y = no. of girls
nS = C(7,3) = 35
X
x
Y
y
f(x) =
nS
f(x) =
4
x
3
3 x
for x = 0, 1, 2, 3
35
f ( 0)
4
0 3
3
1 f ( 2) 4
2
3
1
18
35
35 35 35
4
1 3
12
2
4
3 4
3
0
f (1) f (3) 35
35 35 35
3
( X ) (0) 1
(1) 12 ( 2) 18 (3) 4
35 35 35 35
( X ) 12
7
3
x 0
2 2
12 1 12 12
0 1
2
7 35 7 35
2 2
12 18 12 4
2 3
7 35 7 35
0.49
2
Problem:
X -3 6 9
1 1 1
P( X x)
6 2 3
Solution: To find the MEAN:
9
( 2 X 1) (2 X 1) 2 f ( x)
2
x 3
X -3 6 9
1 1 1
P( X x)
6 2 3
( 2 X 1) 1
2 3 1 26 1 2 1
2
2
6 2
21
29 1
3
( 2 X 1) 209 2
To find the 2 n [ g ( x ) ]2 f ( x )
VARIANCE:
g ( x)
i 1
i g(X ) i
n
(22 X 1) [(2 X 1) 2 ( 2 X 1) ]2 f (2 X 1) 2
2 2
i 1
1
2
( 2 X 1) 2 2
2 3 1 209
6
2
2 1
26 1 209 2
2
1
29 1 209
2
2
3
2
( 2 X 1) 2 14144
2
14144
118 .93