Weighted Harmonic Mean Calculator workspace
- Values
- 2
- Total weight
- 2
- Weighted reciprocal sum
- 0.04166666666666666666666666666666667
Step-by-step calculation
- 1
Multiply each reciprocal by its weight and add: Σ(wᵢ / xᵢ) = 0.04166666666666666666666666666666667.
- 2
Add the weights: Σwᵢ = 2.
- 3
Divide total weight by the weighted reciprocal sum: H_w = 2 / 0.04166666666666666666666666666666667 = 48.
Inspect weighted contributions 2 rows
| i | Value xᵢ | Weight wᵢ | Weight share | Weighted term |
|---|---|---|---|---|
| 1 | 40 | 1 | 0.5 | 0.025 |
| 2 | 60 | 1 | 0.5 | 0.01666666666666666666666666666666667 |
| Totals | 2 | 1 | 0.04166666666666666666666666666666667 | |
Why use this calculator?
Rate-aware average
Use the reciprocal form when the quantity represented by the weights is appropriate.
Flexible weights
Model repeated counts, unequal shares, or weighted observations directly.
Inspectable terms
Review each wᵢ/xᵢ contribution before interpreting the result.
What is a weighted harmonic mean calculator?
The weighted harmonic mean is the total weight divided by the sum of the weighted reciprocals. It gives low positive values more influence than an arithmetic mean and is useful when a reciprocal relationship matches the quantities being combined. The interpretation of the weights must match the real-world setup.
Important terms
- Reciprocal
- The multiplicative inverse 1/xᵢ of a positive value.
- Weighted reciprocal
- The contribution wᵢ/xᵢ of one observation to the denominator.
- Total weight
- The sum of nonnegative weights in the numerator.
- Rate average
- An average of ratios whose correct form depends on whether the underlying quantity or exposure is equal.
When this method is useful
- Combine positive rates when the chosen weights represent the relevant exposure or counts.
- Calculate a weighted equivalent rate for unequal segments or groups.
- Summarize positive ratios when reciprocal averaging is mathematically justified.
- Compare rate summaries while checking how low values affect the result.
Formula and variables
- H_w
- weighted harmonic mean
- xᵢ
- ith positive value
- wᵢ
- ith nonnegative weight
- Σwᵢ
- positive total weight
Divide the sum of the weights by the sum of each weight divided by its paired value. This equals the reciprocal of the weighted arithmetic mean of the reciprocals.
Domain note: Values must be strictly positive and finite. Weights must be finite and nonnegative, with a positive total, and both lists must have the same length. Decide that a harmonic mean fits the application before interpreting the result as a rate.
How to use this calculator
- 1
Enter positive values and their nonnegative weights in matching order.
- 2
Calculate each weighted reciprocal wᵢ/xᵢ.
- 3
Add the weighted reciprocals and add the weights.
- 4
Divide the total weight by the weighted reciprocal sum.
Step-by-step examples
Example 1
Problem: Find the weighted harmonic mean of 40 and 60 with equal weights.
Substitution: H_w = (1 + 1) / (1/40 + 1/60) = 2 / (1/24)
Result: 48
The harmonic mean is 48. This equals the combined speed only when the two speeds apply over equal distances.
Example 2
Problem: Find the weighted harmonic mean of 30, 50, and 75 with weights 2, 3, and 1.
Substitution: H_w = 6 / (2/30 + 3/50 + 1/75)
Result: ≈ 42.8571
Each weighted reciprocal contributes to the denominator, so the lower rate has substantial influence.
Example 3
Problem: Use values 2 and 10 with weights 1 and 0.
Substitution: H_w = 1 / (1/2 + 0/10)
Result: 2
The zero-weight observation contributes neither to the numerator nor denominator.
Rules, edge cases, and related ideas
Small values have strong influence
A small xᵢ makes wᵢ/xᵢ relatively large and can lower the result.
Weights encode the model
The formula is only meaningful when each weight represents the intended exposure, count, or importance.
Edge cases and limitations
- A single positive value with positive weight returns itself.
- A zero-weight value is ignored in numerator and denominator.
- At least one positive weight is required.
- Zero or negative values are outside this positive real-valued rate formulation.
How this differs from a related concept
The weighted arithmetic mean is Σwᵢxᵢ/Σwᵢ; the weighted harmonic mean is Σwᵢ/Σ(wᵢ/xᵢ). For positive values with the same weights, the harmonic mean does not exceed the arithmetic mean.
Understand the result
For positive values, the weighted harmonic mean is at most the weighted arithmetic mean using the same weight shares. A low value has a large reciprocal, so it can pull the result down. For speeds, distinguish equal-distance from equal-time situations before selecting an average.
Common mistakes
- Using the harmonic mean for equal-time speeds instead of equal-distance speeds.
- Taking the mean of the reciprocals and forgetting to take its reciprocal.
- Pairing a weight with the wrong rate.
- Including zero or negative values in a formula requiring positive reciprocals.
Frequently asked questions
What is the weighted harmonic mean formula?
Divide the total of the weights by the sum of each weight divided by its paired positive value.
When is a weighted harmonic mean useful?
It can summarize positive rates when reciprocal averaging and the selected weights match the problem’s exposure structure.
Can weights be decimals or fractions?
Yes. Enter finite nonnegative decimals or fractions, such as 0.5 or 1/2.
Can a weight be zero?
Yes. A zero weight excludes the paired observation, though a positive total weight is still required.
Why is the weighted harmonic mean usually smaller?
Reciprocals give small positive values larger denominator contributions; for positive data it is no greater than the weighted arithmetic mean with the same weights.