18f2c52e6SPoul-Henning Kamp.\" 28f2c52e6SPoul-Henning Kamp.\" Copyright (c) 2007 Poul-Henning Kamp 38f2c52e6SPoul-Henning Kamp.\" All rights reserved. 48f2c52e6SPoul-Henning Kamp.\" 58f2c52e6SPoul-Henning Kamp.\" Redistribution and use in source and binary forms, with or without 68f2c52e6SPoul-Henning Kamp.\" modification, are permitted provided that the following conditions 78f2c52e6SPoul-Henning Kamp.\" are met: 88f2c52e6SPoul-Henning Kamp.\" 1. Redistributions of source code must retain the above copyright 98f2c52e6SPoul-Henning Kamp.\" notice, this list of conditions and the following disclaimer. 108f2c52e6SPoul-Henning Kamp.\" 2. Redistributions in binary form must reproduce the above copyright 118f2c52e6SPoul-Henning Kamp.\" notice, this list of conditions and the following disclaimer in the 128f2c52e6SPoul-Henning Kamp.\" documentation and/or other materials provided with the distribution. 138f2c52e6SPoul-Henning Kamp.\" 148f2c52e6SPoul-Henning Kamp.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 158f2c52e6SPoul-Henning Kamp.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 168f2c52e6SPoul-Henning Kamp.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 178f2c52e6SPoul-Henning Kamp.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 188f2c52e6SPoul-Henning Kamp.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 198f2c52e6SPoul-Henning Kamp.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 208f2c52e6SPoul-Henning Kamp.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 218f2c52e6SPoul-Henning Kamp.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 228f2c52e6SPoul-Henning Kamp.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 238f2c52e6SPoul-Henning Kamp.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 248f2c52e6SPoul-Henning Kamp.\" SUCH DAMAGE. 258f2c52e6SPoul-Henning Kamp.\" 268f2c52e6SPoul-Henning Kamp.\" $FreeBSD$ 278f2c52e6SPoul-Henning Kamp.\" 28*aa374634SEitan Adler.Dd November 10, 2012 298f2c52e6SPoul-Henning Kamp.Dt MINISTAT 1 308f2c52e6SPoul-Henning Kamp.Os 318f2c52e6SPoul-Henning Kamp.Sh NAME 328f2c52e6SPoul-Henning Kamp.Nm ministat 338f2c52e6SPoul-Henning Kamp.Nd statistics utility 348f2c52e6SPoul-Henning Kamp.Sh SYNOPSIS 358f2c52e6SPoul-Henning Kamp.Nm 36*aa374634SEitan Adler.Op Fl Ans 378f2c52e6SPoul-Henning Kamp.Op Fl C Ar column 388f2c52e6SPoul-Henning Kamp.Op Fl c Ar confidence_level 398f2c52e6SPoul-Henning Kamp.Op Fl d Ar delimiter 408f2c52e6SPoul-Henning Kamp.Op Fl w Op width 418f2c52e6SPoul-Henning Kamp.Op Ar 428f2c52e6SPoul-Henning Kamp.Sh DESCRIPTION 438f2c52e6SPoul-Henning KampThe 448f2c52e6SPoul-Henning Kamp.Nm 458f2c52e6SPoul-Henning Kampcommand calculates fundamental statistical properties of numeric data 468f2c52e6SPoul-Henning Kampin the specified files or, if no file is specified, standard input. 478f2c52e6SPoul-Henning Kamp.Pp 488f2c52e6SPoul-Henning KampThe options are as follows: 498f2c52e6SPoul-Henning Kamp.Bl -tag -width Fl 50*aa374634SEitan Adler.It Fl A 51*aa374634SEitan AdlerJust report the statistics of the input and relative comparisons, 52*aa374634SEitan Adlersuppress the ASCII-art plot. 538f2c52e6SPoul-Henning Kamp.It Fl n 548f2c52e6SPoul-Henning KampJust report the raw statistics of the input, suppress the ASCII-art plot 558f2c52e6SPoul-Henning Kampand the relative comparisons. 568f2c52e6SPoul-Henning Kamp.It Fl s 578f2c52e6SPoul-Henning KampPrint the average/median/stddev bars on separate lines in the ASCII-art 588f2c52e6SPoul-Henning Kampplot, to avoid overlap. 598f2c52e6SPoul-Henning Kamp.It Fl C Ar column 608f2c52e6SPoul-Henning KampSpecify which column of data to use. 618f2c52e6SPoul-Henning KampBy default the first column in the input file(s) are used. 628f2c52e6SPoul-Henning Kamp.It Fl c Ar confidence_level 638f2c52e6SPoul-Henning KampSpecify desired confidence level for Student's T analysis. 64d60522ebSPeter WemmPossible values are 80, 90, 95, 98, 99 and 99.5 % 658f2c52e6SPoul-Henning Kamp.It Fl d Ar delimiter 668f2c52e6SPoul-Henning KampSpecifies the column delimiter characters, default is SPACE and TAB. 678f2c52e6SPoul-Henning KampSee 688f2c52e6SPoul-Henning Kamp.Xr strtok 3 698f2c52e6SPoul-Henning Kampfor details. 708f2c52e6SPoul-Henning Kamp.It Fl w Ar width 718f2c52e6SPoul-Henning KampWidth of ASCII-art plot in characters, default is 74. 728f2c52e6SPoul-Henning Kamp.El 738f2c52e6SPoul-Henning Kamp.Pp 748f2c52e6SPoul-Henning KampA sample output could look like this: 758f2c52e6SPoul-Henning Kamp.Bd -literal -offset indent 768f2c52e6SPoul-Henning Kamp $ ministat -s -w 60 iguana chameleon 778f2c52e6SPoul-Henning Kamp x iguana 788f2c52e6SPoul-Henning Kamp + chameleon 798f2c52e6SPoul-Henning Kamp +------------------------------------------------------------+ 808f2c52e6SPoul-Henning Kamp |x * x * + + x +| 818f2c52e6SPoul-Henning Kamp | |________M______A_______________| | 828f2c52e6SPoul-Henning Kamp | |________________M__A___________________| | 838f2c52e6SPoul-Henning Kamp +------------------------------------------------------------+ 848f2c52e6SPoul-Henning Kamp N Min Max Median Avg Stddev 858f2c52e6SPoul-Henning Kamp x 7 50 750 200 300 238.04761 868f2c52e6SPoul-Henning Kamp + 5 150 930 500 540 299.08193 878f2c52e6SPoul-Henning Kamp No difference proven at 95.0% confidence 888f2c52e6SPoul-Henning Kamp.Ed 898f2c52e6SPoul-Henning Kamp.Pp 908f2c52e6SPoul-Henning KampIf 918f2c52e6SPoul-Henning Kamp.Nm 928f2c52e6SPoul-Henning Kamptells you, as in the example above, that there is no difference 938f2c52e6SPoul-Henning Kampproven at 95% confidence, the two data sets you gave it are for 948f2c52e6SPoul-Henning Kampall statistical purposes identical. 958f2c52e6SPoul-Henning Kamp.Pp 968f2c52e6SPoul-Henning KampYou have the option of lowering your standards by specifying a 978f2c52e6SPoul-Henning Kamplower confidence level: 988f2c52e6SPoul-Henning Kamp.Bd -literal -offset indent 9916596b22SGavin Atkinson $ ministat -s -w 60 -c 80 iguana chameleon 1008f2c52e6SPoul-Henning Kamp x iguana 1018f2c52e6SPoul-Henning Kamp + chameleon 1028f2c52e6SPoul-Henning Kamp +------------------------------------------------------------+ 1038f2c52e6SPoul-Henning Kamp |x * x * + + x +| 1048f2c52e6SPoul-Henning Kamp | |________M______A_______________| | 1058f2c52e6SPoul-Henning Kamp | |________________M__A___________________| | 1068f2c52e6SPoul-Henning Kamp +------------------------------------------------------------+ 1078f2c52e6SPoul-Henning Kamp N Min Max Median Avg Stddev 1088f2c52e6SPoul-Henning Kamp x 7 50 750 200 300 238.04761 1098f2c52e6SPoul-Henning Kamp + 5 150 930 500 540 299.08193 1108f2c52e6SPoul-Henning Kamp Difference at 80.0% confidence 1118f2c52e6SPoul-Henning Kamp 240 +/- 212.215 1128f2c52e6SPoul-Henning Kamp 80% +/- 70.7384% 1138f2c52e6SPoul-Henning Kamp (Student's t, pooled s = 264.159) 1148f2c52e6SPoul-Henning Kamp.Ed 1158f2c52e6SPoul-Henning Kamp.Pp 1168f2c52e6SPoul-Henning KampBut a lower standard does not make your data any better, and the 1178f2c52e6SPoul-Henning Kampexample is only included here to show the format of the output when 1188f2c52e6SPoul-Henning Kampa statistical difference is proven according to Student's T method. 1198f2c52e6SPoul-Henning Kamp.Sh SEE ALSO 1208f2c52e6SPoul-Henning KampAny mathematics text on basic statistics, for instances Larry Gonicks 1218f2c52e6SPoul-Henning Kampexcellent "Cartoon Guide to Statistics" which supplied the above example. 1228f2c52e6SPoul-Henning Kamp.Sh HISTORY 1238f2c52e6SPoul-Henning KampThe 1248f2c52e6SPoul-Henning Kamp.Nm 1258f2c52e6SPoul-Henning Kampcommand was written by Poul-Henning Kamp out of frustration 1268f2c52e6SPoul-Henning Kampover all the bogus benchmark claims made by people with no 1278f2c52e6SPoul-Henning Kampunderstanding of the importance of uncertainty and statistics. 1288f2c52e6SPoul-Henning Kamp.Pp 1298f2c52e6SPoul-Henning KampFrom 1308f2c52e6SPoul-Henning Kamp.Fx 5.2 1318f2c52e6SPoul-Henning Kampit has lived in the source tree as a developer tool, graduating 1328f2c52e6SPoul-Henning Kampto the installed system from 1338f2c52e6SPoul-Henning Kamp.Fx 8.0 . 134