A scatter matrix, also known as a pair plot, is a powerful visualization tool in data analysis. It provides a grid of scatter plots that display relationships between pairs of variables in a dataset, helping engineers and data scientists to identify patterns, correlations, and potential outliers.
Si is the class specific covariance matrix.
mi is the mean of individual class
Mean Calculation
We calculate the mean for each of the points present in the class. Here mean is the total sum of observations divided by the number of observations, we require this mean for calculating the covariance of the matrix.
Covariance matrix computation : We subtract the mean value from each of the observation and then we calculate the average after performing the matrix multiplication with the transpose of the matrix.
Averaging values from 1,2,3,4 and 5. We calculate the sum of all the values for each element in the matrix for S1 and divide by the number of the observation which in the present computation is 5.
Averaging values from 1,2,3,4 and 5 we calculate the sum of all the values for each element in the matrix for S2 and divide by the number of the observation which in the present computation is 5.
Therefore we have calculated between class scatter matrix and within class scatter matrix for the available data points.
We make use of these computations in feature extraction , where the main goal is to increase the distance between the class in the projection of points and decrease the distance between the points within the class in the projection. Here we aim at generating data projection at the required dimension.
Conclusion - Scatter Matrix
Scatter matrices are invaluable tools in engineering mathematics and data science, facilitating the exploration and analysis of complex datasets. They aid in identifying correlations, detecting outliers, and selecting features, ultimately enhancing the data modeling process.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.