# t-statistic

In statistics, the t-statistic is the ratio of the departure of the estimated value of a parameter from its hypothesized value to its standard error. It is used in hypothesis testing via Student's t-test. The T-statistic is used in a T test to determine if you should support or reject the null hypothesis. It is very similar to the Z-score but with the difference that T-statistic is used when the sample size is small or the population standard deviation is unknown. For example, the T-statistic is used in estimating the population mean from a sampling distribution of sample means if the population standard deviation is unknown. It is also used along with p-value when running hypothesis tests where the p-value tells us what the odds are of the results to have happened.

## Definition and features

Let ${\displaystyle \scriptstyle {\widehat {\beta }}}$ be an estimator of parameter β in some statistical model. Then a t-statistic for this parameter is any quantity of the form

${\displaystyle t_{\widehat {\beta }}={\frac {{\widehat {\beta }}-\beta _{0}}{\operatorname {s.e.} ({\widehat {\beta }})}}}$

where β0 is a non-random, known constant which may or may not match the actual unknown parameter value β, and ${\displaystyle \operatorname {s.e.} ({\widehat {\beta }})}$ is the standard error of the estimator ${\displaystyle \scriptstyle {\widehat {\beta }}}$ for β.

By default, statistical packages report t-statistic with β0 = 0 (these t-statistics are used to test the significance of corresponding regressor). However, when t-statistic is needed to test the hypothesis of the form H0: β = β0, then a non-zero β0 may be used.

If ${\displaystyle \scriptstyle {\widehat {\beta }}}$ is an ordinary least squares estimator in the classical linear regression model (that is, with normally distributed and homoscedastic error terms), and if the true value of the parameter β is equal to β0, then the sampling distribution of the t-statistic is the Student's t-distribution with (n − k) degrees of freedom, where n is the number of observations, and k is the number of regressors (including the intercept)[citation needed].

In the majority of models, the estimator ${\displaystyle \scriptstyle {\widehat {\beta }}}$ is consistent for β and is distributed asymptotically normally. If the true value of the parameter β is equal to β0 and the quantity ${\displaystyle \scriptstyle \operatorname {s.e.} ({\widehat {\beta }})}$ correctly estimates the asymptotic variance of this estimator, then the t-statistic will asymptotically have the standard normal distribution.

In some models the distribution of the t-statistic is different from the normal distribution, even asymptotically. For example, when a time series with a unit root is regressed in the augmented Dickey–Fuller test, the test t-statistic will asymptotically have one of the Dickey–Fuller distributions (depending on the test setting).

## Use

Most frequently, t statistics are used in Student's t-tests, a form of statistical hypothesis testing, and in the computation of certain confidence intervals.

The key property of the t statistic is that it is a pivotal quantity – while defined in terms of the sample mean, its sampling distribution does not depend on the population parameters, and thus it can be used regardless of what these may be.

One can also divide a residual by the sample standard deviation:

${\displaystyle g(x,X)={\frac {x-{\overline {X}}}{s}}}$

to compute an estimate for the number of standard deviations a given sample is from the mean, as a sample version of a z-score, the z-score requiring the population parameters.

### Prediction

Given a normal distribution ${\displaystyle N(\mu ,\sigma ^{2})}$ with unknown mean and variance, the t-statistic of a future observation ${\displaystyle X_{n+1},}$ after one has made n observations, is an ancillary statistic – a pivotal quantity (does not depend on the values of μ and σ2) that is a statistic (computed from observations). This allows one to compute a frequentist prediction interval (a predictive confidence interval), via the following t-distribution:

${\displaystyle {\frac {X_{n+1}-{\overline {X}}_{n}}{s_{n}{\sqrt {1+n^{-1}}}}}\sim T^{n-1}}$

Solving for ${\displaystyle X_{n+1}}$ yields the prediction distribution

${\displaystyle {\overline {X}}_{n}+s_{n}{\sqrt {1+n^{-1}}}\cdot T^{n-1}}$

