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.png|400

Facts:

  1. P(X=a)=0=P(X=b)
  2. P(Xa)=P(X<a)
    • {X <= a} = {X < a}
      • They are disjoint events
  3. P(X>b)=P(Xb)
  4. P(aXb)=P(a<Xb)=P(aX<b)=P(a<X<b)
    • It doesn't matter if we include or not the endpoints of the boundary points
  5. P(aXb)=P(Xb)P(Xa)
    • 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)=1P(Xb)
    • {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.png|275

Then f(0.1)=5e5(0.1)=3.0326533>1.

Example

Let the continuous random variable X have pdf

Pasted image 20250923144322.png|275

f(x)dx=101f(x)dx=c3=1c=3. P(X0.4)=0.4f(x)dx=00.4f(x)dx=(0.4)3=0.064. P(0.1X<0.7)=...

...

Example (2)

Let the continuous random variable X have pdf

Pasted image 20250923144934.png|275

f(x)dx=11f(x)dx=c3

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

P(X>2)=2f(x)dx=123=0.125=1P(X2). P(1.3X<3.5)=1.33.5f(x)dx=[1(1.3)31(3.5)3]=0.43184 P(X3.5)P(X1.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(Xx)=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. 0F(x)1,
    • For all real no. x
  2. F(x)F(y) for all (x, y) with x < y
  3. limxF(x)=0
    limxF(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.png|275

Then, its CDF:

Pasted image 20250923150652.png|275

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))20

Example

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

Pasted image 20250923151841.png|275

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.png|275

We write, XUniform(a,b).

Pasted image 20250923152241.png|300

Uniform Distribution - CDF

Suppose, XUniform(a,b). Then,

Pasted image 20250923152453.png|275

Pasted image 20250923152512.png|300

Uniform Distribution - Properties

If X∼Uniform(a,b), then

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

    • P(Xc)=(ca)/(ba) = F(c)
    • P(cXd)=(dc)/(ba) = F(a)F(c)
    • P(X>d)=(bd)/(ba)=1(da)/(ba)
      • = 1F(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.png|275

=dcba=63100=0.3 P(X<4|X6)=P({X<4}{X6})P(X6)

...

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 XN(µ,σ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πex2/2, <x<

Notation:

Pasted image 20250925141811.png|250

Example:

Facts:

  1. If XN(µ,σ2) then,
    • CDF of X can be expressed in terms of the cdf of a standard normal distribution
    • F(x)=P(Xx)
      • This is the definition of the CDF of a continuous rv
    • We can write XxXµ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 XxXµσxµσ
    • Which is the same as saying Zxµσ
    • So we get that:
      • F(x)=P(Zxµσ)
      • =ϕ(xµσ)
    • Suppose XN(µ,σ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 1p
      • Probabilistically speaking we can write
        • Normal Dist.: P(Xx(p))=p=1P(X>x(p))
        • Standard Normal Dist.: P(Zz(p))=p=1P(Z>z(p))
  2. If XN(µ,σ2) then,
    • x(p)=µ+σz(p)
    • If P(Xx) then,
      • =P(Zxµσ)
      • for any x: real no. in a XN(µ,σ2).
  3. For any real no. <a<b<:
    • P(Xa)=P(Zxµσ)
    • P(X>a)=P(Z>bµσ)=1P(Zbµσ)
    • P(aXb)
      • =P(Xb)P(Xa)
      • =P(Zbµσ)P(Zaµσ)
      • = phi... (complete)

Example of Standard Normal Distribution

  1. P(Z>2)=P(Z2)
    • 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(Z2)=P(Z>2)
  3. P(2Z2)=12P(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)=12P(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.png|400

Normal Distribution CDF

Pasted image 20250925142128.png|300

Pasted image 20250925142242.png|300

Example (1)

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

Example (2)

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

Fact: