23
Hadley Wickham Stat310 Bivariate distributions Thursday, 19 February 2009

12 Bivariate

Embed Size (px)

Citation preview

Page 1: 12 Bivariate

Hadley Wickham

Stat310Bivariate distributions

Thursday, 19 February 2009

Page 2: 12 Bivariate

1. Feedback

2. Test info

3. Example

1. Constructing a joint

2. Expectation

3. Independence

4. Conditioning

Thursday, 19 February 2009

Page 3: 12 Bivariate

• Still like the examples, and the recaps

• 10 said you found the help sessions really helpful

• 3 commented on my improved board skills :)

• 2 said speed was good, 1 too slow and 4 too fast

Feedback

Thursday, 19 February 2009

Page 4: 12 Bivariate

Feedback• Still don’t like me making mistakes.

• Would like more real-life and better prepared examples - will do.

• Website needs to be updated more frequently - I’ll try!

• Will try and put readings up ahead of time

Thursday, 19 February 2009

Page 5: 12 Bivariate

Casual Formal

+ pink

polo

+ nice

attir

e

+ still

a fan

of t

he sh

irts

+ fant

astic

clot

hes

+ t-sh

irts:

still a

wesom

e

- like

your

pre

vious

set o

f shir

ts m

ore

+ clot

hing

is im

provin

g

Thursday, 19 February 2009

Page 6: 12 Bivariate

Test info

Thursday 26th February

Same format as last test, but only one page of notes.

Continuous & bivariate random variables.

Will put more info on website asap.

Thursday, 19 February 2009

Page 7: 12 Bivariate

Recap

Thursday, 19 February 2009

Page 8: 12 Bivariate

! !

Sf(x, y) dy dx = 1

! !

S

f(x, y) = 1

f(x, y) ! 0

f(x, y) ! 0

pdf

pmf

Thursday, 19 February 2009

Page 9: 12 Bivariate

fX(x) =!

Rf(x, y)dy

fY (y) =!

Rf(x, y)dx

Thursday, 19 February 2009

Page 10: 12 Bivariate

Example

Oscar has a bad gambling problem. Every night on the way home from work he takes the X hundred dollars he earned at work that day and goes to the local casino. Oscar never wins any money but eventually stops playing to return home with Y hundred dollars.

Thursday, 19 February 2009

Page 11: 12 Bivariate

Question

If X is a random variable with pdf f(x) = x / 8 0 < x < 4

and Y|X=x ~ Unif(0, x)

What is the joint pdf f(x, y) ?

Hint:P (X ! A " Y ! B) = P (X ! A|Y ! B)P (Y ! B)

Thursday, 19 February 2009

Page 12: 12 Bivariate

f(x, y) = f(y|x) f(x)f(x|y) f(y)

If x and y are independent, what does that imply about f(x, y) ?

Thursday, 19 February 2009

Page 13: 12 Bivariate

f(x, y) = f(y|x) f(x)f(x|y) f(y)

If x and y are independent, what does that imply about f(x, y) ?

f(x, y) = f(x) f(y)

Thursday, 19 February 2009

Page 14: 12 Bivariate

Question

What is f(y)? (how much money Oscar brings home)

i.e. imagine we don’t know X, but still want some idea of the likely amounts of money Oscar will bring home

Thursday, 19 February 2009

Page 15: 12 Bivariate

fX(x) =!

Rf(x, y)dy

fY (y) =!

Rf(x, y)dx

Be careful with limits of integration!

Thursday, 19 February 2009

Page 16: 12 Bivariate

S = {(x, y) : f(x, y) > 0}

Sx = {x : f(x) > 0}Sy = {y : f(y) > 0}

Thursday, 19 February 2009

Page 17: 12 Bivariate

Question

What is Oscar’s expected loss?

We don’t have the tools to solve this yet, but you can still convert the word problem to a mathematical problem.

And you can use your intuition to think about what would make sense

Thursday, 19 February 2009

Page 18: 12 Bivariate

E(u(X, Y )) =! !

Su(x, y) f(x, y) dy dx

So what is E(X - Y)?

Does that number make sense?

Thursday, 19 February 2009

Page 19: 12 Bivariate

Theory question

If X and Y are independent, what is E(XY) ?

What does that imply about the intuition we used in the previous problem?

Thursday, 19 February 2009

Page 20: 12 Bivariate

Theory result

E(XY) = E(X) E(Y)

So maybe that implies X and Z = (X-Y)/X (percent loss) are independent.

We’ll look at the tools to show that next time.

Thursday, 19 February 2009

Page 21: 12 Bivariate

Question

One night Oscar returns home with less than $200. What is:

The probability he started with less than $200?

The probability he lost more than $100?

The probability he lost exactly $75?

If you don’t see how to do this immediately, you can still write it out mathematically and use your intuition.

Thursday, 19 February 2009

Page 22: 12 Bivariate

P(X < 2 | Y < 2)

P(Y - X < 1 | Y < 2)

P(Y - X = 0.75 | Y < 2)

Thursday, 19 February 2009

Page 23: 12 Bivariate

Engineering Majors Day

2:30-4:30pm

Oshman Engineering Design Kitchen

Thursday, 19 February 2009