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.

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

References<br />

http://www.childrens-mercy.org/stats/definitions/biserial.htm<br />

kendalltau(x, y)<br />

Calculates Kendall’s tau, a correlation measure for ordinal data<br />

Kendall’s tau is a measure of the correspondence between two rankings. Values close to 1 indicate strong<br />

agreement, values close to -1 indicate strong disagreement. This is the tau-b version of Kendall’s tau which<br />

accounts for ties.<br />

Parameters<br />

x : array_like<br />

array of rankings<br />

y : array_like<br />

second array of rankings, must be the same length as x<br />

Returns<br />

Kendall’s tau : float<br />

The tau statistic<br />

p-value : float<br />

linregress(*args)<br />

Calculate a regression line<br />

The two-sided p-value for a hypothesis test whose null hypothesis is an absence of<br />

association, tau = 0.<br />

This computes a least-squares regression for two sets of measurements.<br />

Parameters<br />

x, y : array_like<br />

Returns<br />

slope : float<br />

two sets of measurements. Both arrays should have the same length. If only x is<br />

given, then it must be a two-dimensional array where one dimension has length 2.<br />

The two sets of measurements are then found by splitting the array along the length-2<br />

dimension.<br />

slope of the regression line<br />

intercept : float<br />

intercept of the regression line<br />

p-value : float<br />

two-sided p-value for a hypothesis test whose null hypothesis is that the slope is zero.<br />

stderr : float<br />

Standard error of the estimate<br />

654 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!