Commit 6f1dba6
refactor: improve clarity of Bayesian update with explicit posterior and marginal variables
- Replace implicit normalization with explicit posterior_unnormalized calculation
- Add explicit marginal calculation showing P(evidence) = sum of (prior * likelihood)
- Improve pedagogical clarity of Bayes' rule implementation
- Maintain identical mathematical behavior with better variable naming
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent f63cf4c commit 6f1dba6
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
0 commit comments