Hi
Jeremy wrote:
> score=8 mean=9.67 and deviation=-1.67
>
> now I want to square the deviation with sqrt but that doesn't really
> work anymore since the value is negative, what function could I use
> from the math.h to obtain the correct squared deviation value of 2.79?
Ever thought about why there is a 't' at the end of 'sqrt'?
Firstly, x squared simply is x * x.
Secondly, if that is statistics, then you're probably doing something wrong.
The standard deviation (if that's what you mean by deviation) is defined to
be the square root of the variance. An unbiased estimator for the variance
is given by
\frac{1}{n-1} \sum_{i=1}^N E((x_i - µ)^2)
Markus