# PCA vs feature engineering

**URL:** <https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371>\
**Category:** Unsupervised Learning, Recommenders, Reinforcement\
**Tags:** week-module-2\
**Created:** [June 29, 2024, 5:35am UTC](https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371 "2024-06-29T05:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benmore](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@benmore](https://community.deeplearning.ai/u/benmore)\
**Post date:** [June 29, 2024, 5:35am UTC](https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371/1 "2024-06-29T05:35:37Z")

</div>

Are principal components similar to new features engineered from existing features? For instance, if a dataset is 2-dimensional (i.e., has 2 features x\_1,x\_2), PCA can reduce the dataset to 1 dimension by finding a new axis or principal component z, which exists on the original 2D plane. Would that principal component be equivalent to some new feature engineered using the original 2 features (e.g., z=x\_1\*x\_2)?

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [June 29, 2024, 7:37am UTC](https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371/2 "2024-06-29T07:37:08Z")

</div>

PCA takes a set of data and turns it into a new equivalent set of data where all of the features are orthogonal.

This allows you to eliminate individual dimensions (thereby throwing away data), starting from the dimensions that have the least variance.

---

<div class="post-metadata">

**Author:** ![benmore](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@benmore](https://community.deeplearning.ai/u/benmore)\
**Post date:** [June 29, 2024, 11:31am UTC](https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371/3 "2024-06-29T11:31:33Z")

</div>

By “features” of the new equivalent set of data, do you mean the principal components? Is it valid to think of principal components as features?

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [June 29, 2024, 3:34pm UTC](https://community.deeplearning.ai/t/pca-vs-feature-engineering/655371/4 "2024-06-29T15:34:42Z")

</div>

“Features” has the same meaning as the original dataset. They are the set of values for each example.
