I learnt to implement simple linear regression and I made use of salary data to find a relationship between years of experience and salary. I imported the essential libraries like numpy, matplotlip and pandas and loaded the csv file. I divided it into 2 arrays X and Y. The former being the independent variable and the latter, dependent. Then I split the dataset into training and test sets using train_test_split function of scikit-learn. Using the LinearRegression class of sklearn, I created a regression model and trained it on the training data to learn the relationship between years of experience and salary. After that predictions are made on the test data, and the results are stored it in a variable. I used matplotlib to create scatter plots of training and test data.