What does Kalman Filtering for Readings and Ad Reports conclude, in numbers, about “Classical Sources East and West: the Mencius and Gauss's Least Squares”?
Answer: Chapter 7 examines the Mencius line "believing the book entirely is worse than having no book" and Gauss's least squares of 1809.
Scope of the numbers: Its noise variances, drifts, returns and budgets are illustrative parameters; all calculations are generated by its programs. On wearable readings it is not medical advice, claims no effect, judges no one's state of health, and asks readers to consult a licensed physician before any self-experiment; on advertising attribution it is not individual business advice.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python only
| own n | bias | w* | RMSE w=1 | RMSE w=0 | RMSE w* |
| 1 | 0.0 | 0.800 | 1.000 | 2.000 | 0.894 |
| 1 | 1.0 | 0.800 | 1.414 | 2.000 | 1.200 |
| 1 | 3.0 | 0.800 | 3.162 | 2.000 | 2.561 |
| 4 | 0.0 | 0.500 | 1.000 | 1.000 | 0.707 |
| 4 | 1.0 | 0.500 | 1.414 | 1.000 | 0.866 |
| 4 | 3.0 | 0.500 | 3.162 | 1.000 | 1.658 |
| 28 | 0.0 | 0.125 | 1.000 | 0.378 | 0.354 |
| 28 | 1.0 | 0.125 | 1.414 | 0.378 | 0.375 |
| 28 | 3.0 | 0.125 | 3.162 | 0.378 | 0.515 |
Show the full program
# Chapter 7. p72: "Believing the book entirely" written as a gain.
# A stated value (the "book": a device's stated accuracy, a platform's
# reported lift, a published average) has error with sd TAU, and may be
# biased by B. The reader has n own readings, each with error sd 2.0.
# Estimate = w * book + (1 - w) * mean(readings). w = 1 is believing
# the book entirely, w = 0 is having no book, and the Kalman weight is
# w* = (r / n) / (r / n + TAU^2) with TAU = 1.0 assumed. RMSE is exact:
# sqrt(w^2 (TAU^2 + B^2) + (1 - w)^2 r / n). Illustrative numbers.
import math
R, TAU = 4.0, 1.0
def rmse(w, n, bias):
return math.sqrt(w * w * (TAU ** 2 + bias ** 2)
+ (1 - w) ** 2 * R / n)
print("own n bias w* RMSE w=1 RMSE w=0 RMSE w*")
for n in (1, 4, 28):
ws = (R / n) / (R / n + TAU ** 2)
for bias in (0.0, 1.0, 3.0):
print("%5d %4.1f %.3f %8.3f %8.3f %8.3f"
% (n, bias, ws, rmse(1.0, n, bias), rmse(0.0, n, bias),
rmse(ws, n, bias)))Single source and citation
Fan, Y. (2026). Kalman Filtering and State-Space Assimilation: Separating Observation Noise from True Signals in Wearable Readings and Advertising Reports (Version 1.0.0), Chapter 7: Classical Sources East and West: the Mencius and Gauss's Least Squares. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-245 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026245,
author = {Fan, Yafu},
title = {Kalman Filtering and State-Space Assimilation: Separating Observation Noise from True Signals in Wearable Readings and Advertising Reports},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 1 · Why Raw Readings Overreact: the Noise-to-Signal Ratio and Decision Flips
- Chapter 2 · Where the Kalman Gain Comes From: One Prediction, One Correction and Exponential Smoothing
- Chapter 3 · Trends and Steps: Slow Drift Takes Weeks to Show, a Real Jump Costs Days of Lag
- Chapter 4 · Looking Back and Filling Gaps: the RTS Smoother, Missing Days and Artefact Readings
- Chapter 5 · How Large Is the Noise? Maximum Likelihood, Innovation Tests and Moments of Differences
- Chapter 6 · The Advertising Report: Attribution Noise, On/Off Flighting and Budget Switching
- Chapter 8 · Closing the Loop: a Four-Week Filtered Log, Filtered Advertising Reports and Pre-Registered Tests