PureBytes Links
Trading Reference Links
|
after a little more thought I came up with a brute force solution for
calculating the standard deviation of a number of variables. I just stuffed
them in an array and calculated as follows:
For value1=1 to 7 begin
value2=value2+SDArray[value1];
end;
value2=value2/7;
for value1=1 to 7 begin
value3=value3+Square(SDArray[value1]-value2);
end;
SD=SquareRoot(value3,6);
That should do the trick but I'd still be curious if anyone else has a
better method.
-----Original Message-----
From: Peter Gibson <Peter_Gibson@xxxxxxxxxxxxxx>
To: omega-list@xxxxxxxxxx <omega-list@xxxxxxxxxx>
Date: May 29, 1998 3:43 PM
Subject: Standard Deviation
>The standard deviation function in TS relates to a time series of values.
>Has anyone coded up a standard deviation calculation for number of
variables
>which are not part of a time series. For example say if I had 10 values
all
>on the same bar is there is an easy way of calculating the standard
>deviation?
>
>
>
>
|