Correlation matrix — it is basically a covariance matrix. Also known as autocovariance matrix, variance matrix, variance matrix, or variance-covariance matrix. This is the matrix in which the ij position defines the correlation between i- м and j- м parameters of the given dataset.
When the data points follow an approximately straight line, the variables are said to have an approximately linear relationship. In some cases, the data points are close to a straight line, but more often there is little variation in the points around the straight line. A composite measure called correlation describes the strength of a linear association. Correlation summarizes the strength and direction of a linear (direct) relationship between two quantitative variables. It is denoted by r , takes values from -1 to +1. A positive value for r indicates a positive relationship, and a negative value for r indicates a negative relationship.
The closer r is to 1 , the closer the data points fall on a straight line, thus the linear association is stronger. The closer r is to 0, the weaker the linear association.
To get a link to House_price Data, click here .
Loading libraries
|
Loading data
|
Output:
(1460, 81)
Sell Price Description
|
Exit :
count 1460.000000 mean 180921.195890 std 79442.502883 min 34900.000000 25 % 129975.000000 50% 163000.000000 75% 214000.000000 max 755000.000000 Name: SalePrice, dtype: float64
Histogram
|
Exit:

Code # 1: Correlation Matrix
|
Output:

Code # 2: grid correlation matrix
|
Output:

Code # 3: ratio for Saleprice
|
Exit:
