Teste t (1 amostra)

t = (x̄ - μ₀)/(s/√n).
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Estatística t
1,6667

Formula

t = (x̄ - μ₀)/(s/√n)

About this calculator

The one-sample t-test compares a sample mean to a known population value to assess statistical significance. It calculates a t-statistic using the formula t = (x̄ - μ₀)/(s/√n), where x̄ is the sample mean, μ₀ is the hypothesized value, s is the sample standard deviation, and n is the sample size. This t-value is then compared to a t-distribution to determine significance.

This test is particularly useful when the population standard deviation is unknown and the sample size is small (typically n < 30). The t-distribution accounts for the additional uncertainty in small samples by having heavier tails than the normal distribution. The formula adjusts for sample variability and size to quantify the observed difference.

Key assumptions include: 1) Random and representative sampling; 2) Normality of the data distribution, especially critical for small samples; 3) For large samples (n ≥ 30), the z-test may be more appropriate due to the Central Limit Theorem. Normality checks are recommended before applying the test.

If data violates normality assumptions, non-parametric alternatives like the Wilcoxon signed-rank test can be used. The test output includes a p-value indicating the probability of observing the data under the null hypothesis. A low p-value (< 0.05) typically rejects the null hypothesis.

Frequently asked questions

What is the one-sample t-test used for?

It determines if a sample mean significantly differs from a theoretical value, accounting for sample variability and size.

When should I use the t-test instead of the z-test?

Use the t-test when the population variance is unknown and the sample size is less than 30 observations.

What if my sample isn't normally distributed?

Non-normality in small samples can invalidate the test. Use non-parametric methods in such cases.

How do I interpret the p-value?

A low p-value (< 0.05) indicates the difference between the sample mean and theoretical value is statistically significant.

Can I use the t-test with large samples?

For n ≥ 30, the z-test is preferred, but the t-test remains valid and provides similar results.

Other t-Dist calculators