examples
StatSim examples
Some basic StatSim models to demonstrate the main functionality
Deterministic models
Compound interest calculator
Monthly payment for a fixed rate mortgage
Predator-prey model (Lotka-Voltera)
Logistic map (Chaotic systems)
World model
Random variables
Random samples from Cauchy
Simulation of the Central Limit Theorem
Synthetic data generation (Friedman-1)
Accumulator
Pi approximation
Bayesian inference
Base rate fallacy
Speed of light estimation (Newcomb)
Bayesian A/B testing
Conversion rate estimation
First-order autoregressive model (AR1)
Linear regression
Messages (from BMFH ch.1)
Cookies problem
Tokens problem
Estimate difference between two distributions (t-test)
Working with multiple models
Pareto distribution from scratch
SMT problems
Abbot’s puzzle
Bananas problem
Diet problem (cost minimization)
Timpkin’s problem