Exponential & Normal Distribution Lec.22 July 29, 2020 - - PowerPoint PPT Presentation

exponential normal distribution
SMART_READER_LITE
LIVE PREVIEW

Exponential & Normal Distribution Lec.22 July 29, 2020 - - PowerPoint PPT Presentation

Exponential & Normal Distribution Lec.22 July 29, 2020 Exponential Distribution: Fundamental Idea The exponential distribution is the continuous analog of the geometric distribution. In the case of the geometric coin flipping experiment,


slide-1
SLIDE 1

Exponential & Normal Distribution

Lec.22 July 29, 2020

slide-2
SLIDE 2

Exponential Distribution: Fundamental Idea

The exponential distribution is the continuous analog of the geometric distribution. In the case of the geometric coin flipping experiment, we know that the first Heads occurs at a discrete point in time. In the real-world, we might be waiting for a system to crash, or for a Piazza question to be answered. Here we have a continuous point in time, as opposed to a discrete one. These scenarios are naturally modeled by the exponential distribution.

slide-3
SLIDE 3

Definition

For λ > 0, a a continuous random variable X with pdf f (x) = ( λe−λx, if x ≥ 0 0,

  • therwise

is called an exponential random variable with rate parameter λ, and we write X ∼ Exp(λ)

slide-4
SLIDE 4

Picture

slide-5
SLIDE 5

Check

slide-6
SLIDE 6

Check

f (x) is nonnegative. Furthermore Z ∞

−∞

f (x)dx = Z ∞ λe−λxdx = −e−λx|∞

0 = 0 − (−1) = 1

Thus, f (x) is a valid pdf.

slide-7
SLIDE 7

Mean and Variance of an Exponential

slide-8
SLIDE 8

Mean and Variance of an Exponential

X ∼ Exp(λ) E[X] = Z ∞ xλe−λxdx = 1 λ E[X 2] = Z ∞ x2λe−λxdx = 2 λ2 Var(X) = E[X 2] − E[X]2 = 2 λ2 − 1 λ2 = 1 λ2

slide-9
SLIDE 9

CDF of an Exponential

slide-10
SLIDE 10

CDF of an Exponential

X ∼ Exp(λ) If x < 0, the CDF is 0. Otherwise, P(X ≤ x) = Z x λe−λsds = −e−λs|x

0 = −e−λx − (−1) = 1 − e−λx

The complement of the CDF (CCDF) is P(X > x) = 1 − P(X ≤ x) = 1 − (1 − e−λx) = e−λx

slide-11
SLIDE 11

Continuous Analog of Geometric

slide-12
SLIDE 12

Continuous Analog of Geometric

Let X ∼ Exp(λ), where X is the number of seconds we have to wait. Then P(X > x) = e−λx. This is the probability we have to wait at least x seconds. We can consider a discrete time setting, in which we perform 1 trial every δ seconds (then we can make δ → 0 to get a continuous setting). Here we can say our success probability for a trial is p = λ ∗ δ. This makes sense since λ can be interpreted as a rate of success per unit time (λ = p

δ ). Let Y be the time (in seconds)

until the first success. P(Y > kδ) = (1 − p)k = (1 − λδ)k If we switch to time instead of trials via t = kδ, we get: P(Y > t) = P(Y > (t δ)δ) = (1 − λδ)

t δ ≈ e−λt

as δ → 0.

slide-13
SLIDE 13

Memoryless Property

slide-14
SLIDE 14

Memoryless Property

Just like the geometric distribution, the Exponential distribution exhibits the memoryless property. Let X ∼ Exp(λ), then P(X > x + t|X > t) = P(X > x). Proof: P(X > x + t|X > t) = P(X > x + t ∩ X > t) P(X > t) = P(X > x + t) P(X > t) = e−λ(x+t) e−λt = e−λx = P(X > x)

slide-15
SLIDE 15

Normal Distribution: Fundamental Idea

The normal (or Gaussian) distribution is perhaps the most famous continuous probability distribution. It is often used as the go-to distribution to represent the distribution of unknown random

  • variables. Later in this course we will discuss the justification

behind doing so. In the real-world, we might be trying to model measurement error,

  • r the distribution of scores for an exam. These scenarios are

naturally modeled by the normal distribution.

slide-16
SLIDE 16

Definition

For any µ ∈ R and σ > 0, a continuous random variable X with pdf f (x) = 1 √ 2πσ2 e− (x−µ)2

2σ2

is called a normal random variable with mean parameter µ and variance σ2, and we write N(µ, σ2) In the special case where µ = 0 and σ = 1, X is a standard normal random variabe. The CDF of the standard normal has a special name, P(X < x) = Φ(x).

slide-17
SLIDE 17

Picture

slide-18
SLIDE 18

Check

slide-19
SLIDE 19

Check

f (x) is nonnegative. However, Z ∞

−∞

f (x)dx = Z ∞

−∞

1 √ 2πσ2 e− (x−µ)2

2σ2 dx = 1

is true but tricky to verify (need to use polar coordinates).

slide-20
SLIDE 20

Mean and Variance of Standard Normal

slide-21
SLIDE 21

Mean and Variance of Standard Normal

E[X] = Z ∞

−∞

xf (x)dx = Z ∞

−∞

x 1 √ 2π e− x2

2 dx = 0

(1) Var[X] = E[X 2] − E[X]2 = E[X 2] (2) = Z ∞

−∞

x2f (x)dx = Z ∞

−∞

x2 1 √ 2π e− x2

2 dx = 1

(3)

slide-22
SLIDE 22

Scaling and Shifting Normals

slide-23
SLIDE 23

Scaling and Shifting Normals

If X ∼ N(µ, σ2), then Y = X−µ

σ

∼ N(0, 1). Proof: Let X ∼ N(µ, σ2), we can calculate the distribution of Y = X−µ

σ

P(a ≤ Y ≤ b) = P(σa + µ ≤ X ≤ σb + µ) (4) = 1 √ 2πσ2 Z σb+µ

σa+µ

e− (x−µ)2

2σ2 dx

(5) = 1 √ 2π Z b

a

e− y2

2 dy

(6)

slide-24
SLIDE 24

Mean and Variance of Normal

slide-25
SLIDE 25

Mean and Variance of Normal

Let X ∼ N(µ, σ2), we know then that the distribution of Y = X−µ

σ

is N(0, 1). So, 0 = E[Y ] = E[X − µ σ ] = E[X − µ] σ (7) ⇒ 0 = E[X] − µ (8) ⇒ E[X] = µ (9) For variance, 1 = Var[Y ] = Var[X − µ σ ] = Var[X − µ] σ2 (10) ⇒ 1 = Var[X] σ2 (11) ⇒ Var[X] = σ2 (12)

slide-26
SLIDE 26

What does this mean?

We can relate any normal random variable X ∼ N(µ, σ2) to the standard normal Y : P(X ≤ a) = P(Y ≤ a − µ σ ) = Φ(a − µ σ ) Since the CDF uniquely characterizes a distribution, we use a table

  • f precomputed values of Φ(x) to do computation with normal

distributions.

slide-27
SLIDE 27

Using Table of Precomputed Values

If X ∼ N(60, 202), and we want to find P(X ≥ 80).

slide-28
SLIDE 28

Using Table of Precomputed Values

If X ∼ N(60, 202), and we want to find P(X ≥ 80). P(X ≥ 80) = 1 − P(X ≤ 80) . We can let Y = X−µ

σ

= X−60

20 , so Y ∼ N(0, 1). Then,

P(X ≤ 80) = P(X − 60 20 ≤ 80 − 60 20 ) = P(Y ≤ 1) = Φ(1) = 0.8413... (using table) ⇒ P(X ≥ 80) = 1 − 0.8413...

slide-29
SLIDE 29

Standard Normal CDF Table

slide-30
SLIDE 30

Nice Property: Sum of Indep. Gaussians is Gaussian

If X ∼ N(µx, σ2

x) and Y ∼ N(µy, σ2 y), then Z = X + Y has

distribution Z ∼ N(µx + µy, σ2

x + σ2 y)

Proof: See notes/HW.

slide-31
SLIDE 31

Two Envelopes Revisited

Just like last time, one envelope contains x and the other contains 2x, except this time you can look inside the envelope you are given and see how much money is inside before deciding to switch. Is there some strategy that can give you a better than 50% chance of getting the envelope with more money?

slide-32
SLIDE 32

Two Envelopes Revisited

slide-33
SLIDE 33