Monte Carlo Simulation, Quantitative Finance, Python, Data Science, Data Visualization.
plt.ylabel('Total Returns (%)') plt.title('Trading the S&P500 Based on the Flip of a Coin - 10,000 Simulations Total Returns') plt.style.context('seaborn-deep') plt.show() # Printing statistics print(f'\nAverage Total Return: {simulation.iloc[-1].mean().round(2)}%') print(f'\nMaximum Total Return: