Skip to content
    Greek Mathematician Mascot - Daskalos
    Mathimatikos

    60% off your first year

    Terms

    Student Pro: €35.60 for the first year instead of €89

    Teacher Pro: €75.60 for the first year instead of €189

    Code LAG60. One use per account. Renews automatically at the regular price. Cancel anytime.

    View plans

    One-sample t test

    Compare the sample mean with a hypothetical population mean and calculate p-value and degrees of freedom.

    Calculate the result

    From 2 to 10,000.

    Positive, with denominator n−1 in the variance calculation.

    t=xˉ−μ0s/n,ν=n−1

    Worked example

    Problem

    Run a two-sided t test for μ₀ = 10 using n = 16, a sample mean of 12, a sample standard deviation of 4, and α = 0.05.

    For t = 2 with 15 degrees of freedom, the two-sided p-value is approximately 0.06395.

    1. Compute t and degrees of freedom

      t=12−104/16=2,ν=15
    2. Compare the p-value with α

      p≈0.06395>0.05
    Ask AI for a step-by-step solution

    Common mistake

    Failure to reject does not prove equal means. The test assumes independent observations and an appropriate model for the mean.