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

16 lines
611 B
Scilab
Raw Normal View History

2024-06-14 20:33:54 +02:00
id_other = find(csvString(:,3) == "Other" )
salaire_other = csvDouble(id_other,7)
2024-06-15 19:42:14 +02:00
mean(salaire_other) //moyenne
min(salaire_other) //min
max(salaire_other) //max
median(salaire_other) //médianne
quart(salaire_other) //quartile
iqr(salaire_other) //interquartile
stdev(salaire_other) //ecart-type
sal = tabul(salaire_other);
[occurence_tri,indice_tri] = gsort(sal(:,2));
liste_sal = sal(:,1);
mode = liste_sal(indice_tri(1)) //mode
2024-06-17 00:58:02 +02:00
boxplot(salaire_female,"orientation","horizontal")
xlabel('Salaires');
title('Boîte à moustache des salaires des autres');