8.5.11. stat

Python equivalents of statistical Excel functions.

Functions

xbetadist

xbetainv

xbinomdist

xbinomdistrange

xbinominv

xchisqdist

xchisqdistrt

xchisqinv

xchisqinvrt

xchisqtest

xconfidence_norm

CONFIDENCE.NORM(alpha, standard_dev, size) - alpha in (0,1) - standard_dev > 0 - size > 0 (integer) Returns the margin of error for a population mean when σ is known.

xconfidence_t

CONFIDENCE.T(alpha, standard_dev, size) Returns the margin of error: t_{1-α/2, n-1} * sd / sqrt(n)

xcorrel

xcovariance_p

xcovariance_s

xexpon_dist

EXPON.DIST(x, lambda, cumulative)

xfdist

xfdistrt

xfinv

xfinvrt

xfisher

FISHER(number) -> 0.5 * ln((1+x)/(1-x)) Excel domain: -1 < x < 1 (else #NUM!)

xfisherinv

FISHERINV(y) -> inverse Fisher transform = tanh(y) - Domain: any real y (returns value in (-1, 1)).

xforecast

xforecast_ets

xforecast_ets_confint

xforecast_ets_seasonality

xforecast_ets_stat

xfrequency

FREQUENCY(data_array, bins_array) -> list of counts

xftest

xfunc

xgamma

GAMMA(number) Excel domain: - allowed: any real except non-positive integers - error: number in { …, -2, -1, 0 } -> #NUM!

xgamma_dist

xgamma_inv

GAMMA.INV(probability, alpha, beta) - 0 < probability < 1 - alpha > 0, beta > 0

xgammaln

GAMMALN(x) and GAMMALN.PRECISE(x) Excel domain: x > 0 (else #NUM!)

xgauss

GAUSS(z) = Φ(z) - 0.5 (Φ is the CDF of N(0,1); result in (-0.5, 0.5))

xgrowth

xhypergeom_dist

EXPON.DIST(x, lambda, cumulative)

xintercept

xlinest

xlogest

xlognormdist

xlognorminv

xnegbinomdist

xnormdist

xnorminv

xpearson

xpercentile

xpercentrank

PERCENTRANK.EXC(array, x, [significance]) - Returns rank of x in array as a percentage in (0,1) (excludes endpoints).

xpermut

xpermutationa

xphi

xpoisson_dist

xprob

PROB(x_range, prob_range, lower_limit, [upper_limit])

xquartile

xrank

xrsq

RSQ(known_y's, known_x's) -> r^2

xslope

xsort

xstandardize

xstdev

xsteyx

xt_dist

xt_dist2t

xt_distrt

xt_inv

xt_inv2t

xt_test

xtrend

xtrimmean

TRIMMEAN(array, percent)

xweibulldist

xz_test

Z.TEST(array, x, [sigma]) -> one-tailed p-value