How to use this calculator
Partition variation into independent group differences and residual variation for a classical one-factor F test.
- Enter Observations, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
One way independent groups ANOVA explained
Pair each response with its integer group code; the one-way F test compares between-group variation with pooled within-group variation.
How the calculation works
Between-group mean square / within-group mean square
Compute a pooled grand mean. Between-group sum of squares weights each group mean difference by its size; within-group sum of squares adds residuals about each group mean. Divide each by its degrees of freedom, then take their ratio.
Set up the calculation
x— Observations- Observations. Use comma-separated values in the stated order.
g— Matching integer group labels- Matching integer group labels. Use comma-separated values in the stated order.
Limits of this model
Independent normal errors and equal population variances underpin the F-reference p-value; post-hoc comparisons are not performed.
Check this example
Observations = 1, 2, 3, 4, 5, 6, 7, 8, 10; Matching integer group labels = 1, 1, 1, 2, 2, 2, 3, 3, 3.
- ANOVA F: 20.84615385
- Between-group df: 2
- Within-group df: 6
- F-reference p-value: 0.00199117
The example contains three groups of three, so the F reference uses 2 numerator and 6 denominator degrees of freedom.
Frequently asked questions
Does a small p-value identify the different group?
No, it is an overall test.
Do group sizes need to match?
No. One-way ANOVA can use unequal group sizes, but groups still need enough observations and reasonably comparable residual variances for the usual F interpretation.
What if variances differ substantially?
Consider the Welch version and your study assumptions.
How do I use the One way independent groups ANOVA calculator?
Enter Observations, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of One way independent groups ANOVA?
Observations = 1, 2, 3, 4, 5, 6, 7, 8, 10; Matching integer group labels = 1, 1, 1, 2, 2, 2, 3, 3, 3. ANOVA F: 20.84615385 Between-group df: 2 Within-group df: 6 F-reference p-value: 0.00199117 The example contains three groups of three, so the F reference uses 2 numerator and 6 denominator degrees of freedom.
Method reference: SciPy f_oneway definition.
Read our calculation methodology.