MATH 20: PROBABILITY
Midterm 1 Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
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?
Midterm 1 Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
for midterm 1
How many hours you spend preparing for the exam? How many hours you spend
the exam? Which problem you enjoy most? What kind
problems would you suggest next time? β¦
XC 2020
Problem 1: True or False
XC 2020
Density Functions of Continuous Random Variable
Β§ The probability
an event
the form [π¦, π¦ + ππ¦], where ππ¦ is small, can be estimated by π [π¦, π¦ + ππ¦] β π π¦ ππ¦. Β§ As ππ¦ β 0, the above probability approaches 0, so that the probability
a single point π¦, π({π¦}) is 0. π π π¦ π¦ + ππ¦
XC 2020
Problem 1: True or False
XC 2020
Problem 3: Proof
XC 2020
Binomial Theorem (π + π)!= β"#$
! ! " π"π!%".
Let π = π = 1, we have
2! =
! $ + ! & + ! ' + β― + ! ! .
Let π = β1, π = 1, we have
0 =
! $ β ! & + ! ' β β― + (β1)! ! ! .
XC 2020
XC 2020
Problem 4: Manipulation
XC 2020
! 0 β€ π β€ 1
XC 2020
! π > 1
XC 2020
Problem 4: Manipulation
XC 2020
! 0 β€ π β€ 1 4 ! 0 β€ |π β π| β€ 1 2
XC 2020
XC 2020
Problem 5: National Committee of Senators
XC 2020
!
π πΉ = 1 β π(πΉ()
XC 2020
Problem 6: Star Trek: Long and Prosper
XC 2020
XC 2020
Problem 6: Star Trek: Long and Prosper
XC 2020
XC 2020
Problem 7: Role Playing Game (RPG)
XC 2020
Problem 7: Role Playing Game (RPG)
XC 2020
XC 2020
An interview question by video game companies
XC 2020
Problem 7: Role Playing Game (RPG)
1 β 0 4 β 5
XC 2020
XC 2020
As a mathematician, you can find a job in a video game company!
XC 2020
RPGs use some sort
randomizer when resolving actions.
Β§ Most
dice are used for this, but a few games use cards, rock- paper-scissors
means
randomization. Β§ There are dozens
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
is no such thing as a perfect dice-roll system suitable for all games. Β§ How will a designer be able to decide which
the existing dice-roll method is best suited for his
her game,
when to invent his
her
Β§ It is in many ways an
like any art, there is an element
craft involved.
XC 2020
Problem 8: Role Playing Game (continued)
XC 2020
XC 2020
Posterior probability = )*+,* -*,./.+0+12Γ4+560+7,,8
9:+86;<6
.
Pr Prior probab ability
The pr prior pr probabili lity of an event (often simply called th the pri rior) is its probability
from some prior information.
Evidence ce
The ev eviden ence ce term in Bayesβ theorem refers to the ov
probabili lity of this new piece
information.
Like kelihood
The like kelihood represents a conditional
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
information.
XC 2020
Pr Prior probab ability
The pr prior pr probabili lity of an event (often simply called th the pri rior) is its probability
from some prior information.
π, ππ, or πππ Evidence ce
The ev eviden ence ce term in Bayesβ theorem refers to the ov
probabili lity of this new piece
information.
ββββ in a row Like kelihood
The like kelihood represents a conditional
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
information.
π | ββββ in a row ππ | ββββ in a row
πππ | ββββ in a row
XC 2020
Ba Bayesβ esβ f formula
π πΌ= πΉ = π πΌ= π(πΉ|πΌ=) π(πΉ) π πΉ = β=#&
> π(πΉ β© πΌ=).
=
π πΉ β© πΌ! = π πΉ πΌ! π(πΌ!).
π πΉ = β=#&
> π πΉ πΌ= π(πΌ=).
Ba Bayesβ esβ f formula
π πΌ= πΉ = π πΌ= π(πΉ|πΌ=) β=#&
> π πΉ πΌ= π(πΌ=)
XC 2020
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
probabili lity of this new piece
information.
ββββ in a row
XC 2020
β in the next mission
new probability
π, ππ, or πππ
prior probability
π | ββββ in a row ππ | ββββ in a row
πππ | ββββ in a row
posterior probability
XC 2020
New probability π β next = π β next | π π π + π β next | ππ π ππ + π β next | πππ π πππ
Ne New prob
β in the next mission Po Posterior probability π | ββββ in a row ππ | ββββ in a row
πππ | ββββ in a row
XC 2020
XC 2020
Problem 9: A Random Walk Down Wall Street
XC 2020
π π’ + 1 = = π£π π’ , with prob π ππ(π’), with prob 1 β π
XC 2020
Problem 9: A Random Walk Down Wall Street
XC 2020
v
Experiment with both smaller and longer periods
time. Try incorporating machine learning to assist with pattern recognition. Incorporate Bayesian
market trends and peopleβs decisions to buy/sell are based
peoplesβ beliefs.
XC 2020
v
Switch the model from bigram to trigram. Bayesian learning model and Bayesian regression. β¦
XC 2020
v
XC 2020
v
XC 2020
XC 2020
XC 2020