* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download lecture
Survey
Document related concepts
Transcript
Announcements • Use of Barber text – course not going in same order as text, so I’m jumping around in text – As a result, some text sections may assume more background than you have – Use the text as a reference and a way to be exposed to notation Announcements • Barber text notation – not using the “upper case for variable name” convention Continuous Random Variables (most slides borrowed with permission from Andrew Moore of CMU and Google) http://www.cs.cmu.edu/~awm/tutorials Real-Valued Random Variables • Previous lecture on probability focused on discrete random variables – true, false – male, female – freshman, sophomore, junior, senior • Can sometimes quantize real variables to make them discrete – E.g., age, height, distance • Today: how to handle variables that cannot be quantized Probability Mass Vs. Density • Discrete RVs have a probability mass associated with each value of the variable – P(male)=.7, P(female)=.3 • Imagine if the variable had an infinite number of values instead of a finite number… 0.4 0.2 0.3 0.15 0.2 0.1 0.1 0.05 0 0 0.12 0.06 0.1 0.05 0.08 0.04 0.06 0.03 0.04 0.02 0.02 0.01 0 0 Probability Mass Vs. Density • Continuous RVs have a probability density associated with each value – Probability density function (PDF) • Density is derivative of mass • Notation: P(…) for mass, p(…) for density (another convention not followed by Barber!) 0.4 0.2 0.3 0.15 0.2 0.1 0.1 0.05 0 0 0.12 0.06 0.1 0.05 0.08 0.04 0.06 0.03 0.04 0.02 0.02 0.01 0 0 PDF of a Uniform Distribution • X ~ Uniform(0,k) • p(X=k/2) = ? • p(X= 2k) = ? 0 k = E[X2] - E[X]2 Density estimate of automobile weight and MPG Note change in notation: Previously used P(x^y) for joint = E[(Xi - mi )(X j - m j )] Covariance Facts Consider 2D case with (X,Y) s xy2 = E[(Xi - mi )(X j - m j )] = E[Xi X j ] - mi m j s x2 = E[(Xi - mi )(Xi - mi )] = E[Xi2 ] - mi2 FALSE TRUE Mike’s Basic Advice on Continuous Random Variables • Ignore the fact that p(x) is a probability density function and treat it just as a mass function, and the algebra all works out. • Alternatively, turn densities to masses with dx terms, and they should always cancel out. • Don’t be freaked when you see a probability density >> 1. • Do be freaked if you see a probability mass or density < 0.