+ All Categories
Home > Documents > CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric...

CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric...

Date post: 31-Dec-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
100
CS70: Lecture 31. Gaussian RVs and CLT
Transcript
Page 1: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

CS70: Lecture 31.

Gaussian RVs and CLT

1. Review: Continuous Probability: Geometric andExponential

2. Normal Distribution3. Central Limit Theorem4. Examples

Page 2: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

CS70: Lecture 31.

Gaussian RVs and CLT

1. Review: Continuous Probability: Geometric andExponential

2. Normal Distribution3. Central Limit Theorem4. Examples

Page 3: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

CS70: Lecture 31.

Gaussian RVs and CLT

1. Review: Continuous Probability: Geometric andExponential

2. Normal Distribution3. Central Limit Theorem4. Examples

Page 4: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 5: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 6: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 7: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 8: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 9: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 10: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 11: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Continuous Probability

1. pdf: Pr [X ∈ (x ,x +δ ]] = fX (x)δ .

2. CDF: Pr [X ≤ x ] = FX (x) =∫ x−∞

fX (y)dy .

3. U[a,b], Expo(λ ), target.

4. Expectation: E [X ] =∫

−∞xfX (x)dx .

5. Expectation of function: E [h(X )] =∫

−∞h(x)fX (x)dx .

6. Variance: var [X ] = E [(X −E [X ])2] = E [X 2]−E [X ]2.

7. Variance of Sum of Independent RVs: If Xn are pairwiseindependent, var [X1 + · · ·+Xn] = var [X1]+ · · ·+var [Xn]

Page 12: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 13: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar.

They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 14: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 15: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second

with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 16: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N,

whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 17: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 18: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 19: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact:

X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 20: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 21: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis:

Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 22: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 23: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt

≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 24: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 25: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Geometric and Exponential: Relationship - Recap

The geometric and exponential distributions are similar. They areboth memoryless.

Consider flipping a coin every 1/N second with Pr [H] = p/N, whereN� 1.

Let X be the time until the first H.

Fact: X ≈ Expo(p).

Analysis: Note that

Pr [X > t ] ≈ Pr [first Nt flips are tails]

= (1− pN)Nt ≈ exp{−pt}.

Indeed, (1− aN )N ≈ exp{−a}.

Page 26: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 27: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo.

Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 28: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 29: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu.

Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 30: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] =

Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 31: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] =

Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 32: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 33: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu =

e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 34: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 35: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 36: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 37: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Minimum of Independent Expo Random Variables

Minimum of Independent Expo. Let X = Expo(λ ) and Y = Expo(µ)be independent RVs.

Recall that Pr [X > u] = e−λu. Then

Pr [min{X ,Y}> u] = Pr [X > u,Y > u] = Pr [X > u]Pr [Y > u]

= e−λu×e−µu = e−(λ+µ)u.

This shows that min{X ,Y}= Expo(λ +µ).

Thus, the minimum of two independent exponentially distributed RVsis exponentially distributed.

Page 38: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 39: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent.

DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 40: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.

Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 41: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 42: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 43: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 44: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z]

= Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 45: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 46: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) =

1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 47: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 48: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 49: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 50: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Maximum of Two Exponentials

Let X = Expo(λ ) and Y = Expo(µ) be independent. DefineZ =max{X ,Y}.Calculate E [Z ].

We compute fZ , then integrate.

One has

Pr [Z < z] = Pr [X < z,Y < z] = Pr [X < z]Pr [Y < z]

= (1−e−λz)(1−e−µz) = 1−e−λz −e−µz +e−(λ+µ)z

Thus,fZ (z) = λe−λz +µe−µz − (λ +µ)e−(λ+µ)z ,∀z > 0.

Hence,

E [Z ] =∫

0zfZ (z)dz =

1λ+

1µ− 1

λ +µ.

Page 51: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian)

random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 52: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 53: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 54: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 55: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 56: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;

Pr [|Y −µ|> 2σ ] = 5%.

Page 57: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Normal (Gaussian) Distribution.For any µ and σ , a normal (aka Gaussian) random variable Y ,which we write as Y = N (µ,σ2), has pdf

fY (y) =1√

2πσ2e−(y−µ)2/2σ2

.

Standard normal has µ = 0 and σ = 1.

Note: Pr [|Y −µ|> 1.65σ ] = 10%;Pr [|Y −µ|> 2σ ] = 5%.