from which one may compute predictive confidence intervals – given a probability p, one may compute intervals such that 100p% of the time, the next observation ${\displaystyle X_{n+1}}$ will fall in that interval.

## History

The term "t-statistic" is abbreviated from "hypothesis test statistic".[citation needed] In statistics, the t-distribution was first derived as a posterior distribution in 1876 by Helmert[1][2][3] and Lüroth.[4][5][6] The t-distribution also appeared in a more general form as Pearson Type IV distribution in Karl Pearson's 1895 paper.[7] However, the T-Distribution, also known as Student's T Distribution gets its name from William Sealy Gosset who first published it in English literature in his 1908 paper titled Biometrika using his pseudonym "Student"[8][9] because his 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.[10] Gosset worked at the Guinness Brewery in Dublin, Ireland, 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. Hence a second version of the etymology of the term Student is that Guinness did not want their competitors to know that they were using the t-test to determine the quality of raw material. Although it was William Gosset after whom the term "Student" is penned, it was actually through the work of Ronald Fisher that the distribution became well known as "Student's distribution"[11][12] and "Student's t-test"

## References

1. ^ Szabó, István (2003), Einführung in die Technische Mechanik, Springer Berlin Heidelberg, pp. 196–199, doi:10.1007/978-3-642-61925-0_16, ISBN 978-3-540-13293-6 Missing or empty |title= (help); |chapter= ignored (help)
2. ^ Schlyvitch, B. (October 1937). "Untersuchungen über den anastomotischen Kanal zwischen der Arteria coeliaca und mesenterica superior und damit in Zusammenhang stehende Fragen". Zeitschrift für Anatomie und Entwicklungsgeschichte. 107 (6): 709–737. doi:10.1007/bf02118337. ISSN 0340-2061. S2CID 27311567.
3. ^ Helmert (1876). "Die Genauigkeit der Formel von Peters zur Berechnung des wahrscheinlichen Beobachtungsfehlers directer Beobachtungen gleicher Genauigkeit". Astronomische Nachrichten (in German). 88 (8–9): 113–131. Bibcode:1876AN.....88..113H. doi:10.1002/asna.18760880802.
4. ^ Lüroth, J. (1876). "Vergleichung von zwei Werthen des wahrscheinlichen Fehlers". Astronomische Nachrichten (in German). 87 (14): 209–220. Bibcode:1876AN.....87..209L. doi:10.1002/asna.18760871402.
5. ^ Pfanzagl J, Sheynin O (1996). "Studies in the history of probability and statistics. XLIV. A forerunner of the t-distribution". Biometrika. 83 (4): 891–898. doi:10.1093/biomet/83.4.891. MR 1766040.
6. ^ Sheynin, Oscar (1995). "Helmert's work in the theory of errors". Archive for History of Exact Sciences. 49 (1): 73–104. doi:10.1007/BF00374700. ISSN 0003-9519. S2CID 121241599.
7. ^ Pearson, K. (1895-01-01). "Contributions to the Mathematical Theory of Evolution. II. Skew Variation in Homogeneous Material". Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences. 186: 343–414 (374). doi:10.1098/rsta.1895.0010. ISSN 1364-503X
8. ^ "Student" [William Sealy Gosset] (1908). "The probable error of a mean" (PDF). Biometrika. 6 (1): 1–25. doi:10.1093/biomet/6.1.1. hdl:10338.dmlcz/143545. JSTOR 2331554
9. ^
10. ^ Wendl MC (2016). "Pseudonymous fame". Science. 351 (6280): 1406. doi:10.1126/science.351.6280.1406. PMID 27013722
11. ^ "Original PDF". doi:10.15438/rr.5.1.7. Cite journal requires |journal= (help)
12. ^ Walpole, Ronald E. (2006). Probability & statistics for engineers & scientists. Myers, H. Raymond. (7th ed.). New Delhi: Pearson. ISBN 81-7758-404-9. OCLC 818811849.