ArticleslgStudy

mathematics

Kuiper's test

Kuiper's test is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Kuiper's test rather than just read about it. In short: Kuiper's test is used in statistics to test whether a data sample comes from a given distribution (one-sample Kuiper test), or whether two data samples came from the same unknown distribution (two-sample Kuiper test). It is named after Dutch mathematician Nicolaas Kuiper.

Kuiper's test — main illustration
Kuiper's test — illustration

Key takeaways

  • Kuiper's test belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Kuiper's test to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Kuiper's test from memory before moving on to harder problems.

Reference excerpt

Kuiper's test is used in statistics to test whether a data sample comes from a given distribution (one-sample Kuiper test), or whether two data samples came from the same unknown distribution (two-sample Kuiper test). It is named after Dutch mathematician Nicolaas Kuiper. Kuiper's test is closely related to the better-known Kolmogorov–Smirnov test (or K-S test as it is often called). As with the K-S test, the discrepancy statistics D+ and D− represent the absolute sizes of the most positive and most negative differences between the two cumulative distribution functions that are being compared. The trick with Kuiper's test is to use the quantity D+ + D− as the test statistic. This small change makes Kuiper's test as sensitive in the tails as at the median and also makes it invariant under cyclic transformations of the independent variable. The Anderson–Darling test is another test that provides equal sensitivity at the tails as the median, but it does not provide the cyclic invariance. This invariance under cyclic transformations makes Kuiper's test invaluable when testing for cyclic variations by time of year or day of the week or time of day, and more generally for testing the fit of, and differences between, circular probability distributions.

One-sample Kuiper test

The one-sample test statistic, Vn, for Kuiper's test is defined as follows. Let F be the continuous cumulative distribution function which is to be the null hypothesis. Denote by Fn the empirical distribution function for n independent and identically distributed (i.i.d.) observations Xi, which is defined as

Fn(x)=number of (elements in the sample≤x)n=1n∑i=1n1(−∞,x](Xi), where 1(−∞,x](Xi) is the indicator function, equal to 1 if Xi≤x and equal to 0 otherwise. Then the one-sided Kolmogorov–Smirnov statistic for the given cumulative distribution function F(x) is

Dn+=supx[Fn(x)−F(x)], Dn−=supx[F(x)−Fn(x)], where sup is the supremum function. And finally the one-sample Kuiper test is defined as,

Vn=Dn++Dn−, or equivalently

Vn=supx[Fn(x)−F(x)]−infx[Fn(x)−F(x)], where inf is the infimum function. Tables for the critical points of the test statistic Vn are available, and these include certain cases where the distribution being tested is not fully known, so that parameters of the family of distributions are estimated. The asymptotic distribution of the statistic nVn is given by,

Pr⁡(nVn≤x)=1−2∑k=1∞(4k2x2−1)e−2k2x2+83nx∑k=1∞k2(4k2x2−3)e−2k2x2+o(1n). For x>65, a reasonable approximation is obtained from the first term of the series as follows

1−2(4x2−1)e−2x2+8x3n(4x2−3)e−2x2.

Two-sample Kuiper test The Kuiper test may also be used to test whether two random samples, either on the real line or the circle, come from a common but unknown distribution. In this case, the Kuiper statistic is

Vn,m=supx[F1,n(x)−F2,m(x)]−infx[F1,n(x)−F2,m(x)], where F1,n and F2,m are the empirical distribution functions of the first and the second sample respectively, sup is the supremum function, and inf is the infimum function. For continuous distributions and large samples, the null distribution of the normalized statistic approaches the same limiting form as in the one-sample case. As m,n→∞ with m/(m+n)→λ∈(0,1),

Pr⁡(nmn+mVn,m≤x)→1−2∑k=1∞(4k2x2−1)e−2k2x2, the two-sample analogue of the limiting distribution given by Kuiper. This large-sample approximation is distribution-free only under continuity; it can be inaccurate for small samples and does not apply when the data contain ties. In those cases an exact p-value can instead be obtained from the permutation (conditional) distribution of Vn,m given the pooled sample. This remains valid whether or not the data contain tied observations, so the two samples may come from a continuous, purely discrete or mixed distribution, and it can be computed by a recurrence that is valid for arbitrary (possibly large and unequal) sample sizes. For continuous data the permutation and ordinary Kuiper statistics share the same limiting null distribution, so their critical values agree asymptotically; this agreement has been shown to extend to arbitrary underlying distributions, including discrete or mixed data with ties. Approximate p-values may also be obtained by resampling.

Example We could test the hypothesis that computers fail more during some times of the year than others. To test this, we would collect the dates on which the test set of computers had failed and build an empirical distribution function. The null hypothesis is that the failures are uniformly distributed. Kuiper's statistic does not change if we change the beginning of the year and does not require that we bin failures into months or the like. Another test statistic having this property is the Watson statistic, which is related to the Cramér–von Mises test. However, if failures occur mostly on weekends, many uniform-distribution tests such as K-S and Kuiper would miss this, since weekends are spread throughout the year. This inability to distinguish distributions with a comb-like shape from continuous uniform distributions is a key problem with all statistics based on a variant of the K-S test. Kuiper's test, applied to the event times modulo one week, is able to detect such a pattern. Using event times that have been modulated with the K-S test can result in different results depending on how the data is phased. In this example, the K-S test may detect the non-uniformity if the data is set to start the week on Saturday, but fail to detect the non-uniformity if the week starts on Wednesday.

Two-sample example Suppose the days of the week on which some event occurs are recorded for two groups, giving discrete data on the seven points of a weekly cycle (so tied observations are unavoidable). Writing the days as positions 1–7 and cumulating each group's empirical distribution function, the largest excess of the first group's ECDF over the second is D+=0.4 and the largest excess in the other direction is D−=0.4, giving a Kuiper statistic of Vn,m=D++D−=0.8. Because Vn,m is unchanged by the choice of which day starts the week, the same value is obtained under any cyclic relabelling — unlike the Kolmogorov–Smirnov statistic, whose value can depend on where the cycle is cut. An exact p-value for these discrete data, accounting for the ties, can then be obtained from the permutation recurrence.

Software implementations Implementations of the two-sample Kuiper test differ in how the p-value is obtained:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Kuiper's test

Start with the simplest possible case. Write down what Kuiper's test claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Kuiper's test before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Kuiper's test ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Kuiper's test

In research
Kuiper's test appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Kuiper's test in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Kuiper's test is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1960 introductions, Directional statistics, Nonparametric statistics, so understanding it makes those chapters shorter.
In everyday life
Look for Kuiper's test outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Kuiper's test” →

How to study Kuiper's test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Kuiper's test means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Kuiper's test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Kuiper's test in simple terms?

Kuiper's test is used in statistics to test whether a data sample comes from a given distribution (one-sample Kuiper test), or whether two data samples came from the same unknown distribution (two-sample Kuiper test). It is named after Dutch mathematician Nicolaas Kuiper.

Why does Kuiper's test matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Kuiper's test?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Kuiper's test.

Tags

  • 1960 introductions
  • Directional statistics
  • Nonparametric statistics
  • Statistical tests

Keep exploring