Statistical processing on streaming data