SAE_2.04/EXO4/scripts/q2.sce

9 lines
165 B
Scilab
Raw Normal View History

2024-06-16 18:16:00 +02:00
X=csvDouble(:,7);
Y=csvDouble(:,6);
plot2d(X,Y,-1);
[a,b] = reglin(X',Y');
y_reg = a*X+b;
plot2d(X,y_reg,5);
2024-06-17 01:02:13 +02:00
corrcoef(X,Y)
xlabel('Salaires');
ylabel('Expérience');