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

Last change on this file since 20487 was 20487, checked in by svnwiki, 9 years ago

Anonymous wiki edit for IP [86.129.203.107]:

File size: 4.0 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 (mean '(1 2 3 4 5)) => 3
34; (median items) : given a list of numbers, {{items}}, returns the value which separates the upper and lower halves of the list of numbers.
35 (median '(1 2 3 4)) => 5/2
36; (mode items) :
37; (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).
38 (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) :
46
47=== Distributional functions
48
49*    binomial-probability
50*    binomial-cumulative-probability
51*    binomial-ge-probability
52*    binomial-le-probability
53*    poisson-probability
54*    poisson-cumulative-probability
55*    poisson-ge-probability
56*    normal-pdf
57*    convert-to-standard-normal
58*    phi
59*    z
60*    t-distribution
61*    chi-square
62*    chi-square-cdf
63
64===  Confidence intervals
65
66*    binomial-probability-ci
67*    poisson-mu-ci
68*    normal-mean-ci
69*    normal-mean-ci-on-sequence
70*    normal-variance-ci
71*    normal-variance-ci-on-sequence
72*    normal-sd-ci
73*    normal-sd-ci-on-sequence
74
75=== Hypothesis testing
76
77====  (parametric)
78
79*    z-test
80*    z-test-on-sequence
81*    t-test-one-sample
82*    t-test-one-sample-on-sequence
83*    t-test-paired
84*    t-test-paired-on-sequences
85*    t-test-two-sample
86*    t-test-two-sample-on-sequences
87*    f-test
88*    chi-square-test-one-sample
89*    binomial-test-one-sample
90*    binomial-test-two-sample
91*    fisher-exact-test
92*    mcnemars-test
93*    poisson-test-one-sample
94
95==== (non parametric)
96
97*    sign-test
98*    sign-test-on-sequence
99*    wilcoxon-signed-rank-test
100*    wilcoxon-signed-rank-test-on-sequences
101*    chi-square-test-rxc
102*    chi-square-test-for-trend
103
104=== Sample size estimates
105
106*    t-test-one-sample-sse
107*    t-test-two-sample-sse
108*    t-test-paired-sse
109*    binomial-test-one-sample-sse
110*    binomial-test-two-sample-sse
111*    binomial-test-paired-sse
112*    correlation-sse
113
114=== Correlation and regression
115
116*    linear-regression
117*    correlation-coefficient
118*    correlation-test-two-sample
119*    correlation-test-two-sample-on-sequences
120*    spearman-rank-correlation
121
122=== Significance test functions
123
124*    t-significance
125*    f-significance
126
127
128== Authors
129
130[[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]].
131
132== License
133
134GPL version 3.0.
135
136== Requirements
137
138Needs srfi-1, srfi-25, srfi-69, vector-lib, numbers, extras, foreign, format
139
140Uses the GNU scientific library for basic numeric processing, so requires libgsl, libgslcblas and the development files for libgsl.
141
142== Version History
143
144trunk, for testing
Note: See TracBrowser for help on using the repository browser.