Changeset 20488 in project


Ignore:
Timestamp:
09/24/10 13:56:43 (10 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [86.129.203.107]:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/statistics

    r20487 r20488  
    3030=== Descriptive statistics
    3131
     32These functions provide information on a given list of numbers.  Note, the list of items does not have to be sorted.
     33
    3234; (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).
    3335 (mean '(1 2 3 4 5)) => 3
     
    3739; (geometric-mean 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).
    3840 (geometric-mean '(1 2 3 4 5)) => 2.60517108469735
    39 ; (range ) :
    40 ; (percentile items n) :
    41 ; (variance items) :
    42 ; (standard-deviation items) :
    43 ; (coefficient-of-variation items) :
    44 ; (standard-error-of-the-mean ) :
    45 ; (mean-sd-n 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; (standard-deviation items) : given a list of numbers, {{items}}, returns the standard deviation of the numbers.
     48; (coefficient-of-variation items) : given a list of numbers, {{items}}, returns 100 * (std-dev / mean) of the items.
     49 (coefficient-of-variation '(1 2 3 4)) => 51.6397779494322
     50; (standard-error-of-the-mean items) : given a list of numbers, {{items}}, returns std-dev / sqrt(length items).
     51  (standard-error-of-the-mean '(1 2 3 4)) => 0.645497224367903
     52; (mean-sd-n 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 > (mean-sd-n '(1 2 3 4))
     54 5/2
     55 1.29099444873581
     56 4
    4657
    4758=== Distributional functions
Note: See TracChangeset for help on using the changeset viewer.