The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(48G) Statistics: Mid-range & Estimator of Standard Deviation
05-31-2017, 09:35 AM (This post was last modified: 06-15-2017 01:47 PM by Gene.)
Post: #1
(48G) Statistics: Mid-range & Estimator of Standard Deviation
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
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(48G) Statistics: Mid-range & Estimator of Standard Deviation - Gerald H - 05-31-2017 09:35 AM



User(s) browsing this thread: 1 Guest(s)