Back to Home11/15/2025, 3:25:08 PM

Weighting an average to minimize variance

98 points
53 comments

Mood

thoughtful

Sentiment

neutral

Category

science

Key topics

statistics

mathematics

data analysis

Debate intensity20/100

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 discussion

First comment

1h

Peak period

4

Day 1

Avg / period

4

Comment distribution4 data points

Based on 4 loaded comments

Key moments

  1. 01Story posted

    11/15/2025, 3:25:08 PM

    3d ago

    Step 01
  2. 02First comment

    11/15/2025, 4:43:43 PM

    1h after posting

    Step 02
  3. 03Peak activity

    4 comments in Day 1

    Hottest window of the conversation

    Step 03
  4. 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

Discussion (53 comments)
Showing 4 comments of 53
paulgerhardt
3d ago
1 reply
I wish there was a Strunk and White for mathematics.

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).

thomasahle
3d ago
There are lots of good books on writing mathematics:

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

whatever1
3d ago
This is just the observed variance. Which means that you assume that this will be the variance in the future.

Don’t make decisions for evolving systems based on statistics.

Insider info on the other hand works much better.

thomasahle
3d ago
What a weird way to write the harmonic average.

----

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

ID: 45938027Type: storyLast synced: 11/16/2025, 9:42:57 PM

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.