encyclopegia.org

Two-sample hypothesis testing

In statistical hypothesis testing, a two-sample test is a test performed on the data of two random samples, each independently obtained from a different given population. The purpose of the test is to determine whether the difference between these two populations is statistically significant. When the only knowledge of the two populations is given through the samples, two-sample hypothesis testing becomes an instance of universal hypothesis testing. There are a large number of statistical tests that can be used in a two-sample test. Which one(s) are appropriate depend on a variety of factors, such as: * Which assumptions (if any) may be made a priori about the distributions from which the data have been sampled? For example, in many situations it may be assumed that the underlying distributions are normal distributions. In other cases the data are categorical, coming from a discrete distribution over a nominal scale, such as which entry was selected from a menu.…

In statistical hypothesis testing, a two-sample test is a test performed on the data of two random samples, each independently obtained from a different given population. The purpose of the test is to determine whether the difference between these two populations is statistically significant. When the only knowledge of the two populations is given through the samples, two-sample hypothesis testing becomes an instance of universal hypothesis testing. There are a large number of statistical tests that can be used in a two-sample test. Which one(s) are appropriate depend on a variety of factors, such as: Which assumptions (if any) may be made a priori about the distributions from which the data have been sampled? For example, in many situations it may be assumed that the underlying distributions are normal distributions. In other cases the data are categorical, coming from a discrete distribution over a nominal scale, such as which entry was selected from a menu. Does the hypothesis being tested apply to the distributions as a whole, or just some population parameter, for example the mean or the variance? Is the hypothesis being tested merely that there is a difference in the relevant population characteristics (in which case a two-sided test may be indicated), or does it involve a specific bias ("A is better than B"), so that a one-sided test can be used? Two-sample testing does not mean that only two random variables can be used for inference (as is sometimes incorrectly assumed). Instead, it gets its name because the problem involves data from two populations, distinct from one-sample hypothesis testing in which samples from a single population are used to make a decision. ==Relevant tests== Statistical tests that may apply for two-sample testing include: Hotelling's T-squared distribution#Two-sample statistic Kernel embedding of distributions#Kernel two-sample test Kolmogorov–Smirnov_test#Two-sample_Kolmogorov–Smirnov_test Kuiper's test Median test Pearson's chi-squared test Student's t-test#Two-sample_t-tests Welch's t-test Tukey–Duckworth test Mann–Whitney U test Two-proportion Z-test Classifier Two-sample test (C2ST) Plug in statistics using empirical measures (usually for discrete distributions) Given samples X^n = (X_1, \dots, X_n) taken independently and identically distributed (iid) from a population P , and Y^m = (Y_1, \dots, Y_m) taken iid from a population Q , the goal of a two sample test is to determine which of the two hypothesis are correct: \begin{aligned} H_0: P = Q\\ H_1: P \neq Q \end{aligned} In many instances of two-sample hypothesis testing, the only information that we have about the populations comes from the samples, meaning that any test needs to be non-parametric. ==See also== A/B testing Universal hypothesis testing ==References==

