Student's t Distribution

Student's t distribution, also known as the t-distribution, is commonly used to test if the difference between the means of two samples is statistically significant. It is a variation of the normal distribution that takes into account that the mean of a sample is only an estimate for the mean of the population.

Definition

The Student t distribution has one shape parameter: the degrees of freedom ν. The probability density function (PDF) is:

f(x)=Γ((ν+1)/2)νπΓ(ν/2)(1+x2ν)(ν+1)/2

The cumulative distribution function (CDF) is:

F(x)=12+xΓ((ν+1)/2)2F1(12,ν+12;32;x2ν)νπΓ(ν/2)

where 2F1 is the hypergeometric function and ν>0 is required.

Applications

The Student t distribution has several important applications in statistical analysis and research. In hypothesis testing, it is particularly valuable when working with small sample sizes where the population standard deviation is unknown. The distribution is frequently used in medical research, scientific experiments, and quality control to determine if the means of two datasets are significantly different from each other.

Common applications include:

  • Constructing confidence intervals for population means when sample sizes are small.

  • Performing t-tests to compare means between two independent or paired samples.

  • Analyzing the significance of regression coefficients in statistical modeling.

  • Estimating measurement uncertainty in calibration and laboratory measurements.

Properties

Statistical Properties
PropertyValue (ν>k where k is the moment order)
Mean0,ν>1
Varianceνν2,ν>2
Skewness0,ν>3
Excess Kurtosis6ν4,ν>4
Median0
Mode0

Notable properties include:

  • The distribution is symmetric about zero.

  • The tails are heavier than the normal distribution.

  • The characteristic function has no closed form.

Relationships to Other Distributions

The StudentTDistribution class

The Student t distribution is implemented by the StudentTDistribution class. It has one constructor with the degrees of freedom as its only argument.

The following constructs the Student t distribution with 8 degrees of freedom:

C#
var studentT = new StudentTDistribution(8);

The StudentTDistribution class has one specific property, DegreesOfFreedom, which returns the degrees of freedom of the distribution.

StudentTDistribution has one static (Shared in Visual Basic) method, Sample, which generates a random sample using a user-supplied uniform random number generator. The second and third parameters are the location and scale parameters of the distribution.

C#
var random = new Pcg32();
double sample = StudentTDistribution.Sample(random, 8);

The above example uses the MersenneTwister class to generate uniform random numbers.

References

For more information on the student t distribution, refer to the following sources:

  • Johnson, N. L., Kotz, S., & Balakrishnan, N. (1994). "Continuous Univariate Distributions, Volume 2", Chapter 28. Wiley Series in Probability and Statistics.

  • Forbes, C., Evans, M., Hastings, N., & Peacock, B. (2011). "Statistical Distributions", Chapter 43. Wiley Series in Probability and Statistics.

  • Student's t-Distribution. (n.d.). In Wikipedia. Retrieved from https://en.wikipedia.org/wiki/Student%27s_t-distribution

  • Wackerly, D., Mendenhall, W., & Scheaffer, R. (2008). Mathematical Statistics with Applications. Cengage Learning.

See Also