• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar
  • My Store
  • Glossary
  • Home
  • About Me
  • Contact Me

Statistics By Jim

Making statistics intuitive

  • Graphs
  • Basics
  • Hypothesis Testing
  • Regression
  • ANOVA
  • Probability
  • Time Series
  • Fun
  • Calculators

Weighted Average: Formula & Calculation Examples

By Jim Frost 5 Comments

What is a Weighted Average?

A weighted average is a type of mean that gives differing importance to the values in a dataset. In contrast, the regular average, or arithmetic mean, gives equal weight to all observations. The weighted average is also known as the weighted mean, and I’ll use those terms interchangeably.

Photo of weights represent a weighted average.Use a weighted mean when you must consider the relative significance of values in a dataset. In other words, you’re placing different weights on the values in the calculations.

For example, use a weighted average in the following situations:

  • A professor weights projects, exams, and quizzes to reflect varying difficulty.
  • An investor weights the share price by the number of stocks they purchase to reflect the changing prices.

In these examples, a weighted average gives differing importance to each value according to relevant criteria.

In this post, learn how to calculate a weighted average and go through two worked examples.

Weighted Average Formula

Calculating the mean is a simple process of summing all your values and dividing them by the number of values. That process gives each value an equal weight.

Now let’s see how that procedure contrasts with the weighted average calculation.

The weighted average formula is the following:

Weighted average formula.

Where:

  • w = the weight for each data point.
  • x = the value of each data point.

Calculating the weighted average involves multiplying each data point by its weight and summing those products. Then sum the weights for all data points. Finally, divide the weight*value products by the sum of the weights. Voila, you’ve calculated the weighted mean!

Two broad calculation cases exist when using the weighted average formula:

  • The weights sum to 1.
  • They don’t sum to 1.

Notice how you divide the products by the sum of the weights in the denominator. Consequently, when the weights sum to one, the weighted mean simply equals the sum of the products in the numerator. However, you’ll need to perform the division when the denominator does not equal one.

Let’s use the weighted mean formula to work through two examples. You can download my Excel spreadsheet with both of the following calculated examples: Weighted Average. You can also use my online Weighted Average Calculator to solve the following examples. It not only finds the answers, but displays how it uses the formula to calculate the result.

Example Weighted Average Calculations

We’ll start with an example where the weights sum to one. This situation frequently occurs when someone intentionally builds the weighted average into a process. For example, a teacher might devise a grading system using weights and, for simplicity, has the weights sum to one.

The teacher has given weights ranging from 0.05 for quizzes to 0.4 for the group project. Because the teacher devised the weights to equal one, it’s easy to understand the importance of each observation. For instance, the group project accounts for 40% of the grade!

Let’s calculate the weighted mean for one student’s grade! In the column headers, I use notation that matches the weighted average formula above.

Example calculations for a weighted average.

The student did well on the quizzes and exams but not so well on the group project. The resulting weighted average is 79.70.

The regular mean is 84.5, but the considerable importance of the group project brought their weighted average grade down to 79.7. Ouch!

Example Weighted Mean Calculations

Next, let’s work through an example where the weights don’t sum to one.

An investor is building up a particular stock in his portfolio. He purchases the same stock at different prices over time. He can calculate the weighted mean for the average share price. In this example, the prices are the values, and the numbers of stocks are the weights.

Example calculations for a weighted mean.

Here, the weights sum to 125. Consequently, we need to divide the sum of the products (2,985) by 125. The weighted average price per stock is $23.88.

In closing, I’d like to point out that the statistical concept of the expected value is a specialized weighted average that uses the probabilities of each outcome for the weights. To learn more, read my post Expected Values: Definition, Formula & Finding.

Share this:

  • Tweet

Like this:

Like Loading…

Related

Filed Under: Basics

Reader Interactions

Comments

  1. Shreya says

    January 29, 2025 at 8:27 am

    Question- How to Handle Weights for Missing Responses in Survey Data?

    I am working with a weighted survey dataset where some respondents did not answer specific questions. Each respondent has a weight assigned to them (wt_p2round4). My goal is to calculate weighted percentages for different responses within each district.

    Here’s how I am currently calculating weighted percentages:

    Group responses by district and response category.
    Sum the weights of respondents who provided an answer.
    Divide by the total weight of all respondents in the district to get the percentage.
    However, I am unsure whether the denominator (total weight in the district) should include only those who answered the question or all respondents in the district, including those who did not answer.

    For example, if 10 respondents are from District A but only 7 answered the question, should the denominator be:

    (A) The sum of weights of the 7 respondents who answered
    (B) The sum of weights of all 10 respondents in the district (including those who skipped)
    This is important for correctly interpreting missing data. Any insights or references on best practices for handling survey weights in such cases would be greatly appreciated!

    Loading...
    Reply
  2. Franz Louie J. Ferrer says

    December 20, 2024 at 7:45 pm

    Good

    Loading...
    Reply
  3. Kareem Sultan says

    November 16, 2024 at 4:38 pm

    Thank you for this effort, great explanation.

    Loading...
    Reply
  4. Meena Kumari says

    August 25, 2024 at 1:13 am

    Great Explanation !

    Loading...
    Reply
  5. Giselle says

    December 28, 2023 at 3:25 pm

    Very well explained for a non-mathematician like me.
    Giselle M
    Technical Writer

    Loading...
    Reply

Comments and QuestionsCancel reply

Primary Sidebar

Meet Jim

Iโ€™ll help you intuitively understand statistics by focusing on concepts and using plain English so you can concentrate on understanding your results.

Read More...

Buy My Introduction to Statistics Book!

Cover of my Introduction to Statistics: An Intuitive Guide ebook.

Buy My Hypothesis Testing Book!

Cover image of my Hypothesis Testing: An Intuitive Guide ebook.

Buy My Regression Book!

Cover for my ebook, Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models.

Subscribe by Email

Enter your email address to receive notifications of new posts by email.

    I won't send you spam. Unsubscribe at any time.

    Buy My Thinking Analytically Book!

    Cover for my book, Thinking Analytically: An Guide for Making Data-Driven Decisions.

    Top Posts

    • F-table
    • Cronbachโ€™s Alpha: Definition, Calculations & Example
    • Z-table
    • How To Interpret R-squared in Regression Analysis
    • Box Plot Explained with Examples
    • T-Distribution Table of Critical Values
    • Multicollinearity in Regression Analysis: Problems, Detection, and Solutions
    • How to Interpret P-values and Coefficients in Regression Analysis
    • Cohens D: Definition, Using & Examples
    • Interpreting Correlation Coefficients

    Recent Posts

    • Data Collection Methods: Step-By-Step Guide with Examples
    • ANOVA Calculator
    • Positive Predictive Value: Meaning, Formula, and Interpretation
    • Median Absolute Deviation Calculator
    • Median Absolute Deviation: Definition, Finding & Formula
    • Outlier Calculator

    Recent Comments

    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Skata na fas on Comparing Regression Lines with Hypothesis Tests
    • Jim Frost on Pareto Chart: Making, Reading & Examples

    Copyright © 2026 · Jim Frost · Privacy Policy

    %d