Weighting an average to minimize variance
Mood
thoughtful
Sentiment
neutral
Category
science
Key topics
statistics
mathematics
data analysis
The article discusses how to weight an average to minimize variance, providing a mathematical solution to a common problem in statistics.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
1h
Peak period
4
Day 1
Avg / period
4
Based on 4 loaded comments
Key moments
- 01Story posted
11/15/2025, 3:25:08 PM
3d ago
Step 01 - 02First comment
11/15/2025, 4:43:43 PM
1h after posting
Step 02 - 03Peak activity
4 comments in Day 1
Hottest window of the conversation
Step 03 - 04Latest activity
11/15/2025, 5:20:05 PM
3d ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
While by no means logically incorrect, it feels inelegant to setup a problem using variables A and B in the first paragraph and solve for X and Y in the second (compounded with the implicit X==B, and Y==A).
1. How to Write Mathematics — Paul Halmos
2. Mathematical Writing — Donald Knuth, Tracy Larrabee, and Paul Roberts
3. Handbook of Writing for the Mathematical Sciences — Nicholas J. Higham
4. Writing Mathematics Well — Steven Gill Williamson
Don’t make decisions for evolving systems based on statistics.
Insider info on the other hand works much better.
----
Write v_i = Var[X_i]. John writes
t_i = \frac{\prod_{j\ne i} v_j}{\sum_{k=1}^n \prod_{j\ne k} v_j}.
But if you multiply top and bottom by (1 / \prod_{m=1}^n v_m), you just get t_i = \frac{1/v_i}{\sum_{k=1}^n 1/v_k}.
No need to compute elementary symmetric polynomials.If you plug those optimal (t_i) back into the variance, you get
\min Var[\sum t_i X_i] = 1/(\sum_{k=1}^n 1/v_k) = H/n,
where `H = n / (\sum_{k=1}^n 1/v_k)` is the Harmonic Mean of the variances.49 more comments available on Hacker News
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.