Français : Fréquence d'apparition d'une valeur pour la somme de n tirages à pile ou face. Illustration du théorème central limite.
Créé avec Scilab, modifié avec Inkscape.
English: Frequency of occurrence of values for the sum of n coin flippings. Illustration of the central limit theorem.
Created with Scilab, modified with Inkscape.
This media was created with Scilab, a free open-source software.
Here is a listing of the Scilab source used to create this file.
// Trace la fonction de densité de la moyenne de n tirages à pile ou faceclear;clf;nbmax=4;// nombre max de tiragesfunction[frequences]=tirages(n)// calcule les fréquences de n tirage à pile ou face par dénombrement// entrées : n : nombre de tirages (entier)// sorties : frequences : matrice de fréquences (réels)N=2^n;// nombre de valeurs possiblesresultats=zeros(N,n);// initialisation : résultats des tiragesfori=1:n// n° de colonnek=2^(n-i);//à la colonne i, on alterne k valeurs 0 et k valeurs 1forj=0:2^(i-1)-1resultats(2*j*k+1:(2*j+1)*k,i)=0;resultats((2*j+1)*k+1:(2*j+2)*k,i)=1;endend//disp(resultats);somme=sum(resultats,"c");frequences_non_triees=tabul(somme);frequences=gsort(frequences_non_triees,"lr","i");frequences(:,2)=frequences(:,2)/N;// normalisation des fréquencesendfunction// Programme principalfori=1:nbmaxXY=tirages(i);plot2d(XY(:,1),XY(:,2),style=i)endaxe=gca();xtitle("Tirages à pile ou face","Valeurs de la somme","Fréquence")legend("n = 1","n = 2","n = 3","n = 4")
רישיון
אני, בעל זכויות היוצרים על עבודה זו, מפרסם בזאת את העבודה תחת הרישיון הבא:
האדם ששייך יצירה להיתר הזה הקדיש את היצירה לנחלת הכלל על־ידי ויתור על כל הזכויות שלו או שלה על היצירה בכל העולם לפי חוק זכויות יוצרים, לרבות כל הזכויות הקשורות או הסמוכות כקבוע בחוק. באפשרותך להעתיק, לשנות, להפיץ, או להציג את היצירה, אפילו למטרות מסחריות, וכל זה אפילו מבלי לבקש רשות.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse