15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SciPy Reference Guide, Release 0.8.dev<br />

plotting_positions(data, alpha=0.40000000000000002, beta=0.40000000000000002)<br />

Returns the plotting positions (or empirical percentile points) for the<br />

data. Plotting positions are defined as (i-alpha)/(n-alpha-beta), where:<br />

• i is the rank order statistics<br />

• n is the number of unmasked values along the given axis<br />

• alpha and beta are two parameters.<br />

Typical values for alpha and beta are:<br />

• (0,1) : p(k) = k/n : linear interpolation of cdf (R, type 4)<br />

• (.5,.5) : p(k) = (k-1/2.)/n : piecewise linear function (R, type 5)<br />

• (0,0) : p(k) = k/(n+1) : Weibull (R type 6)<br />

• (1,1) : p(k) = (k-1)/(n-1). In this case, p(k) = mode[F(x[k])]. That’s R default (R type 7)<br />

• (1/3,1/3): p(k) = (k-1/3)/(n+1/3). Then p(k) ~ median[F(x[k])]. The resulting quantile estimates<br />

are approximately median-unbiased regardless of the distribution of x. (R type 8)<br />

• (3/8,3/8): p(k) = (k-3/8)/(n+1/4). Blom. The resulting quantile estimates are approximately<br />

unbiased if x is normally distributed (R type 9)<br />

• (.4,.4) : approximately quantile unbiased (Cunnane)<br />

• (.35,.35): APL, used with PWM<br />

Parameters<br />

x : sequence<br />

Input data, as a sequence or array of dimension at most 2.<br />

prob<br />

[sequence] List of quantiles to compute.<br />

alpha<br />

[{0.4, float} optional] Plotting positions parameter.<br />

beta<br />

[{0.4, float} optional] Plotting positions parameter.<br />

mode(a, axis=0)<br />

Returns an array of the modal (most common) value in the passed array.<br />

If there is more than one such value, only the first is returned. The bin-count for the modal bins is also returned.<br />

Parameters<br />

a : array<br />

axis=0 : int<br />

Returns<br />

(array of modal values, array of counts for each mode) :<br />

moment(a, moment=1, axis=0)<br />

Calculates the nth moment about the mean for a sample.<br />

Generally used to calculate coefficients of skewness and kurtosis.<br />

3.18. Statistical functions (<strong>scipy</strong>.stats) 679

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!