Coders Packet

Salary Prediction and visualizing graphs of salary in different fields using Python

By Ritesh Bhattacharyya

In salary prediction using Python and Scikit-Learn we predict the salary according to the data set. Here we train the model according to the data set of salary by the experience.

Here we actually download a data set from kaggle which has two columns one is salary and other one is experience in years in this data set. We can look that salary is dependent on years of experience. So our job is here to predict salary for specific year of experience.
Here we actually use the formula y=mx+c where y=f(x). Here y is salary and x is experience in years. From here we can understand that we use linear regression formula. We use Python, Pandas, Scikit-Learn and Matplotlib, Seaborn to predict Salary. It is a Supervised Learning problem.
 
In Regression there is 2 variables. One is dependent variable and other one is independent variable. Value of independent variable is used to predict the value of dependent variable. Here years of experience or x is independent variable and salary or y is the dependent variable which is dependent on x.
When we plot the dataset values then we find that it is in just a straight line in a slope. Using this model we can predict the current salary of a worker of a certain years of experience.
 
 
 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Ritesh Bhattacharyya (riteshbhattapuru)

Download packets of source code on Coders Packet