# 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.

155 questions
1answer
29 views

0answers
11 views

### With few respondents on a 1 to 10 scale, is it better to use a weighted mean or the median?

I have survey data where ~20 respondents replied to some questions on a scale of 1 to 10. For the most part, none of the distributions are Gaussian. A set of questions look to find out a participants ...
1answer
41 views

### Combine mutliple predictions

This question had been asked several times in here, but I think I have something new to add. I'm interested in predicting if some specific event will happen (binary classification). I have two ...
0answers
20 views

### Error on distribution of values with uncertainties

I'm currently analysing a measurement which results in a high number of values, each having a slightly different uncertainty. These values are following a gaussian distribution, so I wrote a python ...
0answers
5 views

### change a categorical variable to a numeric variable in Stata [duplicate]

if income in the data was asked as an interval qs, i.e. individuals allocate themselves within an income interval/category, how do I convert it into a numeric variable in order to get the average ...
1answer
52 views

0answers
9 views

### dispersion of a sample where each item has its own error

I have a question relating the calculation of dispersion of a sample. A standard deviation is typically used, however in my situation each element in the sample has its own error prescribed (i.e. each ...
0answers
129 views

### Inverse weighted average

Is there something like an "inverse weighted average"? In my case, I have daily prices and daily units sold of a bunch of products and I would like to give prices with more units higher weights than ...
1answer
68 views

### Standard deviation of a ratio and calculation of weight

I have several "skilled" and "unskilled" wage observations for a number of countries, and would like to construct a single skilled-unskilled wage premium by country as the ratio of the simple average ...
0answers
44 views

### Standardizing Scores: Validity of Weighted Average of Percentile Ranks

All, I have a set of several test scores for a large group of students. The goal I have is to quantify each students' overall performance across each of these tests, as it relates to his or her ...
0answers
62 views

### How to weigh samples (representative of population) when comparing group means

I want to clarify my understanding of using sample weights when comparing means of sub-groups of a sample. Here is an artificial case with data that can be replicated in r (see code below): Let’s ...
2answers
343 views

### Calculate classifier accuracy from per label accuracy

I would like to have a per Label accuracy and classifier level accuracy, but my calculations seem incorrect. Here is my full example. Let's say I have a multilabel classifier which predicted in the ...
1answer
17 views

### Interpretation of sum of squares divided by sim

For the collection of numbers $S=\{x_1,x_2,...,x_n\}$ consider the term, $T_S =({\sum_{i=1}^n x_i^2})/({\sum_{i=1}^n x_i})$ where $\forall i, x_i \in [0,1]$ . Is there any specific name for this ...
0answers
38 views

### Combining both arithmetic and geometric mean in dataset with zeros and extreme values

I have a some datasets that I want to take an average of - a typical dataset might look something like this: 0 0 0 1 100 100 10000 30 10 10 0 0 0 0 0 Ordinarily ...
1answer
40 views

### How should I approach statistically?

I am conducting a meta-analysis on the therapeutic benefits of drug A - treated vs placebo. I would like to address the possibility of side effects/tolerability/likeliness of developing side effects. ...
1answer
45 views

### Estimating the mean when there is missing data

Let's say that we have one area and in this area there are designated 5 points, $a, b, c, d, e.$ For these 5 points we count the number of a specific feature. We capture the values for two different ...
0answers
803 views

### Standard error of weighted mean

I found it on wikipedia page: https://en.wikipedia.org/wiki/Weighted_arithmetic_mean Under Statistical properties section, the variance of weighted sample mean is:  \sigma_\bar x ^2 = \sum w_i^2\...
0answers
79 views

### Standard error for correlated measurements

I have the following problem: a measurement produces a certain value $x_i$ and I have an associated error $\Delta x_i$ for every measurement; the $i$ measurements are not independent and there are ...
0answers
152 views

### 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'...
2answers
415 views

### How to calculate average length of adherence to vegetarianism when we only have survey data about current vegetarians?

A random population sample was surveyed. They were asked if they eat vegetarian diet. If they answered yes, they were also asked to specify how long they’ve been eating vegetarian diet without ...
0answers
93 views

### Degree of freedom in t test involving weighted mean

Suppose I have repeated measurements of the same sample done by different people. Each person has different number of repeats. Here are the measurement data: Person #1: 2, 3, 2 Person #2: 3, 3, 6 ...
1answer
194 views