Mathematical Modeling, Statistical Analysis, Python, Data Visualization, Monte Carlo Simulation.
then generates a list of sample sizes using np.logspace and a list of estimates of pi for each sample size using the estimate_pi function. Finally, it plots how the estimate of pi converges to the true value as more points are generated using ax.plot, with the x-axis represented on a log scale