Home▸Articles▸Mathematics

Quasi-Monte Carlo 2D: Point-Set Discrepancy Race

Understanding how different sampling methods affect numerical integration accuracy in two dimensions.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Is Point-Set Discrepancy

Point-set discrepancy is a measure of how evenly distributed points are within a given space. In the context of numerical integration, it quantifies the deviation from uniform distribution among sampled points. A lower discrepancy indicates that the sampling method provides a more even coverage of the domain.

In this simulation, we use point sets to estimate π by sampling points in a square containing a quarter-circle. The discrepancy statistic helps us understand which sampling technique—pseudorandom or low-discrepancy—provides a better approximation.

Monte Carlo vs Quasi-Monte Carlo

Monte Carlo methods rely on pseudorandom numbers to generate samples. While these methods are simple and can be applied broadly, they often suffer from slow convergence rates for high-dimensional integrals due to the curse of dimensionality.

Quasi-Monte Carlo (QMC) techniques use low-discrepancy sequences that provide more evenly distributed points than pseudorandom numbers. This results in faster convergence rates and better accuracy, especially in higher dimensions.

live demo · related simulation● LIVE

Why Quasi-Monte Carlo Matters

Quasi-Monte Carlo methods are crucial in fields such as finance, physics, and engineering where high-dimensional integrals need to be computed accurately. By using low-discrepancy sequences, QMC can significantly reduce the number of samples required for a given level of accuracy compared to traditional Monte Carlo methods.

In practical applications, this means more efficient simulations and faster computation times, leading to better decision-making based on numerical results.

Real-World Applications

Low-discrepancy sequences are used in various real-world scenarios. For example, they can improve the accuracy of financial models by more precisely estimating risk and return distributions. In physics, QMC is employed to simulate complex systems like molecular dynamics or lattice gauge theories.

In engineering, these techniques help optimize designs by accurately predicting performance metrics through efficient sampling.

Frequently asked questions

What does the discrepancy statistic measure?

The discrepancy statistic measures how evenly distributed points are within a given space. A lower value indicates better distribution, which is crucial for accurate numerical integration.

How do low-discrepancy sequences differ from pseudorandom numbers?

Low-discrepancy sequences provide more even coverage of the sample space compared to pseudorandom numbers. This results in faster convergence rates and better accuracy, especially for high-dimensional problems.

Why is estimating π using a circle inscribed in a square relevant?

Estimating π through this method serves as a simple yet effective demonstration of numerical integration techniques. It allows us to visually compare the performance of different sampling methods and understand their impact on accuracy.

Can Quasi-Monte Carlo be used for all types of integrals?

While Quasi-Monte Carlo is particularly effective for high-dimensional integrals, it can also be applied to lower dimensions. However, the benefits are more pronounced in higher dimensions where traditional Monte Carlo methods struggle.

Try it live

Everything above runs in your browser — open Quasi-Monte Carlo 2D: Point-Set Discrepancy Race and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Quasi-Monte Carlo 2D: Point-Set Discrepancy Race simulation

What did you find?

Add reproduction steps (optional)