powerpoint presentationarielpro/15251/lectures/lecture... · 2013-09-18 · from rvs to events •...

23
CMU 15-251 Probability II Teachers: Victor Adamchik Ariel Procaccia (this time)

Upload: others

Post on 27-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

CMU 15-251

Probability II

Teachers:

Victor Adamchik

Ariel Procaccia (this time)

Page 2: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Deep questions

2

Page 3: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Great expectations

3

Page 4: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Random variable

• 𝑆

• 𝑋: 𝑆 → ℝ

o 𝑋 =

𝑋 3,4 = 3, 𝑋 1,5 = 1

o 𝑋 =

𝑋 3,4 = 7, 𝑋 1,5 = 6

4

Page 5: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Two coins tossed

• 𝑋: 𝑇𝑇, 𝐻𝑇, 𝑇𝐻,𝐻𝐻 → *0,1,2+

5

𝑇𝑇 1

4

𝐻𝑇 1

4

𝑇𝐻 1

4

𝐻𝐻 1

4

𝑆

0 1

4

1 1

2

2 1

4

𝑋

Page 6: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

From RVs to events

• 𝑋 𝑎 ∈ ℝ 𝐸𝑋 = 𝑎

Pr 𝐸 = Pr 𝑋 = 𝑎 = Pr, 𝑡 ∈ 𝑆 𝑋 𝑡 = 𝑎+-

6

𝑇𝑇 1

4

𝐻𝑇 1

4

𝑇𝐻 1

4

𝐻𝐻 1

4

𝑆

0 1

4

1 1

2

2 1

4

𝑋

Pr 𝑋 = 1 = Pr 𝐻𝑇, 𝑇𝐻 = 1/2

Page 7: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

From events to RVs

• 𝐸𝐸

𝕀𝐸 𝑡 = 1 𝑡 ∈ 𝐸0 𝑡 ∉ 𝐸

7

𝑇𝑇 1

4

𝐻𝑇 1

4

𝑇𝐻 1

4

𝐻𝐻 1

4

𝑆

0 1

2

1 1

2

𝕀𝐸

𝐸

𝐸 =

Page 8: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Independent RVs

𝑎, 𝑏, 𝑋 = 𝑎 𝑌 = 𝑏

8

Page 9: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Expectation

• 𝑋

𝔼 𝑋 = Pr 𝑡 × 𝑋 𝑡 = Pr 𝑋 = 𝑘 × 𝑘

𝑘𝑡∈𝑆

• 𝑋 𝔼 𝑋 = ?

1. 1

2. 4/3

3. 3/2

4. 2

9

Pr,𝑋 = 𝔼 𝑋 -

Page 10: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Expectation

• 𝕀𝐸 𝐸𝔼 𝕀𝐸 = Pr 𝕀𝐸 = 1 × 1 = Pr,𝐸-

• 𝑋 𝑌𝑆 𝑍 = 𝑋 + 𝑌

𝑍 𝑡 = 𝑋 𝑡 + 𝑌 𝑡

• 𝑋 𝑌𝑍

10

Page 11: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Linearity of expectation

• 𝑍 = 𝑋 + 𝑌𝔼 𝑍 = 𝔼 𝑋 + 𝔼,

11

𝑋 𝑌

Page 12: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Linearity of expectation

𝔼 𝑍 = Pr 𝑡 𝑍 𝑡

𝑡∈𝑆

12

= Pr 𝑡 (𝑋 𝑡 + 𝑌 𝑡 )

𝑡∈𝑆

= Pr 𝑡 𝑋 𝑡 + Pr 𝑡 𝑌(𝑡)

𝑡∈𝑆𝑡∈𝑆

= 𝔼 𝑋 + 𝔼 𝑌 ∎

Page 13: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

using linearity of expectation

13

Page 14: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Using linearity of expectation

14

𝑘 × Pr 𝑘 correct letters = 𝑘 × ,..aargh!!..-

𝑘𝑘

Page 15: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Using linearity of expectation

• 𝐴𝑖 𝑖

• 𝕀𝐴𝑖𝐴𝑖

o

• 𝔼 𝕀𝐴𝑖= Pr 𝐴𝑖 = 1 = 1/100

• 𝑍 = 𝕀𝐴𝑖

100𝑖=1

• 𝔼 𝑍 = 100 ×1

100= 1

15

Page 16: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Using linearity of expectation

• 𝑛 𝑝

1. 1

2. 𝑝

3. 𝑛

4. 𝑛𝑝

16

Page 17: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Balls and bins

• 𝑛 𝑛

17

Page 18: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Balls and bins

• 𝑋𝑖 𝑖

• 𝑛 = 𝔼 𝑋1 + ⋯𝑋𝑛 = 𝔼 𝑋1 + ⋯+ 𝔼 𝑋𝑛

• 𝔼 𝑋𝑖 = 1 𝑖

log 𝑛 / log log 𝑛

18

Page 19: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Balls and bins

19

• 𝑛 𝑛

1. ½

2. 1

3. 2

4. log 𝑛/ log log 𝑛

• ∼ log log 𝑛

Page 20: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

Conditional expectation

• 𝔼 𝑋 𝐸- = Pr 𝑋 = 𝑘 𝐸- × 𝑘𝑘

𝔼 𝑋 = 𝔼 𝑋 𝐸- × Pr 𝐸 + 𝔼 𝑋 𝐸 - × Pr,𝐸 -

20

Page 21: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

geometric RVs

• 𝑝

• 𝑋 =

• 𝔼 𝑋 = 𝔼 𝑋 𝐻- Pr,𝐻- + 𝔼 𝑋 𝑇- Pr,𝑇-= 1 ⋅ 𝑝 + 𝔼 𝑋 + 1 1 − 𝑝= 1 + 𝔼 𝑋 1 − 𝑝

• 𝔼 𝑋 = 1/𝑝

21

Page 22: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

CMUland

22

Page 23: PowerPoint Presentationarielpro/15251/Lectures/lecture... · 2013-09-18 · From RVs to events • ∈ℝ 𝐸 = Pr𝐸=Pr = =Pr,𝑡∈ 𝑡= +-6 1 4 𝐻 1 4 𝐻 1 4 𝐻𝐻 1

What we have learned

o

o

o

o

o

23