9 Annotated 5.4 and 5.5 Fall2014
9 Annotated 5.4 and 5.5 Fall2014
Name
f(x,y).
Similarly, fY (y) =
f (x, y)
fy (y)
f (x, y)
fx (x)
Example 1
Let X be the
corresponding
X 25 24
Y 26 27
outer diameter (in mm) of a bolt and Y be the inner diameter (in mm) of the
nut. Use the info below to display f(x,y) in a table.
23 25 26 25 23 24 26
26 27 26 27 27 28 28
27
28
Marginal Distribution of X:
x
23
24
25
fX (x)
23
24
25
Marginal Distribution of Y:
y
26
27
28
fY (y)
26
1. P [X < Y ]
2. P [Y X = 3]
26
3. P [X = 25]
Independence
Definition: Discrete rvs X and Y are independent if their joint probability function f(x,y) is the
product of their respective marginal probability functions for all x and y
f (x, y) = fX (x)fY (y)
If this does not hold, even for one (x,y) pair, then the variables X and Y are dependent.
This definition is easily extended to more than two random variables:
e.g. f (x, y, z) = fX (x)fY (y)fZ (z)
Example 2
Now suppose that when a person chooses one bolt, then the person randomly chooses one nut (this
implies independence). Under this scenario, use the marginal probabilities to calculate the joint
probabilities in a table. This example uses different probabilities.
26
27
28
fX (x)
23
0.2
24
0.4
25
0.3
26
0.1
fY (y)
0.2
0.5
0.3
3
Example 2
Find E[U] and Var[U]
Example 3
Suppose X N (5, 2), Y N (10, 4) and X and Y are independent.
E(1 X + 2Y ) =
V ar(1 X + 2Y ) =
Sample Mean
A common function we are often interested in is the sample mean,
Xn =
1
(X1 + X2 + + Xn )
n
1
1
1
(E[X1 ] + E[X2 ] + + E[Xn ]) = ( + + + ) = (n) =
n
n
n
1
1 2
1
2
2
2
2
(V
ar[X
]
+
V
ar[X
]
+
+
V
ar[X
])
=
(
+
)
=
(n
)
=
1
2
n
n2
n2
n2
n
2
Example 4
Suppose X1 , X2 , . . . , X50 are iid Poisson(3). Calculate E[X 50 ] and V ar[X 50 ]. If possible, also name
the distribution of X 50 .
Example 5
Suppose X1 , X2 , . . . , X10 are iid N(5,2). Calculate E[X 10 ] and V ar[X 10 ]. If possible, also name the
distribution of X 10 .
Recall we showed earlier X has a mean and variance n . By the CLT, when n is large (generally
n 25) then approximately,
2
X n N ,
n
Example 4 (cont.)
Suppose X1 , X2 , . . . , X50 are iid Poisson(3). What distribution does X 50 follow? Is it exact or
approximate?
Example 6
Suppose X1 , X2 , . . . , Xn are iid with a mean of 5 and a variance of 10.
1. What distribution does X n follow? Is it exact or approximate?
2. What is the probability of observing a sample mean that is between 4 and 6 in a sample of
size n=10?
3. What is the probability of observing a sample mean that is between 4 and 6 in a sample of
size n=90?
If you had taken a sample of 90 people and found that their sample mean was less than 4 or greater
than 6, what might you conclude?
There was a
90 people.
chance of being between 4 and 6. Maybe I just got a REALLY rare sample of