# Using correlation matrix for feature selection

**URL:** <https://community.deeplearning.ai/t/using-correlation-matrix-for-feature-selection/261433>\
**Category:** AI Discussions\
**Created:** [January 23, 2023, 3:00pm UTC](https://community.deeplearning.ai/t/using-correlation-matrix-for-feature-selection/261433 "2023-01-23T15:00:52Z")\
**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:** [January 23, 2023, 7:03pm UTC](https://community.deeplearning.ai/t/using-correlation-matrix-for-feature-selection/261433/3 "2023-01-23T19:03:05Z")

</div>

Hi @mehmet_baki_deniz

in addition to @Nithin_Skantha_M‘s great feedback.

Here you can also find an example as inspiration also for context and code in this [Repo Source](https://github.com/christiansimonis/CRISP-DM-AI-tutorial/blob/master/Classic_ML.ipynb).

 ![image](https://global.discourse-cdn.com/dlai/original/3X/9/f/9f9a9adea3f1ad824e29c1d61acaf730c7957a64.png)

Correlation and scatter matrices help a lot as you mentioned e.g. linear regression. For example you could apply feature engineering techniques to describe the non-linearity already in your features and check and adapt your feature design based on your visualization. Here also a relevant thread for you:

> [@How to evaluate accuracy of a regression model](https://community.deeplearning.ai/t/how-to-evaluate-accuracy-of-a-regression-model/243120/23):
>
> … the model features are currently linear As far as I have understood your first post, you have used a linear model. In this case it would be helpful to model the non-linearity already in your features with feature engineering techniques. I think this is also what you are saying with polynomial features, right? Also here the residual analysis might be a helpful tool to check how successful you were also with respect to systematics in your residuum as mentioned in the previous post. If you s…

Hope that helps!

Best regards  
Christian

---

_[View the full topic](https://community.deeplearning.ai/t/using-correlation-matrix-for-feature-selection/261433)._
