Hello everybody,(adsbygoogle = window.adsbygoogle || []).push({});

My name is Sumet. I am studying in network traffic field. My background in statistic is not so strong; however, I have to calculate weighted sum of variables in order to determine variance and coefficient of variation (CV) of measured values. Please see the following descriptions. Any comments or suggestions for solution or suggestions for additional sources for references are very appreciated. Thank you.

Let X_{i}is a random variable of the measured value of something at the i^{th}second. And W_{i}=N_{i}/[tex]\sum[/tex]N_{i}, where N_{i}is the number of values obtain from measurement in the i^{th}second.

Among N_{i}values, E[X_{i}] and var[X_{i}] are mean and variance of X_{i}(calculated and recorded in the i^{th}second), respectively.

Over time T seconds, we obtain E[X_{1}], E[X_{2}],... ,E[X_{T}], Var[X_{1}], Var[X_{2}], ..., and Var[X_{T}].

Next, weighted sum of variables, [tex]\sum[/tex]W_{i}X_{i}, will be focused. It is clear that mean (over time T) of mean of X_{i}can be determined from

E[[tex]\sum[/tex]W_{i}X_{i}]=[tex]\sum[/tex](W_{i}E[X_{i}]), for all i=1,2,3,...,T. ------------ (1)

But, in many references, there is no clear description for determination of variance (over time T) of mean of X_{i}; they just say that

Var[aX+bY] = a^{2}Var[X] + b^{2}Var[Y] + 2abCov(X,Y).

The followings are my understanding which I am not sure if it is correct. By the same manner as the above equation, the variance (over time T) of mean of X_{i}can be determined from

Var[[tex]\sum[/tex]W_{i}X_{i}] = [tex]\sum[/tex]W_{i}^{2}Var[X_{i}] + Some_Covariance_Terms, for all i=1,2,3,...,T.

If X_{i}is statistical independent for each second, the terms Some_Covariance_Terms will be 0 and the equation becomes

Var[[tex]\sum[/tex]W_{i}X_{i}] = [tex]\sum[/tex]W_{i}^{2}Var[X_{i}], for all i=1,2,3,...,T. ------------ (2)

And then CV can be calculated from the obtained mean from (1) and square root of the obtained variance from (2).

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# To calculate variance and CV from multiple (weighted) variables

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - calculate variance multiple | Date |
---|---|

Calculating variance of a single statistic from different collections of data | Sep 30, 2012 |

Excluding mean in variance calculation | Sep 11, 2012 |

Hi,I was looking at the way variance is calcullated. Let us say V | Sep 3, 2012 |

Calculation of sample variance | Jun 18, 2011 |

Calculating variance from range | Sep 21, 2010 |

**Physics Forums - The Fusion of Science and Community**