Test Statistic Calculator
Calculate the test statistic from sample data using standard hypothesis testing formulas such as z, t, chi-square, or F statistics. This test statistic calculator includes t-test and t-value and converts your inputs into the standardized value.
- How many SE units the sample mean is from H₀
- Larger |t| = stronger evidence against H₀
- Sign indicates direction of difference
- Compare to critical value for significance
- Probability of this result if H₀ were true
- p ≤ α means reject H₀ (significant)
- p > α means fail to reject H₀
- Does NOT measure practical significance
Use a Z-test when the population standard deviation (σ) is known, or when n > 30. For unknown σ with small samples, use the T-Test tab.
Enter observed frequencies. Leave expected blank to assume equal distribution across all categories.
A test statistic is a numerical value calculated from sample data during a hypothesis test. It summarizes how far your observed data deviates from what you would expect under the null hypothesis (H₀), expressed in standardized units. The larger the absolute value of the test statistic, the more evidence against H₀.
Different tests use different statistics: the t-statistic for t-tests, z-statistic for z-tests, χ² for chi-square tests, and F-statistic for ANOVA. Each follows a known distribution under H₀, allowing you to compute a p-value.
- Used when population σ is unknown
- Follows Student's t-distribution
- t = (x̄ − μ₀) / (s / √n)
- More conservative than z for small samples
- Used when population σ is known or n > 30
- Follows the standard normal distribution
- z = (x̄ − μ₀) / (σ / √n)
- Converges with t-test for large samples
- Tests association between categorical variables
- χ² = Σ[(O − E)² / E]
- Always positive; df = k − 1
- Best for contingency tables, goodness-of-fit
- Probability of this result if H₀ were true
- p ≤ α means reject H₀
- p > α means fail to reject H₀
- Does NOT prove H₀ is true or false