In this chapter, we learn how to compute statistics of streaming data, and apply the technique to the detection of motion in webcam images.