Glossary

Student's t-distribution

Introduction: understanding Student's t-distribution

What is Student's t-distribution?

Student's t-distribution is a probability distribution used to draw conclusions about a population mean when the sample is small and the population variance is unknown. It is the basis of Student's t-test (or simply the t-test), which is used to compare the means of two samples.

The t-test is widely used in statistics to assess whether the difference between two means is statistically significant. It helps determine whether the differences observed between two groups are likely to be due to chance, or whether they reflect a real difference in the population studied.

For example, a business that wants to know whether a change in its marketing strategy had a significant effect on sales could use a t-test to compare sales before and after the new strategy was introduced.

History of Student's t-distribution

Student's t-distribution was developed by William Sealy Gosset, a statistician who worked for the Guinness brewery in Ireland in the early 20th century.

Because of company policy, Gosset was not allowed to publish his work under his own name. He chose the pseudonym "Student", which gave the distribution its name.

Gosset was looking for a way to control the quality of the ingredients used to brew beer using small samples. He developed the t-test to test hypotheses about the means of small samples. Since then, Student's t-distribution has become a fundamental tool in statistics, used in fields ranging from medicine and psychology to economics.

Practical applications of Student's t-distribution

Student's t-distribution has many practical applications, especially in fields where researchers have to work with small samples. For example:

  • Comparing medical treatments: in clinical trials, it is often used to compare the effectiveness of two different treatments on a group of patients.
  • Market research: businesses use it to determine whether a new marketing campaign has a significant effect on sales.
  • Psychology research: psychologists can use the t-test to compare test results before and after a therapeutic intervention.
  • Surveys: here, it helps calculate the sample size needed, particularly when samples are small (see below).

Learn more

Survey fundamentals

What is a survey?

A survey is a method of collecting information from a sample of people in order to draw conclusions about a wider population. Surveys are used in many fields, such as social science research, marketing and even politics. They can take several forms: questionnaires, interviews or observation.

The aim of a survey is to get an accurate picture of a population's opinions, behaviour or characteristics from a representative sample. For example, a business might use a survey to assess its customers' satisfaction or to understand consumer preferences.

Types of survey and why surveys matter in research

There are several types of survey, each with its own advantages and drawbacks:

  • Questionnaire surveys: participants fill in a written or electronic questionnaire. This type of survey is often chosen because it is simple and relatively cheap.
  • Interview surveys: researchers interview participants, which yields more detailed data but costs more and takes longer.
  • Observational surveys: participants' behaviour is observed and recorded without direct interaction.

Surveys are crucial in research because they collect data that can be generalised to a wider population. Without them, it would be hard to obtain accurate information about a given population's opinions, attitudes or behaviour.

Learn more

How to use Student's t-distribution in surveys

Applying Student's t-distribution to surveys

Student's t-distribution is commonly used in surveys to compare the means of two separate groups. For example, in a survey measuring customer satisfaction, an analyst could use a t-test to compare satisfaction scores between two customer segments (for example, men and women, or younger and older customers).

