DESCRIPTIVEDescriptive StatisticsStatistics Calculator
📊

Sum of Squares — Variance & ANOVA Foundation

SS = Σ(x-x̄)². Compute SS total, between, within. Step-by-step table. Single dataset or multiple groups (ANOVA decomposition).

Concept Fundamentals
Σ(xᵢ − x̄)²
SS Formula
Total variation
SST = SSB + SSW
ANOVA Split
Between + within groups
σ² = SS/(n−1)
Variance Link
Sample variance
Regression & ANOVA
Application
Model fit measure
Compute SSSingle or ANOVA

Why This Statistical Analysis Matters

Why: Sum of squares is the foundation for variance, standard deviation, and ANOVA. SS total = SS between + SS within.

How: Single mode: one dataset, get SS for variance. ANOVA mode: groups separated by semicolons, get SS between/within/total.

  • SS = Σ(x-x̄)²
  • Variance = SS/(n-1)
  • ANOVA decomposition
📊
DESCRIPTIVE STATISTICS2026

Sum of Squares — Variance, ANOVA, Regression

Compute SS total, between, within. Step-by-step table. Single dataset or multiple groups (ANOVA decomposition).

Example Presets — Click to Load

Inputs

Sum of Squares Results
CALCULATED
SS
32.9000
Mean
6.1000
Variance (sample)
3.6556
Variance (pop)
3.2900

Step-by-Step Table: xᵢ, x̄, (xᵢ−x̄), (xᵢ−x̄)²

ixᵢ(xᵢ−x̄)(xᵢ−x̄)²
14.00006.1000-2.10004.4100
28.00006.10001.90003.6100
36.00006.1000-0.10000.0100
45.00006.1000-1.10001.2100
53.00006.1000-3.10009.6100
69.00006.10002.90008.4100
77.00006.10000.90000.8100
86.00006.1000-0.10000.0100
98.00006.10001.90003.6100
105.00006.1000-1.10001.2100
Sum32.9000

Deviation Squares (xᵢ − x̄)²

Share:

For educational and informational purposes only. Verify with a qualified professional.

📈 Statistical Insights

SS

SS total = Σ(x-x̄)²

— Definition

Shortcut

SS = Σx² - (Σx)²/N

— Computational

ANOVA

SS total = SS between + SS within

— Decomposition

Key Takeaways

  • Total Sum of Squares: SS_total = Σ(xᵢ − x̄_grand)² — measures total variation around the grand mean
  • Shortcut formula: SS_total = Σxᵢ² − (Σxᵢ)²/N — computationally efficient
  • For single dataset: SS = Σ(xᵢ − x̄)²; Variance = SS/(n−1) for sample, SS/n for population
  • ANOVA decomposition: SS_total = SS_between + SS_within — partitions variance into group and error
  • Regression: SS_total = SS_regression + SS_residual; R² = SS_reg / SS_total

Did You Know?

📊Sum of squares is the foundation of variance, standard deviation, and ANOVA
🎓Ronald Fisher used SS decomposition in his 1925 ANOVA work
📐The shortcut SS = Σx² − (Σx)²/N avoids computing the mean first
🔬SS_between measures treatment effect; SS_within measures random error
📈In regression, R² = SS_reg/SS_total is the proportion of variance explained
🧪Step-by-step tables help students verify each squared deviation

How It Works

1. Single Dataset — SS for Variance

Compute mean x̄, then SS = Σ(xᵢ − x̄)². Sample variance = SS/(n−1); population variance = SS/n.

2. Shortcut Formula

SS = Σxᵢ² − (Σxᵢ)²/N. Algebraically equivalent; fewer rounding errors for large datasets.

3. ANOVA Decomposition

SS_between = Σ nⱼ(x̄ⱼ − x̄_grand)²; SS_within = ΣΣ(xᵢⱼ − x̄ⱼ)²; SS_total = SS_between + SS_within.

4. Step-by-Step Table

For each value: xᵢ, x̄, (xᵢ−x̄), (xᵢ−x̄)². Sum the last column to get SS.

5. Regression SS

SS_reg = Σ(ŷᵢ − ȳ)²; SS_res = Σ(yᵢ − ŷᵢ)²; SS_total = SS_reg + SS_res; R² = SS_reg/SS_total.

Expert Tips

Use Shortcut for Large Data

SS = Σx² − (Σx)²/N avoids subtracting mean from each value — fewer rounding errors

Check Decomposition

In ANOVA, SS_total must equal SS_between + SS_within — use this to verify

Sample vs Population

Sample variance divides by n−1 (Bessel correction); population by n

Interpret R²

R² = SS_reg/SS_total — proportion of variance explained by the model

Formulas Reference

SS_total = Σ(xᵢ − x̄_grand)²

Shortcut: SS = Σxᵢ² − (Σxᵢ)²/N

SS_between = Σ nⱼ(x̄ⱼ − x̄_grand)²

SS_within = ΣΣ(xᵢⱼ − x̄ⱼ)²

Variance (sample) = SS / (n − 1)

Variance (population) = SS / n

Frequently Asked Questions

What is the difference between SS and variance?

SS is the raw sum of squared deviations. Variance = SS divided by degrees of freedom (n−1 for sample, n for population).

Why use the shortcut formula?

SS = Σx² − (Σx)²/N is algebraically equivalent but requires one pass through the data and avoids subtracting the mean from each value, reducing rounding errors.

What does SS_between measure in ANOVA?

SS_between measures variation due to group differences (treatment effect). Large SS_between relative to SS_within suggests groups differ.

What does SS_within measure?

SS_within measures random variation within each group (error). It is the sum of squared deviations from each group mean.

How is SS used in regression?

SS_total = Σ(yᵢ−ȳ)²; SS_reg = Σ(ŷᵢ−ȳ)²; SS_res = Σ(yᵢ−ŷᵢ)². R² = SS_reg/SS_total.

Can SS ever be negative?

No. SS is a sum of squares, so each term (xᵢ−x̄)² ≥ 0. SS is always non-negative.

Sum of Squares by the Numbers

SS
Foundation of Variance
n−1
Sample df
SS_reg/SS_total
ANOVA
SS Decomposition

Applications

ANOVA

SS decomposition is the first step in one-way ANOVA. MS = SS/df, F = MS_between/MS_within.

Regression

R² and F-tests in regression use SS_reg and SS_res. Goodness of fit depends on SS decomposition.

Quality Control

Variance (from SS) measures process variability. Control charts use SS-based statistics.

Education

Step-by-step SS tables help students understand variance and ANOVA decomposition.

Why Use This Calculator vs Other Tools?

FeatureThis CalculatorExcelRPython
Step-by-step table
Single + ANOVA modes⚠️ Manual
Deviation squares chart⚠️ Manual⚠️ Manual
ANOVA decomposition chart⚠️⚠️
Educational content
No software installation

Data Entry Tips

  • Single mode: separate values with commas, spaces, tabs, or newlines.
  • ANOVA mode: separate groups with semicolons (;). Within each group, use commas or spaces.
  • Example ANOVA: "10, 12, 14; 20, 22, 24; 30, 32, 34" — three groups of three values each.
  • Non-numeric values are ignored. Paste directly from Excel or CSV.

Disclaimer: This calculator uses standard formulas for sum of squares. For ANOVA, verify assumptions (normality, equal variances). Sample variance uses n−1; population variance uses n.

👈 START HERE
⬅️Jump in and explore the concept!
AI

Related Calculators