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