fbpx
วิกิพีเดีย

Largenumbers

ดูภาพที่มีความละเอียดสูงกว่า((ไฟล์ SVG, 600 × 480 พิกเซล, ขนาดไฟล์: 22 กิโลไบต์))

รูปภาพหรือไฟล์เสียงนี้ ต้นฉบับอยู่ที่ คอมมอนส์ รายละเอียดด้านล่าง เป็นข้อความที่แสดงผลจาก ไฟล์ต้นฉบับในคอมมอนส์
คอมมอนส์เป็นเว็บไซต์ในโครงการสำหรับเก็บรวบรวมสื่อเสรี ที่ คุณสามารถช่วยได้

ความย่อ

 
W3C-validity not checked.
 
ไฟล์ภาพกราฟิกส์เวกเตอร์ไม่ได้ระบุการตรวจโดย W3C นี้ สร้างขึ้นโดยใช้ Gnuplot
คำอธิบาย
English: An illustration of the w:law of large numbers, similar to File:LLN_Die_Rolls.gif but using the svg format instead of gif. This uses different data from that and hence it looks different. Source code is in the section below. The code is under the same "license" as the work itself.
วันที่ (UTC)
แหล่งที่มา งานของตัว
ผู้สร้างสรรค์ NYKevin
เวอร์ชันอื่น File:LLN_Die_Rolls.gif

Source code

Note that you will need to insert some paths. I've tried to make it obvious where to do so.

This code is all in the public domain (the cc0 waiver applies to it)

The code (in Java) which generated the data:

