Ch. 3 - Continuous Distributions

Class: STAT-211


Notes:

Outline

Probability Density Function (PDF)

From Discrete to Continuous

Recall that, if X is a discrete random variable taking values 1,2,...,10:

It makes sense in this case to:

For a continuous random variable X, it takes on too many values
to ‘add’ a pmf. Besides, the probability that X assumes a specific
value c will be ZERO for any real number c.

Probability Density Function (1)

The probability density function (pdf), f(·), of a continuous random variable X is a smooth, continuous function that defines the probability distribution of X, such that

  1. f(x)≥0, for every real number x, and
    • Implication: function f is non-negative everywhere.
  2. ∫−∞∞f(x)dx=1.
    • Implication: The area under the distribution curve must equal to 1.

If X is a continuous random variable with pdf f(·), then for any
two real numbers a, and b, with a < b,

P(a<X<b) = area under the curve of f between a and b

∫abf(x)dx, and

P(X<a) = area under the curve of f to the left of a

∫−∞af(x)dx.

Pictorially represented:
Pasted image 20250923142907.png400

Facts:

  1. P(X=a)=0=P(X=b)
  2. P(X≤a)=P(X<a)
    • {X <= a} = {X < a} ∪
      • They are disjoint events
  3. P(X>b)=P(X≥b)
  4. P(a≤X≤b)=P(a<X≤b)=P(a≤X<b)=P(a<X<b)
    • It doesn't matter if we include or not the endpoints of the boundary points
  5. P(a≤X≤b)=P(X≤b)−P(X≤a)
    • Area under the curve over the intervale [a,b]
    • Isn't this are under the curve the same as the area under the curve up to the point b minus the area under the curve up to the point a?
      • Yes! this will be used repeatedly.
  6. P(X>b)=1−P(X≤b)
    • {X > b} =

Probability Density Function (2)

For a continuous random variable X having pdf f (·), and any pair
of real numbers a and b, with a <b:

  1. P(X= a) = 0,
  2. P(X ≤a) = P(X <a),
  3. P(X ≥a) = P(X >a) = 1−P(X ≤a),
  4. P(a ≤X ≤b) = P(a ≤X <b) = P(a <X ≤b) = P(a <X <b),
  5. P(a ≤X ≤b) = P(X ≤b)−P(X ≤a).

Fact: The pdf f (·) of a continuous random variable is NOT any probability (unlike the pmf). It may take values greater than 1.

Example
Consider a continuous random variable X with pdf

Pasted image 20250923144229.png275

Then f(0.1)=5e−5(0.1)=3.0326533>1.

Example

Let the continuous random variable X have pdf

Pasted image 20250923144322.png275

∫∞∞f(x)dx=1∫01f(x)dx=c3=1⟹c=3. P(X≤0.4)=∫−∞0.4f(x)dx=∫00.4f(x)dx=(0.4)3=0.064. P(0.1≤X<0.7)=...

...

Example (2)

Let the continuous random variable X have pdf

Pasted image 20250923144934.png275

∫−∞∞f(x)dx=1∫1∞f(x)dx=c3

- Observe that ∫1∞f(x)dx=c3=1⟹c=3.

P(X>2)=∫2∞f(x)dx=123=0.125=1−P(X≤2). P(1.3≤X<3.5)=∫1.33.5f(x)dx=[1(1.3)3−1(3.5)3]=0.43184 P(X≤3.5)−P(X≤1.3)

...

Cumulative Distribution Function (CDF)

Cumulative Distribution Function

The cumulative distribution function (CDF) for a continuous random variable X , denoted F (·), is defined as

F(x)=P(X≤x)=∫−∞xf(y)dy, for −∞<x<∞.

From the Fundamental Theorem of Calculus, the PDF f is the derivative of the CDF F:

f(x)=ddxF(x),

except possibly at a "few points".

If X is a continuous random variable with CDF F(·), then

for any two real numbers a and b with a<b

Facts:

  1. 0≤F(x)≤1,
    • For all real no. x
  2. F(x)≤F(y) for all (x, y) with x < y
  3. limx→−∞F(x)=0
    limx→∞F(x)=1
  4. F: Continuous everywhere

When to use PDF and when to use CDF?

Example

Suppose X is a continuous random variable having PDF

Pasted image 20250923150634.png275

Then, its CDF:

Pasted image 20250923150652.png275

Some probabilities**:

Expectation & Variance of Continuous RVs

Expectation of a Continuous RV

Let X be a continuous random variable with p.d.f. f.

Then the expected value (expectation) or, population mean of X , denoted E[X] or µX , is defined as

E[X]=µX=∫−∞∞xf(x)dx

provided ∫−∞∞|x|f(x)dx
(In this course, we shall always assume that∞ −∞|x|f (x)dx <∞unless stated otherwise.)

More generally, if h(X ) is any real-valued function of X with ∞−∞|h(x)|f (x)dx <∞, the expected value of h(·) is defined as

...

(In this course, we shall always assume that∞ −∞|h(x)|f (x)dx <∞unless stated otherwise.)

Variance of a Continuous RV

Let X be a continuous random variable with p.d.f. f . Then the
variance of X , denoted σ2 X , is defined as

...