References

  1. 4.2: Two-Sample t-Test · retrieved 2026-11-18 · rev 1360341248
    Cite this reference

    MLA "4.2: Two-Sample t-Test." Berberyan, Toros; Nguyen, Tracy; Swan, Alfie (Jan 8, 2024). 2026-11-18. https://stats.libretexts.org/Bookshelves/Applied_Statistics/Biological_Statistics_(McDonald)/04%3A_Tests_for_One_Measurement_Variable/4.02%3A_Two-Sample_t-Test. Accessed 25 November 2026.

    Chicago "4.2: Two-Sample t-Test." Berberyan, Toros; Nguyen, Tracy; Swan, Alfie (Jan 8, 2024). 2026-11-18. https://stats.libretexts.org/Bookshelves/Applied_Statistics/Biological_Statistics_(McDonald)/04%3A_Tests_for_One_Measurement_Variable/4.02%3A_Two-Sample_t-Test.

    APA Berberyan, Toros; Nguyen, Tracy; Swan, Alfie (Jan 8, 2024). (2026). 4.2: Two-Sample t-Test. Retrieved November 25, 2026, from https://stats.libretexts.org/Bookshelves/Applied_Statistics/Biological_Statistics_(McDonald)/04%3A_Tests_for_One_Measurement_Variable/4.02%3A_Two-Sample_t-Test

  2. Revisiting Classifier Two-Sample Tests · retrieved 2026-11-18 · rev 1360341248
    Cite this reference

    MLA "Revisiting Classifier Two-Sample Tests." Lopez-Paz, David; Oquab, Maxime (2016). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.

    Chicago "Revisiting Classifier Two-Sample Tests." Lopez-Paz, David; Oquab, Maxime (2016). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).

    APA Lopez-Paz, David; Oquab, Maxime (2016). (2026). Revisiting Classifier Two-Sample Tests. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)

  3. Second-Order Asymptotics of Two-Sample Tests · retrieved 2026-11-18 · rev 1360341248
    Cite this reference

    MLA "Second-Order Asymptotics of Two-Sample Tests." Harsha, K V; Ravi, Jithin; Koch, Tobias (2026-01-14). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.

    Chicago "Second-Order Asymptotics of Two-Sample Tests." Harsha, K V; Ravi, Jithin; Koch, Tobias (2026-01-14). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).

    APA Harsha, K V; Ravi, Jithin; Koch, Tobias (2026-01-14). (2026). Second-Order Asymptotics of Two-Sample Tests. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)

  4. Asymptotically Optimal One- and Two-Sample Testing With Kernels · retrieved 2026-11-18 · rev 1360341248
    Cite this reference

    MLA "Asymptotically Optimal One- and Two-Sample Testing With Kernels." Zhu, Shengyu; Chen, Biao; Chen, Zhitang; Yang, Pengfei (April 2021). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.

    Chicago "Asymptotically Optimal One- and Two-Sample Testing With Kernels." Zhu, Shengyu; Chen, Biao; Chen, Zhitang; Yang, Pengfei (April 2021). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).

    APA Zhu, Shengyu; Chen, Biao; Chen, Zhitang; Yang, Pengfei (April 2021). (2026). Asymptotically Optimal One- and Two-Sample Testing With Kernels. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)

  5. Asymptotically Optimal Tests for One- and Two-Sample Problems · retrieved 2026-11-18 · rev 1360341248
    Cite this reference

    MLA "Asymptotically Optimal Tests for One- and Two-Sample Problems." a b Grootveld, Arick; Chen, Biao; Gandikota, Venkata (2026-06-10). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier). Accessed 25 November 2026.

    Chicago "Asymptotically Optimal Tests for One- and Two-Sample Problems." a b Grootveld, Arick; Chen, Biao; Gandikota, Venkata (2026-06-10). 2026-11-18. https://en.wikipedia.org/wiki/ArXiv_(identifier).

    APA a b Grootveld, Arick; Chen, Biao; Gandikota, Venkata (2026-06-10). (2026). Asymptotically Optimal Tests for One- and Two-Sample Problems. Retrieved November 25, 2026, from https://en.wikipedia.org/wiki/ArXiv_(identifier)

Cite this article

MLA

"Two-sample hypothesis testing." encyclopegia.org, 2026, https://encyclopegia.org/wiki/two-sample-hypothesis-testing. Accessed 25 November 2026.

Chicago

"Two-sample hypothesis testing." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/two-sample-hypothesis-testing.

APA

encyclopegia.org. (2026). Two-sample hypothesis testing. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/two-sample-hypothesis-testing

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

EFL League Two

stub · references available

The Two Noble Kinsmen

stub · references available

Epic Mickey 2: The Power of Two

stub · references available

two-stage-to-orbit

stub · references available

Teresa Cristina of the Two Sicilies

stub · references available

two-dimensional space

stub · references available

Maria Christina of the Two Sicilies

stub · references available

Two Qiaos

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1360341248 · 0.5 · snapshot enwiki-001360341248

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.