Discrepancy theory measures how evenly a finite configuration or coloring can satisfy many constraints at once. For a finite set and a family of subsets, its two-color discrepancy is
The sum is the difference between the two color counts in . A single balanced total does not guarantee small discrepancy on every constrained subset.
If and contains all contiguous intervals, alternating the colors gives discrepancy at most one: each even-length interval has equal counts, and each odd-length interval differs by one. Singleton constraints show that one is optimal. More complicated overlapping families can force much larger imbalance.
A related geometric formulation compares point counts in test regions with their expected volume. Star discrepancy uses boxes anchored at the origin. Such bounds quantify how well a deterministic point set approximates uniform integration, linking combinatorics with numerical integration.
For points in , star discrepancy compares their empirical frequencies in anchored boxes with Lebesgue measure:
The half-open box convention makes boundary membership precise. Small star discrepancy means that every such box contains nearly its uniform share of points; it does not mean the points are independent random samples.
In one dimension, take midpoint points . Between consecutive points, the empirical count is constant while the interval length increases linearly. Just before or after a point the largest difference is , so . Repeating a single point instead leaves large gaps and large discrepancy. The definition directly controls the integration error for indicators of anchored boxes and motivates deterministic sampling for numerical integration.

Articles by others on the same topic (1)

Discrepancy theory is a branch of mathematics and statistical theory that deals with the differences or discrepancies between two or more sets of data, distributions, or mathematical objects. It is often concerned with quantifying how much two sets differ from each other, which can be particularly useful in various fields such as statistics, optimization, and machine learning.