---
layout: example
title: Pi Monte Carlo
permalink: /examples/pi-monte-carlo/index.html
spec: pi-monte-carlo
image: /examples/img/pi-monte-carlo.png
---

Estimation of &pi; by randomly sampling points and counting how many of them fall inside or outside a unit circle. This example is based on [work by Cameron Yick](https://beta.observablehq.com/@hydrosquall/monte-carlo-pi-approximation-explorable-explanation-in-ve).

{% include example spec=page.spec %}
