| Student'st | |||
|---|---|---|---|
Probability density function | |||
Cumulative distribution function | |||
| Parameters | degrees of freedom (real, almost always a positiveinteger) | ||
| Support | |||
| CDF | where is thehypergeometric function | ||
| Mean | for otherwiseundefined | ||
| Median | |||
| Mode | |||
| Variance | for for otherwiseundefined | ||
| Skewness | for otherwiseundefined | ||
| Excess kurtosis | for for otherwiseundefined | ||
| Entropy | |||
| MGF | undefined | ||
| CF | for, | ||
| Expected shortfall | where is the inverse standardized Student tCDF, and is the standardized Student tPDF.[2] | ||
Inprobability theory andstatistics,Student'st distribution (or simply thet distribution) is a continuousprobability distribution that generalizes thestandard normal distribution. Like the latter, it is symmetric around zero and bell-shaped.
However, hasheavier tails, and the amount of probability mass in the tails is controlled by the parameter. For the Student'st distribution becomes the standardCauchy distribution, which has very"fat" tails; whereas for it becomes the standard normal distribution which has very "thin" tails.
The name "Student" is a pseudonym used byWilliam Sealy Gosset in his scientific paper publications during his work at theGuinness Brewery inDublin, Ireland.
The Student'st distribution plays a role in a number of widely used statistical analyses, includingStudent'st-test for assessing thestatistical significance of the difference between two sample means, the construction ofconfidence intervals for the difference between two population means, and in linearregression analysis.
In the form of thelocation-scalet distribution it generalizes thenormal distribution and also arises in theBayesian analysis of data from a normal family as acompound distribution when marginalizing over the variance parameter.
Student'st distribution has theprobability density function (PDF) given bywhere is the number ofdegrees of freedom, and is thegamma function. This may also be written aswhere is thebeta function. In particular, for positive integer-valued degrees of freedomν > 1 we have:
The probability density function issymmetric, and its overall shape resembles the bell shape of a normally distributed variable with mean 0 and variance 1, except that it is a bit lower and wider. As the number of degrees of freedom grows, thet distribution approaches the normal distribution with mean 0 and variance 1. For this reason is also known as the normality parameter.[3]
The following images show the density of thet distribution for increasing values of The normal distribution is shown as a blue line for comparison. Note that thet distribution (red line) becomes closer to the normal distribution as increases.
Thecumulative distribution function (CDF) can be written in terms ofI, the regularizedincomplete beta function. Fort > 0 ,
where
Other values would be obtained by symmetry. An alternative formula, valid for is
where is a particular instance of thehypergeometric function.
For information on its inverse cumulative distribution function, seequantile function § Student's t-distribution.
Certain values of give a simple form for Student's t-distribution.
| CDF | notes | ||
|---|---|---|---|
| 1 | SeeCauchy distribution | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| SeeNormal distribution,Error function |
For, theraw moments of thet distribution are
Moments of order or higher do not exist.[4]
The term for,k even, may be simplified using the properties of thegamma function to
For at distribution with degrees of freedom, theexpected value is if and itsvariance is if Theskewness is 0 if and theexcess kurtosis is if
Student'st-distribution with degrees of freedom can be defined as the distribution of therandom variableT with[5][6]
where
A different distribution is defined as that of the random variable defined, for a given constant μ, byThis random variable has anoncentralt-distribution withnoncentrality parameterμ. This distribution is important in studies of thepower of Student'st-test.
SupposeX1, ...,Xn areindependent realizations of the normally-distributed, random variableX, which has an expected valueμ andvarianceσ2. Let
be the sample mean, and
be an unbiased estimate of the variance from the sample. It can be shown that the random variable
has a chi-squared distribution with degrees of freedom (byCochran's theorem).[7] It is readily shown that the quantity
is normally distributed with mean 0 and variance 1, since the sample mean is normally distributed with meanμ and varianceσ2/n. Moreover, it is possible to show that these two random variables (the normally distributed oneZ and the chi-squared-distributed oneV) are independent. Consequently[clarification needed] thepivotal quantity
which differs fromZ in that the exact standard deviationσ is replaced by the sample standard errors, has a Student'st-distribution as defined above. Notice that the unknown population varianceσ2 does not appear inT, since it was in both the numerator and the denominator, so it canceled. Gosset intuitively obtained the probability density function stated above, with equal ton − 1, and Fisher proved it in 1925.[8]
The distribution of the test statisticT depends on, but notμ orσ; the lack of dependence onμ andσ is what makes thet-distribution important in both theory and practice.
Thet distribution arises as thesampling distributionof thet statistic. Below the one-samplet statistic is discussed, for the corresponding two-samplet statistic seeStudent's t-test.
Let be independent and identically distributed samples from a normal distribution with mean and variance The sample mean and unbiasedsample variance are given by:
The resulting (one sample)t statistic is given by
and is distributed according to a Student'st distribution with degrees of freedom.
Thus for inference purposes thet statistic is a useful "pivotal quantity" in the case when the mean and variance are unknown population parameters, in the sense that thet statistic has then a probability distribution that depends on neither nor
Instead of the unbiased estimate we may also use the maximum likelihood estimateyielding the statisticThis is distributed according to the location-scalet distribution:
The location-scalet distribution results fromcompounding aGaussian distribution (normal distribution) withmean and unknownvariance, with aninverse gamma distribution placed over the variance with parameters and In other words, therandom variableX is assumed to have a Gaussian distribution with an unknown variance distributed as inverse gamma, and then the variance ismarginalized out (integrated out).
Equivalently, this distribution results from compounding a Gaussian distribution with ascaled-inverse-chi-squared distribution with parameters and The scaled-inverse-chi-squared distribution is exactly the same distribution as the inverse gamma distribution, but with a different parameterization, i.e.
The reason for the usefulness of this characterization is that inBayesian statistics the inverse gamma distribution is theconjugate prior distribution of the variance of a Gaussian distribution. As a result, the location-scalet distribution arises naturally in many Bayesian inference problems.[9]
Student'st distribution is themaximum entropy probability distribution for a random variateX having a certain value of.[10][clarification needed][better source needed]This follows immediately from the observation that the pdf can be written inexponential family form with as sufficient statistic.
The functionA(t |ν) is the integral of Student's probability density function,f(t) between -t andt, fort ≥ 0 . It thus gives the probability that a value oft less than that calculated from observed data would occur by chance. Therefore, the functionA(t |ν) can be used when testing whether the difference between the means of two sets of data is statistically significant, by calculating the corresponding value oft and the probability of its occurrence if the two sets of data were drawn from the same population. This is used in a variety of situations, particularly int tests. For the statistict, withν degrees of freedom,A(t |ν) is the probability thatt would be less than the observed value if the two means were the same (provided that the smaller mean is subtracted from the larger, so thatt ≥ 0 ). It can be easily calculated from thecumulative distribution functionFν(t) of thet distribution:
whereIx(a,b) is the regularizedincomplete beta function.
For statistical hypothesis testing this function is used to construct thep-value.
Student'st distribution generalizes to the three parameterlocation-scalet distribution by introducing alocation parameter and ascale parameter Withandlocation-scale family transformationwe get
The resulting distribution is also called thenon-standardized Student'st distribution.
The location-scalet distribution has a density defined by:[13]
Equivalently, the density can be written in terms of:
Other properties of this version of the distribution are:[13]
Student'st distribution arises in a variety of statistical estimation problems where the goal is to estimate an unknown parameter, such as a mean value, in a setting where the data are observed with additiveerrors. If (as in nearly all practical statistical work) the populationstandard deviation of these errors is unknown and has to be estimated from the data, thet distribution is often used to account for the extra uncertainty that results from this estimation. In most such problems, if the standard deviation of the errors were known, a normal distribution would be used instead of thet distribution.
Confidence intervals andhypothesis tests are two statistical procedures in which thequantiles of the sampling distribution of a particular statistic (e.g. thestandard score) are required. In any situation where this statistic is alinear function of thedata, divided by the usual estimate of the standard deviation, the resulting quantity can be rescaled and centered to follow Student'st distribution. Statistical analyses involving means, weighted means, and regression coefficients all lead to statistics having this form.
Quite often, textbook problems will treat the population standard deviation as if it were known and thereby avoid the need to use the Student'st distribution. These problems are generally of two kinds: (1) those in which the sample size is so large that one may treat a data-based estimate of thevariance as if it were certain, and (2) those that illustrate mathematical reasoning, in which the problem of estimating the standard deviation is temporarily ignored because that is not the point that the author or instructor is then explaining.
A number of statistics can be shown to havet distributions for samples of moderate size undernull hypotheses that are of interest, so that thet distribution forms the basis for significance tests. For example, the distribution ofSpearman's rank correlation coefficientρ, in the null case (zero correlation) is well approximated by thet distribution for sample sizes above about 20.[citation needed]
Suppose the numberA is so chosen that
whenT has at distribution withn − 1 degrees of freedom. By symmetry, this is the same as saying thatA satisfies
soA is the "95th percentile" of this probability distribution, or Then
whereSn is the sample standard deviation of the observed values. This is equivalent to
Therefore, the interval whose endpoints are
is a 90%confidence interval for μ. Therefore, if we find the mean of a set of observations that we can reasonably expect to have a normal distribution, we can use thet distribution to examine whether the confidence limits on that mean include some theoretically predicted value – such as the value predicted on anull hypothesis.
It is this result that is used in theStudent'st tests: since the difference between the means of samples from two normal distributions is itself distributed normally, thet distribution can be used to examine whether that difference can reasonably be supposed to be zero.
If the data are normally distributed, the one-sided(1 −α) upper confidence limit (UCL) of the mean, can be calculated using the following equation:
The resulting UCL will be the greatest average value that will occur for a given confidence interval and population size. In other words, being the mean of the set of observations, the probability that the mean of the distribution is inferior toUCL1 −α is equal to the confidencelevel1 −α .
Thet distribution can be used to construct aprediction interval for an unobserved sample from a normal distribution with unknown mean and variance.
The Student'st distribution, especially in its three-parameter (location-scale) version, arises frequently inBayesian statistics as a result of its connection with the normal distribution. Whenever thevariance of a normally distributedrandom variable is unknown and aconjugate prior placed over it that follows aninverse gamma distribution, the resultingmarginal distribution of the variable will follow a Student'st distribution. Equivalent constructions with the same results involve a conjugatescaled-inverse-chi-squared distribution over the variance, or a conjugate gamma distribution over theprecision. If animproper prior proportional to1/ σ² is placed over the variance, thet distribution also arises. This is the case regardless of whether the mean of the normally distributed variable is known, is unknown distributed according to aconjugate normally distributed prior, or is unknown distributed according to an improper constant prior.
Related situations that also produce at distribution are:
Thet distribution is often used as an alternative to the normal distribution as a model for data, which often has heavier tails than the normal distribution allows for; see e.g. Lange et al.[14] The classical approach was to identifyoutliers (e.g., usingGrubbs's test) and exclude or downweight them in some way. However, it is not always easy to identify outliers (especially inhigh dimensions), and thet distribution is a natural choice of model for such data and provides a parametric approach torobust statistics.
A Bayesian account can be found in Gelman et al.[15] The degrees of freedom parameter controls the kurtosis of the distribution and is correlated with the scale parameter. The likelihood can have multiple local maxima and, as such, it is often necessary to fix the degrees of freedom at a fairly low value and estimate the other parameters taking this as given. Some authors[citation needed] report that values between 3 and 9 are often good choices. Venables and Ripley[citation needed] suggest that a value of 5 is often a good choice.
For practicalregression andprediction needs, Student'st processes were introduced, that are generalisations of the Studentt distributions for functions. A Student'st process is constructed from the Studentt distributions like aGaussian process is constructed from theGaussian distributions. For aGaussian process, all sets of values have a multidimensional Gaussian distribution. Analogously, is a Studentt process on an interval if the correspondent values of the process () have a jointmultivariate Studentt distribution.[16] These processes are used for regression, prediction, Bayesian optimization and related problems. For multivariate regression and multi-output prediction, the multivariate Studentt processes are introduced and used.[17]
The following table lists values fort distributions withν degrees of freedom for a range of one-sided or two-sided critical regions. The first column isν, the percentages along the top are confidence levels and the numbers in the body of the table are the factors described in the section onconfidence intervals.
The last row with infiniteν gives critical points for a normal distribution since at distribution with infinitely many degrees of freedom is a normal distribution. (SeeRelated distributions above).
| One-sided | 75% | 80% | 85% | 90% | 95% | 97.5% | 99% | 99.5% | 99.75% | 99.9% | 99.95% |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Two-sided | 50% | 60% | 70% | 80% | 90% | 95% | 98% | 99% | 99.5% | 99.8% | 99.9% |
| 1 | 1.000 | 1.376 | 1.963 | 3.078 | 6.314 | 12.706 | 31.821 | 63.657 | 127.321 | 318.309 | 636.619 |
| 2 | 0.816 | 1.061 | 1.386 | 1.886 | 2.920 | 4.303 | 6.965 | 9.925 | 14.089 | 22.327 | 31.599 |
| 3 | 0.765 | 0.978 | 1.250 | 1.638 | 2.353 | 3.182 | 4.541 | 5.841 | 7.453 | 10.215 | 12.924 |
| 4 | 0.741 | 0.941 | 1.190 | 1.533 | 2.132 | 2.776 | 3.747 | 4.604 | 5.598 | 7.173 | 8.610 |
| 5 | 0.727 | 0.920 | 1.156 | 1.476 | 2.015 | 2.571 | 3.365 | 4.032 | 4.773 | 5.893 | 6.869 |
| 6 | 0.718 | 0.906 | 1.134 | 1.440 | 1.943 | 2.447 | 3.143 | 3.707 | 4.317 | 5.208 | 5.959 |
| 7 | 0.711 | 0.896 | 1.119 | 1.415 | 1.895 | 2.365 | 2.998 | 3.499 | 4.029 | 4.785 | 5.408 |
| 8 | 0.706 | 0.889 | 1.108 | 1.397 | 1.860 | 2.306 | 2.896 | 3.355 | 3.833 | 4.501 | 5.041 |
| 9 | 0.703 | 0.883 | 1.100 | 1.383 | 1.833 | 2.262 | 2.821 | 3.250 | 3.690 | 4.297 | 4.781 |
| 10 | 0.700 | 0.879 | 1.093 | 1.372 | 1.812 | 2.228 | 2.764 | 3.169 | 3.581 | 4.144 | 4.587 |
| 11 | 0.697 | 0.876 | 1.088 | 1.363 | 1.796 | 2.201 | 2.718 | 3.106 | 3.497 | 4.025 | 4.437 |
| 12 | 0.695 | 0.873 | 1.083 | 1.356 | 1.782 | 2.179 | 2.681 | 3.055 | 3.428 | 3.930 | 4.318 |
| 13 | 0.694 | 0.870 | 1.079 | 1.350 | 1.771 | 2.160 | 2.650 | 3.012 | 3.372 | 3.852 | 4.221 |
| 14 | 0.692 | 0.868 | 1.076 | 1.345 | 1.761 | 2.145 | 2.624 | 2.977 | 3.326 | 3.787 | 4.140 |
| 15 | 0.691 | 0.866 | 1.074 | 1.341 | 1.753 | 2.131 | 2.602 | 2.947 | 3.286 | 3.733 | 4.073 |
| 16 | 0.690 | 0.865 | 1.071 | 1.337 | 1.746 | 2.120 | 2.583 | 2.921 | 3.252 | 3.686 | 4.015 |
| 17 | 0.689 | 0.863 | 1.069 | 1.333 | 1.740 | 2.110 | 2.567 | 2.898 | 3.222 | 3.646 | 3.965 |
| 18 | 0.688 | 0.862 | 1.067 | 1.330 | 1.734 | 2.101 | 2.552 | 2.878 | 3.197 | 3.610 | 3.922 |
| 19 | 0.688 | 0.861 | 1.066 | 1.328 | 1.729 | 2.093 | 2.539 | 2.861 | 3.174 | 3.579 | 3.883 |
| 20 | 0.687 | 0.860 | 1.064 | 1.325 | 1.725 | 2.086 | 2.528 | 2.845 | 3.153 | 3.552 | 3.850 |
| 21 | 0.686 | 0.859 | 1.063 | 1.323 | 1.721 | 2.080 | 2.518 | 2.831 | 3.135 | 3.527 | 3.819 |
| 22 | 0.686 | 0.858 | 1.061 | 1.321 | 1.717 | 2.074 | 2.508 | 2.819 | 3.119 | 3.505 | 3.792 |
| 23 | 0.685 | 0.858 | 1.060 | 1.319 | 1.714 | 2.069 | 2.500 | 2.807 | 3.104 | 3.485 | 3.767 |
| 24 | 0.685 | 0.857 | 1.059 | 1.318 | 1.711 | 2.064 | 2.492 | 2.797 | 3.091 | 3.467 | 3.745 |
| 25 | 0.684 | 0.856 | 1.058 | 1.316 | 1.708 | 2.060 | 2.485 | 2.787 | 3.078 | 3.450 | 3.725 |
| 26 | 0.684 | 0.856 | 1.058 | 1.315 | 1.706 | 2.056 | 2.479 | 2.779 | 3.067 | 3.435 | 3.707 |
| 27 | 0.684 | 0.855 | 1.057 | 1.314 | 1.703 | 2.052 | 2.473 | 2.771 | 3.057 | 3.421 | 3.690 |
| 28 | 0.683 | 0.855 | 1.056 | 1.313 | 1.701 | 2.048 | 2.467 | 2.763 | 3.047 | 3.408 | 3.674 |
| 29 | 0.683 | 0.854 | 1.055 | 1.311 | 1.699 | 2.045 | 2.462 | 2.756 | 3.038 | 3.396 | 3.659 |
| 30 | 0.683 | 0.854 | 1.055 | 1.310 | 1.697 | 2.042 | 2.457 | 2.750 | 3.030 | 3.385 | 3.646 |
| 40 | 0.681 | 0.851 | 1.050 | 1.303 | 1.684 | 2.021 | 2.423 | 2.704 | 2.971 | 3.307 | 3.551 |
| 50 | 0.679 | 0.849 | 1.047 | 1.299 | 1.676 | 2.009 | 2.403 | 2.678 | 2.937 | 3.261 | 3.496 |
| 60 | 0.679 | 0.848 | 1.045 | 1.296 | 1.671 | 2.000 | 2.390 | 2.660 | 2.915 | 3.232 | 3.460 |
| 80 | 0.678 | 0.846 | 1.043 | 1.292 | 1.664 | 1.990 | 2.374 | 2.639 | 2.887 | 3.195 | 3.416 |
| 100 | 0.677 | 0.845 | 1.042 | 1.290 | 1.660 | 1.984 | 2.364 | 2.626 | 2.871 | 3.174 | 3.390 |
| 120 | 0.677 | 0.845 | 1.041 | 1.289 | 1.658 | 1.980 | 2.358 | 2.617 | 2.860 | 3.160 | 3.373 |
| ∞ | 0.674 | 0.842 | 1.036 | 1.282 | 1.645 | 1.960 | 2.326 | 2.576 | 2.807 | 3.090 | 3.291 |
| One-sided | 75% | 80% | 85% | 90% | 95% | 97.5% | 99% | 99.5% | 99.75% | 99.9% | 99.95% |
| Two-sided | 50% | 60% | 70% | 80% | 90% | 95% | 98% | 99% | 99.5% | 99.8% | 99.9% |
Let's say we have a sample with size 11, sample mean 10, and sample variance 2. For 90% confidence with 10 degrees of freedom, the one-sidedt value from the table is 1.372 . Then with confidence interval calculated from
we determine that with 90% confidence we have a true mean lying below
In other words, 90% of the times that an upper threshold is calculated by this method from particular samples, this upper threshold exceeds the true mean.
And with 90% confidence we have a true mean lying above
In other words, 90% of the times that a lower threshold is calculated by this method from particular samples, this lower threshold lies below the true mean.
So that at 80% confidence (calculated from 100% − 2 × (1 − 90%) = 80%), we have a true mean lying within the interval
Saying that 80% of the times that upper and lower thresholds are calculated by this method from a given sample, the true mean is both below the upper threshold and above the lower threshold is not the same as saying that there is an 80% probability that the true mean lies between a particular pair of upper and lower thresholds that have been calculated by this method; seeconfidence interval andprosecutor's fallacy.
Nowadays, statistical software, such as theR programming language, and functions available in manyspreadsheet programs compute values of thet distribution and its inverse without tables.
There are various approaches to constructing random samples from the Student'st distribution. The matter depends on whether the samples are required on a stand-alone basis, or are to be constructed by application of aquantile function touniform samples; e.g., in the multi-dimensional applications basis ofcopula-dependency.[citation needed] In the case of stand-alone sampling, an extension of theBox–Muller method and itspolar form is easily deployed.[18] It has the merit that it applies equally well to all real positivedegrees of freedom,ν, while many other candidate methods fail ifν is close to zero.[18]

In statistics, thet distribution was first derived as aposterior distribution in 1876 byHelmert[19][20][21] andLüroth.[22][23][24] As such, Student's t-distribution is an example ofStigler's Law of Eponymy. Thet distribution also appeared in a more general form asPearson type IV distribution inKarl Pearson's 1895 paper.[25]
In the English-language literature, the distribution takes its name fromWilliam Sealy Gosset's 1908 paper inBiometrika under the pseudonym "Student" during his work at theGuinness Brewery inDublin, Ireland.[26] One version of the origin of the pseudonym is that Gosset's employer preferred staff to use pen names when publishing scientific papers instead of their real name, so he used the name "Student" to hide his identity. Another version is that Guinness did not want their competitors to know that they were using thet test to determine the quality of raw material.[27][28]
Gosset worked at Guinness and was interested in the problems of small samples – for example, the chemical properties of barley where sample sizes might be as few as 3. Gosset's paper refers to the distribution as the "frequency distribution of standard deviations of samples drawn from a normal population". It became well known through the work ofRonald Fisher, who called the distribution "Student's distribution" and represented the test value with the lettert.[8][29]
{{cite book}}: CS1 maint: postscript (link){{cite journal}}: CS1 maint: numeric names: authors list (link)