Machine learning project

Hi there,
I am thinking of building a linear regression model to predict the average life expectancy based on solely GDP per capita. (Single variable linear regression)
Do you think whether this make sense or not?

1 Like

Hi,

So you want to fit GDP per capita to a linear function ax+b to predict life expectancy. This can be done if they a have a linear dependence and you can check it by seeing how well the linear regression you come up fits and predicts life expectancy. It might not be that straightforward but its best to check it.

it seems that there is a postive correlation between two of the variables, but could I collect all the data set in year 2018 (the world in data) and using it as a model to predict?

You could try, it might not be a first degree linear regression but maybe somekind of polynomial regression, but you have to see it on trial.