The process involves stating a null hypothesis (that there is no difference between the groups' means in the population) and an alternative hypothesis (that there is a difference).

The t-statistic is then calculated and compared with a critical value taken from the t-distribution for the appropriate degrees of freedom. If the t-statistic, in absolute value, is greater than the critical value, the null hypothesis is rejected: the difference between the groups is statistically significant.

Confidence intervals

A concept closely linked to Student's t-distribution and t-tests is the confidence interval.

A confidence interval is a range of values, calculated from the sample, that is likely to contain the true mean of the population the sample was drawn from. Its confidence level (usually 95%) describes the method rather than any single interval: if the survey were repeated many times, 95% of the intervals calculated in this way would contain the true mean.

For example, if the 95% confidence interval for a mean runs from 10 to 15, we can say with 95% confidence that the true mean lies somewhere between these two values. Strictly speaking, this does not mean that there is a 95% probability that the true mean lies within this particular interval: it either does or it does not.

Confidence intervals are particularly useful because they give not only a point estimate of the mean but also an idea of how precise that estimate is. The narrower the interval, the more precise the estimate.

In surveys, confidence intervals put results in context and give a more nuanced understanding of how much the data might vary. Combined with a t-test, they help assess whether a difference is statistically significant while quantifying the uncertainty around that difference.

Practical examples

Imagine a business that wants to know whether a new feature of its product is better received by users under 30 than by older users.

After collecting the data through a survey, the analyst uses Student's t-distribution to compare the means of the two age groups.

  • Independent-samples t-test: the analyst compares mean satisfaction between the two age groups to see whether the observed difference is statistically significant.

In another example, a business might want to compare customer satisfaction before and after a major update to its product:

  • A paired t-test would then be appropriate to assess whether the update had a significant effect on mean satisfaction, provided the same customers answer both before and after the update. If the two surveys reach different customers, the samples are independent and the independent-samples t-test applies.

Common mistakes to avoid

When using Student's t-distribution in surveys, watch out for a few common mistakes:

  • Unchecked assumptions: make sure that the assumptions underlying the t-test (such as normally distributed data) hold before running the analysis.
  • Sample too small: a sample that is too small may not have enough power to detect a significant difference.
  • Using the wrong type of t-test: choose the right type of t-test (one-sample, independent samples or paired) according to the data and the research question.

Learn more

Calculating sample size with Student's t-distribution

Why sample size matters

Sample size is a crucial factor in any statistical study. A sample that is too small can produce non-significant results even when a difference exists in the population. Conversely, a very large sample can detect tiny differences that have no practical relevance.

Sample size directly affects the precision of estimates and the power of statistical tests. In surveys, an appropriate sample size is needed for the results to be precise enough to describe the target population; whether the sample is representative depends, for its part, on how it is selected.

Calculation formulas

Calculating the sample size needed for a t-test involves several parameters:

  • Significance level (α): the risk of rejecting the null hypothesis when it is true (a type I error). A common choice is α = 0.05, which corresponds to a 95% confidence level (1 − α).
  • Power of the test (1 − β): the probability of detecting a difference if one really exists. A power of 80% is often considered acceptable.
  • Effect size: the smallest difference you want to be able to detect between the groups.

The basic formula for the sample size of a t-test comparing two independent samples is:

n = 2σ² (Zα/2 + Zβ)² / d²

Where:

  • n is the number of respondents needed in each group;
  • σ² is the estimated population variance;
  • Zα/2 is the critical value of the normal distribution for the chosen confidence level;
  • Zβ is the critical value for the power of the test;
  • d is the effect size (the difference between the means of the two groups).

This basic formula uses the normal distribution. With small samples, the Z values are replaced by the corresponding values of Student's t-distribution, which depend on the sample size: the calculation is then repeated until the result stabilises, and it gives a slightly larger sample.

Student's t-distribution versus other statistical tests

Comparison with other tests and probability distributions

Student's t-test is not the only statistical test available for comparing means or other characteristics of samples. Other tests include:

  • ANOVA (analysis of variance): used to compare the means of three or more groups. Unlike the t-test, which compares only two groups, ANOVA handles multiple comparisons in a single test, without inflating the risk of a type I error as a series of t-tests would.
  • Chi-squared test: used for categorical variables, to test whether two qualitative variables are independent.
  • Wilcoxon test: a non-parametric test used when the normality assumption is not met. Its rank-sum version (equivalent to the Mann–Whitney U test) compares two independent samples; its signed-rank version compares paired samples.

When to use Student's t-distribution

Student's t-distribution is ideal when:

  • Samples are small: the t-test was designed for small samples whose population variance is unknown.
  • The data follow a normal distribution: although the t-test is relatively robust to departures from normality, it works best when the data are normally distributed.
  • There are two groups to compare: if more than two groups need to be compared, other tests such as ANOVA are more appropriate.

Advantages and drawbacks

Advantages of Student's t-test:

  • Simplicity: the t-test is easy to understand and to run, even with basic statistical tools.
  • Effective with small samples: it can produce meaningful conclusions even with a limited amount of data.

Its drawbacks and weaknesses:

  • Sensitivity to assumptions: the t-test assumes that the data are normally distributed and, in its classic form, that the variances of the groups are equal (Welch's version of the test drops this second assumption). If these assumptions are not met, the results may be biased.
  • Limited to pairwise comparisons: the t-test is not suited to comparing more than two groups at once.

Conclusion

Student's t-distribution is a powerful, versatile statistical tool, particularly useful for surveys and studies where samples are often small.

By understanding its foundations, applications and limits, researchers and analysts can use it effectively to draw meaningful conclusions from their data.

Whether comparing the effects of a treatment, assessing the impact of a new policy or analysing customer satisfaction data, Student's t-distribution remains an essential method in statistics.

Author

Sébastien Neveu

Sébastien Neveu

Head of Marketing

Related articles

On the same topic

Keep reading with articles from our blog on this topic.

All articles

A question about your customer listening set-up?

Talk to a Wizville expert and see what the platform changes across your network.

  • A reading of your network, location by location
  • The satisfaction drivers that weigh most on your sales
  • A feedback collection set-up suited to your customer journeys

Request a demo

Your data remains confidential and is never shared.