动画演示
每章关键原理配一个可交互动画。讲义 md 里嵌的是 GIF(GitHub、Markdown 预览和 Mac 备忘录都能直接播放);想自己拖滑块、单步,就用浏览器打开同名 .html(或在仓库根目录起 python3 -m http.server,打开 math-and-eval-stats/notes/animations/)。GIF 用 node tools/anim-capture/capture.mjs <页面> <输出.gif> <每帧毫秒> <最多帧数> 录(第 1 章 80 120,其余 120 90)。
| 章 | 原理 | GIF | 可交互 |
|---|---|---|---|
| 1 | 重复做"测 n 次"的实验,数区间盖住真值的比例:p = 0.9、n = 30 时 Wald 只有约 81%,Wilson 约 97% | 01-ci-coverage.gif | html |
| 2 | 零假设下重做 A/B 实验,差值直方图的红色尾巴比例 = p 值;n 越大直方图越窄 | 02-null-distribution.gif | html |
| 8 | 逐个加试验结果,似然、先验、后验三条曲线;MLE 与 MAP 何时重合 | 08-likelihood-posterior.gif | html |
| 9 | Cholesky 采样填满协方差椭圆;已知 x₂ 后 x₁ 的条件分布变窄 | 09-gaussian-conditional.gif | html |
| 13 | 两连杆臂的雅可比两列与速度椭圆;θ₂ → 0 时奇异 | 13-jacobian-2link.gif | html |
| 18 | ZYX 欧拉角:pitch 到 90° 后 yaw、roll 同时转方块不动;四元数连续变化 | 18-euler-gimbal-lock.gif | html |
| 24 | 两臂老虎机上有 / 无基线的 REINFORCE:梯度估计的均值相同、方差不同 | 24-reinforce-baseline.gif | html |