Exact stochastic simulation of SIR dynamics using the Gillespie algorithm (SSA). Each event (infection or recovery) is drawn from the exact waiting-time distribution — no time-step approximation. Multiple trajectories show stochastic variability around the mean-field ODE.