Changeset 20488 in project
 Timestamp:
 09/24/10 13:56:43 (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

wiki/eggref/4/statistics
r20487 r20488 30 30 === Descriptive statistics 31 31 32 These functions provide information on a given list of numbers. Note, the list of items does not have to be sorted. 33 32 34 ; (mean items) : given a list of numbers, {{items}}, returns the arithmetic mean of the items (the sum of the numbers divided by the number of numbers). 33 35 (mean '(1 2 3 4 5)) => 3 … … 37 39 ; (geometricmean items) : given a list of numbers, {{items}}, returns the geometric mean of the items (the result of multiplying the items together and then taking the nth root, where n is the number of items). 38 40 (geometricmean '(1 2 3 4 5)) => 2.60517108469735 39 ; (range ) : 40 ; (percentile items n) : 41 ; (variance items) : 42 ; (standarddeviation items) : 43 ; (coefficientofvariation items) : 44 ; (standarderrorofthemean ) : 45 ; (meansdn items) : 41 ; (range items) : given a list of numbers, {{items}}, returns the difference between the biggest and the smallest value. 42 (range '(5 1 2 3 4)) => 4 43 ; (percentile items percent) : given a list of numbers, {{items}}, and a percentage, {{percent}}, returns the item closest to the percent value if the items are sorted into order; the returned item may be in the list, or the average of adjacent values. 44 (percentile '(1 2 3 4) 50) => 5/2 45 (percentile '(1 2 3 4) 67) => 3 46 ; (variance items) : given a list of numbers, {{items}}, returns the variance of the numbers. 47 ; (standarddeviation items) : given a list of numbers, {{items}}, returns the standard deviation of the numbers. 48 ; (coefficientofvariation items) : given a list of numbers, {{items}}, returns 100 * (stddev / mean) of the items. 49 (coefficientofvariation '(1 2 3 4)) => 51.6397779494322 50 ; (standarderrorofthemean items) : given a list of numbers, {{items}}, returns stddev / sqrt(length items). 51 (standarderrorofthemean '(1 2 3 4)) => 0.645497224367903 52 ; (meansdn items) : given a list of numbers, {{items}}, returns three '''values''', one for the mean, one for the standard deviation, and one for the length of the list. 53 > (meansdn '(1 2 3 4)) 54 5/2 55 1.29099444873581 56 4 46 57 47 58 === Distributional functions
Note: See TracChangeset
for help on using the changeset viewer.