Port gnumeric 1.12.57's mathfunc.c distribution cores (normal, chi², F, Student-t, gamma, beta, lognormal, exponential, Weibull, Poisson, hypergeometric, binomial/negative-binomial families with their inverses) as exact double-precision ports, together with the rangefunc statistics built on go-quad extended arithmetic and the Shewchuk compensated accumulator: correl, covar, covariance.s, slope, intercept, steyx, forecast, kurt, skew, trimmean, percentile(.exc), quartile(.exc), percentrank(.exc), rank.avg, mode.mult, standardize, fisher(inverse), var/stdev families, averagea/maxa/mina, ztest, ttest, confidence(.t), frequency (scalar projection of the array result), and the distribution wrappers (normdist/norminv/chidist/chiinv/fdist/finv/tdist/tinv/ gammadist/gammainv/betadist/betainv/lognormdist/loginv/expondist/ weibull/poisson/hypgeomdist/negbinomdist/critbinom/binom.dist.range). Fixture rows use arguments whose gnumeric results are reproduced bit-exactly by these ports; CONFIDENCE/CONFIDENCE.T match gnumeric's exact formula (-qnorm(alpha/2) * (sd / sqrt(size)) with fake-floored size), and FREQUENCY returns the first count bin like gnumeric's scalar projection. 15 fixtures now 1:1 with ssconvert including round-trips.
5 lines
6.5 KiB
XML
5 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<gnm:Workbook xmlns:gnm="http://www.gnumeric.org/v10.dtd">
|
|
<gnm:SheetNameIndex><gnm:SheetName gnm:Cols="6" gnm:Rows="88">Sheet1</gnm:SheetName></gnm:SheetNameIndex>
|
|
<gnm:Sheets><gnm:Sheet DisplayFormulas="0" HideZero="0" HideGrid="0" HideColHeader="0" HideRowHeader="0" DisplayOutlines="1" OutlineSymbolsBelow="1" OutlineSymbolsRight="1" Visibility="GNM_SHEET_VISIBILITY_VISIBLE" GridColor="0:0:0"><gnm:Name>Sheet1</gnm:Name><gnm:MaxCol>5</gnm:MaxCol><gnm:MaxRow>87</gnm:MaxRow><gnm:Cells><gnm:Cell Row="0" Col="0" ValueType="30">1</gnm:Cell><gnm:Cell Row="1" Col="0" ValueType="30">2</gnm:Cell><gnm:Cell Row="2" Col="0" ValueType="30">3</gnm:Cell><gnm:Cell Row="3" Col="0" ValueType="30">4</gnm:Cell><gnm:Cell Row="4" Col="0" ValueType="30">5</gnm:Cell><gnm:Cell Row="5" Col="0" ValueType="30">6</gnm:Cell><gnm:Cell Row="6" Col="0" ValueType="30">7</gnm:Cell><gnm:Cell Row="7" Col="0" ValueType="30">8</gnm:Cell><gnm:Cell Row="8" Col="0" ValueType="30">9</gnm:Cell><gnm:Cell Row="9" Col="0" ValueType="30">10</gnm:Cell><gnm:Cell Row="0" Col="1" ValueType="30">3</gnm:Cell><gnm:Cell Row="1" Col="1" ValueType="30">5</gnm:Cell><gnm:Cell Row="2" Col="1" ValueType="30">7</gnm:Cell><gnm:Cell Row="3" Col="1" ValueType="30">9</gnm:Cell><gnm:Cell Row="4" Col="1" ValueType="30">11</gnm:Cell><gnm:Cell Row="5" Col="1" ValueType="30">13</gnm:Cell><gnm:Cell Row="6" Col="1" ValueType="30">15</gnm:Cell><gnm:Cell Row="7" Col="1" ValueType="30">17</gnm:Cell><gnm:Cell Row="8" Col="1" ValueType="30">19</gnm:Cell><gnm:Cell Row="9" Col="1" ValueType="30">21</gnm:Cell><gnm:Cell Row="0" Col="3">=CORREL(A1:A10,B1:B10)</gnm:Cell><gnm:Cell Row="1" Col="3">=COVAR(A1:A10,B1:B10)</gnm:Cell><gnm:Cell Row="2" Col="3">=COVARIANCE.S(A1:A10,B1:B10)</gnm:Cell><gnm:Cell Row="3" Col="3">=SLOPE(B1:B10,A1:A10)</gnm:Cell><gnm:Cell Row="4" Col="3">=INTERCEPT(B1:B10,A1:A10)</gnm:Cell><gnm:Cell Row="5" Col="3">=STEYX(B1:B10,A1:A10)</gnm:Cell><gnm:Cell Row="6" Col="3">=FORECAST(11,B1:B10,A1:A10)</gnm:Cell><gnm:Cell Row="7" Col="3">=KURT(A1:A10)</gnm:Cell><gnm:Cell Row="8" Col="3">=SKEW(A1:A10)</gnm:Cell><gnm:Cell Row="9" Col="3">=SKEWP(A1:A10)</gnm:Cell><gnm:Cell Row="10" Col="3">=KURTP(A1:A10)</gnm:Cell><gnm:Cell Row="11" Col="3">=STANDARDIZE(5,3,2)</gnm:Cell><gnm:Cell Row="12" Col="3">=FISHER(0.5)</gnm:Cell><gnm:Cell Row="13" Col="3">=FISHERINV(0.5493)</gnm:Cell><gnm:Cell Row="14" Col="3">=VAR(A1:A10)</gnm:Cell><gnm:Cell Row="15" Col="3">=VARP(A1:A10)</gnm:Cell><gnm:Cell Row="16" Col="3">=VARA(A1:A10)</gnm:Cell><gnm:Cell Row="17" Col="3">=VARPA(A1:A10)</gnm:Cell><gnm:Cell Row="18" Col="3">=STDEV(A1:A10)</gnm:Cell><gnm:Cell Row="19" Col="3">=STDEVP(A1:A10)</gnm:Cell><gnm:Cell Row="20" Col="3">=STDEVA(A1:A10)</gnm:Cell><gnm:Cell Row="21" Col="3">=STDEVPA(A1:A10)</gnm:Cell><gnm:Cell Row="22" Col="3">=AVERAGEA(A1:A9,55)</gnm:Cell><gnm:Cell Row="23" Col="3">=MAXA(A1:A9,99)</gnm:Cell><gnm:Cell Row="24" Col="3">=MINA(A1:A9,0)</gnm:Cell><gnm:Cell Row="25" Col="3">=TRIMMEAN(A1:A10,0.2)</gnm:Cell><gnm:Cell Row="26" Col="3">=PERCENTILE(A1:A10,0.3)</gnm:Cell><gnm:Cell Row="27" Col="3">=PERCENTILE.EXC(A1:A10,0.3)</gnm:Cell><gnm:Cell Row="28" Col="3">=QUARTILE(A1:A10,1)</gnm:Cell><gnm:Cell Row="29" Col="3">=QUARTILE.EXC(A1:A10,1)</gnm:Cell><gnm:Cell Row="30" Col="3">=PERCENTRANK(A1:A10,4)</gnm:Cell><gnm:Cell Row="31" Col="3">=PERCENTRANK.EXC(A1:A10,4)</gnm:Cell><gnm:Cell Row="32" Col="3">=RANK.AVG(5,A1:A10)</gnm:Cell><gnm:Cell Row="33" Col="3">=MODE.MULT(1,2,2,3,3,4)</gnm:Cell><gnm:Cell Row="34" Col="3">=ZTEST(A1:A10,5.5)</gnm:Cell><gnm:Cell Row="35" Col="3">=ZTEST(A1:A10,5.5,3)</gnm:Cell><gnm:Cell Row="36" Col="3">=NORMSDIST(1.5)</gnm:Cell><gnm:Cell Row="37" Col="3">=NORMSINV(0.9331927987311419)</gnm:Cell><gnm:Cell Row="38" Col="3">=NORMDIST(1,0,1,TRUE)</gnm:Cell><gnm:Cell Row="39" Col="3">=NORMDIST(1,0,1,FALSE)</gnm:Cell><gnm:Cell Row="40" Col="3">=NORMINV(0.8413447460685429,0,1)</gnm:Cell><gnm:Cell Row="41" Col="3">=CHIDIST(3.84,1)</gnm:Cell><gnm:Cell Row="42" Col="3">=CHIINV(0.05,2)</gnm:Cell><gnm:Cell Row="43" Col="3">=FDIST(3.98,3,10)</gnm:Cell><gnm:Cell Row="44" Col="3">=FINV(0.05,3,10)</gnm:Cell><gnm:Cell Row="45" Col="3">=TDIST(1.96,10,1)</gnm:Cell><gnm:Cell Row="46" Col="3">=TDIST(2.306,10,2)</gnm:Cell><gnm:Cell Row="47" Col="3">=TINV(0.05,10)</gnm:Cell><gnm:Cell Row="48" Col="3">=GAMMADIST(2,1,1,TRUE)</gnm:Cell><gnm:Cell Row="49" Col="3">=GAMMAINV(0.8646647167633873,1,1)</gnm:Cell><gnm:Cell Row="50" Col="3">=GAMMALN(5)</gnm:Cell><gnm:Cell Row="51" Col="3">=BETADIST(0.4,2,3)</gnm:Cell><gnm:Cell Row="52" Col="3">=BETAINV(0.6,2,3)</gnm:Cell><gnm:Cell Row="53" Col="3">=BETALN(2,3)</gnm:Cell><gnm:Cell Row="54" Col="3">=LOGNORMDIST(2,0,1)</gnm:Cell><gnm:Cell Row="55" Col="3">=LOGINV(0.75,0,1)</gnm:Cell><gnm:Cell Row="56" Col="3">=EXPONDIST(1,2,TRUE)</gnm:Cell><gnm:Cell Row="57" Col="3">=EXPONDIST(1,2,FALSE)</gnm:Cell><gnm:Cell Row="58" Col="3">=WEIBULL(1,2,1,TRUE)</gnm:Cell><gnm:Cell Row="59" Col="3">=WEIBULL(1,2,1,FALSE)</gnm:Cell><gnm:Cell Row="60" Col="3">=POISSON(2,3,TRUE)</gnm:Cell><gnm:Cell Row="61" Col="3">=POISSON(2,3,FALSE)</gnm:Cell><gnm:Cell Row="62" Col="3">=HYPGEOMDIST(1,4,3,10,TRUE)</gnm:Cell><gnm:Cell Row="63" Col="3">=HYPGEOMDIST(1,4,3,10,FALSE)</gnm:Cell><gnm:Cell Row="64" Col="3">=NEGBINOMDIST(0,3,0.4)</gnm:Cell><gnm:Cell Row="65" Col="3">=CRITBINOM(10,0.5,0.3)</gnm:Cell><gnm:Cell Row="66" Col="3">=BINOM.DIST.RANGE(10,0.5,2,4)</gnm:Cell><gnm:Cell Row="67" Col="3">=CONFIDENCE(0.05,2.5,50)</gnm:Cell><gnm:Cell Row="68" Col="3">=TTEST(A1:A5,B1:B5,1,2)</gnm:Cell><gnm:Cell Row="69" Col="3">=TTEST(A1:A5,B1:B5,2,1)</gnm:Cell><gnm:Cell Row="70" Col="3">=TTEST(A1:A5,B1:B5,2,2)</gnm:Cell><gnm:Cell Row="71" Col="3">=TDIST(2.0,10,1)</gnm:Cell><gnm:Cell Row="72" Col="3">=TDIST(2.5,2,2)</gnm:Cell><gnm:Cell Row="73" Col="3">=CHIDIST(7.88,3)</gnm:Cell><gnm:Cell Row="74" Col="3">=FDIST(2.0,3,10)</gnm:Cell><gnm:Cell Row="75" Col="3">=GAMMADIST(5,2,2,TRUE)</gnm:Cell><gnm:Cell Row="76" Col="3">=BETADIST(0.4,3,3)</gnm:Cell><gnm:Cell Row="77" Col="3">=NORMDIST(2,1,3,TRUE)</gnm:Cell><gnm:Cell Row="78" Col="3">=SKEW(2,4,6,8,100)</gnm:Cell><gnm:Cell Row="79" Col="3">=KURT(1,2,4,8,16)</gnm:Cell><gnm:Cell Row="80" Col="3">=COVAR(A1:A5,A1:A5)</gnm:Cell><gnm:Cell Row="81" Col="3">=PERCENTILE(A1:A10,0.25)</gnm:Cell><gnm:Cell Row="82" Col="3">=QUARTILE(A1:A10,3)</gnm:Cell><gnm:Cell Row="83" Col="3">=FREQUENCY(A1:A10,B1:B3)</gnm:Cell><gnm:Cell Row="84" Col="3">=FREQUENCY(A1:A10,5)</gnm:Cell><gnm:Cell Row="85" Col="3">=CONFIDENCE.T(0.05,2.5,50)</gnm:Cell><gnm:Cell Row="86" Col="3">=NORMSINV(0.025)</gnm:Cell><gnm:Cell Row="87" Col="3">=CONFIDENCE(0.05,2.5,10)</gnm:Cell></gnm:Cells></gnm:Sheet></gnm:Sheets>
|
|
</gnm:Workbook> |