Starlight Tools

BioStats Quick Calculator — Welch's t-test, Chi-square, One-way ANOVA

Paste one number per line for numerical tests (t-test/ANOVA). For chi-square, paste counts per category. Everything runs locally in your browser.

Data & Test Selection

Synthetic examples for understanding the data structure (not verified paste-ready input): Two independent groups: control plant heights in cm are 10, 12, 11, 13, 14; treatment plant heights are 13, 15, 14, 16, 17. Each value represents a different plant. Three-group ANOVA: plant heights in cm under fertilizer A are 10, 12, 11, 13; under B, 13, 15, 14, 16; under C, 16, 18, 17, 19. Each plant belongs to only one group. A 2×3 count table: rows represent control and treatment; columns represent low, medium and high growth categories. Control counts are 12, 18, 10; treatment counts are 8, 16, 16, in the same category order. Each plant contributes to one cell. These are counts of plants, not percentages or measured heights. Follow the maintained interface's group-entry and separator instructions.

Results

Chart visualization will appear here.

Detailed Results Table

MetricValue

Run a calculation to see the summary, chart placeholder, and table here.

Understanding Common BioStats Tests

Release Updates

v1.1 (April 1, 2026)

  • Added a Welch vs Student method selector for two-sample t-tests, with Welch's t-test set as the default.
  • Expanded results with 95% confidence intervals, Hedges' g, Cramer's V, and eta-squared effect sizes.
  • Added richer descriptive summaries and stronger data-quality checks, including invalid-number detection and chi-square expected-count diagnostics.

Choosing the right statistical test is crucial for drawing valid conclusions from your biological data. Here's a brief overview of the tests available in this calculator:

t-test

t = (x̄₁ - x̄₂) / SE
Student SE = s_p * sqrt(1/n₁ + 1/n₂)
Welch SE = sqrt(s₁²/n₁ + s₂²/n₂)

Here x̄₁ and x̄₂ are sample means, n₁ and n₂ are sample sizes, s₁² and s₂² are sample variances, and SE is the standard error of the mean difference. The pooled standard deviation s_p combines the sample variances under Student's equal-variance assumption. Student's test uses n₁ + n₂ − 2 degrees of freedom; Welch's test uses approximate degrees of freedom based on the sample sizes and variances. Welch's test does not require equal population variances. Hedges' g expresses a mean difference in standard-deviation units with a correction for small-sample bias; it describes effect magnitude rather than statistical significance.

Chi-square

χ² = Σ (O - E)² / E
E = (row total * column total) / grand total
V = sqrt(χ² / (N * min(r-1, c-1)))

For a contingency table, O is an observed cell count and E is its expected count under independence; the sum runs over all cells. N is the grand total, and r and c are the numbers of rows and columns. The test uses (r − 1)(c − 1) degrees of freedom. The calculator reports the test statistic and Cramer's V, which summarizes the strength of association between the categorical variables without giving a direction or establishing causation.

One-way ANOVA

F = MS_between / MS_within
MS = SS / df
η² = SS_between / SS_total

ANOVA tests the null hypothesis that all group population means are equal. SS denotes a sum of squared deviations: SS_between describes variation of group means around the overall mean, weighted by group sizes; SS_within describes variation of observations around their group means; SS_total is their sum. MS is a sum of squares divided by its degrees of freedom (df). With k groups and N observations, the between-group and within-group degrees of freedom are k − 1 and N − k. Eta-squared (η²) is the proportion of observed total variation accounted for by group membership; it does not establish causation.

Two-sample t-tests

The t-test is used to compare the means of two groups. Use Welch's t-test when group variances may differ, and use the classic Student's t-test only when equal-variance assumptions are reasonable.

  • Assumptions: Observations should be independent within and between groups: paired measurements, repeated measurements on the same subject and clustered observations require an analysis that accounts for their dependence. Approximate normality within each group matters especially with small samples; strong skew and outliers warrant scrutiny. Welch's test allows unequal population variances, whereas the pooled Student's test assumes equal population variances.
  • Input: Two sets of numerical data.
  • Output: t-statistic, degrees of freedom, p-value, confidence interval, and effect size.

Chi-square Test (χ²)

