The Wayback Machine - https://web.archive.org/web/20240118173639/https://www.geeksforgeeks.org/students-t-distribution-in-statistics/
Open In App
Related Articles

Student’s t-distribution in Statistics

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

As we know normal distribution assumes two important characteristics about the dataset: a large sample size and knowledge of the population standard deviation. However, if we do not meet these two criteria, and we have a small sample size or an unknown population standard deviation, then we use the t-distribution.

Prerequisite – Normal distribution 

What is t-Distribution 

Student’s t-distribution, also known as the t-distribution, is a probability distribution that is used in statistics for making inferences about the population mean when the sample size is small or when the population standard deviation is unknown. It is similar to the standard normal distribution (Z-distribution), but it has heavier tails. Theoretical work on t-distribution was done by W.S. Gosset; he has published his findings under the pen name “Student“. That’s why it is called a Student’s t-test. The t-score represents the number of standard deviations the sample mean is away from the population mean.

The Formula For t-Distribution  

As we know we use t-distribution we standard deviation of the sample is unknown and the sample size is small,read However formula for the t-distribution looks very similar to normal distribution the only difference is that instead of the standard deviation of the population we will use standard deviation of sample. 

t = [xĖ„-Ξ] / [s/sqrt(n) ]
where,
t = The t-score,
x˄ = sample mean,
Ξ = population mean,
s = standard deviation of the sample,
n = sample size 

When to Use the t-Distribution? 

Student’s t Distribution is used when 

  • The sample size is 30 or less than 30.
  • The population standard deviation(σ) is unknown.
  • The population distribution must be unimodal and skewed.

Mathematical Derivation of t-Distribution 

The t-distribution has been derived mathematically under the assumption of a normally distributed population and the formula for the probability density function will be like this 

f(t) = \frac{\Gamma\left(\frac{df+1}{2}\right)}{\sqrt{df\pi} \, \Gamma\left(\frac{df}{2}\right)} \left(1 + \frac{t^2}{df}\right)^{-\frac{df+1}{2}}

where, where Γ(.) is the gamma function
df= Degrees of freedom 

So, this above equation indicates the probability density function(pdf) of the t-distribution for df degrees of freedom. 

Properties of the t-Distribution 

  • The variable in t-distribution ranges from -∞ to +∞ (-∞ < t < +∞).
  • t- distribution will be symmetric like the normal distribution if the power of t is even in the probability density function(pdf).
  • For large values of Î―(i.e. increased sample size n); the t-distribution tends to a standard normal distribution. This implies that for different Î― values, the shape of t-distribution also differs.
  • The t-distribution is less peaked than the normal distribution at the center and higher peaked in the tails. From the above diagram, one can observe that the red and green curves are less peaked at the center but higher peaked at the tails than the blue curve.
  • The value of y(peak height) attains highest at Ξ = 0 as one can observe the same in the above diagram.
  • The mean of the distribution is equal to 0 for Î― > 1 where Î― = degrees of freedom, otherwise undefined.
  • The median and mode of the distribution is equal to 0.
  • The variance is equal to Î― / Î―-2 for Î― > 2 and ∞ for 2 < Î― â‰Ī 4 otherwise undefined.

 

Degrees of freedom refer to the number of independent observations in a set of data. When estimating a mean score or a proportion from a single sample, the number of independent observations is equal to the sample size minus one. 
Hence, the distribution of the t statistic from samples of size 10 would be described by a t distribution having 10 – 1 or 9 degrees of freedom. Similarly, a t- distribution having 15 degrees of freedom would be used with a sample of size 16. 

t-Distribution Table 

t-Distribution table gives the t-value for a different level of significance and different degrees of freedom. The calculated t-value will be compared with the tabulated t-value. For example, if one is performing a student’s t-test and for that performance, he has taken a 5% level of significance and he got or calculated t-value and he has taken his tabulated t-value and if the calculated t-value is higher than the tabulated t-value, in that case, it will say that there is a significant difference between the population mean and the sample means at 5% level of significance and if vice versa then, in that case, it will say that there is no significant difference between the population means and the sample means at 5% level of significance. 

T- Distribution table

T- Distribution table 

Difference Between T-Distribution and Normal Distribution

T-Distribution  Normal Distribution 
T-Distribution is defined by  its degree of freedom which itself depends upon the sample size   Normal distribution is defined by its mean and standard deviation
T- distribution is used when the sample size is small Normal distribution is used when we have large no data points in the dataset 
It has a heavier tail than normal distribution which means more data points are away from the mean of the distribution  Normal distribution has a lighter tail than T-distribution which means more data points lie near the mean of the distribution 
We use T-distribution in hypothesis testing when the standard variation of the population is unknown  Normal distribution is used when the standard deviation is known 
T-Distribution has a larger range of critical values as compared to the normal distribution as this distribution has heavier tails  Normal distribution has a smaller range as compared to t-distribution 

We can also use Python to implement t-distribution for hypothesis testing the article regarding this could be found here 

Don't miss your chance to ride the wave of the data revolution! Every industry is scaling new heights by tapping into the power of data. Sharpen your skills, become a part of the hottest trend in the 21st century.
Dive into the future of technology - explore the Complete Machine Learning and Data Science Program by GeeksforGeeks and stay ahead of the curve.

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 29 May, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials