T-test
A t-test is a statistical hypothesis test that uses a t-distributed statistic to assess a mean or difference in means under specified assumptions.
Statistics Slam Dunk
A t-test is a statistical test that evaluates whether a difference between means is unlikely under a null hypothesis, typically using a t-distributed test statistic.
- How it is used
- Tests whether two groups differ in average numeric outcomes for sports, treatment, and inequality questions.
- How deep it goes
- Defines two-group mean testing and works through R outputs, visualizations, thresholds, and record-count caveats without formal derivations.
- Examples
- Uses NBA home-road fouls and free throws, salary and win-share Gini coefficients, drugs, exam scores, and customer surveys.
- What you can do after
- Apply it via R's t.test() to compare two group means and make a threshold-based null-hypothesis decision.
Effective Data Analysis
A t-test is a statistical test that evaluates differences between means using a t-distributed test statistic.
- How it is used
- Uses t-tests to assess mean differences in analytics questions, including changes in support activity and comparisons of city temperatures.
- How deep it goes
- Explains independent and paired comparisons, parametric assumptions and significance, with an independent-test formula and sample-size exercises.
- Examples
- Uses student test scores, simulated normally distributed samples and July temperatures in Boston and New York City.
- What you can do after
- Apply it via SciPy to independent samples and communicate the findings and their limits to stakeholders.
Timeless Algorithms, The Foundational Ideas
A t-test is a statistical test for comparing means using a t-distribution under specified assumptions.
- How it is used
- Selects and applies a mean-comparison test within a hypothesis-testing decision process.
- How deep it goes
- Explains test selection and interprets the standardized statistic, without giving a numerical statistic or final decision.
- Examples
- Tests beverage-container fill volumes against a 12-ounce target using a sample of 20.
- What you can do after
- Evaluate a sample mean against a target by standardizing its difference using estimated sampling variability.
Read how Timeless Algorithms, The Foundational Ideas explains t-test →
Also covered in
- Machine Learning System Design
- Grokking BayesIn early access (MEAP)
- Grokking Statistics
What to know first
- varianceVariance is the expected squared deviation of a random variable from its mean and measures the dispersion of its values.
- categorical dataCategorical data consists of values representing membership in discrete categories rather than measured numerical magnitudes.
Related concepts
- hypothesis testingkind of · Hypothesis testing is a formal statistical procedure for evaluating evidence from observed data about a specified hypothesis, often a null hypothesis.
- student's t-distributionuses · Student’s t-distribution is a family of continuous probability distributions with heavier tails than the normal distribution, used in inference when variability is estimated from data.
- experimentationuses · Experimentation is the planned investigation of a question or hypothesis by conducting trials or interventions and observing their outcomes.
- analysis of variancecontrasts with · Analysis of variance is a statistical technique for assessing whether group means differ by partitioning observed variability among specified factors and residual error.
- chi-square testcontrasts with · A chi-square test is a statistical hypothesis test that uses a chi-square-distributed statistic to evaluate hypotheses about categorical data, goodness of fit, or variance.
- Cohen's dcontrasts with · Cohen's d is a standardized effect-size measure expressing the difference between two group means in standard-deviation units, commonly using the pooled standard deviation.
Questions about t-test
What is t-test?
A t-test is a statistical hypothesis test that uses a t-distributed statistic to assess a mean or difference in means under specified assumptions.
Which Manning books explain t-test?
Statistics Slam Dunk, Effective Data Analysis and Timeless Algorithms, The Foundational Ideas.
What should I know before learning t-test?
Manning books that teach t-test usually introduce variance and categorical data first.
What is the difference between t-test and analysis of variance?
A t-test is a statistical hypothesis test that uses a t-distributed statistic to assess a mean or difference in means under specified assumptions. Analysis of variance is a statistical technique for assessing whether group means differ by partitioning observed variability among specified factors and residual error.
What is t-test a kind of?
T-test is a kind of hypothesis testing. Hypothesis testing is a formal statistical procedure for evaluating evidence from observed data about a specified hypothesis, often a null hypothesis.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


