Series · C#
Simulation & Statistics
Twelve C# and Windows Forms programs from 2020: random events, Poisson and Wiener processes, Markov chains, the chi-square test and a bank simulated event by event.
01
Growing Vegetables
A four-by-four field whose cells move from planted to overgrown, as a first state machine.
March 04, 2020
02
Flight without atmosphere
A projectile’s path in a vacuum from height, speed and angle, drawn step by step.
March 11, 2020
03
Flight with atmosphere
The same flight with drag from the air, solved numerically as it is drawn.
March 18, 2020
04
Exchange Rate
A one-line stochastic model of an exchange rate, run day by day.
March 25, 2020
05
Random Events
Deciding whether an event with probability p happens, from a uniform base generator.
May 05, 2020
06
Discrete Variables
Checking an empirical distribution against the theory: expected value, variance and their errors.
May 21, 2020
07
Poisson Distribution
Counting independent events in a fixed interval, and generating them.
June 01, 2020
08
Infinite Values
The chi-square test when a variable can take infinitely many values, by grouping the tail.
June 04, 2020
09
Stochastic Processes
Markov chains: states, a transition matrix, and a process that remembers only where it is.
June 19, 2020
10
Wiener Process
Brownian motion built from independent normal increments.
June 22, 2020
11
Poisson Process
Events in continuous time, stationary and not, from the exponential gaps between them.
June 30, 2020
12
Discrete Events
A bank with N tellers simulated by jumping from one event to the next.
July 10, 2020