provided∞ −∞(x−µX )2f (x)dx <∞.
The standard deviation of X , denoted σX , is defined as the positive square root of its variance σ2 X , that is,

...

Note:

...

Fact: Var(X)=E(X2)−(E(X))2≥0

Example

Suppose X is a continuous rv having p.d.f.

Pasted image 20250923151841.png275

Then,

...

Uniform Distribution

Uniform Distribution

A continuous random variable X is said to have a Uniform(a,b)
distribution over an interval [a,b] if it has the following probability
density function

Pasted image 20250923152213.png275

We write, X∼Uniform(a,b).

Pasted image 20250923152241.png300

Uniform Distribution - CDF

Suppose, X∼Uniform(a,b). Then,

Pasted image 20250923152453.png275

Pasted image 20250923152512.png300

Uniform Distribution - Properties

If X∼Uniform(a,b), then

  1. for any pair of points c and d with a<c<d<b,

    • P(X≤c)=(c−a)/(b−a) = F(c)
    • P(c≤X≤d)=(d−c)/(b−a) = F(a)−F(c)
    • P(X>d)=(b−d)/(b−a)=1−(d−a)/(b−a)
      • = 1−F(d)
  2. E(X) = (a + b)/2 and SD(X ) = (b−a)/√12, because

...

Uniform Distribution - Example

Let the random variable X denote a number drawn at random from the interval (0,10). Then X has a (continuous) uniform distribution supported over (0,10) with the following PDF:

Pasted image 20250923152809.png275

=d−cb−a=6−310−0=0.3 P(X<4|X≤6)=P({X<4}∩{X≤6})P(X≤6)

...

P(X=2.47=0)

Normal Distribution

Normal Distribution

The normal or, Gaussian distribution plays a key role in probability
and statistics Write its pdf as:

f(x)=12πσ2e−(x−µ)22σ2

where

(The parameters are µ and σ. We will return to these when we talk about expectation)

We write X∼N(µ,σ2) to indicate this distribution

What is the area under the curve to the right of µ?

Standard Normal Distribution

When µ=0 and σ=1, we call it the standard normal distribution:

f(x)=12πe−x2/2, −∞<x<∞

Notation:

Pasted image 20250925141811.png250

Example:

Facts:

  1. If X∼N(µ,σ2) then,
    • CDF of X can be expressed in terms of the cdf of a standard normal distribution
    • F(x)=P(X≤x)
      • This is the definition of the CDF of a continuous rv
    • We can write X≤x⟹X−µ≤x−µ
      • Is the same, you are subtracting the same quantity from both sides
      • The direction of the inequality does not change
    • So we can also write X≤x⟹X−µσ≤x−µσ
    • Which is the same as saying Z≤x−µσ
    • So we get that:
      • F(x)=P(Z≤x−µσ)
      • =ϕ(x−µσ)
    • Suppose X∼N(µ,σ2)
      • Then given 0<p<1, x(p)
      • A point x(p) is called the 100pth percentile (or equivalently the p-th quantile) of X if and only if the area under the curve towards the left of x(p) is p and to the right it is 1−p
      • Probabilistically speaking we can write
        • Normal Dist.: P(X≤x(p))=p=1−P(X>x(p))
        • Standard Normal Dist.: P(Z≤z(p))=p=1−P(Z>z(p))
  2. If X∼N(µ,σ2) then,
    • x(p)=µ+σz(p)
    • If P(X≤x) then,
      • =P(Z≤x−µσ)
      • for any x: real no. in a X∼N(µ,σ2).
  3. For any real no. −∞<a<b<∞:
    • P(X≤a)=P(Z≤x−µσ)
    • P(X>a)=P(Z>b−µσ)=1−P(Z≤b−µσ)
    • P(a≤X≤b)
      • =P(X≤b)−P(X≤a)
      • =P(Z≤b−µσ)−P(Z≤a−µσ)
      • = phi... (complete)

Example of Standard Normal Distribution

  1. P(Z>2)=P(Z≤−2)
    • Remember the '=' in <= does not really matter.
    • The area under the curve towards the left side of -2 is the same as the area under the curve towards the right side of 2.
  2. P(Z≤2)=P(Z>−2)
  3. P(−2≤Z≤2)=1−2P(Z>2)
    • Waht is the total area under the curve? It is 1
    • What is the total area of these two shaded regions
      • It should be twice one of them (since both are the same)
    • Note that often times this probability is expressed by writing: ⟹|z|≤2
    • So this means:
      • P(|z|≤2)=1−2P(Z>2)
  4. P(Z<−2 OR Z>2)
    • You cannot have a variable that satisfies these two conditions, therefore these two are disjoint sets
    • So we can get it by
      • =P(Z<−2)+P(Z>2)
      • =2P(Z>2).
        • which is basically the sum of the two shaded regions

Normal Distribution PDF

Pasted image 20250925141856.png400

Normal Distribution CDF

Pasted image 20250925142128.png300

Pasted image 20250925142242.png300

Example (1)

Suppose X∼N(µ=2,σ2=8.41). Using the Online Normal Distribution Calculator, obtain:

Example (2)

Suppose X∼N(µ=2,σ2=8.41). Using the Online Normal Distribution Calculator, obtain:

Fact: