Quick answer
A weighted average is an average in which each value is multiplied by a weight reflecting its size or importance, and the sum of the products is divided by the sum of the weights. To combine rates from groups, weight each by the rate's denominator.
Formula: Weighted average = Σ (value × weight) ÷ Σ weight
What is a weighted average?
A weighted average, or weighted mean, is an average in which some values count for more than others. Each value is multiplied by a weight that reflects its importance or size, the products are added, and the sum is divided by the total of the weights. The Eurostat glossary and the NumPy documentation describe the same construction.
An ordinary average is the special case in which every weight is equal. The two differ as soon as the things you are averaging are not the same size: a conversion rate based on 8,000 visitors and one based on 500 should not pull the combined figure equally hard.
The weights do not have to sum to 1. Dividing by their total takes care of that, which is why you can use raw visitor counts, response counts or revenue directly. The only requirement is that the total of the weights is not zero.
The formula and when weights are needed
Weighted average = Σ (value × weight) ÷ Σ weight
For rates and averages, the correct weight is almost always the denominator of the number you are averaging:
| You are combining | Weight each group by |
|---|---|
| Conversion rates | Visitors (or whatever the rate divides by) |
| Average order values | Number of orders |
| Click-through rates | Impressions |
| Average satisfaction scores | Number of ratings |
| Average session durations | Number of sessions |
| Defect or error rates | Number of attempts or page views |
With that choice, the weighted average of the group figures equals the figure you would get by pooling all the raw data, provided every observation belongs to exactly one group. Other weights, such as strategic importance or recency, are legitimate, but they answer a different question and should be named.
Worked example: conversion rate across devices
One month of a pricing page (sample data):
| Device | Visitors | Sign-ups | Conversion rate | Share of visitors | Rate × share |
|---|---|---|---|---|---|
| Desktop | 2,000 | 120 | 6.0% | 19.0% | 1.14% |
| Mobile | 8,000 | 160 | 2.0% | 76.2% | 1.52% |
| Tablet | 500 | 20 | 4.0% | 4.8% | 0.19% |
| All | 10,500 | 300 | 2.86% | 100% | 2.86% |
The simple average of the three rates is (6.0 + 2.0 + 4.0) ÷ 3 = 4.0%. The weighted average is (2,000 × 6% + 8,000 × 2% + 500 × 4%) ÷ 10,500 = 300 ÷ 10,500 = 2.86%, which is exactly sign-ups divided by visitors.
The simple average overstates the conversion rate by more than a full point because it gives the 500 tablet visitors the same voice as the 8,000 mobile visitors. A forecast built on 4% would expect 420 sign-ups from this traffic instead of 300.
Worked example: satisfaction across support channels
The error can run the other way. Post-contact satisfaction on a 1–5 scale (sample data):
| Channel | Ratings | Average score | Score × ratings |
|---|---|---|---|
| Chat | 400 | 4.6 | 1,840 |
| 60 | 3.2 | 192 | |
| Help center form | 40 | 3.9 | 156 |
| All | 500 | 4.38 | 2,188 |
Simple average of channel scores: (4.6 + 3.2 + 3.9) ÷ 3 = 3.90. Weighted by ratings: 2,188 ÷ 500 = 4.38.
Both can be defended, for different questions. "How satisfied was the average person who rated us?" is 4.38. "How well does a typical channel perform?" is 3.90. What is not defensible is switching between them from one month to the next, or quoting 4.38 while email sits at 3.2 and nobody looks. Show the table next to the headline. Rating scales and CSAT definitions are covered in CSAT and how to calculate CSAT.
Why averaging rates misleads: the mix effect
A weighted average depends on two things: the values and the mix of weights. It can fall while every value rises. Next month on the same page:
| Device | Visitors | Sign-ups | Rate | Change in rate |
|---|---|---|---|---|
| Desktop | 1,000 | 65 | 6.5% | up 0.5 points |
| Mobile | 12,000 | 252 | 2.1% | up 0.1 points |
| Tablet | 500 | 21 | 4.2% | up 0.2 points |
| All | 13,500 | 338 | 2.50% | down 0.35 points |
Every device improved, yet the total dropped from 2.86% to 2.50%, because traffic moved toward mobile, the device with the lowest rate. This is a case of Simpson's paradox.
You can split the change into two parts:
- Mix effect: apply last month's rates to this month's visitors. (1,000 × 6% + 12,000 × 2% + 500 × 4%) ÷ 13,500 = 2.37%. Mix alone moved the total by 2.37 − 2.86 = −0.49 points.
- Rate effect: compare the actual 2.50% with 2.37%. Better rates added +0.13 points.
The two sum to −0.35 points after rounding. A related technique is standardization: hold the weights fixed and swap in the new rates. With last month's mix, this month's rates give 319 ÷ 10,500 = 3.04%, up from 2.86%. Report the actual total for volume, and the fixed-mix figure when you are judging whether the page got better.
Weighted average vs simple average vs moving average
| Measure | Weights | Typical use |
|---|---|---|
| Simple average | All equal | Items that genuinely count the same |
| Weighted average | Size or importance | Combining groups of different size |
| Weighted moving average | Larger for recent periods | Smoothing a time series |
| Weighted score | Chosen in advance by judgment | Comparing options against criteria |
| Median | None; uses position | Typical value in skewed data |
In a weighted score, the weights are a decision, not a measurement. If criteria weigh 50%, 30% and 20% and an option scores 8, 6 and 9, its score is 0.5 × 8 + 0.3 × 6 + 0.2 × 9 = 7.6. Fix the weights before scoring any option, and test whether a modest change in weights changes the winner.
How to calculate it and mistakes to avoid
In a spreadsheet, with values in A2:A4 and weights in B2:B4, Microsoft's documented pattern is =SUMPRODUCT(A2:A4,B2:B4)/SUM(B2:B4). In Python, numpy.average(values, weights=weights) does the same and raises an error if the weights sum to zero.
- Using
=AVERAGEon a column of rates. This is the most frequent error. Pool numerators and denominators instead. - Weighting by the numerator. Weighting conversion rates by sign-ups favors groups that already convert well.
- Overlapping groups. If one person appears in both the desktop and mobile rows, group counts add up to more than the true total.
- Hiding small groups. A segment with a tiny weight barely moves the total, even if it is broken. Look at it separately.
- Comparing totals with different mixes without saying that the mix changed.
For other ways summary figures can mislead, see data aggregation explained.
Weighted averages with TapCub data
Here is the device example with your own traffic:
- Compute from raw counts. In All-platform analytics › Behavior › Event analysis, add a formula such as
UNIQUES(signup) / UNIQUES(view_pricing)and break it down by device. A saved metric in All-platform analytics › Behavior › Metrics & SQL keeps that definition in one place, so nobody averages a column of rates by hand. - Check that groups add up. The default identity is visitor; one person using two devices can appear in two rows. If the rows of your table sum to more than the overall count, their weighted average will not match the overall rate exactly, so quote the overall figure from the report without the breakdown.
- Do the mix split outside. Switch the result to a table, export CSV for both months, and apply SUMPRODUCT with last month's rates and this month's visitors.
- Handle satisfaction the same way. Live chat › Reports shows satisfaction as the average of 1–5 scores given after a conversation is resolved. If you combine that figure with scores from other channels, weight by the number of ratings, not by the number of conversations, since not every conversation is rated.
- Keep bots out of the weights. TapCub counts bots and AI crawlers separately, so a crawler spike does not inflate the weight of one segment.
Sources
- Eurostat, Statistics Explained, Glossary: Weighted average.
- NumPy documentation, numpy.average (formula and zero-weight error).
- Microsoft Support, Calculate the average of a group of numbers (weighted average with SUMPRODUCT and SUM).
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Analyst
Explores traffic sources, conversion funnels, and retention, using clear metric definitions and concrete examples to explain what the numbers mean.