Mercurial > octave-nkf
annotate doc/interpreter/stats.txi @ 12569:6ef23b4a3402
Add quantile, prctile functions to documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 02 Apr 2011 13:37:52 -0700 |
parents | 06cebc991966 |
children | f9b7aa3b88f8 |
rev | line source |
---|---|
11523 | 1 @c Copyright (C) 1996-2011 John W. Eaton |
7018 | 2 @c |
3 @c This file is part of Octave. | |
4 @c | |
5 @c Octave is free software; you can redistribute it and/or modify it | |
6 @c under the terms of the GNU General Public License as published by the | |
7 @c Free Software Foundation; either version 3 of the License, or (at | |
8 @c your option) any later version. | |
9 @c | |
10 @c Octave is distributed in the hope that it will be useful, but WITHOUT | |
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 @c for more details. | |
14 @c | |
15 @c You should have received a copy of the GNU General Public License | |
16 @c along with Octave; see the file COPYING. If not, see | |
17 @c <http://www.gnu.org/licenses/>. | |
3294 | 18 |
4167 | 19 @node Statistics |
3294 | 20 @chapter Statistics |
21 | |
6754 | 22 Octave has support for various statistical methods. This includes |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
23 basic descriptive statistics, probability distributions, statistical tests, |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
24 random number generation, and much more. |
6754 | 25 |
11573
6f8ffe2c6f76
Grammarcheck txi files for 3.4 release.
Rik <octave@nomad.inbox5.com>
parents:
11544
diff
changeset
|
26 The functions that analyze data all assume that multi-dimensional data |
6754 | 27 is arranged in a matrix where each row is an observation, and each |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
28 column is a variable. Thus, the matrix defined by |
6754 | 29 |
30 @example | |
9069
634274aaa183
Cleanup documentation for stats.texi
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
31 @group |
6754 | 32 a = [ 0.9, 0.7; |
33 0.1, 0.1; | |
34 0.5, 0.4 ]; | |
9069
634274aaa183
Cleanup documentation for stats.texi
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
35 @end group |
6754 | 36 @end example |
37 | |
38 @noindent | |
39 contains three observations from a two-dimensional distribution. | |
40 While this is the default data arrangement, most functions support | |
41 different arrangements. | |
42 | |
8828 | 43 It should be noted that the statistics functions don't test for data |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
44 containing NaN, NA, or Inf. These values need to be detected and dealt |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
45 with explicitly. See @ref{doc-isnan,,isnan}, @ref{doc-isna,,isna}, |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
46 @ref{doc-isinf,,isinf}, @ref{doc-isfinite,,isfinite}. |
6754 | 47 |
3453 | 48 @menu |
6754 | 49 * Descriptive Statistics:: |
50 * Basic Statistical Functions:: | |
51 * Statistical Plots:: | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
52 * Correlation and Regression Analysis:: |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
53 * Distributions:: |
3454 | 54 * Tests:: |
6754 | 55 * Random Number Generation:: |
3453 | 56 @end menu |
57 | |
6754 | 58 @node Descriptive Statistics |
59 @section Descriptive Statistics | |
60 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
61 One principal goal of descriptive statistics is to represent the essence of a |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
62 large data set concisely. Octave provides the mean, median, and mode functions |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
63 which all summarize a data set with just a single number corresponding to |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
64 the central tendency of the data. |
3453 | 65 |
3367 | 66 @DOCSTRING(mean) |
3294 | 67 |
3367 | 68 @DOCSTRING(median) |
3294 | 69 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
70 @DOCSTRING(mode) |
7643
0220da981c2a
Modified statistics to calculate consistent median.
Ben Abbott <bpabbott@mac.com>
parents:
7081
diff
changeset
|
71 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
72 Using just one number, such as the mean, to represent an entire data set may |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
73 not give an accurate picture of the data. One way to characterize the fit is |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
74 to measure the dispersion of the data. Octave provides several functions for |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
75 measuring dispersion. |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
76 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
77 @DOCSTRING(range) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
78 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
79 @DOCSTRING(iqr) |
7643
0220da981c2a
Modified statistics to calculate consistent median.
Ben Abbott <bpabbott@mac.com>
parents:
7081
diff
changeset
|
80 |
6754 | 81 @DOCSTRING(meansq) |
82 | |
3367 | 83 @DOCSTRING(std) |
3294 | 84 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
85 In addition to knowing the size of a dispersion it is useful to know the shape |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
86 of the data set. For example, are data points massed to the left or right |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
87 of the mean? Octave provides several common measures to describe the shape |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
88 of the data set. Octave can also calculate moments allowing arbitrary shape |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
89 measures to be developed. |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
90 |
6754 | 91 @DOCSTRING(var) |
92 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
93 @DOCSTRING(skewness) |
3294 | 94 |
3367 | 95 @DOCSTRING(kurtosis) |
3294 | 96 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
97 @DOCSTRING(moment) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
98 |
12569
6ef23b4a3402
Add quantile, prctile functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12532
diff
changeset
|
99 @DOCSTRING(quantile) |
6ef23b4a3402
Add quantile, prctile functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12532
diff
changeset
|
100 |
6ef23b4a3402
Add quantile, prctile functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12532
diff
changeset
|
101 @DOCSTRING(prctile) |
6ef23b4a3402
Add quantile, prctile functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12532
diff
changeset
|
102 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
103 A summary view of a data set can be generated quickly with the |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
104 @code{statistics} function. |
6754 | 105 |
106 @DOCSTRING(statistics) | |
107 | |
108 @node Basic Statistical Functions | |
109 @section Basic Statistical Functions | |
110 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
111 Octave supports various helpful statistical functions. Many are useful as |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
112 initial steps to prepare a data set for further analysis. Others provide |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
113 different measures from those of the basic descriptive statistics. |
3294 | 114 |
6754 | 115 @DOCSTRING(center) |
3453 | 116 |
6754 | 117 @DOCSTRING(studentize) |
3453 | 118 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
119 @DOCSTRING(histc) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
120 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
121 @DOCSTRING(cut) |
6550 | 122 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
123 @c FIXME: really want to put a reference to unique here |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
124 @c @DOCSTRING(values) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
125 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
126 @DOCSTRING(nchoosek) |
8932
2d0f8692a82e
Add the 'histc' function
Soren Hauberg <hauberg@gmail.com>
parents:
8920
diff
changeset
|
127 |
6550 | 128 @DOCSTRING(perms) |
129 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
130 @DOCSTRING(ranks) |
3453 | 131 |
132 @DOCSTRING(run_count) | |
133 | |
12532
06cebc991966
Add runlength function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12495
diff
changeset
|
134 @DOCSTRING(runlength) |
06cebc991966
Add runlength function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12495
diff
changeset
|
135 |
3453 | 136 @DOCSTRING(probit) |
137 | |
6754 | 138 @DOCSTRING(logit) |
3453 | 139 |
6754 | 140 @DOCSTRING(cloglog) |
3453 | 141 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
142 @DOCSTRING(mahalanobis) |
3453 | 143 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
144 @DOCSTRING(table) |
3453 | 145 |
6754 | 146 @node Statistical Plots |
147 @section Statistical Plots | |
148 | |
149 @c Should hist be moved to here, or perhaps the qqplot and ppplot | |
150 @c functions should be moved to the Plotting Chapter? | |
3453 | 151 |
6754 | 152 Octave can create Quantile Plots (QQ-Plots), and Probability Plots |
153 (PP-Plots). These are simple graphical tests for determining if a | |
154 data set comes from a certain distribution. | |
3453 | 155 |
8828 | 156 Note that Octave can also show histograms of data |
6754 | 157 using the @code{hist} function as described in |
6888 | 158 @ref{Two-Dimensional Plots}. |
6754 | 159 |
160 @DOCSTRING(qqplot) | |
161 | |
162 @DOCSTRING(ppplot) | |
3453 | 163 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
164 @node Correlation and Regression Analysis |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
165 @section Correlation and Regression Analysis |
3453 | 166 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
167 @c FIXME: Need Intro Here |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
168 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
169 @DOCSTRING(cov) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
170 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
171 @DOCSTRING(cor) |
6754 | 172 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
173 @DOCSTRING(corrcoef) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
174 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
175 @DOCSTRING(spearman) |
6754 | 176 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
177 @DOCSTRING(kendall) |
3454 | 178 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
179 @c FIXME: Need discussion of ols & gls and references to them in optim.txi |
3454 | 180 |
3453 | 181 |
3454 | 182 @DOCSTRING(logistic_regression) |
183 | |
4167 | 184 @node Distributions |
3453 | 185 @section Distributions |
3456 | 186 |
6754 | 187 Octave has functions for computing the Probability Density Function |
188 (PDF), the Cumulative Distribution function (CDF), and the quantile | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
189 (the inverse of the CDF) for a large number of distributions. |
6754 | 190 |
191 The following table summarizes the supported distributions (in | |
192 alphabetical order). | |
193 | |
7081 | 194 @tex |
195 \vskip 6pt | |
196 {\hbox to \hsize {\hfill\vbox{\offinterlineskip \tabskip=0pt | |
197 \halign{ | |
198 \vrule height2.0ex depth1.ex width 0.6pt #\tabskip=0.3em & | |
199 # \hfil & \vrule # & # \hfil & \vrule # & # \hfil & \vrule # & # \hfil & | |
200 # \vrule width 0.6pt \tabskip=0pt\cr | |
201 \noalign{\hrule height 0.6pt} | |
202 & {\bf Distribution} && {\bf PDF} && {\bf CDF} && {\bf Quantile}&\cr | |
203 \noalign{\hrule} | |
204 &Beta && betapdf && betacdf && betainv&\cr | |
205 &Binomial && binopdf && binocdf && binoinv&\cr | |
206 &Cauchy && cauchy\_pdf && cauchy\_cdf && cauchy\_inv&\cr | |
207 &Chi-Square && chi2pdf && chi2cdf && chi2inv&\cr | |
208 &Univariate Discrete && discrete\_pdf && discrete\_cdf && discrete\_inv&\cr | |
209 &Empirical && empirical\_pdf && empirical\_cdf && empirical\_inv&\cr | |
210 &Exponential && exppdf && expcdf && expinv&\cr | |
211 &F && fpdf && fcdf && finv&\cr | |
212 &Gamma && gampdf && gamcdf && gaminv&\cr | |
213 &Geometric && geopdf && geocdf && geoinv&\cr | |
12495
4675ce154a55
Correctly refer to "discrete uniform" distribution in documentation.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
214 &Hypergeometric && hygepdf && hygecdf && hygeinv&\cr |
7081 | 215 &Kolmogorov Smirnov && {\it Not Available} && kolmogorov\_&& {\it Not Available}&\cr |
216 & && && smirnov\_cdf &&&\cr | |
12495
4675ce154a55
Correctly refer to "discrete uniform" distribution in documentation.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
217 &Laplace && laplace\_pdf && laplace\_cdf && laplace\_inv&\cr |
4675ce154a55
Correctly refer to "discrete uniform" distribution in documentation.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
218 &Logistic && logistic\_pdf && logistic\_cdf && logistic\_inv&\cr |
7081 | 219 &Log-Normal && lognpdf && logncdf && logninv&\cr |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
220 &Univariate Normal && normpdf && normcdf && norminv&\cr |
7081 | 221 &Pascal && nbinpdf && nbincdf && nbininv&\cr |
222 &Poisson && poisspdf && poisscdf && poissinv&\cr | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
223 &Standard Normal && stdnormal\_pdf && stdnormal\_cdf && stdnormal\_inv&\cr |
7081 | 224 &t (Student) && tpdf && tcdf && tinv&\cr |
12495
4675ce154a55
Correctly refer to "discrete uniform" distribution in documentation.
Rik <octave@nomad.inbox5.com>
parents:
11573
diff
changeset
|
225 &Uniform Discrete && unidpdf && unidcdf && unidinv&\cr |
7081 | 226 &Uniform && unifpdf && unifcdf && unifinv&\cr |
227 &Weibull && wblpdf && wblcdf && wblinv&\cr | |
228 \noalign{\hrule height 0.6pt} | |
229 }}\hfill}} | |
230 @end tex | |
231 @ifnottex | |
232 @multitable @columnfractions .31 .23 .23 .23 | |
11447
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
233 @headitem Distribution |
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
234 @tab PDF |
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
235 @tab CDF |
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
236 @tab Quantile |
6754 | 237 @item Beta Distribution |
238 @tab @code{betapdf} | |
239 @tab @code{betacdf} | |
240 @tab @code{betainv} | |
241 @item Binomial Distribution | |
242 @tab @code{binopdf} | |
243 @tab @code{binocdf} | |
244 @tab @code{binoinv} | |
245 @item Cauchy Distribution | |
246 @tab @code{cauchy_pdf} | |
247 @tab @code{cauchy_cdf} | |
248 @tab @code{cauchy_inv} | |
249 @item Chi-Square Distribution | |
250 @tab @code{chi2pdf} | |
251 @tab @code{chi2cdf} | |
252 @tab @code{chi2inv} | |
253 @item Univariate Discrete Distribution | |
254 @tab @code{discrete_pdf} | |
255 @tab @code{discrete_cdf} | |
256 @tab @code{discrete_inv} | |
257 @item Empirical Distribution | |
258 @tab @code{empirical_pdf} | |
259 @tab @code{empirical_cdf} | |
260 @tab @code{empirical_inv} | |
261 @item Exponential Distribution | |
262 @tab @code{exppdf} | |
263 @tab @code{expcdf} | |
264 @tab @code{expinv} | |
265 @item F Distribution | |
266 @tab @code{fpdf} | |
267 @tab @code{fcdf} | |
268 @tab @code{finv} | |
269 @item Gamma Distribution | |
270 @tab @code{gampdf} | |
271 @tab @code{gamcdf} | |
272 @tab @code{gaminv} | |
273 @item Geometric Distribution | |
274 @tab @code{geopdf} | |
275 @tab @code{geocdf} | |
276 @tab @code{geoinv} | |
277 @item Hypergeometric Distribution | |
278 @tab @code{hygepdf} | |
279 @tab @code{hygecdf} | |
280 @tab @code{hygeinv} | |
281 @item Kolmogorov Smirnov Distribution | |
282 @tab @emph{Not Available} | |
283 @tab @code{kolmogorov_smirnov_cdf} | |
284 @tab @emph{Not Available} | |
285 @item Laplace Distribution | |
286 @tab @code{laplace_pdf} | |
287 @tab @code{laplace_cdf} | |
288 @tab @code{laplace_inv} | |
289 @item Logistic Distribution | |
290 @tab @code{logistic_pdf} | |
291 @tab @code{logistic_cdf} | |
292 @tab @code{logistic_inv} | |
293 @item Log-Normal Distribution | |
294 @tab @code{lognpdf} | |
295 @tab @code{logncdf} | |
296 @tab @code{logninv} | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
297 @item Univariate Normal Distribution |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
298 @tab @code{normpdf} |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
299 @tab @code{normcdf} |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
300 @tab @code{norminv} |
6754 | 301 @item Pascal Distribution |
302 @tab @code{nbinpdf} | |
303 @tab @code{nbincdf} | |
304 @tab @code{nbininv} | |
305 @item Poisson Distribution | |
306 @tab @code{poisspdf} | |
307 @tab @code{poisscdf} | |
308 @tab @code{poissinv} | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
309 @item Standard Normal Distribution |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
310 @tab @code{stdtormal_pdf} |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
311 @tab @code{stdtormal_cdf} |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
312 @tab @code{stdtormal_inv} |
6754 | 313 @item t (Student) Distribution |
314 @tab @code{tpdf} | |
315 @tab @code{tcdf} | |
316 @tab @code{tinv} | |
9069
634274aaa183
Cleanup documentation for stats.texi
Rik <rdrider0-list@yahoo.com>
parents:
8932
diff
changeset
|
317 @item Univariate Discrete Distribution |
6754 | 318 @tab @code{unidpdf} |
319 @tab @code{unidcdf} | |
320 @tab @code{unidinv} | |
321 @item Uniform Distribution | |
322 @tab @code{unifpdf} | |
323 @tab @code{unifcdf} | |
324 @tab @code{unifinv} | |
325 @item Weibull Distribution | |
326 @tab @code{wblpdf} | |
327 @tab @code{wblcdf} | |
328 @tab @code{wblinv} | |
329 @end multitable | |
7081 | 330 @end ifnottex |
6754 | 331 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
332 @DOCSTRING(betapdf) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
333 |
5412 | 334 @DOCSTRING(betacdf) |
3456 | 335 |
5412 | 336 @DOCSTRING(betainv) |
3456 | 337 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
338 @DOCSTRING(binopdf) |
3456 | 339 |
5412 | 340 @DOCSTRING(binocdf) |
3456 | 341 |
5412 | 342 @DOCSTRING(binoinv) |
3456 | 343 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
344 @DOCSTRING(cauchy_pdf) |
3456 | 345 |
346 @DOCSTRING(cauchy_cdf) | |
347 | |
348 @DOCSTRING(cauchy_inv) | |
349 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
350 @DOCSTRING(chi2pdf) |
3456 | 351 |
5412 | 352 @DOCSTRING(chi2cdf) |
3456 | 353 |
5412 | 354 @DOCSTRING(chi2inv) |
3456 | 355 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
356 @DOCSTRING(discrete_pdf) |
3456 | 357 |
358 @DOCSTRING(discrete_cdf) | |
359 | |
360 @DOCSTRING(discrete_inv) | |
361 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
362 @DOCSTRING(empirical_pdf) |
3456 | 363 |
364 @DOCSTRING(empirical_cdf) | |
365 | |
366 @DOCSTRING(empirical_inv) | |
367 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
368 @DOCSTRING(exppdf) |
3456 | 369 |
5412 | 370 @DOCSTRING(expcdf) |
3456 | 371 |
5412 | 372 @DOCSTRING(expinv) |
3456 | 373 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
374 @DOCSTRING(fpdf) |
3456 | 375 |
5412 | 376 @DOCSTRING(fcdf) |
3456 | 377 |
5412 | 378 @DOCSTRING(finv) |
3456 | 379 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
380 @DOCSTRING(gampdf) |
3456 | 381 |
5412 | 382 @DOCSTRING(gamcdf) |
3456 | 383 |
5412 | 384 @DOCSTRING(gaminv) |
3456 | 385 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
386 @DOCSTRING(geopdf) |
3456 | 387 |
5412 | 388 @DOCSTRING(geocdf) |
3456 | 389 |
5412 | 390 @DOCSTRING(geoinv) |
3456 | 391 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
392 @DOCSTRING(hygepdf) |
3456 | 393 |
5412 | 394 @DOCSTRING(hygecdf) |
3456 | 395 |
5412 | 396 @DOCSTRING(hygeinv) |
3456 | 397 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
398 @DOCSTRING(kolmogorov_smirnov_cdf) |
3456 | 399 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
400 @DOCSTRING(laplace_pdf) |
3456 | 401 |
402 @DOCSTRING(laplace_cdf) | |
403 | |
404 @DOCSTRING(laplace_inv) | |
405 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
406 @DOCSTRING(logistic_pdf) |
3456 | 407 |
408 @DOCSTRING(logistic_cdf) | |
409 | |
410 @DOCSTRING(logistic_inv) | |
411 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
412 @DOCSTRING(lognpdf) |
3456 | 413 |
5412 | 414 @DOCSTRING(logncdf) |
3456 | 415 |
5412 | 416 @DOCSTRING(logninv) |
3456 | 417 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
418 @DOCSTRING(nbinpdf) |
3456 | 419 |
6502 | 420 @DOCSTRING(nbincdf) |
421 | |
422 @DOCSTRING(nbininv) | |
423 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
424 @DOCSTRING(normpdf) |
6502 | 425 |
5412 | 426 @DOCSTRING(normcdf) |
3456 | 427 |
5412 | 428 @DOCSTRING(norminv) |
3456 | 429 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
430 @DOCSTRING(poisspdf) |
3456 | 431 |
5412 | 432 @DOCSTRING(poisscdf) |
3456 | 433 |
5412 | 434 @DOCSTRING(poissinv) |
3456 | 435 |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
436 @DOCSTRING(stdnormal_pdf) |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
437 |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
438 @DOCSTRING(stdnormal_cdf) |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
439 |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
440 @DOCSTRING(stdnormal_inv) |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
441 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
442 @DOCSTRING(tpdf) |
3456 | 443 |
5412 | 444 @DOCSTRING(tcdf) |
3456 | 445 |
5412 | 446 @DOCSTRING(tinv) |
3456 | 447 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
448 @DOCSTRING(unidpdf) |
3456 | 449 |
6502 | 450 @DOCSTRING(unidcdf) |
451 | |
452 @DOCSTRING(unidinv) | |
453 | |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
454 @DOCSTRING(unifpdf) |
6502 | 455 |
5412 | 456 @DOCSTRING(unifcdf) |
3456 | 457 |
5412 | 458 @DOCSTRING(unifinv) |
3456 | 459 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
460 @DOCSTRING(wblpdf) |
3456 | 461 |
6502 | 462 @DOCSTRING(wblcdf) |
3456 | 463 |
6502 | 464 @DOCSTRING(wblinv) |
3456 | 465 |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
466 @node Tests |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
467 @section Tests |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
468 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
469 Octave can perform many different statistical tests. The following |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
470 table summarizes the available tests. |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
471 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
472 @tex |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
473 \vskip 6pt |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
474 {\hbox to \hsize {\hfill\vbox{\offinterlineskip \tabskip=0pt |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
475 \halign{ |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
476 \vrule height2.0ex depth1.ex width 0.6pt #\tabskip=0.3em & |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
477 # \hfil & \vrule # & # \hfil & # \vrule width 0.6pt \tabskip=0pt\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
478 \noalign{\hrule height 0.6pt} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
479 & @strong{Hypothesis} && {\bf Test Functions} &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
480 \noalign{\hrule} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
481 & Equal mean values && anova, hotelling\_test2, t\_test\_2, &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
482 & && welch\_test, wilcoxon\_test, z\_test\_2 &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
483 & Equal medians && kruskal\_wallis\_test, sign\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
484 & Equal variances && bartlett\_test, manova, var\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
485 & Equal distributions && chisquare\_test\_homogeneity, &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
486 & && kolmogorov\_smirnov\_test\_2, u\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
487 & Equal marginal frequencies && mcnemar\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
488 & Equal success probabilities && prop\_test\_2 &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
489 & Independent observations && chisquare\_test\_independence, &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
490 & && run\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
491 & Uncorrelated observations && cor\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
492 & Given mean value && hotelling\_test, t\_test, z\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
493 & Observations from distribution && kolmogorov\_smirnov\_test &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
494 & Regression && f\_test\_regression, t\_test\_regression &\cr |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
495 \noalign{\hrule height 0.6pt} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
496 }}\hfill}} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
497 @end tex |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
498 @ifnottex |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
499 @multitable @columnfractions .4 .5 |
11447
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
500 @headitem Hypothesis |
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
501 @tab Test Functions |
11436
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
502 @item Equal mean values |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
503 @tab @code{anova}, @code{hotelling_test2}, @code{t_test_2}, |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
504 @code{welch_test}, @code{wilcoxon_test}, @code{z_test_2} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
505 @item Equal medians |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
506 @tab @code{kruskal_wallis_test}, @code{sign_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
507 @item Equal variances |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
508 @tab @code{bartlett_test}, @code{manova}, @code{var_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
509 @item Equal distributions |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
510 @tab @code{chisquare_test_homogeneity}, @code{kolmogorov_smirnov_test_2}, |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
511 @code{u_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
512 @item Equal marginal frequencies |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
513 @tab @code{mcnemar_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
514 @item Equal success probabilities |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
515 @tab @code{prop_test_2} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
516 @item Independent observations |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
517 @tab @code{chisquare_test_independence}, @code{run_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
518 @item Uncorrelated observations |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
519 @tab @code{cor_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
520 @item Given mean value |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
521 @tab @code{hotelling_test}, @code{t_test}, @code{z_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
522 @item Observations from given distribution |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
523 @tab @code{kolmogorov_smirnov_test} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
524 @item Regression |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
525 @tab @code{f_test_regression}, @code{t_test_regression} |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
526 @end multitable |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
527 @end ifnottex |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
528 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
529 The tests return a p-value that describes the outcome of the test. |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
530 Assuming that the test hypothesis is true, the p-value is the probability |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
531 of obtaining a worse result than the observed one. So large p-values |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
532 corresponds to a successful test. Usually a test hypothesis is accepted |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
533 if the p-value exceeds 0.05. |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
534 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
535 @DOCSTRING(anova) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
536 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
537 @DOCSTRING(bartlett_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
538 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
539 @DOCSTRING(chisquare_test_homogeneity) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
540 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
541 @DOCSTRING(chisquare_test_independence) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
542 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
543 @DOCSTRING(cor_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
544 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
545 @DOCSTRING(f_test_regression) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
546 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
547 @DOCSTRING(hotelling_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
548 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
549 @DOCSTRING(hotelling_test_2) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
550 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
551 @DOCSTRING(kolmogorov_smirnov_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
552 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
553 @DOCSTRING(kolmogorov_smirnov_test_2) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
554 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
555 @DOCSTRING(kruskal_wallis_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
556 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
557 @DOCSTRING(manova) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
558 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
559 @DOCSTRING(mcnemar_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
560 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
561 @DOCSTRING(prop_test_2) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
562 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
563 @DOCSTRING(run_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
564 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
565 @DOCSTRING(sign_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
566 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
567 @DOCSTRING(t_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
568 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
569 @DOCSTRING(t_test_2) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
570 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
571 @DOCSTRING(t_test_regression) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
572 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
573 @DOCSTRING(u_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
574 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
575 @DOCSTRING(var_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
576 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
577 @DOCSTRING(welch_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
578 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
579 @DOCSTRING(wilcoxon_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
580 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
581 @DOCSTRING(z_test) |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
582 |
e151e23f73bc
Overhaul base statistics functions and documentation of same.
Rik <octave@nomad.inbox5.com>
parents:
11392
diff
changeset
|
583 @DOCSTRING(z_test_2) |
3456 | 584 |
6754 | 585 @node Random Number Generation |
586 @section Random Number Generation | |
587 | |
588 Octave can generate random numbers from a large number of distributions. | |
589 The random number generators are based on the random number generators | |
590 described in @ref{Special Utility Matrices}. | |
591 @c Should rand, randn, rande, randp, and randg be moved to here? | |
592 | |
593 The following table summarizes the available random number generators | |
594 (in alphabetical order). | |
595 | |
7081 | 596 @tex |
597 \vskip 6pt | |
598 {\hbox to \hsize {\hfill\vbox{\offinterlineskip \tabskip=0pt | |
599 \halign{ | |
600 \vrule height2.0ex depth1.ex width 0.6pt #\tabskip=0.3em & | |
601 # \hfil & \vrule # & # \hfil & # \vrule width 0.6pt \tabskip=0pt\cr | |
602 \noalign{\hrule height 0.6pt} | |
603 & {\bf Distribution} && {\bf Function} &\cr | |
604 \noalign{\hrule} | |
605 & Beta Distribution && betarnd &\cr | |
606 & Binomial Distribution && binornd &\cr | |
607 & Cauchy Distribution && cauchy\_rnd &\cr | |
608 & Chi-Square Distribution && chi2rnd &\cr | |
609 & Univariate Discrete Distribution && discrete\_rnd &\cr | |
610 & Empirical Distribution && empirical\_rnd &\cr | |
611 & Exponential Distribution && exprnd &\cr | |
612 & F Distribution && frnd &\cr | |
613 & Gamma Distribution && gamrnd &\cr | |
614 & Geometric Distribution && geornd &\cr | |
615 & Hypergeometric Distribution && hygernd &\cr | |
616 & Laplace Distribution && laplace\_rnd &\cr | |
617 & Logistic Distribution && logistic\_rnd &\cr | |
618 & Log-Normal Distribution && lognrnd &\cr | |
619 & Pascal Distribution && nbinrnd &\cr | |
620 & Univariate Normal Distribution && normrnd &\cr | |
621 & Poisson Distribution && poissrnd &\cr | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
622 & Standard Normal Distribution && stdnormal\_rnd &\cr |
7081 | 623 & t (Student) Distribution && trnd &\cr |
624 & Univariate Discrete Distribution && unidrnd &\cr | |
625 & Uniform Distribution && unifrnd &\cr | |
626 & Weibull Distribution && wblrnd &\cr | |
627 & Wiener Process && wienrnd &\cr | |
628 \noalign{\hrule height 0.6pt} | |
629 }}\hfill}} | |
630 @end tex | |
631 @ifnottex | |
6754 | 632 @multitable @columnfractions .4 .3 |
11447
76f15f3da207
Use @headitem macro to create column heads for @multitable entries.
Rik <octave@nomad.inbox5.com>
parents:
11436
diff
changeset
|
633 @headitem Distribution @tab Function |
6754 | 634 @item Beta Distribution @tab @code{betarnd} |
635 @item Binomial Distribution @tab @code{binornd} | |
636 @item Cauchy Distribution @tab @code{cauchy_rnd} | |
637 @item Chi-Square Distribution @tab @code{chi2rnd} | |
638 @item Univariate Discrete Distribution @tab @code{discrete_rnd} | |
639 @item Empirical Distribution @tab @code{empirical_rnd} | |
640 @item Exponential Distribution @tab @code{exprnd} | |
641 @item F Distribution @tab @code{frnd} | |
642 @item Gamma Distribution @tab @code{gamrnd} | |
643 @item Geometric Distribution @tab @code{geornd} | |
644 @item Hypergeometric Distribution @tab @code{hygernd} | |
645 @item Laplace Distribution @tab @code{laplace_rnd} | |
646 @item Logistic Distribution @tab @code{logistic_rnd} | |
647 @item Log-Normal Distribution @tab @code{lognrnd} | |
648 @item Pascal Distribution @tab @code{nbinrnd} | |
649 @item Univariate Normal Distribution @tab @code{normrnd} | |
650 @item Poisson Distribution @tab @code{poissrnd} | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
651 @item Standard Normal Distribution @tab @code{stdnormal_rnd} |
6754 | 652 @item t (Student) Distribution @tab @code{trnd} |
653 @item Univariate Discrete Distribution @tab @code{unidrnd} | |
654 @item Uniform Distribution @tab @code{unifrnd} | |
655 @item Weibull Distribution @tab @code{wblrnd} | |
656 @item Wiener Process @tab @code{wienrnd} | |
657 @end multitable | |
7081 | 658 @end ifnottex |
6754 | 659 |
660 @DOCSTRING(betarnd) | |
661 | |
662 @DOCSTRING(binornd) | |
663 | |
664 @DOCSTRING(cauchy_rnd) | |
665 | |
666 @DOCSTRING(chi2rnd) | |
667 | |
668 @DOCSTRING(discrete_rnd) | |
669 | |
670 @DOCSTRING(empirical_rnd) | |
671 | |
672 @DOCSTRING(exprnd) | |
673 | |
674 @DOCSTRING(frnd) | |
675 | |
676 @DOCSTRING(gamrnd) | |
677 | |
678 @DOCSTRING(geornd) | |
679 | |
680 @DOCSTRING(hygernd) | |
681 | |
682 @DOCSTRING(laplace_rnd) | |
683 | |
684 @DOCSTRING(logistic_rnd) | |
685 | |
686 @DOCSTRING(lognrnd) | |
687 | |
688 @DOCSTRING(nbinrnd) | |
689 | |
690 @DOCSTRING(normrnd) | |
691 | |
692 @DOCSTRING(poissrnd) | |
693 | |
11544
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
694 @DOCSTRING(stdnormal_rnd) |
8f90ffe3c5f9
Add stdnormal_xxx family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
695 |
6754 | 696 @DOCSTRING(trnd) |
697 | |
698 @DOCSTRING(unidrnd) | |
699 | |
700 @DOCSTRING(unifrnd) | |
701 | |
6502 | 702 @DOCSTRING(wblrnd) |
3456 | 703 |
5412 | 704 @DOCSTRING(wienrnd) |
6754 | 705 |