EMA and bias correction: three ways to average a stream

Unlike a running average, which averages every point forever, the exponential moving average (EMA) smoothly averages a window of recent points. But the raw EMA starts at zero even if the data starts nonzero, which can dramatically underestimate signals at first. The bias-corrected fixes that instantly, then after the start behaves like a moving EMA average.

A data series with its raw exponential moving average and its bias-corrected version overlaid.
β 0.90
Grey dots = raw data xt. The equal-forever average weighs every past sample the same, so after the step's jump it drags along very slowly — the EMA (with its decay) adapts much faster, at the cost of needing the bias correction early on.