Mathematical Modeling, Statistical Analysis, Python, Data Visualization, Monte Carlo Simulation.
the absolute error in the estimate of pi for each sample size pi_errors = np.abs(pi_estimates - np.pi) # Plot the relationship between the error and the sample size fig, ax = plt.subplots() ax.plot(sample_sizes, pi_errors, 'o-', color='black') ax.set_xscale('log') ax.set_yscale('log')