Sunday, July 12, 2009

C++ Program to calculate mean variance & standard deviation?formula is given as:?

variance=


N ―


1/N ∑ (x ı – x)²


i=1





standard deviation= √(variance)


− N


where x =1/N ∑ Xı


i=1

C++ Program to calculate mean variance %26amp; standard deviation?formula is given as:?
When you see ∑, you need a loop that adds up your Xi's or whatever is input to the ∑, which should be in an array. The rest of it is just math.


No comments:

Post a Comment