This equation basically says: Calculate the difference between the mean of each group and the grand mean . Square each of these differences. Multiply each result by the number of participants within that group (ng). Add the values for each group together.