# C3\_W2 - PCA Question

**URL:** <https://community.deeplearning.ai/t/c3-w2-pca-question/272250>\
**Category:** Unsupervised Learning, Recommenders, Reinforcement\
**Tags:** week-module-2\
**Created:** [February 11, 2023, 7:55am UTC](https://community.deeplearning.ai/t/c3-w2-pca-question/272250 "2023-02-11T07:55:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Christian\_Simonis](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/christian_simonis/32/142583_2.png) [@Christian\_Simonis](https://community.deeplearning.ai/u/Christian_Simonis)\
**Post date:** [February 11, 2023, 8:33pm UTC](https://community.deeplearning.ai/t/c3-w2-pca-question/272250/3 "2023-02-11T20:33:51Z")

</div>

> [@Mujassim\_Jamal](#):
>
> So my question is how this arrow vector is obtained?

It’s actually obtained by solving an eigenvalue problem. [Here](https://medium.com/@dareyadewumi650/understanding-the-role-of-eigenvectors-and-eigenvalues-in-pca-dimensionality-reduction-10186dad0c5c) more info can be found on the steps involved as well as some background info on eigenvectors etc.

> [@Mujassim\_Jamal](#):
>
> and why we are taking dot product to project it on z-axis?

Usually we want to go for dimensionality reduction of the feature space to get a better ratio of data to dimensions (which can often help to mitigate overfitting when dealing with limited amount of data). We can get rid of redundant information in our features by doing this transformation to a smaller space which is spanned by the principal components (a subset of the eigenvectors of our previously mentioned problem), see also this thread: [Does embedding projector use dimensional reduction? - #4 by Christian\_Simonis](https://community.deeplearning.ai/t/does-embedding-projector-use-dimensional-reduction/263450/4)

Here some [exemplary code](https://github.com/christiansimonis/CRISP-DM-AI-tutorial/blob/master/Classic_ML.ipynb) which you can use to play around with and e.g. check how much information is explained by which of the principal components:  
 ![image](https://global.discourse-cdn.com/dlai/original/3X/8/6/863083cd04809f0510efe21b65a8158f83cff8b7.png)  
(As you see, the last PCs do not provide too much value here information-wise…)

Best regards  
Christian

---

_[View the full topic](https://community.deeplearning.ai/t/c3-w2-pca-question/272250)._
