Source: https://uploads.strikinglycdn.com/files/da08ce26-a773-402d-9a26-812e9fff5ad4/discriminant-analysis-lecture-notes.pdf