MATH 20: PROBABILITY Midterm 1 Xingru Chen - - PowerPoint PPT Presentation

β–Ά
math 20 probability
SMART_READER_LITE
LIVE PREVIEW

MATH 20: PROBABILITY Midterm 1 Xingru Chen - - PowerPoint PPT Presentation

MATH 20: PROBABILITY Midterm 1 Xingru Chen xingru.chen.gr@dartmouth.edu XC 2020 Ex Exam How many hours you spend preparing for the exam? Wrapper Wr How many hours you spend on the exam? Which problem you enjoy most?


slide-1
SLIDE 1

MATH 20: PROBABILITY

Midterm 1 Xingru Chen xingru.chen.gr@dartmouth.edu

XC 2020

slide-2
SLIDE 2

Ex Exam Wr Wrapper

for midterm 1

How many hours you spend preparing for the exam? How many hours you spend

  • n

the exam? Which problem you enjoy most? What kind

  • f

problems would you suggest next time? …

XC 2020

slide-3
SLIDE 3

Problem 1: True or False

XC 2020

slide-4
SLIDE 4

Density Functions of Continuous Random Variable

Β§ The probability

  • f
  • ccurrence
  • f

an event

  • f

the form [𝑦, 𝑦 + 𝑒𝑦], where 𝑒𝑦 is small, can be estimated by 𝑄 [𝑦, 𝑦 + 𝑒𝑦] β‰ˆ 𝑔 𝑦 𝑒𝑦. Β§ As 𝑒𝑦 β†’ 0, the above probability approaches 0, so that the probability

  • f

a single point 𝑦, 𝑄({𝑦}) is 0. 𝒛 π’š 𝑦 𝑦 + 𝑒𝑦

XC 2020

slide-5
SLIDE 5

Problem 1: True or False

XC 2020

slide-6
SLIDE 6

Problem 3: Proof

XC 2020

slide-7
SLIDE 7

=

Binomial Theorem (𝑏 + 𝑐)!= βˆ‘"#$

! ! " 𝑏"𝑐!%".

=

Let 𝑏 = 𝑐 = 1, we have

2! =

! $ + ! & + ! ' + β‹― + ! ! .

=

Let 𝑏 = βˆ’1, 𝑐 = 1, we have

0 =

! $ βˆ’ ! & + ! ' βˆ’ β‹― + (βˆ’1)! ! ! .

XC 2020

slide-8
SLIDE 8

XC 2020

slide-9
SLIDE 9

Problem 4: Manipulation

XC 2020

slide-10
SLIDE 10

! 0 ≀ π‘Ž ≀ 1

XC 2020

slide-11
SLIDE 11

! π‘Ž > 1

XC 2020

slide-12
SLIDE 12

Problem 4: Manipulation

XC 2020

slide-13
SLIDE 13

! 0 ≀ π‘Ž ≀ 1 4 ! 0 ≀ |π‘Œ βˆ’ 𝑍| ≀ 1 2

XC 2020

slide-14
SLIDE 14

XC 2020

slide-15
SLIDE 15

Problem 5: National Committee of Senators

XC 2020

slide-16
SLIDE 16

!

𝑄 𝐹 = 1 βˆ’ 𝑄(𝐹()

XC 2020

slide-17
SLIDE 17

Problem 6: Star Trek: Long and Prosper

XC 2020

slide-18
SLIDE 18

XC 2020

slide-19
SLIDE 19

Problem 6: Star Trek: Long and Prosper

XC 2020

slide-20
SLIDE 20

XC 2020

slide-21
SLIDE 21

Problem 7: Role Playing Game (RPG)

XC 2020

slide-22
SLIDE 22

Problem 7: Role Playing Game (RPG)

XC 2020

slide-23
SLIDE 23

XC 2020

slide-24
SLIDE 24

An interview question by video game companies

XC 2020

slide-25
SLIDE 25

Problem 7: Role Playing Game (RPG)

1 β†’ 0 4 β†’ 5

XC 2020

slide-26
SLIDE 26

XC 2020

slide-27
SLIDE 27

DICE ROLLS IN ROLE PLAYING GAMES

As a mathematician, you can find a job in a video game company!

XC 2020

slide-28
SLIDE 28

RPGs use some sort

  • f

randomizer when resolving actions.

Β§ Most

  • ften

dice are used for this, but a few games use cards, rock- paper-scissors

  • r
  • ther

means

  • f

randomization. Β§ There are dozens

  • f

different ways dice have been used in RPGs, and we are likely to see many more in the future. Β§ This is not an evolution from bad methods to better

  • methods. There

is no such thing as a perfect dice-roll system suitable for all games. Β§ How will a designer be able to decide which

  • f

the existing dice-roll method is best suited for his

  • r

her game,

  • r

when to invent his

  • r

her

  • wn?

Β§ It is in many ways an

  • art. But

like any art, there is an element

  • f

craft involved.

XC 2020

slide-29
SLIDE 29

Problem 8: Role Playing Game (continued)

XC 2020

slide-30
SLIDE 30

XC 2020

slide-31
SLIDE 31

Posterior probability = )*+,* -*,./.+0+12Γ—4+560+7,,8

9:+86;<6

.

B B

Pr Prior probab ability

The pr prior pr probabili lity of an event (often simply called th the pri rior) is its probability

  • btained

from some prior information.

Evidence ce

