diff --git a/Exo4/Exo4.sce b/Exo4/Exo4.sce deleted file mode 100644 index e69de29..0000000 diff --git a/Exo4/Question1.sce b/Exo4/Question1.sce new file mode 100644 index 0000000..50a64f4 --- /dev/null +++ b/Exo4/Question1.sce @@ -0,0 +1,16 @@ +data = csvRead("data/data.csv"); + +//Taux de fécondité +tauxFec = data(:, 8); + +//Proportion de moins de 15 ans +propMoins15 = data(:, 9); + +//regression +[a, b] = reglin(tauxFec', propMoins15'); + +//affichage +plot2d(tauxFec, propMoins15, -1); +plot(tauxFec', a*tauxFec' + b); +xtitle("Proportion de moins de 15 ans en fonction du taux de fécondité", "Taux de fécondité (enfants par femme)", "Proportion de moins de 15 ans (en %)"); +legend(["Nuage de points", "Régression linéaire"]); diff --git a/image/propmoins15tauxfecond.jpg b/image/propmoins15tauxfecond.jpg new file mode 100644 index 0000000..e1e1e94 Binary files /dev/null and b/image/propmoins15tauxfecond.jpg differ