about statistical-calculators.site
Please enter valid summary data above and click "Calculate".
(PDF includes text results. Screenshot captures the page section.)
Note: This calculator uses summary statistics and assumes normally distributed data. For raw data or non-normal distributions, consider using variance tests like Levene’s test and running the t-test accordingly.
The independent samples t-test is used to determine whether there is a statistically significant difference between the means of two independent groups.
This calculator uses either:
The choice between Student’s and Welch’s t-tests depends on whether the two groups are assumed to have equal variances.
F = s12 / s22.More robust tests, such as Levene’s or O’Brien’s, exist but require raw data and cannot be performed with summary statistics.
Based on the F-test p-value and chosen α-level, the calculator automatically selects:
An independent samples t-test compares the means of two independent groups. It tests the null hypothesis (H₀) that the population means are equal. A p-value below your chosen significance level (commonly α = .05) is evidence of a statistically significant difference.
To run this test from summary statistics alone, you need the mean, standard deviation, and sample size (N) for each group. When variances differ between groups, Welch's t-test is the safer choice.
The BSDA package's tsum.test() function accepts mean, SD, and N directly — no raw data needed.
install.packages("BSDA")
library(BSDA)
tsum.test(
mean.x = 72, s.x = 5.2, n.x = 30,
mean.y = 68, s.y = 6.1, n.y = 28,
var.equal = FALSE
)
Set var.equal = TRUE for Student's t-test if you're assuming equal variances; use FALSE for Welch's t-test.
SciPy's ttest_ind_from_stats() takes mean, SD, and N directly, just like R's tsum.test().
from scipy import stats
result = stats.ttest_ind_from_stats(
mean1=72, std1=5.2, nobs1=30,
mean2=68, std2=6.1, nobs2=28,
equal_var=False
)
print(result.statistic, result.pvalue)
Set equal_var=True for Student's t-test, or False for Welch's t-test (the default assumption is safer when unsure).
The point-and-click Independent-Samples T Test dialog needs raw data, but SPSS syntax can compute a t-test directly from summary statistics using the standard formula:
COMPUTE se = SQRT((sd1**2/n1) + (sd2**2/n2)).
COMPUTE t = (mean1 - mean2) / se.
COMPUTE df = ((sd1**2/n1 + sd2**2/n2)**2) /
(((sd1**2/n1)**2/(n1-1)) + ((sd2**2/n2)**2/(n2-1))).
COMPUTE p = 2*(1 - CDF.T(ABS(t), df)).
EXECUTE.
This reproduces Welch's t-test (unequal variances). If you have the raw dataset instead, use Analyze → Compare Means → Independent-Samples T Test.
JASP's Independent Samples T-Test module is built for raw observations and has no direct summary-statistics input option.
If you only have summary statistics, R's tsum.test() or Python's ttest_ind_from_stats() above are more direct routes.