Walk graph Distribution graph

Description

The experiment consists of running the simple random walk for \(n\) steps, where a step to right has probability \( p \). The random variables of interest is the final position \( Y \). The random walk is shown in red in the left graph on each update. A red dot is shown at \((n, Y)\). The value of each of \( Y \) is recorded in the data table on each run. The probability density function and moments of \( Y \) are shown in blue in the distribution graph and are recorded in the distribution table. On each run, the empirical density function and moments are shown in red in the distribution graph and are recorded in the distribution table. The parameters \(n\) and \( p \) can be varied with input controls.