Analysis of Mean and Variance in Simulations

Definitions

This page explains the behavior of mean and variance over time for both **Bernoulli processes** and **random walks**. It discusses the differences between absolute and relative frequency trajectories, along with the impact of different distributions.

1. Mean and Variance in Bernoulli Processes

Absolute Frequency:

Relative Frequency:

2. Mean and Variance in Random Walks

Absolute Frequency:

Relative Frequency:

3. Comparing Distributions

Absolute Number of Successes vs Relative Frequencies:

Exercise

Assignment:

Refine your Euler–Maruyama simulator to approximate numerical solutions of stochastic differential equations (SDEs), by implementing the following variants within the existing framework:

You can find the code for this exercise here, and the online result can be accessed here.