Week 5: Continuous Distributions

0. Logistical Info

  • Section date: 10/18
  • Associated lecture: 10/12
  • Associated pset: Pset 5, due 10/20
  • Office hours on 10/18 from 7-9pm at Quincy Dining Hall
  • Remember to fill out the attendance form

0.1 Summary + Practice Problem PDFs

Summary + Practice Problems PDF

Practice Problem Solutions PDF

1. Continuous Random Variables

A continuous random variable has an interval for its support.

  • More precisely: a continuous random variable has an uncountable support, while discrete random variables have finite/countably infinite supports.

We heavily lean on the cumulative distribution function (CDF): for any random variable X, the CDF F:R[0,1] is defined F(x)=P(Xx).

We don’t use the probability mass function (PMF) anymore, because P(X=x)=0 for any x. This probability 0 does not mean “impossible,” though. We instead use the probability density function:

The probability density function of a random variable X with CDF F is a function f:RR: f(x)=ddxF(x) Probability densities are the continuous analog to probabilities, but they are NOT probabilities. A valid PDF is nonnegative and satisfies f(x)dx=1

1.1 Uses of CDFs and PDFs

For any random variable X (continuous or discrete), you can use the CDF to calculate the following: P(X>x)=1P(Xx)=1F(x)P(x1<Xx2)=P(Xx2)P(Xx1)=F(x2)F(x1) For the CDFs of continuous random variables,

  • You can assume the CDF is differentiable.
  • P(Xx)=P(X<x), so you can swap out and < in calculations like the above.

For a continuous random variable, we can find the probabilities of intervals by integrating the PDF and adjusting the bounds: P(Xx)=P(X<x)=xf(x)dxP(Xx)=P(X>x)=xf(x)dxP(x1<X<x2)=x1x2f(x)dx.

1.2 Continuous analogs of all of our tools

The general rules are:

  • Integrals instead of sums
  • PDFs instead of PMFs

So here’s a table with the tools we’ve talked about:

ToolDiscreteContinuous
ExpectationE(X)=xxP(X=x)E(X)=xfX(x)dx
LOTUSE(g(X))=xg(x)P(X=x)E(g(X))=g(x)fX(x)dx
Bayes’ ruleP(X=x|Y=y)=P(Y=y|X=x)P(X=x)P(A)fX|Y=y(x)=fY|X=x(y)fX(x)fY(y)

2. Uniform

For any interval (a,b), we can define a uniform distribution with that support, denoted UUnif(a,b). A uniform distribution is equivalent to having a constant PDF over the support. There is no uniform whose support is the full real line. fU(x)={1bax(a,b)0x(a,b)FU(x)=P(U<x)={0xa xabax(a,b)1xb

Previous
Next