Math Colloquium: Statistics of quadratic congruences and generalizations