Approximate Maximum Halfspace Discrepancy

06/25/2021
by   Michael Matheny, et al.
0

Consider the geometric range space (X, ℋ_d) where X ⊂ℝ^d and ℋ_d is the set of ranges defined by d-dimensional halfspaces. In this setting we consider that X is the disjoint union of a red and blue set. For each halfspace h ∈ℋ_d define a function Φ(h) that measures the "difference" between the fraction of red and fraction of blue points which fall in the range h. In this context the maximum discrepancy problem is to find the h^* = max_h ∈ (X, ℋ_d)Φ(h). We aim to instead find an ĥ such that Φ(h^*) - Φ(ĥ) ≤ε. This is the central problem in linear classification for machine learning, in spatial scan statistics for spatial anomaly detection, and shows up in many other areas. We provide a solution for this problem in O(|X| + (1/ε^d) log^4 (1/ε)) time, which improves polynomially over the previous best solutions. For d=2 we show that this is nearly tight through conditional lower bounds. For different classes of Φ we can either provide a Ω(|X|^3/2 - o(1)) time lower bound for the exact solution with a reduction to APSP, or an Ω(|X| + 1/ε^2-o(1)) lower bound for the approximate solution with a reduction to 3SUM. A key technical result is a ε-approximate halfspace range counting data structure of size O(1/ε^d) with O(log (1/ε)) query time, which we can build in O(|X| + (1/ε^d) log^4 (1/ε)) time.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset