# Statistics – Student T Test

T-test is small sample test. It was developed by William Gosset in 1908. He published this test under the pen name of “Student”. Therefore, it is known as Student’s t-test. For applying t-test, the value of t-statistic is computed. For this, the following formula is used:

## Formula

t=Deviation from the population parameterStandard Error of the sample statistict=Deviation from the population parameterStandard Error of the sample statistic

Where −

·        tt = Test of Hypothesis.

## Formula

t=X¯−μS.n−−√,where S=∑(X−X¯)2n−1−−−−−−−√t=X¯−μS.n,where S=∑(X−X¯)2n−1

### Example

Problem Statement:

An irregular sample of 9 qualities from an ordinary populace demonstrated a mean of 41.5 inches and the entirety of square of deviation from this mean equivalent to 72 inches. Show whether the supposition of mean of 44.5 inches in the populace is reasonable.(For v=8, t.05=2.776v=8, t.05=2.776)

Solution:

x¯=45.5,μ=44.5,n=9,∑(X−X¯)2=72x¯=45.5,μ=44.5,n=9,∑(X−X¯)2=72

Let us take the null hypothesis that the population mean is 44.5.

i.e.H0:μ=44.5 and H1:μ≠44.5, S=∑(X−X¯)2n−1−−−−−−−√, =729−1−−−√=728−−√=9–√=3i.e.H0:μ=44.5 and H1:μ≠44.5, S=∑(X−X¯)2n−1, =729−1=728=9=3

Applying t-test:

|t|=X¯−μS.n−−√, |t|=|41.5−44.5|3×9–√, =3|t|=X¯−μS.n, |t|=|41.5−44.5|3×9, =3

Degrees of freedom = v=n−1=9−1=8v=n−1=9−1=8. For v=8,t0.05v=8,t0.05 for two tailed test = 2.3062.306. Since, the calculated value of |t||t| > the table value of tt, we reject the null hypothesis. We conclude that the population mean is not equal to 44.5.