import java.io.*; public class Main {  public static void main(String[] args) {  PrintStream output=null;  try{  output=new PrintStream("");//FIXME Insert a suitable path in the quote marks  }catch(FileNotFoundException e){  throw new RuntimeException(e);  }  //int diceValues[] = {0,0,0,0,0,0};//this variable may be uncommented and used for debugging  double average=0;  double total=0;  output.println("#count average");//makes a header for the data; may be safely removed  Random rnd=new Random(4124484382302655524l);  //seed selected by trial and error  for(int i=1;i<=1000;i++){  int rand=rnd.nextInt(6);//now holds a random int from 0 to 5  //diceValues[rand]++;//uncomment for debugging  rand++;//convert to 1-indexed  total+=rand;  average=total/i;  output.println(i+" "+(average));  }  //System.out.println(average);  } } 

The gnuplot code:

set terminal svg set output "OUTPUT PATH HERE" set title "average dice value against number of rolls" set xlabel "trials" set ylabel "mean value" plot [] [1:6] "PATH FROM JAVA CODE HERE" title "average" with lines, 3.5 title "y=3.5" with lines #it is recommended that you copy and paste this code into a .plt file and run it in batch mode: #If you must run this interactively, be sure to type "exit" or ^D (control-D) at the end, #or gnuplot will leave off the </svg> closing tag. 

MATLAB/Octave Source code

% Specify how many trials you want to run: num_trials = 1000; % Now grab all the dice rolls: trials = randi(6, [1 num_trials]); % Plot the results: figure(1); % Cumulative sum of the trial results divided by the index gives the % average: plot(cumsum(trials)./(1:num_trials), 'r-'); % Let's put a reference line at 3.5 just for fun (make the color a darker % green as well): hold on; plot([1 num_trials], [3.5 3.5], 'color', [0 0.5 0]); % Make it look pretty: title('average dice value against number of rolls'); xlabel('trials'); ylabel('mean value'); legend('average', 'y=3.5'); axis([0 num_trials 1 6]); 


การอนุญาตใช้สิทธิ

  ไฟล์นี้มีให้ใช้ภายใต้ CC0 1.0 Universal Public Domain Dedication ของครีเอทีฟคอมมอนส์
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Annotations
InfoField
This image is annotated: View the annotations at Commons

คำบรรยายโดยย่อ

เพิ่มคำบรรยายทรรทัดเดียวเพื่อขยายความว่าไฟล์นี้มีอะไร

ไอเทมที่แสดงอยู่ในไฟล์นี้

ประกอบด้วย

ผู้สร้าง

บางค่าที่ไม่มีไอเทมวิกิสนเทศ

ยูอาร์แอล: https://commons.wikimedia.org/wiki/user:NYKevin
ชื่อผู้ใช้วิกิมีเดีย: NYKevin
ชื่อผู้สร้างสรรค์: NYKevin

สถานะลิขสิทธิ์

copyrighted, dedicated to the public domain by copyright holder อังกฤษ

สัญญาอนุญาต

Creative Commons CC0 License อังกฤษ

วันที่สร้าง/วันก่อตั้ง

31 มกราคม 2010

ที่มาของไฟล์

การสร้างดั้งเดิมโดยผู้อัปโหลด

ประวัติไฟล์

คลิกวันที่/เวลาเพื่อดูไฟล์ที่ปรากฏในขณะนั้น

วันที่/เวลารูปย่อขนาดผู้ใช้ความเห็น
ปัจจุบัน09:53, 3 กุมภาพันธ์ 2553600 × 480 (22 กิโลไบต์)NYKevinIn the interest of replicability, this one was generated using a known PRNG seed value. Will update Java source. Also, this one has axis labels!
06:53, 1 กุมภาพันธ์ 2553600 × 480 (21 กิโลไบต์)NYKevinBetter version, with better Java code (more precise). Will update source soon.
06:35, 1 กุมภาพันธ์ 2553600 × 480 (21 กิโลไบต์)NYKevinI mixed up x and y in the legend, will update gnuplot source code in a moment (already checked for svg closing tag).
06:08, 1 กุมภาพันธ์ 2553600 × 480 (21 กิโลไบต์)NYKevinApparently gnuplot forgot the <svg> closing tag?
06:06, 1 กุมภาพันธ์ 2553ไม่มีรูปย่อ (21 กิโลไบต์)NYKevinTrying again... looks like the last one had a problem?
06:04, 1 กุมภาพันธ์ 2553ไม่มีรูปย่อ (21 กิโลไบต์)NYKevin{{Information |Description={{en|1=An illustration of the w:law of large numbers, similar to File:LLN_Die_Rolls.gif but using the svg format instead of gif. This uses different data from that and hence it looks different. I will include source c

หน้าต่อไปนี้ โยงมาที่ภาพนี้:

การใช้ไฟล์ส่วนกลาง

วิกิอื่นต่อไปนี้ใช้ไฟล์นี้:

  • User:Bob Rericha/Gather lists/12975 – Mathematics
  • همگرایی متغیرهای تصادفی
  • Usuária:MCarrera (NeuroMat)/ Lei dos grandes números (leitura de fórmulas)
  • Usuário(a):Gildemar Felix/Teste1 - Lei dos Grandes Números
  • Usuário(a):MCarrera (NeuroMat)/Testes/Lei dos grandes números
  • Usuário(a):MCarrera (NeuroMat)/Testes/Lei dos grandes números (fórmulas)
  • Usuário:Gildemar Felix/Testes/Lei dos grandes números
  • การใช้บน zh.wikibooks.org
    • 初中數學/統計與機率
  • ข้อมูลเกี่ยวกับภาพ

    ไฟล, largenumbers, ไฟล, ประว, ไฟล, หน, าท, ภาพน, การใช, ไฟล, วนกลาง, อม, ลเก, ยวก, บภาพขนาดของต, วอย, าง, ของไฟล, กเซล, ความละเอ, ยดอ, กเซล, กเซล, กเซล, กเซล, ภาพท, ความละเอ, ยดส, งกว, 8206, ไฟล, กเซล, ขนาดไฟล, โลไบต, ปภาพหร, อไฟล, เส, ยงน, นฉบ, บอย, คอมมอนส, . ifl prawtiifl hnathimiphaphni karichiflswnklang khxmulekiywkbphaphkhnadkhxngtwxyang PNG nikhxngifl SVG ni 600 480 phikesl khwamlaexiydxun 300 240 phikesl 960 768 phikesl 1 280 1 024 phikesl 2 560 2 048 phikesl duphaphthimikhwamlaexiydsungkwa 8206 ifl SVG 600 480 phikesl khnadifl 22 kiolibt rupphaphhruxiflesiyngni tnchbbxyuthi khxmmxns raylaexiyddanlang epnkhxkhwamthiaesdngphlcak ifltnchbbinkhxmmxns khxmmxnsepnewbistinokhrngkarsahrbekbrwbrwmsuxesri thi khunsamarthchwyid enuxha 1 khwamyx 1 1 Source code 1 2 MATLAB Octave Source code 2 karxnuyatichsiththi khwamyx nbsp W3C validity not checked nbsp iflphaphkrafiksewketxrimidrabukartrwcody W3C nbsp ni srangkhunodyich nbsp Gnuplot khaxthibayLargenumbers svg English An illustration of the w law of large numbers similar to File LLN Die Rolls gif but using the svg format instead of gif This uses different data from that and hence it looks different Source code is in the section below The code is under the same license as the work itself wnthi 31 mkrakhm ph s 2553 23 04 UTC aehlngthima ngankhxngtw phusrangsrrkh NYKevin ewxrchnxun File LLN Die Rolls gif Source code Note that you will need to insert some paths I ve tried to make it obvious where to do so This code is all in the public domain the cc0 waiver applies to it The code in Java which generated the data import java io public class Main public static void main String args PrintStream output null try output new PrintStream FIXME Insert a suitable path in the quote marks catch FileNotFoundException e throw new RuntimeException e int diceValues 0 0 0 0 0 0 this variable may be uncommented and used for debugging double average 0 double total 0 output println count average makes a header for the data may be safely removed Random rnd new Random 4124484382302655524l seed selected by trial and error for int i 1 i lt 1000 i int rand rnd nextInt 6 now holds a random int from 0 to 5 diceValues rand uncomment for debugging rand convert to 1 indexed total rand average total i output println i average System out println average The gnuplot code set terminal svg set output OUTPUT PATH HERE set title average dice value against number of rolls set xlabel trials set ylabel mean value plot 1 6 PATH FROM JAVA CODE HERE title average with lines 3 5 title y 3 5 with lines it is recommended that you copy and paste this code into a plt file and run it in batch mode If you must run this interactively be sure to type exit or D control D at the end or gnuplot will leave off the lt svg gt closing tag MATLAB Octave Source code Specify how many trials you want to run num trials 1000 Now grab all the dice rolls trials randi 6 1 num trials Plot the results figure 1 Cumulative sum of the trial results divided by the index gives the average plot cumsum trials 1 num trials r Let s put a reference line at 3 5 just for fun make the color a darker green as well hold on plot 1 num trials 3 5 3 5 color 0 0 5 0 Make it look pretty title average dice value against number of rolls xlabel trials ylabel mean value legend average y 3 5 axis 0 num trials 1 6 karxnuyatichsiththi nbsp iflnimiihichphayit CC0 1 0 Universal Public Domain Dedication khxngkhriexthifkhxmmxns The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law including all related and neighboring rights to the extent allowed by law You can copy modify distribute and perform the work even for commercial purposes all without asking permission http creativecommons org publicdomain zero 1 0 deed en CC0 Creative Commons Zero Public Domain Dedication false false AnnotationsInfoFieldThis image is annotated View the annotations at Commons59 223 75 70 600 480 On the left random fluctuations are evident 183 219 192 46 600 480 Here the average begins to level out around 3 5khabrryayodyyxithyephimkhabrryaythrrthdediywephuxkhyaykhwamwaiflnimixairixethmthiaesdngxyuiniflniprakxbdwyphusrangbangkhathiimmiixethmwikisnethsyuxaraexl https commons wikimedia org wiki user NYKevinchuxphuichwikimiediy NYKevinchuxphusrangsrrkh NYKevinsthanalikhsiththicopyrighted dedicated to the public domain by copyright holder nbsp xngkvssyyaxnuyatCreative Commons CC0 License nbsp xngkvswnthisrang wnkxtng31 mkrakhm 2010thimakhxngiflkarsrangdngedimodyphuxpohld prawtiifl khlikwnthi ewlaephuxduiflthipraktinkhnann wnthi ewlarupyxkhnadphuichkhwamehn pccubn09 53 3 kumphaphnth 2553600 480 22 kiolibt NYKevinIn the interest of replicability this one was generated using a known PRNG seed value Will update Java source Also this one has axis labels 06 53 1 kumphaphnth 2553600 480 21 kiolibt NYKevinBetter version with better Java code more precise Will update source soon 06 35 1 kumphaphnth 2553600 480 21 kiolibt NYKevinI mixed up x and y in the legend will update gnuplot source code in a moment already checked for svg closing tag 06 08 1 kumphaphnth 2553600 480 21 kiolibt NYKevinApparently gnuplot forgot the lt svg gt closing tag 06 06 1 kumphaphnth 2553immirupyx 21 kiolibt NYKevinTrying again looks like the last one had a problem 06 04 1 kumphaphnth 2553immirupyx 21 kiolibt NYKevin Information Description en 1 An illustration of the w law of large numbers similar to File LLN Die Rolls gif but using the svg format instead of gif This uses different data from that and hence it looks different I will include source c hnathimiphaphni hnatxipni oyngmathiphaphni khakhadhmay karichiflswnklang wikixuntxipniichiflni karichbn ca wikipedia org Llei dels grans nombres karichbn de wikipedia org Erwartungswert karichbn en wikipedia org Expected value User Bob Rericha Gather lists 12975 Mathematics karichbn eu wikipedia org Konbergentzia estokastiko karichbn fa wikipedia org قانون اعداد بزرگ همگرایی متغیرهای تصادفی karichbn fi wikipedia org Suurten lukujen laki karichbn fr wikipedia org Esperance mathematique karichbn he wikipedia org מספרים גדולים karichbn it wikipedia org Valore atteso karichbn ja wikipedia org アイテム課金 karichbn lv wikipedia org Sagaidama vertiba karichbn pt wikipedia org Usuario a MCarrera NeuroMat Lei dos grandes numeros Usuaria MCarrera NeuroMat Lei dos grandes numeros leitura de formulas Usuario a Gildemar Felix Teste1 Lei dos Grandes Numeros Usuario a MCarrera NeuroMat Testes Lei dos grandes numeros Usuario a MCarrera NeuroMat Testes Lei dos grandes numeros formulas Usuario Gildemar Felix Testes Lei dos grandes numeros karichbn simple wikipedia org Expected value karichbn sq wikipedia org Pritja matematike karichbn sr wikipedia org Zakon velikih broјeva karichbn tr wikipedia org Buyuk sayilar yasasi karichbn www wikidata org Q200125 karichbn zh wikipedia org 大數法則 karichbn zh wikibooks org 初中數學 統計與機率khxmulekiywkbphaph phaphnimikhxmulephimetim sungswnihymacakklxngdicitxlhruxsaeknenxrthisamarthekbkhxmuldngklawiwrwmkbphaphid thaphaphnithukprbprungaekikhhruxepliynaeplngcakedim khxmulbangxyangcayngkhngimepliynaeplngehmuxnphaphthithukprbprungaekikhnnchuxphaphProduced by GNUPLOT 4 2 patchlevel 5 ekhathungcak https th wikipedia org wiki ifl Largenumbers svg, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

    บทความ

    , อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม