probability
probability
Overview
IMGD 2905
• Statistics important for • What are some examples of
game analysis probabilities needed for
• Probability important for game development?
Probability statistics
• So, understand some basic
probability
Chapters 4 & 5 • Also, probability useful for
game development
https://www.mathsisfun.com/data/i
mages/probability-line.svg
https://cdn.kastatic.org/googleusercontent/Z0TuLq2KolavsrfDXSbLqi0S-
https://www.mathsisfun.com/data/i wnlCrC13cKGG68wK9ljrTiXzRqvfq7IpWNzcwgzlpEOI8YmMafp4K4zO0sanvXu
mages/probability-line.svg
1
4/27/2017
2
4/27/2017
3
4/27/2017
• Probability distribution –
values and likelihood of • “So what?”
those values that random • Can use known
variable can take
• Why? If can model formulas
mathematically, can use to
predict occurrences
– e.g., probability slot machine https://goo.gl/jqomFI
4
4/27/2017
http://web.mnstate.edu/peil/MDEV102/U3/S25/Cartesian3.PNG
http://www.mathnstuff.com/math/spoken/here/2class/90/binom2.gif
5
4/27/2017
http://www.dummies.com/education/math/business-statistics/how-to-compute-poisson-probabilities/
6
4/27/2017
zero, total probability infinite – e.g., P(59.5 < X < 60.5) normal (“bell curve”)
(this violates our rule) – Basis for inferential statistics
• Uses calculus (integrate (e.g., statistical tests)
area under curve) (not – “Bridge” between probability Aka “Gaussian” distribution
shown here) and statistics
What continuous distribution is especially important? The Normal Distribution
http://images.slideplayer.com/10/2753952/slides/slide_2.jpg
=norm.dist()
7
4/27/2017
=norm.dist(x,mean,stddev,false)
Use table (Z-table). Or Empirical Rule? =norm.dist(30,24,3,false) Use table (Z-table). Or Empirical Rule?
5% / 2 = 2.5% likely (actual is 2.28%)
Yes No
http://www.sascommunity.org/planet/blog/category/statistical-thinking/ http://www.sascommunity.org/planet/blog/category/statistical-thinking/
8
4/27/2017
versus another
• If line same distribution?
distribution
1. Order data 7.19, 6.31, 5.89, 4.5, 3.77, 4.25, 5.19, 5.79, 6.79
2. Compute Z
scores
(normal) 1. Order data
3. Plot data (y-
axis) versus Z 2. Compute Z scores
(x-axis)
• Normal? line 3. Plot data versus Z
http://www.statisticshowto.com/q-q-plots/
10% = -1.28
20% = -0.84
30% = -0.52
40% = -0.25 10% = -1.28
50% = 0 20% = -0.84
30% = -0.52
60% = 0.25 40% = -0.25
50% = 0
70% = 0.52 60% = 0.25
80% = 0.84 70% = 0.52
80% = 0.84
90% = 1.28 90% = 1.28
9
4/27/2017
http://www.statisticshowto.com/q-q-plots/
http://d2vlcm61l7u1fs.cloudfront.net/media%2Fb95%2Fb953e7cd-31c3-45b0-a8ec-03b0e81c95d1%2Fphp2Y86od.png
10