20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

338 CHAPTER 17. RELATIONS AMONG VARIABLES: ADVANCED<br />

Now suppose X, given Y , is scalar, i.e. r = 1, and X has a normal distribution. In other words,<br />

within each class, Y is normally distributed. Suppose also that the two within-class variances <strong>of</strong> X<br />

are equal, with common value σ 2 , but with means µ0 and µ1. Then<br />

fX|Y =i(t) = 1<br />

<br />

2<br />

t − µi<br />

√ exp −0.5<br />

2πσ σ<br />

After doing some elementary but rather tedious algebra, (17.16) reduces <strong>to</strong> the logistic form<br />

where<br />

and<br />

1<br />

1 + e −(β0+β1t)<br />

(17.17)<br />

(17.18)<br />

<br />

1 − q<br />

β0 = − ln +<br />

q<br />

µ20 − µ21 2σ2 , (17.19)<br />

β1 = µ1 − µ0<br />

σ 2 , (17.20)<br />

In other words, if X is normally distributed in both classes, with the same variance<br />

but different means, then mY ;X() has the logistic form! And the same is true if X is<br />

multivariate normal in each class, with different mean vec<strong>to</strong>rs but equal covariance matrices. (The<br />

algebra is even more tedious here, but it does work out.) Given the central importance <strong>of</strong> the<br />

multivariate normal family—the word central here is a pun, alluding <strong>to</strong> the (multivariate) Central<br />

Limit Theorem—this makes the logit model even more useful.<br />

If you retrace the derivation above, you will see that the logit model will hold for any within-class<br />

distributions for which<br />

<br />

fX|Y =0(t)<br />

ln<br />

fX|Y =1(t)<br />

(17.21)<br />

(or its discrete analog) is linear in t. Well guess what—this condition is true for exponential<br />

distributions <strong>to</strong>o! Work it out for yourself.<br />

In fact, a number <strong>of</strong> famous distributions imply the logit model. For this reason, it is common<br />

<strong>to</strong> assume a logit model even if we make no assumption on the distribution <strong>of</strong> X given Y. Again,

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

Saved successfully!

Ooh no, something went wrong!