Extract statistics from long streams of data with minimal space usage and guaranteed precision.