Mathematical Modeling, Statistical Analysis, Python, Data Visualization, Monte Carlo Simulation.
pi_estimates = [estimate_pi(n) for n in sample_sizes] # Plot how the estimate of pi converges to the true value as more points are generated fig, ax = plt.subplots() ax.plot(sample_sizes, pi_estimates, 'o-') ax.axhline(np.pi, color='r', linestyle='--', label='True Value') ax.set_xscale('log')