The applet below allows for investigating the probability the stock market will go up on any given day via simulation. The plot in the top left corner shows the probability associated with each outcome. In this case, the market has a 50-50 chance of going up on any given day. When the Simulate button is clicked, outcomes over n days are simulated. The results of the simulations are shown in the plot below the top plot. If the Animate option is checked, the display will show each outcome dropping into the second plot. To stop an animation uncheck the Animate option. The individual outcomes are shown in the text field to the far right of the applet. The center plot shows the cumulative proportion of times that the market went up in red. The green line in the plot reflects the true probability of the market going up. As the experiment is conducted more and more times, the cumulative proportion should converge to the true value. Things to try with the applet: