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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment