Questions tagged [weighted-mean]

A weighted mean (or weighted average) is like an ordinary mean, but the observations don't contribute equally - more emphasis is placed on some data values than others; they are weighted by a bigger or smaller amount than 1/n.

A weighted mean (or weighted average) is similar to an ordinary mean, but instead of every value contributing 1/n of the observation's value to the average, it contributes some other amount. Generally weights are restricted to be non-negative.

Weights are useful when the precision or variability of observations are not constant.

238 questions
6
votes
1 answer

Standard error of a weighted mean when observations are not independent

I have a situation where I have a bunch of noisy observations with known (and normal) sampling error and a non-trivial co-variance structure between the observations. In an uncorrelated setting, I'd generate weights by taking the inverse variance of…
DavidShor
  • 1,491
6
votes
2 answers

Weighted geometric mean vs weighted mean

I have a set of data, each element has a weight. I need to estimate the mean of this data. I found that there are two ways: A weighted geometric mean and a weighted mean. When should I use each of them and what are the advantages of using each of…
M.M
  • 524
4
votes
2 answers

Weighted mean of two 2D Gaussian random variables

I have two 2D Gaussian random variables. I'd like to find the weighted average of the two (based on their covariance matrix around the mean, meaning that the mean of the final Gaussian should be closer to the one with the smallest variance). What is…
MarkSAlen
  • 2,927
2
votes
3 answers

How to calculate the weighted mean?

For example assume I have three observations as given in matrix A $A = \left[ \begin{array}{ccc} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \\ \end{array} \right]$ each row vector of matrix A has a weight value associated with it as $w = (0.5, 0.3, 0.2)…
Synex
  • 125
2
votes
1 answer

Optimize Weights used in a Weighted Average

I want to calculate a weighted average, mostly for illustration purposes. However, I have an outcome variable that is Y/N and would like to optimize the weights relative to this outcome. What are some basic ways of doing this? Basically, I…
Btibert3
  • 1,334
  • 2
  • 15
  • 24
1
vote
0 answers

Analyzing a weighted ranking with repeating items

I have an experiment which evaluates decision making processes while buying a given product (wine). I use MouseLab Web to gather the data. Basically the user has multiple attributes, that describe his product: Price, Brand, Type, Country of…
1
vote
0 answers

Optimal weight for weighted average

I have some data points for which I do not have individual errors. My goal is to calculate the weighted average and I am looking for the "optimal weights" that can be used. I was thinking about the distance from the median or the z-score ((xi…
1
vote
1 answer

Representing a subset of observation using weights

I have $n$ observations for $m$ variables that are sorted by time, e.g. observation $1$ is the oldest, whereas observation $n$ is the newest. I represent this data as an $n\times m$-dimensional matrix $D$. I would like to compute the mean and…
Ulysses
  • 419
0
votes
1 answer

PISA scores wrong when computed by regions

I am testing a script in R to work with the PISA data for Spain. I calculate the average maths score as the weighted average with the weights (w_fstuwt) of each of the 5 plausible values and then taking the average of those 5 values. Comparing with…
0
votes
1 answer

How can I adjust a bell curve, tightening it under specific constraints?

I need to adjust my data set (student grades) to fit what the school wants. I also don't want any students to fail (there are a couple who are). On the other hand, several students did a bunch of extra credit and have ended up over 100%. The…
0
votes
2 answers

Weighted average of sales

Suppose that I have 3 soda makers and I want to know their share of market. I am just given the total sales in a period (ex. this year) for all the soda makers and the total sales per soda maker. However one of the data points register very low…
Oliver
  • 111
0
votes
0 answers

Weighted average with multiple weighing criteria

I've tried searching for a general method for calculating a weighted average with multiple weight variables, but no luck so far (almost all search results are related to Excel implementation and I don't know Excel formulae). Let's say I have a…