Within Group Variance Formula. This … Var (Y) = 1 N ∑ k = 1 G ∑ i = 1 N k (Y i k Y) 2