Page 58: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 59: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 60: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 61: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Standard Normal Variable (You're not responsible for this!)

We need to show that 1

J

oo x2

r,:c e-2 dx = 1V 27T -oo

Use a trick: Let the value of the integral be A. Then

A2 = - e--2-dxdy 1

J

oo

J

oo x2 +y2

27T -(X)

-(X)

Now use polar co-ordinates.

Substituting:

A2 = _!_ f00

(21r

e-,: rd0dr 27T lo lo

2 r:2. 00 A = -e 2 ] 0 = 1

Page 62: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Scaling and Shifting

Theorem Let X = N (0,1) and Y = µ +σX . Then

Y = N (µ,σ2).

Proof: fX (x) = 1√2π

exp{− x2

2 }. Now,

fY (y) =1σ

fX (y −µ

σ)

=1√

2πσ2exp{− (y −µ)2

2σ2 }.

Page 63: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Scaling and Shifting

Theorem Let X = N (0,1) and Y = µ +σX . Then

Y = N (µ,σ2).

Proof: fX (x) = 1√2π

exp{− x2

2 }.

Now,

fY (y) =1σ

fX (y −µ

σ)

=1√

2πσ2exp{− (y −µ)2

2σ2 }.

Page 64: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Scaling and Shifting

Theorem Let X = N (0,1) and Y = µ +σX . Then

Y = N (µ,σ2).

Proof: fX (x) = 1√2π

exp{− x2

2 }. Now,

fY (y) =1σ

fX (y −µ

σ)

=1√

2πσ2exp{− (y −µ)2

2σ2 }.

Page 65: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Scaling and Shifting

Theorem Let X = N (0,1) and Y = µ +σX . Then

Y = N (µ,σ2).

Proof: fX (x) = 1√2π

exp{− x2

2 }. Now,

fY (y) =1σ

fX (y −µ

σ)

=1√

2πσ2exp{− (y −µ)2

2σ2 }.

Page 66: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Scaling and Shifting

Theorem Let X = N (0,1) and Y = µ +σX . Then

Y = N (µ,σ2).

Proof: fX (x) = 1√2π

exp{− x2

2 }. Now,

fY (y) =1σ

fX (y −µ

σ)

=1√

2πσ2exp{− (y −µ)2

2σ2 }.

Page 67: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 68: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 69: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit Theorem

For any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 70: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit Theorem

For any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 71: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 72: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 73: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is

µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 74: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is

σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 75: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 76: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 77: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Crown Jewel of Normal Distribution

Central Limit TheoremFor any set of independent identically distributed (i.i.d.) randomvariables Xi , define An = 1

n ∑Xi to be the “running average” as afunction of n.

Suppose the Xi ’s have expectation µ = E(Xi) and variance σ2.

Then the Expectation of An is µ, and its variance is σ2/n.

Interesting question: What happens to the distribution of An as ngets large?

Note: We are asking this for any arbitrary original distribution Xi !

Page 78: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit Theorem

Central Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 79: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 80: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2.

Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 81: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 82: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,

Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 83: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 84: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 85: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof:

See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 86: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 87: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 88: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn)

=1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 89: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ)

= 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 90: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 91: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn)

=1

σ2/nVar(An) = 1.

Page 92: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An)

= 1.

Page 93: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Central Limit TheoremCentral Limit Theorem

Let X1,X2, . . . be i.i.d. with E [X1] = µ and var(X1) = σ2. Define

Sn :=An−µ

σ/√

n=

X1 + · · ·+Xn−nµ

σ√

n.

Then,Sn→N (0,1),as n→ ∞.

That is,

Pr [Sn ≤ α]→ 1√2π

∫α

−∞

e−x2/2dx .

Proof: See EE126.

Note:

E(Sn) =1

σ/√

n(E(An)−µ) = 0

Var(Sn) =1

σ2/nVar(An) = 1.

Page 94: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Implications of CLT

0 The Distribution of Sn wipes out all the information

in the original information except forµ and u2.

0 If there are large number of small and independent factors,

the aggregate of these factors will be normally distributed.

E.g. Noise.

O The Gaussian Distribution is very important - many problems

involve sums of iid random variables and the only thing one

needs to know is the mean and variance.

Page 95: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 96: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping
Page 97: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Inequalities: A Preview

n

pn

µ

Pr[|X � µ| > ✏]

✏✏

Chebyshev

n

pn

pn

Distribution

n

pn

Pr[X > a]

a

Markov

µ

Page 98: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Summary

Gaussian and CLT

1. Gaussian: N (µ,σ2) : fX (x) = ... “bell curve”

2. CLT: Xn i.i.d. =⇒ An−µ

σ/√

n →N (0,1)

Page 99: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Summary

Gaussian and CLT

1. Gaussian: N (µ,σ2) : fX (x) = ... “bell curve”

2. CLT: Xn i.i.d. =⇒ An−µ

σ/√

n →N (0,1)

Page 100: CS70: Lecture 31. · 2018. 1. 4. · Geometric and Exponential: Relationship - Recap The geometric and exponential distributions are similar. They are both memoryless. Consider flipping

Summary

Gaussian and CLT

1. Gaussian: N (µ,σ2) : fX (x) = ... “bell curve”

2. CLT: Xn i.i.d. =⇒ An−µ

σ/√

n →N (0,1)


Recommended