Null value and estimated standard error
μ0 is the population mean asserted under H0. s is sample standard deviation using denominator n−1.[1]
The statistic can be calculated algebraically from finite summary values. For independent identically normal observations with positive population variance, it has exactly a t distribution with n−1 degrees of freedom when H0 is true. Normality concerns individual observations rather than a bell curve constructed after seeing one sample. Nonnormal data require a separate approximation justification.[1][3]
x̄, μ0 and s share the same unit and n is a pure count, so the quotient is dimensionless. With s=0 this standardization is undefined: neither 0/0 nor a deviation divided by zero gives an ordinary finite t statistic. Specify the null hypothesis and a one- or two-sided alternative before making a data-dependent decision.[1]
Why a t distribution appears
Under H0 and iid normal assumptions Z and V are independent. This special independence does not hold for arbitrary distributions.[3]
Replacing unknown population spread by a random estimated spread makes the ratio different from a standard-normal variable.[3][4]
A p value is the probability under H0 of an at least as extreme result in the prespecified direction. It is not the probability that H0 is true. Nonrejection also does not demonstrate practical equivalence; that needs an appropriate equivalence objective and a separate procedure. The calculator deliberately returns statistic, standard error or degrees of freedom rather than an automatic p value.[1]
One statistic and different prespecified questions
Two possible questions for a positive deviation
- Given
- An iid normal sample has n=25, x̄=12, s=5 and H0 asserts μ0=10. Compare two explicitly different alternatives, each specified in advance, at α=0.05.
- Find
- Calculate t and compare the two-sided and upper one-sided cutoffs.
First state the general setup for the supplied quantities, then substitute the particular numbers.
Find standard error and degrees of freedom.
Standardize the signed difference.
Compare the appropriate table quantiles.
Result: The two-sided 5% test does not reject H0; a prespecified upper one-sided test does.
Check: The approximate 95% t interval is 12±2.064=[9.936,14.064], containing ten and agreeing with the two-sided decision. Direction must not be selected after seeing the result to obtain a preferred decision.
A negative difference in mg
- Given
- n=9, x̄=97 mg, s=6 mg and μ0=100 mg. The prespecified alternative is μ<100 mg at α=0.05.
- Find
- Calculate the statistic and use the lower cutoff.
First state the general setup for the supplied quantities, then substitute the particular numbers.
Find standard error on the measurement scale.
Divide the negative difference by positive standard error.
Use symmetry for the lower critical cutoff.
Result: H0 is not rejected by this lower one-sided 5% rule.
Check: Reverse check: μ0+t·SE=100+(−1.5)·2=97 mg. The negative sign agrees with the lower sample mean. Nonrejection does not prove the true mean equals exactly 100 mg.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five exercises on standardization and decisions
Calculate · Foundation
n=16, x̄=8, μ0=6 and s=4. Find t and df.
Show hint
SE=4/√16.
Learning goal: Form statistic and degrees of freedom from summaries.
Show solution and calculation
SE=1, t=(8−6)/1=2 and df=15.
With the supplied two-sided 5% cutoff 2.131, |2| is smaller and H0 is not rejected.
The statistic itself is unchanged by the alternative later considered.
Rearrange · Application
μ0=20, t=−2, s=3 and n=36. Find x̄.
Show hint
x̄=μ0+t s/√n.
Learning goal: Recover the observed mean symbolically.
Show solution and calculation
SE=3/6=0.5. x̄=20+(−2)·0.5=19.
Check: (19−20)/0.5=−2. This is a separate manual rearrangement, not a promised general inverse-calculator mode.
Error analysis · Application
n=25, x̄=12, μ0=10 and s2=25. Someone obtains t=0.4. Find the error.
Show hint
The denominator uses s, not s2.
Learning goal: Convert variance to s before using it.
Show solution and calculation
s=5, so SE=5/5=1 and t=2.
The incorrect denominator 25/5=5 gives 0.4.
Substituting variance for standard deviation would also break the units.
Interpret · Application
For t=2 at df=2 or df=100, is the two-sided 5% decision the same?
Show hint
The table cutoffs are approximately 4.303 and 1.984.
Learning goal: Compare the same t value at different degrees of freedom.
Show solution and calculation
At df=2, |2| is below 4.303, so do not reject.
At df=100 it exceeds 1.984, so reject.
The same numeric statistic does not imply the same p value or decision under different null distributions.
Transfer · Challenge
Every observation and μ0 is multiplied by 1000. How does t change?
Show hint
s is multiplied by 1000 as well.
Learning goal: Check a shared positive unit conversion.
Show solution and calculation
The mean difference and standard error are both multiplied by 1000.
The factor cancels, leaving t unchanged, with df still n−1.
A correct shared unit conversion must not change the test decision.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Calculate the statistic and choose the distribution deliberately
The calculator accepts mean, null value, positive sample standard deviation and integer sample size from 2 to one billion. It has separate targets for t, standard error and df. Products, differences and the root are combined so an underflowing intermediate does not prematurely destroy a representable final result. There is no hidden p value, automatic alternative selection or unverified significance claim.
Sample variance supplies s2 from data. A Confidence interval for the mean corresponds to the two-sided t test under the same model and level. The Normal distribution is the known-sigma reference; it does not replace the finite-sample t distribution merely by renaming the statistic.
Sources for this explanation
Quanta · Updated November 1, 2026
- NIST Engineering Statistics Handbook §1.3.5.2: mean confidence limits, one-sample t statistic and test directions
- NIST Engineering Statistics Handbook §1.3.6.7.2: left-cumulative t critical values
- UC Berkeley Stat135, Confidence Intervals for the Population Mean: iid normal theorem3 and pivotal construction
- NIST Engineering Statistics Handbook §1.3.6.6.4: Student t distribution and degrees-of-freedom limits
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Authored a full German-English article with an original explanation, two worked examples and five varied exercises.
Cite this reference page
Quanta. One-Sample t Statistic. Updated November 1, 2026. https://quanta-study.de/en/formula-sheet/t-test-statistik-einstichprobe
When citing a specific scientific statement, also cite the specialist source linked to that statement.