SAE_2.04/EXO3/scripts/q4-femme.sce

14 lines
549 B
Scilab
Raw Normal View History

2024-06-14 20:33:54 +02:00
id_female = find(csvString(:,3) == "Female" )
salaire_female = csvDouble(id_female,7)
2024-06-15 19:42:14 +02:00
mean(salaire_female) //moyenne
min(salaire_female) //min
max(salaire_female) //max
median(salaire_female) //médianne
quart(salaire_female) //quartile
iqr(salaire_female) //interquartile
stdev(salaire_female) //ecart-type
sal = tabul(salaire_female);
[occurence_tri,indice_tri] = gsort(sal(:,2));
liste_sal = sal(:,1);
mode = liste_sal(indice_tri(1)) //mode
2024-06-14 20:33:54 +02:00
boxplot(salaire_female,"orientation","horizontal")