Correlation is a measure of relationship between two variables. The two variables must be numeric or scale. So basically correlation…