.
using a simple random walk with a drift, supermartingale having negative drift and submartingale having positive drift. import numpy as np import matplotlib.pyplot as plt # Seed for reproducibility np.random.seed(42) # Plot settings fig, axs = plt.subplots(4, 1, figsize=(10, 20)) # 1. Discrete-Time