September 27, 2023

I implemented a Linear regression model (degrees 1,2,3 and 4) considering just Obesity% and just Inactivity% to predict %Diabetes.

%Obesity vs %Diabetic

%Inactivity vs % Diabetic

Below poverty % vs % diabetic

I also performed a multiple linear regression using all three features. The features eventually got coefficients as follows: [0.1048, 0.1509, 1.6913].

I performed 5 fold cross validation on the three variables and the r2 score returned for the 5 folds was as follows: [0.53857178, 0.57042713, 0.55656731, 0.61902526, 0.59719045]

The r2 score after 10 fold cross validation was 0.613141634

 

Leave a Reply

Your email address will not be published. Required fields are marked *