Posts

Showing posts with the label Linear-regression-models

Machine learning-Linear regression

Image
Hi, guys this is my first machine learning model using linear regression... Introduction: In this model we will predict the insurance amount to be paid by the new customer from a given datasets. Myself download the ACME insurance datasets from the github you can try any other datasets. Let's predict the insurance amount paid by the new customers. Relation between the data: Let's analysis the some of the data using visualization technique. By analyzing the data there is a strong relation between smoker and charges. Scikit learn: It is one of the powerfull machine learning library in the field of data science. In this problem we use this to calculate linear regression(y=mx+c) model, and also using OneHotEncoder to convert multiple object into calculatable values. By understanding the line is just above the cluster this is due to the outliers. This is the simple regression line once we find for single varriable we can easily do it for multiple variable using scikit-learn. Loss: On...