The contingency-table chi-square test described here assesses association between two categorical variables by comparing observed cell counts with expected counts under independence. For example, rows might identify treatment groups and columns might identify outcome categories. A chi-square goodness-of-fit test instead compares counts for one categorical variable with prespecified proportions, such as Mendelian ratios. That is a separate analysis and is not established as a feature of this calculator.

  • Assumptions: Use counts of independent observations in mutually exclusive categories, not percentages or ratios. Each observation should contribute to one cell. Small expected counts can make the chi-square approximation unreliable; the error is not necessarily in one direction. Review the expected-count diagnostics and use guidance appropriate to the table and study design before interpreting the approximate p-value.
  • Input: Observed frequencies organized in a contingency table (e.g., enter counts per category for each group).
  • Output: Chi-square statistic, degrees of freedom, p-value, expected-count diagnostics, and Cramer's V.

One-way ANOVA (Analysis of Variance)

Use one-way ANOVA here to compare the means of three or more independent groups. A statistically significant result provides evidence against the hypothesis that all population means are equal, but does not identify which groups differ or establish practical importance. Post-hoc comparisons and appropriate multiple-testing corrections require separate analysis and are not included in this calculator.

  • Assumptions: Classical one-way ANOVA assumes independent observations, approximately normal distributions within groups and equal population variances. Paired, repeated or clustered observations require an analysis that accounts for their dependence. The availability of Welch's two-sample t-test does not imply that this ANOVA allows unequal variances.
  • Input: Three or more sets of numerical data.
  • Output: F-statistic, degrees of freedom, p-value, group summaries, and eta-squared effect size.

P-value Interpretation: A p-value is the probability, under the null hypothesis and the test's model assumptions, of obtaining a test statistic at least as extreme as the one observed. It is not the probability that the null hypothesis is true or that chance caused the result. A result is called statistically significant when its p-value falls below a chosen significance threshold, commonly 0.05; choose that threshold before examining the results. Significance does not establish practical importance, and a nonsignificant result does not establish equivalence. When reporting results, include the test and method, group sizes, descriptive summaries, test statistic, degrees of freedom, p-value and applicable effect size: Hedges' g for the two-sample comparison, Cramer's V for contingency-table association or eta-squared for ANOVA. If a confidence interval is reported, identify its parameter and confidence level from the output. Include relevant assumption concerns, and document sidedness and subtraction order only when confirmed by the implementation.

FAQ

Do my data leave my device?

The calculator is described as performing calculations in your browser. Client-side calculation alone does not establish whether entered datasets are transmitted or stored, or describe other site network activity. Dataset handling needs verification before a no-upload or no-server-storage assurance can be made.

What assumptions do these tests require?

The independent-group t-tests and classical one-way ANOVA require independent observations and approximate normality within groups, especially for small samples. Welch's t-test allows unequal population variances; the pooled Student's t-test and classical one-way ANOVA assume equal population variances. Paired, repeated or clustered observations require a different analysis that accounts for dependence. Contingency-table chi-square requires counts of independent observations in mutually exclusive categories and expected counts adequate for its approximation. Check assumptions before drawing conclusions.

Does this include post-hoc tests or effect sizes?

This calculator now includes core effect sizes for its built-in tests, but post-hoc comparisons and multiple-testing corrections should still be calculated separately.

Is this medical advice?

No. This tool is for education/research support only and does not replace professional statistical or medical guidance.

5 Fun Facts about Quick Biostats

Student was a brewer

The “Student” in Student’s t-test was William Gosset, a Guinness brewer who published under a pen name to protect the brewery’s trade secrets.

Pub origin

Chi-square hates tiny boxes

Small expected counts can make the chi-square approximation unreliable; they do not consistently inflate p-values. Do not merge categories solely to meet a numerical rule: any grouping needs substantive justification and changes the question being tested. Exact or simulation-based alternatives require a separate analysis suited to the table and study design; they are not established as built-in calculator features.

Assumption check

ANOVA = regression in disguise

One-way ANOVA and dummy-coded linear regression produce the same F-statistic and p-value—they’re two views of the same model.

Model twins

Shuffle to sanity-check

A permutation test compares the observed statistic with statistics obtained under rearrangements permitted by the null hypothesis and study design. Unrestricted shuffling of group labels requires exchangeability under the null; paired, repeated or blocked designs need corresponding restrictions. Unequal variances can invalidate simple label shuffling for a test of equal means. This is a separate analysis, not an established built-in feature of this calculator.

Null play

Huge N shrinks p

With very large samples, even tiny effect sizes can look “significant.” Pair p-values with effect sizes or confidence intervals.

Practical vs. statistical

Explore more tools