The ev eviden ence ce term in Bayes’ theorem refers to the ov

  • verall pr

probabili lity of this new piece

  • f

information.

Like kelihood

  • od

The like kelihood represents a conditional

  • probability. It

is the degree to which the first event is consistent with the second event.

Po Posterior probability

The po post ster erior pr probabili lity represents the up updated pr prior pr probabili lity after taking into account some new piece

  • f

information.

XC 2020

slide-32
SLIDE 32

Pr Prior probab ability

The pr prior pr probabili lity of an event (often simply called th the pri rior) is its probability

  • btained

from some prior information.

𝑆, 𝑇𝑆, or 𝑇𝑇𝑆 Evidence ce

The ev eviden ence ce term in Bayes’ theorem refers to the ov

  • verall pr

probabili lity of this new piece

  • f

information.

βš”βš”βš”βš” in a row Like kelihood

  • od

The like kelihood represents a conditional

  • probability. It

is the degree to which the first event is consistent with the second event.

βš”βš”βš”βš” in a row | 𝑆 βš”βš”βš”βš” in a row | 𝑇𝑆 or βš”βš”βš”βš” in a row | 𝑇𝑇𝑆 Po Posterior probability

The po post ster erior pr probabili lity represents the up updated pr prior pr probabili lity after taking into account some new piece

  • f

information.

𝑆 | βš”βš”βš”βš” in a row 𝑇𝑆 | βš”βš”βš”βš” in a row

  • r

𝑇𝑇𝑆 | βš”βš”βš”βš” in a row

XC 2020

slide-33
SLIDE 33

Ba Bayes’ es’ f formula

𝑄 𝐼= 𝐹 = 𝑄 𝐼= 𝑄(𝐹|𝐼=) 𝑄(𝐹) 𝑄 𝐹 = βˆ‘=#&

> 𝑄(𝐹 ∩ 𝐼=).

=

𝑄 𝐹 ∩ 𝐼! = 𝑄 𝐹 𝐼! 𝑄(𝐼!).

𝑄 𝐹 = βˆ‘=#&

> 𝑄 𝐹 𝐼= 𝑄(𝐼=).

Ba Bayes’ es’ f formula

𝑄 𝐼= 𝐹 = 𝑄 𝐼= 𝑄(𝐹|𝐼=) βˆ‘=#&

> 𝑄 𝐹 𝐼= 𝑄(𝐼=)

XC 2020

slide-34
SLIDE 34

=

Evidence 𝑄 βš”βš”βš”βš” in a row = 𝑄 βš”βš”βš”βš” in a row | 𝑆 𝑄 𝑆 + 𝑄 βš”βš”βš”βš” in a row | 𝑇𝑆 𝑄 𝑇𝑆 + 𝑄 βš”βš”βš”βš” in a row | 𝑇𝑇𝑆 𝑄 𝑇𝑇𝑆

Evidence ce

The ev eviden ence ce term in Bayes’ theorem refers to the ov

  • verall pr

probabili lity of this new piece

  • f

information.

βš”βš”βš”βš” in a row

XC 2020

slide-35
SLIDE 35

03 01 02

βš” in the next mission

new probability

𝑆, 𝑇𝑆, or 𝑇𝑇𝑆

prior probability

𝑆 | βš”βš”βš”βš” in a row 𝑇𝑆 | βš”βš”βš”βš” in a row

  • r

𝑇𝑇𝑆 | βš”βš”βš”βš” in a row

posterior probability

2 or 3 Steps

XC 2020

slide-36
SLIDE 36

=

New probability 𝑄 βš” next = 𝑄 βš” next | 𝑆 𝑄 𝑆 + 𝑄 βš” next | 𝑇𝑆 𝑄 𝑇𝑆 + 𝑄 βš” next | 𝑇𝑇𝑆 𝑄 𝑇𝑇𝑆

Ne New prob

  • bability

βš” in the next mission Po Posterior probability 𝑆 | βš”βš”βš”βš” in a row 𝑇𝑆 | βš”βš”βš”βš” in a row

  • r

𝑇𝑇𝑆 | βš”βš”βš”βš” in a row

XC 2020

slide-37
SLIDE 37

XC 2020

slide-38
SLIDE 38

Problem 9: A Random Walk Down Wall Street

XC 2020

slide-39
SLIDE 39

𝑇 𝑒 + 1 = = 𝑣𝑇 𝑒 , with prob π‘ž 𝑒𝑇(𝑒), with prob 1 βˆ’ π‘ž

XC 2020

slide-40
SLIDE 40

Problem 9: A Random Walk Down Wall Street

XC 2020

slide-41
SLIDE 41

v

Jo Jonathan Lee

Experiment with both smaller and longer periods

  • f

time. Try incorporating machine learning to assist with pattern recognition. Incorporate Bayesian

  • probability. Stock

market trends and people’s decisions to buy/sell are based

  • n

peoples’ beliefs.

XC 2020

slide-42
SLIDE 42

v

Sa Samuel l Bake ker

Switch the model from bigram to trigram. Bayesian learning model and Bayesian regression. …

XC 2020

slide-43
SLIDE 43

v

Ga Gaye yeong Son Song

XC 2020

slide-44
SLIDE 44

v

Ga Gaye yeong Son Song

XC 2020

slide-45
SLIDE 45

XC 2020

slide-46
SLIDE 46

XC 2020