kuiper_two

astropy.stats.kuiper_two(data1, data2)[source]

Compute the Kuiper statistic to compare two samples.

Parameters:
data1 : array-like

The first set of data values.

data2 : array-like

The second set of data values.

Returns:
D : float

The raw test statistic.

fpp : float

The probability of obtaining two samples this different from the same distribution.

Warning

The fpp is quite approximate, especially for small samples.