TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Weighted average: formula with examples and the mix effect

A weighted average lets bigger groups count for more. See why averaging conversion rates or satisfaction scores misleads, how to choose weights, and how a total can fall while every segment rises.

Su He Reviewed by Ethan Brooks Also called weighted mean Last updated Dec 3, 2026 Glossary

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 combiningWeight each group by
Conversion ratesVisitors (or whatever the rate divides by)
Average order valuesNumber of orders
Click-through ratesImpressions
Average satisfaction scoresNumber of ratings
Average session durationsNumber of sessions
Defect or error ratesNumber 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):

DeviceVisitorsSign-upsConversion rateShare of visitorsRate × share
Desktop2,0001206.0%19.0%1.14%
Mobile8,0001602.0%76.2%1.52%
Tablet500204.0%4.8%0.19%
All10,5003002.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):

ChannelRatingsAverage scoreScore × ratings
Chat4004.61,840
Email603.2192
Help center form403.9156
All5004.382,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:

DeviceVisitorsSign-upsRateChange in rate
Desktop1,000656.5%up 0.5 points
Mobile12,0002522.1%up 0.1 points
Tablet500214.2%up 0.2 points
All13,5003382.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:

  1. 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.
  2. 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

MeasureWeightsTypical use
Simple averageAll equalItems that genuinely count the same
Weighted averageSize or importanceCombining groups of different size
Weighted moving averageLarger for recent periodsSmoothing a time series
Weighted scoreChosen in advance by judgmentComparing options against criteria
MedianNone; uses positionTypical 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 =AVERAGE on 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

Was this explanation clear?

We use your answers to fix and expand this page.

Su He

Data Analyst

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

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

How do you calculate a weighted average?

Multiply each value by its weight, add the products, and divide by the total of the weights. For conversion rates of 6%, 2% and 4% on 2,000, 8,000 and 500 visitors, that is 300 sign-ups over 10,500 visitors, or 2.86%.

What is the difference between an average and a weighted average?

A simple average gives every value the same influence. A weighted average lets influence vary, usually with group size. When groups are the same size the two agree; when sizes differ a lot, the simple average of rates can be far from the true overall rate.

Can you average percentages?

Only if the percentages share the same base size, or if you deliberately want each group to count equally. Otherwise weight each percentage by its denominator, or add up all numerators and all denominators and divide once.

Why did my overall rate fall when every segment improved?

The mix of weights changed. If more traffic moved into a segment with a low rate, the total can fall even though each segment rose. Recompute the new rates with the old mix to separate the two effects.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics