HP Forums

Full Version: (48G) Statistics: Mid-range & Estimator of Standard Deviation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A lazy way to find the average of a set of data is to take half of the sum of max & min values, which is in fact the correct method to find the middle of the range of values.

The programme below finds the mid-range value, MR, for a list of values.

An easy way to quickly calculate a reasonable approximation to the standard deviation of the values is to divide MR by 4.

Code:

« 1. * SORT OBJ
DUP 1. ==
  IF
  THEN DROP
  ELSE SWAP OVER 1.
+ ROLLD 2. - DROPN
+ 2. /
  END
»
Reference URL's