15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Notes<br />

Returns<br />

p-value : float<br />

a 2-sided p-value for the hypothesis test<br />

The sample size should be at least 8.<br />

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

Tests whether a dataset has normal kurtosis<br />

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

This function tests the null hypothesis that the kurtosis of the population from which the sample was drawn is<br />

that of the normal distribution: kurtosis=3(n-1)/(n+1).<br />

Notes<br />

Parameters<br />

a : array<br />

array of the sample data<br />

axis : int or None<br />

the axis to operate along, or None to work on the whole array. The default is the first<br />

axis.<br />

Returns<br />

p-value : float<br />

The 2-sided p-value for the hypothesis test<br />

Valid only for n>20. The Z-score is set to 0 for bad entries.<br />

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

Tests whether a sample differs from a normal distribution<br />

This function tests the null hypothesis that a sample comes from a normal distribution. It is based on D’Agostino<br />

and Pearson’s [R30], [R31] test that combines skew and kurtosis to produce an omnibus test of normality.<br />

Parameters<br />

a : array<br />

axis : int or None<br />

Returns<br />

p-value : float<br />

References<br />

[R30], [R31]<br />

A 2-sided chi squared probability for the hypothesis test<br />

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

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

Saved successfully!

Ooh no, something went wrong!