Weighted Importance in sampled data statistics

  • Context: Graduate 
  • Thread starter Thread starter X89codered89X
  • Start date Start date
  • Tags Tags
    Data Statistics
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
X89codered89X
Messages
149
Reaction score
2
I was just wondering how exactly to appropriately modify the 1st and 2nd order stats when you want to weight a given sample more heavily. If [itex]\vec{X}[/itex] is my vector of N samples and I have a weight vector [itex]\vec{W}[/itex] of the same dimension, which ideally is measuring the reliability of each sample from 0 to 1. Could I calculate mean and variance using...

[itex] \vec{Y}_i= \vec{X}_i\vec{W}_i <br /> \\<br /> <br /> \mu_{x-weighted} = E[\vec{Y}]<br /> \\<br /> <br /> \sigma_{x-weighted} = E[(\vec{Y}-E[\vec{Y}])^2]<br /> \\<br /> [/itex]

Let me know what you think. Thanks.

EDIT: [itex]\LaTeX[/itex] mods...
 
Physics news on Phys.org
The weighted mean is given by...

[tex]\mu_w = \frac{\sum x_iw_i}{\sum w_i}[/tex]

The weighted sample variance is...

[tex]\sigma^2_w = \frac{\sum w_i(x_i - \mu_w)^2}{\sum w_i}[/tex]
 
Hey thanks!