Bonjour!
J'étais pas convaincu alors j'ai simulé,et dans un cas
on a bien gain 1 fois sur 3 et dans l'autre 2 fois sur 3...ca me tue...
M'excuser pour le niveau de prog:(applicable tel quel sous Matlab
a=rand(1000,3);
gain1=[];
gain2=[];
for i=1:1000
a(i,:)=(a(i,:)==max(a(i,:)));
c1=a(i,1);%choix de la premiere porte a chaque fois(change rien)
gain1=[gain1,(c1==1)];
f=find(a(i,2:3)==0);%f=2 ou f=3
f=max(f)+1;
cpres=a(i,f);%choix presentateur où chèvre
pos=2.*(f==3)+3.*(f==2);
c2=a(i,pos);%changement de porte du candidat
bon=find(a(i,:)==1)
bon=a(i,bon);%porte où cadillac
gain2=[gain2,(c2==bon)];
end;
proba1=mean(gain1)
proba2=mean(gain2)
VIVE LA LOI DES GRANDS NOMBRES!
KENAVO Kerneis!(et breizh atao!)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Article poste via Voila News - http://www.news.voila.fr
Le : Wed Sep 24 16:34:52 2003 depuis l'IP : mail.adria.tm.fr [VIP 566193530498]