Gain K = P / (P + R) balances trust between prior (x(−), variance P) and measurement (z, noise R). Posterior: x(+) = x(−) + K (z − x(−)), P(+) = (1 − K) P.
Each click samples z = t + N(0, R). With current uncertainty P and measurement variance R, the scalar Kalman gain K = P/(P+R). Update: x ← x + K (z − x), P ← (1 − K) P. Watch the estimate converge and K shrink as P decreases.