Re: Calculating the Standard Deviation of a Weighted List

From: Ray Koopman (koopman_at_sfu.ca)
Date: 11/05/04


Date: 5 Nov 2004 14:20:44 -0800

John wrote:
> When calculating the standard deviation of a weighted list, should
> one normalize the weights such that the sum of the weights = 1, or
> such that the sum of the weights = the number of data points proper?
>
> The latter seems to be the only way by which the weighted standard
> deviation, when the weight variable has the same value for every data
> point, equals the non-weighted standard deviation.
>
> Yet nearly everything I find on the internet seems to suggest the
> former.
>
> BTW, I'm not a statistician by any stretch so please forgive any
> ignorance.
>
> TIA,
> John

Normalizing the weights is not necessary.
The weighted mean is

m = Sum Wi*Xi / Sum Wi.

The weighted variance that corresponds to using N
in the denominator of the unweighted variance is

Sum Wi(Xi - m)^2 / Sum Wi.

The weighted variance that corresponds to using N-1
in the denominator of the unweighted variance is
Sum Wi(Xi - m)^2 / (Sum Wi - (Sum Wi^2 / Sum Wi)).



Relevant Pages

  • Re: Weighted standard deviation
    ... also variance (standard deviation rather, ... the original data columns also have weights attached to them - ... estimate standard deviations for each row, ... The SPSS Complex Samples option allows you to select a sample according to a complex design and incorporate the design specifications into the data analysis, thus ensuring that your results are valid. ...
    (sci.stat.consult)
  • Re: Weighted standard deviation
    ... also variance (standard deviation rather, ... the original data columns also have weights attached to them - ... estimate standard deviations for each row, ...
    (sci.stat.consult)
  • Calculating the Standard Deviation of a Weighted List
    ... When calculating the standard deviation of a weighted list, ... normalize the weights such that the sum of the weights = 1, ...
    (sci.stat.edu)
  • Re: Weighted Standard Deviation
    ... Are you talking about using a pooled standard deviation? ... determining the weights? ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Dummies guide to DCT
    ... In the DCT the signal is decomposed into a sum of cosines, ... and maybe a little signal/image processing to understand this ... the short answer is that you decompose your image into a ... you are calculating what the values of the weights are. ...
    (comp.soft-sys.matlab)