This calculator runs a one-sample \(t\) test for a given sample data set and specified null and alternative hypotheses. Enter the data in the text area to the left. The data must be formatted with one score for each row. Alternatively, enter the sample size, the sample mean, and the sample standard deviation in the fields below.

Enter a value for the null hypothesis. This value should indicate the absence of an effect in your data. Indicate whether your alternative hypothesis involves one-tail or two-tails. If it is a one-tailed test, then you need to indicate whether it is a positive (right tail) test or a negative (left tail) test.

Enter an \(\alpha\) value for the hypothesis test. This is the Type I error rate for your hypothesis test. It also determines the confidence level \(100 \times (1-\alpha)\) for a confidence interval.

Press the Run Test button and a table summarizing the computations and conclusions will appear below.

Enter data:
Sample size \(n=\)
Sample mean \({\overline X} =\)
Sample standard deviation \(s =\)
Specify hypotheses:
\(H_0: \mu=\)
\(H_a:\)
\(\alpha=\)
Test summary
Null hypothesis \(H_0:\mu=\)
Alternative hypothesis \(H_a: \mu \)
Type I error rate \(\alpha=\)
Sample size \(n=\)
Sample mean \(\overline{X}=\)
Sample standard deviation \(s=\)
Sample standard error \(s_{\overline X}=\)
Test statistic \(t=\)
Degrees of freedom \(df=\)
\(p\) value \(p=\)
Decision
Confidence interval critical value \(t_{cv}=\)
Confidence interval CI95=