In a statistical study, which may be scientific, economic, social studies, or machine learning, sometimes we come across many problems involving the use of two or more variables. Such as: Income and Expenditure of an individual Demand and price of a commodity The data generated by the two variables(x, y)…