2 Probabilistic Programming
| #lang roulette/example/disrupt | package: roulette |
Given the omnipresent nature of probability and its centrality to science, programming, and countless other endeavors, it is only natural that it has found its way into our programming languages. Such programming languages are called probabilistic programming language: these are programming languages that denote probability distributions.
> (flip 0.5)
┌─────┬───────────┐
│Value│Probability│
├─────┼───────────┤
│#t │0.5 │
│#f │0.5 │
└─────┴───────────┘
2.1 Basic Modeling in Roulette
2.2 The Probability Word Problem
2.3 A Formal Language for Probability
These foundational rules of probability are due to (Kolmogorov 2018).
You likely had prior experiences in other classes where you worked with probability, and you were given questions like
2.4 Design Recipe
References
Andrei Nikolaevich Kolmogorov. Foundations of the theory of probability: Second English Edition. Courier Dover Publications, 2018. |