SSB = Σ nj(x̄j − x̿)2
SSW = ΣΣ(xij − x̄j)2
读作:组均值偏离总均值的部分,加组内各点偏离组均值的部分。Read it as: Add the group means' departures from the grand mean and the observations' departures from their own group means.
nj每组人数加权Weight by the number of observations in each group
(x̄j − x̿)2组均值离总均值的平方Squared distance from the group mean to the grand mean
- nj
第 j 组样本量sample size in group j
- x̄j
第 j 组均值mean of group j
- x̿
全体数据的总均值grand mean across all observations
何时用:Use it when:
从原始分组数据计算组间信号和组内噪声。
You need to compute between-group signal and within-group noise directly from grouped observations.
⚠
✗ 在 SSB 中忽略组大小 nj → ✓ 每个组均值偏差都按该组样本量加权。
✗ Omit nj from SSB → ✓ Weight each group-mean departure by that group's sample size.