Machine Learning, Python, Julia, Algorithms, R.
Class A would be [10] and the mean vector for Class B would be [2, 5]. Next, we need to calculate the within-class scatter matrix, which measures the spread of the data within each class. To do this, we take the difference between each data point and the mean vector for its class, and then square