%regression analysis 1
clear;clc
data=dlmread('education_income.dat','',3,0);
income=data(:,2);
edu=data(:,3);

%make scattering plot
plot(edu,income,'*b')
xlim([10,22])
ylim([20000,130000])
xlabel('Education (year)','Fontsize',14)
ylabel('Income($)','Fontsize',14)
title('Education-Income Relation','FontSize',18)
legend('Scattering','Location','northwest')


