12.07.2015 Views

Stat 5101 Lecture Notes - School of Statistics

Stat 5101 Lecture Notes - School of Statistics

Stat 5101 Lecture Notes - School of Statistics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.4. JOINT, CONDITIONAL, AND MARGINAL 103Recall from p. 90 in these notesSanity Check: E(X | Y ) is a function <strong>of</strong> Y and is not a function<strong>of</strong> X.Good. We did get a function <strong>of</strong> y. If you get confused about which variableto integrate with respect to, this sanity check will straighten you out. If youthrough some mistake get a function <strong>of</strong> both variables, this sanity check will atleast tell you that you messed up somewhere.3.4.5 Bayes RuleNow we want to study the consequences <strong>of</strong>joint = conditional × marginal (3.26)Again we have the problem <strong>of</strong> remembering which marginal. If we recall ouranalysis <strong>of</strong>conditional =jointmarginalon p. 100 in these notes, we recall that it is the marginal <strong>of</strong> the variable “behindthe bar.”Because “mathematics is invariant under changes <strong>of</strong> notation” (3.26) is alsotrue when we interchange the roles <strong>of</strong> the variables Hence we can “factor” ajoint density into marginal and conditional two different waysPlugging (3.27) into (3.21) givesf(x, y) =f(x|y)f Y (y) (3.27)f(x, y) =f(y|x)f X (x) (3.28)f(y | x) =f(x|y)f Y(y)∫f(x|y)fY (y)dy(3.29)This equation is called Bayes rule. It allows us to “turn around” conditionalprobabilities. That is, it is useful for problems that say: given f(x | y), findf(y | x). Or vice versa. Of course, because “mathematics is invariant underchanges <strong>of</strong> notation” (3.29) is also true with all the x’s and y’s interchanged.Example 3.4.6.Suppose that X and Y are positive real-valued random variables andwhat is f(y | x)?f(x | y) = 1 2 x2 y 3 e −xyf Y (y) =e −y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!