Tagged Questions

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.

3k views

165 views

Exponentially Weighing Moving Average (EWMA) for weekly data

I'm aware that the typical EWMA approach is applied over larger time periods (say for Volatility, where lambda = 94% and all weights add up to 100% for stock returns data from last 5 years). ...
304 views

Weighted Standard Deviation vs. Weighted Regression Standard Error

This is an R question. I have $n$ observations of the variable $y$, with each observation, $i$, weighted by $w(i)$. Each $w(i)$ weight falls between zero and 1, with the sum of the weights, $m<n$....
85 views

How to bootstrap confidence of a weighted measure?

I have a large data set of 20M observations with 20+ measures for each observation (people). Additionally I have a set of weights that reflect the racial population where each person lives. For ...
32 views

Estimated Treatment Effect in the full sample is not between the estimates of the stratified samples?

I am estimating the relationship between students' math scores and using a supplemental math software. I've adjusted for some demographic variables in the model. In my first model, I use the full ...
35 views

How to symmetrically adjust data by removing certain value

Say I have a data set in the following format: {a:200, b: 100; c:400} The sum of a, b and c equals 700. Now, I have another value which is supposed to be the actual total say 500. How do I adjust ...
857 views

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 ...
190 views

How to solve this “probabilities and weighted probabilities” type of question?

I always get confused by "probabilities and weighted probabilities" type of questions as I can't differentiate between the two of them. Consider following example. Urn 1 contains 5 white balls and ...
287 views

Better method to estimate gender gap: difference between medians or median gap by occupation?

I'm doing some analysis of Bureau of Labor Statistics data on wages earned by men and women, and I'm trying to determine which of the two methods I've used is the better estimate of the gender wage ...
109 views

Will the mean of a set of means always be the same as the mean obtained from the entire set of raw data?

If I have calculated the mean for 4 data sets (which do have different sample sizes), can I then obtain an "overall mean" by calculating the "mean of the means"? If yes, will this "mean of the means" ...
613 views

How to relate raw scores on five-point Likert to three conceptual categories?

My thesis is on employee productivity and I had a questionnaire which consists of a five-point Likert scale (5-strongly agree, 4-agree, 3-agree, 2-disagree, and 1-strongly disagree). On the other hand,...
38 views

Proving that weighted probabilities lie in the range 0 to 1

How to prove that: $$P_{avg} = \dfrac{w_{1}P_{A} + w_{2}P_{B} + w_{3}P_{C}}{w_{1} + w_{2} + w_{3}}$$ lies between 0 and 1, where $P_{i}$ corresponds to probability scores and $w_{j}$ are real ...
91 views

Weighted median

I'd like to compute a median of measurements taken from a population with 3 subgroups, A, B, and C. I'd like to the median to be "weighted", in the sense that each of the groups should have equal ...
315 views

Is there a more elegent solution for exponentially weighted-mean in R? [closed]

OK so I have a working code to do what I want but I am new to R and feel like my solution is very clunky and there is likely a more efficient way to get the same result. I have a set of data that ...
519 views

How do I calculate the ranking of some galleries based on the rankings of the artists represented by them?

The mean is not good in this case, because there are galleries that have an artist with a high rank and several other artists with way lower ranks. I'm thinking about doing a weighted mean, but I don'...
Let's say we have three different published results that measure the same physical quantity $x$ using completely different methods. Experiment 1 says $x=100\pm0.1$, Experiment 2 says $x=102\pm0.2$, ...
I am doing an experiment in which I measure success or failure of a series of $k$ trials, yielding a proportion $P$. I repeat the experiment several times, yielding a set of $N$ proportions: \$P_1, \...