Lesson 0118 min read
Foundations of Probability
Sample spaces, measure theory intuition, and conditional independence.
Axiomatic Probability
This is a prototype build and does not reflect actual lessons.
To build statistical intuition, we avoid informal heuristics and begin with the foundational Kolmogorov axioms.
The Probability Space
A probability space consists of three structural elements:
- Sample Space (): The set of all possible outcomes.
- Event Space (): A -algebra of subsets of .
- Probability Measure (): A function mapping events in to real values in .
# Sample event simulation in Python
import random
def coin_toss_experiment(trials=1000):
heads = sum(1 for _ in range(trials) if random.random() > 0.5)
return heads / trials
print(f"Empirical probability: {coin_toss_experiment()}")