Machine Learning, Data Science.
of 𝜋, but what if we didn’t know that? What if all we knew was the definition above? Monte Carlo to the rescue! To understand the function below, imagine a unit circle inscribed in a unit square. We know that the area of a unit circle is 𝜋/4, so if we generate a bunch of points randomly in a unit