A slower measure

A tiny average for noticing change without magnifying every wobble.

← All writing RSS · ChineseRSS · English

I started timing a walk to find out whether I was getting faster. The readings told me more about the clouds and the traffic lights than about my pace. A line through the individual readings looked like the teeth of a saw.

Three readings

A three-day running average was enough to take the edge off the plot. If xtx_t is the reading for day tt, write:

mt=xt−2+xt−1+xt3.m_t = \frac{x_{t-2} + x_{t-1} + x_t}{3}.

For walks of 23, 19, and 21 minutes, the last point on the smoothed plot is 21 minutes.

Keep the raw readings. “What happened that day?” and “What usually happens?” are different questions.

What goes missing

Smoothing spreads unusual days over their neighbors and lags a sudden change. After I switched to a shorter route, the average took two more outings to catch up. That was useful for the pace question and useless for telling me when I’d turned down a different street.

慢一点量

用一个很小的平均值看变化,不放大每一次波动。

← 全部文章 RSS · 中文RSS · English

我开始给散步计时,想看看自己有没有走得更快。数字倒是记下了下雨和等红灯的日子,对步速却没什么解释。把每天的数据连起来,像一排参差的锯齿。

取三个读数

我试着用三天移动平均,让图上的起伏不那么尖锐。记第 tt 天的读数为 xtx_t:

mt=xt−2+xt−1+xt3.m_t = \frac{x_{t-2} + x_{t-1} + x_t}{3}.

三次散步分别走了 23、19 和 21 分钟,那么平滑后的最后一个点就是 21 分钟。

把原始读数也留着。「那天发生了什么?」和「平时大致怎样?」是两个问题。

哪些东西看不见了

平滑会把不寻常的一天摊到相邻几天,也会让突变晚一点出现。换了一条较短的路线后,又走了两次,平均值才跟上。它能回答步速的问题,却告诉不了我是哪天拐进了另一条街。