Math 300 , Spring 2008, Day36, F, April 25 Hit reload .After class..

Mini-exam coming Monday, due following Monday, Day 40. Continuous joint distributions through expectation.

HW: A.  Here's a density that's not independent: f(x,y) = x+y, 0<x<1, 0<y<1.  It's a plane slicing through the origin. (See it in DPGraph)
       a) Find fX(x). Argue by symmetry that  fY(y) has the same form, and write it down.
       b) Multiply fX(x) fY(y) .  Are X and Y independent?  why not?
       c) Find E(X).  Find E(Y).   Find E(XY).
       d) cov(X,Y) = E(XY) - E(X)E(Y).  Find cov(X,Y).  Is it positive or negative?

Ash 8.1 covers conditional for continuous only.  Does a good job.
Read  Conditional (discrete) handout.
Recall Regression line y(hat) = a + bx, where b = r (sx/sy) and a = ybar - b xbar.
           So y(hat) = ybar + b(x-xbar).   Compare to E(Y|x) formula, bottom of 2nd page of handout. 
HW: Conditional, discrete:
B.
For the chips below,  x red/y blue   1/4  2/2  2/4  3/4 
     Find fY|x(y|xo) when xo = 3. Find fX|y(x|yo) when yo = 4
On Conditional  (discrete) handout:   Problem 2.10-1  Can do all put part e after Friday
  "A"(also on handout)  (Show that X, Y independent -->fY|x(y|x) = fY(y); that is, knowing X gives no info about Y)
Continue with continuous Mon.
Read
Continuous (conditional) handout and Ash 8.1;
On the handout:
  problem 3.7-6
  B. (this is checking the equation in the middle of the second page of the handout.)
  C. (x+y. I may have started or even completed this in class.  Write it up.)
Ash, p. 249, #2, #5a, #3.  (These don't need to be handed in--but DO understand them.)

= = = = = = = = = = = = = = = = = = = = = = = = =
Continuing with Two random variables X, Y "jointly distributed".  Ash Ch. 5.  First 5.1& 5.2 Next 7.1 again, now 8.1
In practice: Two random variables X, Y  measured on the same experiment.
Sample space:  points in x-y space.
   Probability of a region:  sum or integrate over the region.
"Marginal" probability/density function:
      Function for just X (not "looking at" y):   pX(x) or fX(x)
                    or just Y (not "looking at" y):   pY(x) or fY(y) .
X and Y INDEPENDENT:  p(x, y) =  pX(x)pY(y),  f(x,y) = fX(x) fY(y) for every pair (x,y) 

Continuous (p. 171 ff + Probability Handout) Joint density function f(x, y)--a surface above the base x-y space.
    Probability of a region R  in x-y space= area under f(x,y) and above the region.
The total probability (area) has to = 1.
 


- - - - - -  - - - - - -
Conditional distributions: Assuming a particular x value is true/known (xo),  what is the distribution of Y?
   If you have 4 chips, red on one side (X) and blue on the other (Y),
x red/y blue   1/4  2/2  2/4  3/4   and you choose a chip & see that the red side is 2, what is now the probability distribution of the numbers on the blue side?
Put in usual 2-dimensional x-y grid.
Assuming xo known, what is the distribution of Y?. Look just at the column for xo.
Can do the other way: assuming yo known, what is the distribution of X?.Look just at the row for yo.
  Discrete: P(Y= y | X = xo) = P(Y = y & X = xo)/P(X = xo)   (Old conditional probability, in new clothes)
     Changing to distribution language:  The conditional probability ( or density) of Y given xo:
           P(Y= y | X = xo) =  fY|x(y|xo) = f(xo, y)/fX(xo)
   For a single particular number x, you can plug in that number, and then everything is in y.
        For a particular number x, sum over all the y's.  The sum over the y's of f(xo,y) = fX(xo).
             So the sum over all the y's of fY|x(y|xo) = fX(xo)/fX(xo) = 1.
    Look at handout: Conditional distributions: Discrete.
Pick up here Monday
  Conditional Expectation E(Y|xo):The mean y value, when x is a particular fixed value xo.
      Treat xo as a constant and find the sum of all   y fY|x(y|xo) terms.
     "Average" of the y-column  at xo .
Remember "Regression problem" in statistics:  For a particular xo, predict the "best" y-value.
           ("best" in some sense or other--average, typical...)
In probability, E(Y|xocan play that role.  We find it for "all" xo's, and graph it on the x-y plane.

Continuous:  same formulas, integration instead of sums.
      Think of slicing through the joint density at xo--look at f(xo,y)--the slice.
      The conditional density fY|x(y|xo) has the shape of the slice, but the slice may not have area 1.
          If we divide by  fX(xo), it will. So   fY|x(y|xo) = f(xo, y)/fX(xo)

  Continuous (conditional) handout "Multivariate distributions of the Continuous Type--Conditional:
Example 3.7-2 ff.

Remember "Regression problem" in statistics:  For a particular xo, predict the "best" y-value.
           ("best" in some sense or other--average, typical...)
In probability, E(Y|xocan play that role.  We find it for "all" xo's, and graph it on the x-y plane.
                (It may not be a straight line)
But first--Find the conditional densities and the conditional expectations for two functions:
f(x,y) = x(1+y)/2, 0<x<1, 0<y<2.  fX(x) = 2x, 0<x<1.   fY(y) = (1+y)/4, 0<y<2.
f(x,y) = x+y, 0<x<1, 0<y<1.  fX(x) = x + 1/2, 0<x<1
Another? f(x,y) = 2e-x-y , y>x, x>0.
     Caution: if support of f(x,y) isn't rectangular, you have to keep track of possible values of x and y.  


Sievers home
 Math300-Sp08/Day8p36.htm 
11pm
4/24/08
This page belongs to Sally Sievers who is solely responsible for its content. Please see our statement of responsibility.