Docsity

PCA & Confusion Matrix Summary & implement a Project with this, Summaries of Machine Learning

Partial preview of the text

Download PCA & Confusion Matrix Summary & implement a Project with this and more Summaries Machine Learning in PDF only on Docsity!

Principal Component Analysis

(PCA)

Team Members

  • Ahmed Ayman Abdelhakeem
  • Mariam Tarek Abdelghani
  • Mona Khaled Abdelghani
  • Nihal Khaled Muhammed

What is PCA? Principal Component Analysis :

  • is a popular unsupervised learning technique for reducing the dimensionality of data.
  • It helps to find the most significant features in a dataset and makes the data easy for plotting in 2D and 3D.
  • The Principal Components are a straight line that captures most of the variance of the data. They have a direction and magnitude.
  • PCA produces the same number of principal components as there are features in the training dataset.
  • For example The first principal component is computed so that it explains the greatest amount of variance in the original features. The second component is orthogonal to the first, and it explains the greatest amount of variance left after the first principal component.

How is PCA calculated? Calculating PCA using Eigendecomposition of the covariance matrix method:

  1. Feature standardization.
  2. Obtain the covariance matrix computation.
  3. Calculate the eigen decomposition of the covariance matrix.
  4. Sort the eigenvectors from the highest eigenvalue to the lowest.
  5. Select the number of principal components. select the top N eigenvectors

Cleaning Data

One Hot Encoding

PCA Applying

Co-Variance Matrix

Logistic Regression Algo

Applying Algo without using PCA

Confusion Matrix

Confusion Matrix with PCA

Why PCA? Advantages:

  • Easy to compute.
  • Speeds up other machine learning algorithms.
  • Counteracts the issues of high-dimensional data. Disadvantages:
  • The trade-off between information loss and dimensionality reduction.

Thank You!