Loading…

Hypothesis Tests About μ, σ Not Known, the P Value Approach

Statistics • Hypothesis Tests About the Mean and Proportion

View all topics

Hypothesis Tests About μ: σ Not Known (t Test — p-value approach)

Enter a hypothesized mean μ0, choose the tail and α, and provide sample data (summary or raw/CSV). The calculator computes the t statistic, df, and the p-value, then gives the decision.

Because σ is unknown, the test statistic uses s and follows a t distribution with df = n − 1 (under standard conditions).

Quick reference: signs and tails
Tail H0 H1 p-value idea
Two-tailed μ = μ0 μ ≠ μ0 2 · area beyond |t| in both tails
Left-tailed μ = μ0 (or μ ≥ μ0) μ < μ0 area to the left of t
Right-tailed μ = μ0 (or μ ≤ μ0) μ > μ0 area to the right of t

Decision rule (p-value approach): reject H0 if p-value ≤ α; otherwise do not reject H0.

Ready

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a one-sample t test and when is it used?

A one-sample t test checks whether a population mean differs from a hypothesized value mu0 when the population standard deviation sigma is unknown. It uses the sample standard deviation s and a t distribution with df = n - 1 under standard conditions.

How is the t test statistic calculated when sigma is not known?

The calculator uses t = (xbar - mu0) / (s / sqrt(n)). The denominator s / sqrt(n) is the estimated standard error of the sample mean.

How do I choose between two-tailed, left-tailed, and right-tailed tests?

Use two-tailed when you are testing for a difference (mu != mu0), left-tailed when you suspect the mean is smaller (mu < mu0), and right-tailed when you suspect the mean is larger (mu > mu0). The tail choice determines which t tail area is used for the p-value.

What is the decision rule in the p-value approach?

Reject H0 if p-value <= alpha; otherwise, do not reject H0. A smaller alpha makes rejection harder because it requires stronger evidence (a smaller p-value).

How does entering raw sample data change the calculation?

When you paste or upload sample values, the calculator first computes n, xbar, and s from your data and then runs the t test using those computed statistics. This helps prevent manual summary mistakes when working from a dataset.