Mathematical Modeling, Statistical Analysis, Python, Data Visualization, Monte Carlo Simulation.
num_samples) y = np.random.uniform(-1, 1, num_samples) plt.plot(x, y, 'k.', markersize=1) # Plot the quarter circle of radius 1 t = np.linspace(0, np.pi/2, 100) xc = np.cos(t) yc = np.sin(t) plt.plot(xc, yc, 'r-', linewidth=2) # Set the axis limits and labels plt.xlim(-1, 1) plt.ylim(-1, 1)