GO · WEBASSEMBLY · NO JS SEQUENCE
A quasi-Monte Carlo sequence places its points so they cover the unit square evenly, with none of the clumps and gaps you get from independent random draws. Averages over evenly spread points settle down faster, and that is the whole reason to use one.
The tour below starts with that picture, then shows where Halton goes wrong in high dimensions, how scrambling fixes it, and why one plot is never the whole story. After that, every control is yours. Every coordinate is computed by github.com/cwbudde/qmc compiled to WebAssembly in this tab's worker; JavaScript only coordinates requests, controls and rendering.
Point sets are loading.
—
The first Halton point is (1/2, 1/3, 1/5, 1/7, …), near a corner of the box in every large-base coordinate. A burn-in throws it and its neighbours away.
—
—
A radical inverse is a mirror. Write the index in base p, then reflect its digits across the radix point: index …d₂d₁d₀ becomes the coordinate 0.d₀d₁d₂…. That reflection is the whole construction, so the row below is drawn as one — integer digits marching left towards the point, fraction digits marching right away from it. Hover a digit to light its twin. With a digit scrambling selected, each digit is rewritten by that dimension's permutation before the reflection is read off. This panel is Halton's: Sobol is base 2 in every dimension and has no digit alphabet to permute, so it disappears when Sobol is selected.
Click any point in either scatter to bring it here.
waiting for the wasm module…
—
Two axes out of d. Both panels show a projection. A pair of coordinates can look like a perfect lattice while the sequence is badly clumped somewhere you cannot see, and it can look like a diagonal while every other pair is fine. That is why the Discrepancy Bench shows all pairs at once.
The right-hand panel is not a failure. Independent uniform points are supposed to clump and leave gaps; that clumping is exactly the variance a quasi-Monte Carlo sequence is built to remove. Judge the pair on how evenly each fills the grid, not on which looks tidier.
A randomized run is seed-dependent by design. Every randomization on offer makes this randomized quasi-Monte Carlo: change the seed and you get a different, equally valid point set. Fix the seed and it is reproducible again.