source: project/wiki/eggref/4/statistics @ 20485

Last change on this file since 20485 was 20485, checked in by svnwiki, 8 years ago

Anonymous wiki edit for IP [86.129.203.107]: some documentation

File size: 3.9 KB
Line 
1Still under testing!
2
3== Introduction
4
5This library is a port of [[http://compbio.uchsc.edu/Hunter_lab/Hunter/|Larry Hunter]]'s Lisp statistics library to chicken scheme.
6
7The library provides a number of formulae and methods taken from the book "Fundamentals of Biostatistics" by Bernard Rosner (5th edition).
8
9== Provided Functions
10
11=== Utilities
12
13*    average-rank
14*   beta-incomplete
15*    bin-and-count
16*   combinations
17*    factorial
18*    find-critical-value
19*    fisher-z-transform
20*    gamma-incomplete
21*    gamma-ln
22*    permutations
23*    random-normal
24
25; (random-pick items) : given a list of {{items}}, returns a random item.
26; (random-sample n items) : given a number of items to select, {{n}}, and a list of items to select from, {{items}}, returns a random sample without replacement of size {{n}}.
27; (sign n) : given a number {{n}}, returns 0, 1 or -1 according to if {{n}} is zero, positive or negative.
28; (square n) : given a number {{n}}, returns the square of {{n}}.
29
30=== Descriptive statistics
31
32; (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; (median items) : given a list of numbers, {{items}}, returns the value which separates the upper and lower halves of the list of numbers.
34; (mode items) :
35; (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).
36; (range ) :
37; (percentile items n) :
38; (variance items) :
39; (standard-deviation items) :
40; (coefficient-of-variation items) :
41; (standard-error-of-the-mean ) :
42; (mean-sd-n items) :
43
44=== Distributional functions
45
46*    binomial-probability
47*    binomial-cumulative-probability
48*    binomial-ge-probability
49*    binomial-le-probability
50*    poisson-probability
51*    poisson-cumulative-probability
52*    poisson-ge-probability
53*    normal-pdf
54*    convert-to-standard-normal
55*    phi
56*    z
57*    t-distribution
58*    chi-square
59*    chi-square-cdf
60
61===  Confidence intervals
62
63*    binomial-probability-ci
64*    poisson-mu-ci
65*    normal-mean-ci
66*    normal-mean-ci-on-sequence
67*    normal-variance-ci
68*    normal-variance-ci-on-sequence
69*    normal-sd-ci
70*    normal-sd-ci-on-sequence
71
72=== Hypothesis testing
73
74====  (parametric)
75
76*    z-test
77*    z-test-on-sequence
78*    t-test-one-sample
79*    t-test-one-sample-on-sequence
80*    t-test-paired
81*    t-test-paired-on-sequences
82*    t-test-two-sample
83*    t-test-two-sample-on-sequences
84*    f-test
85*    chi-square-test-one-sample
86*    binomial-test-one-sample
87*    binomial-test-two-sample
88*    fisher-exact-test
89*    mcnemars-test
90*    poisson-test-one-sample
91
92==== (non parametric)
93
94*    sign-test
95*    sign-test-on-sequence
96*    wilcoxon-signed-rank-test
97*    wilcoxon-signed-rank-test-on-sequences
98*    chi-square-test-rxc
99*    chi-square-test-for-trend
100
101=== Sample size estimates
102
103*    t-test-one-sample-sse
104*    t-test-two-sample-sse
105*    t-test-paired-sse
106*    binomial-test-one-sample-sse
107*    binomial-test-two-sample-sse
108*    binomial-test-paired-sse
109*    correlation-sse
110
111=== Correlation and regression
112
113*    linear-regression
114*    correlation-coefficient
115*    correlation-test-two-sample
116*    correlation-test-two-sample-on-sequences
117*    spearman-rank-correlation
118
119=== Significance test functions
120
121*    t-significance
122*    f-significance
123
124
125== Authors
126
127[[http://wiki.call-cc.org/users/peter-lane|Peter Lane]] wrote the scheme version of this library.  The original Lisp version was written by [[http://compbio.uhsc.edu/Hunter_lab/Hunter/|Larry Hunter]].
128
129== License
130
131GPL version 3.0.
132
133== Requirements
134
135Needs srfi-1, srfi-25, srfi-69, vector-lib, numbers, extras, foreign, format
136
137Uses the GNU scientific library for basic numeric processing, so requires libgsl, libgslcblas and the development files for libgsl.
138
139== Version History
140
141trunk, for testing
Note: See TracBrowser for help on using the repository browser.