Title: Todays Goals
1Todays Goals
- Calcualte with joint continuous distributions
- Calculate and apply covariance and correlation
- HW 9 (due Wed. April 15) Ch 4 63. Ch 5 22
30. - Article will be due April 24
- Office hours next week Tu 2-350.
2Joint Probability Mass Function
Let X and Y be two discrete rvs defined on the
sample space of an experiment. The joint
probability mass function p(x, y) is defined for
each pair of numbers (x, y) by
Let A be a set consisting of pairs of (x, y)
values, then
3Example of a joint pmf
- hours per day worked and productivity
- What do the numbers inside the square add to?
- What is Pp70 and h8?
- What is Ph8?
4Joint Probability Density Function
Let X and Y be continuous rvs. Then f (x, y) is
a joint probability density function for X and Y
if for any two-dimensional set A
If A is the two-dimensional rectangle
5A shaded rectangle
Volume under density surface above A
6Marginal Probability Density Functions
The marginal probability density functions of X
and Y, denoted fX(x) and fY(y), are given by
7Example 3
- Let the joint probability density function of rvs
X and Y be - Draw the two-dimensional sample space.
- Find the marginal probability distributions of
random variable X and Y.
8Example 3
- Let the joint probability density function of rvs
X and Y be - then
9Example 3
- Let the joint probability density function of rvs
X and Y be
- Find the marginal distribution for Y
- 2 2y
- 2
- 2y
10Example 3
- Let the joint probability density function of rvs
X and Y be
- Find the marginal distribution for Y
- 2 2y
- 2
- 2y
11Independence
- Two discrete R.V. are independent if
- p(x,y) p(x)p(y)
- Two continuous random variables X and Y are said
to be independent if for every pair of x and y
values, - f(x,y) fX(x) fY(y).
12Example
- f(x,y) x y for 0x,y1
- Is this a joint pdf?
- yes
- What is the marginal pdf of x?
13Example
- f(x,y) x y for 0x,y1
- Is this a joint pdf?
- yes
- What is the marginal pdf of x?
- True or False X and Y are independent.
14Example
- f(x,y) x y for 0x,y1
- Is this a joint pdf?
- yes
- What is the marginal pdf of x?
- True or False X and Y are independent.
15Expected Value
If X and Y are independent random variables,
then EXY EXEY.
16Expected Value
If X and Y are independent random variables,
then EXY EXEY. Note that the converse
is not true It is not true that if EXY
EXEY then X and Y are independent.
17Covariance
- Covariance is a measure of how related two
variables are. - Cov(X,Y) E(X-mx )(Y-my )
- short cut
18Covariance
- Covariance is a measure of how related two
variables are specifically in a linear
relationship - Cov(X,Y) E(X-mx )(Y-my )
- short cut
- If X and Y are independent
19Different degrees of covariance
20Different degrees of covariance
Cov 0
Weak positive cov
strong negative cov
stronger positive cov
21Relationship of homework scores to midterm grades
22(No Transcript)
23Expected Value of a sum
- Regardless of covariance
- EXYEXEY
24Variance of a sum or difference
- Var(XY) Var(X)Var(Y)Cov(X,Y)
- Var(X-Y) Var(X)Var(Y)Cov(X,Y)
- If X and Y are independent then
- Var(XY) Var(X)Var(Y)
- Var(X-Y) Var(X)Var(Y)
25Are X and Y independent? T yes, Fno
26Are X and Y independent? T yes, Fno
p(0,0) .02 ? .2 .07 .014 p(0)p(0)