CCalclabhub

Statistics

Weighted harmonic mean over unequal legs

Total distance over total time, the correct average speed for unequal legs.

Last updated

The Formula

H = (d1 + d2 + ... + dn) / (d1/x1 + d2/x2 + ... + dn/xn)

Total distance over total time, the correct average speed for unequal legs.

SymbolMeaning
HAverage rate
diLeg size
xiRate

What Each Symbol Means

Hsame as input

Average rate

The overall rate across all legs.

diunitless

Leg size

The distance, work or weight of each leg.

xisame as input

Rate

The rate for that leg.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate a harmonic mean page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate A Harmonic Mean, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Weighted harmonic mean over unequal legs?

The formula for Weighted harmonic mean over unequal legs is H = (d1 + d2 + ... + dn) / (d1/x1 + d2/x2 + ... + dn/xn). Total distance over total time, the correct average speed for unequal legs.

What units should I use with Weighted harmonic mean over unequal legs?

Substitute H in same as input, di in unitless, xi in same as input. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Weighted harmonic mean over unequal legs?

Using negative values. A negative reciprocal can cancel a positive one and leave a denominator near zero, which produces an absurd answer. The harmonic mean is defined for positive values only.