After reading: What is the correct formula to between-class scatter matrix in LDA? I've been bugged with the balanced version of $W$. The original whithin-class scatter matrix is:
\begin{equation} W=\sum_i^k\sum_j^{N_i}(x_{ij}−\overline{x}_i)(x_{ij}−\overline{x}_i)^T \end{equation}
And the proposed balanced formula found in the answer there is:
\begin{equation} W'= \overline{n} \sum_i^k \frac{1}{N_i} \sum_j^{N_i}(x_{ij}−\overline{x}_i)(x_{ij}−\overline{x}_i)^T \end{equation}
where $\overline{n}=\sum n_i/k$ is the mean number of points per class. However, here, despite the formula proposed in the slide is the original (unbalanced) version, in the numerical example the following is used:
\begin{equation} W''= \sum_i^k \frac{1}{N_i} \sum_j^{N_i}(x_{ij}−\overline{x}_i)(x_{ij}−\overline{x}_i)^T \end{equation}
So to me is now not clear: is the term $\overline{n}$ in front of the formula necessary?