Daily Dose of Data Science

Share this post

The Advantages and Disadvantages of PCA To Consider Before Using It

www.blog.dailydoseofds.com

The Advantages and Disadvantages of PCA To Consider Before Using It

A quick pros and cons summary of PCA.

Avi Chawla
May 10, 2023
10
Share

FREE 3-Day Object Detection Challenge

⭐️ Build your own object detection model from start to finish!

Hey friends! Lately, I have been in touch with Data Driven Science. They offer self-paced and hands-on learning on practical data science challenges.

A 3-day object detection challenge is available for free. Here, you’ll get to train an end-to-end ML model for object detection using computer vision techniques.

The challenge is guided, meaning you don’t need any prior expertise. Instead, you will learn as you follow the challenge.

Also, you’ll get to apply many of my previous tips around Image Augmentation, Run-time optimization, and more.

All-in-all, it will be an awesome learning experience.

👉 Register for the challenge here: https://datadrivenscience.com/free-object-detection-challenge/.

Let’s get to today’s post now.


PCA is possibly the most popular dimensionality reduction technique.

If you wish to know how PCA works, I have a highly simplified post here: A Visual and Overly Simplified Guide to PCA.

Yet, it is equally important to be aware of what we get vs. what we compromise when we use PCA.

The above visual depicts five common pros and cons of using PCA.

Advantages

  1. By reducing the data to two dimensions, you can easily visualize it.

  2. PCA removes multicollinearity. Multicollinearity arises when two features are correlated. PCA produces a set of new orthogonal axes to represent the data, which, as the name suggests, are uncorrelated.

  3. PCA removes noise. By reducing the number of dimensions in the data, PCA can help remove noisy and irrelevant features.

  4. PCA reduces model parameters: PCA can help reduce the number of parameters in machine learning models.

  5. PCA reduces model training time. By reducing the number of dimensions, PCA simplifies the calculations involved in a model, leading to faster training times.

Disadvantages

  1. The run-time of PCA is cubic in relation to the number of dimensions of the data. This can be computationally expensive at times for large datasets.

    PCA run-time.
  2. PCA transforms the original input variables into new principal components (or dimensions). The new dimensions offer no interpretability.

  3. While PCA simplifies the data and removes noise, it always leads to some loss of information when we reduce dimensions.

  4. PCA is a linear dimensionality reduction technique, but not all real-world datasets may be linear. Read more about this in my previous post here: The Limitation of PCA Which Many Folks Often Ignore.

  5. PCA gets affected by outliers. This can distort the principal components and affect the accuracy of the results.

    Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.

Over to you: What are some points that I have missed here? Let me know :)

👉 Read what others are saying about this post on LinkedIn and Twitter.

👉 If you liked this post, don’t forget to leave a like ❤️. It helps more people discover this newsletter on Substack and tells me that you appreciate reading these daily insights. The button is located towards the bottom of this email.

👉 If you love reading this newsletter, feel free to share it with friends!

Share Daily Dose of Data Science


Find the code for my tips here: GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn and Twitter.

10
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing