SlideShare a Scribd company logo
1 of 3
Download to read offline
maXbox Starter 10+
Introduction to Probability
1.1 Dice and the Law of Probability
Probability theory is required to describe nature and life. A revolutionary discovery of early
20th century physics was the random character of all physical processes that occur at
sub-atomic scales and are governed by the laws of quantum mechanics.
But now you are playing a game which uses dice.
You are about to roll one of them and you need to roll at least a 6. Obviously the chances of
rolling a 6 were 1/6 which is correct1
..
Our next question will be to find out the probability to roll two same numbers with two dice.
When two dice are rolled, there are now 36 different and unique ways the dice can land. You
can get this result by multiplying the number of ways the first die appears (one..six) by the
number of ways the second die appears (one..six). 6 x 6 = 36.
1
rolling a 5,4,3,2 or 1 is also 1/6
If you use the above graphic and count the number of times two same numbers appear when
two dice are rolled (or one by one), you will see the answer is 6, each per column. Six times
out of 36 or 16 %, the same as before because 6/36 is 1/6.
You can test that with the following script (app see above):
http://www.softwareschule.ch/examples/650_dice.txt
Load it in maXbox an press the second button it will run 150 times to simulate the rolling and
in the end you get a result of about 0.166667. This should never be the same result, it
depends each time on the random simulation.
Such an amusement; so let's use that same method to answer our second question and
determine the chances of get just one pair of numbers, for example the 6 pair. Like before we
do have 36 ways but only one pair of six! So, there are 1 out of 36 chances (1/36) of one pair
of a 6 (or another dice number) which is about only 0.0278 probability. This you can test with
the second button, and here's the code behind:
function DiceSimulation_OneNumberPair(anumb: byte): integer;
var size, offset, rand1, rand2:integer;
begin
image1.canvas.brush.color:= form1.color;
with image1 do canvas.fillrect(clientrect);
size:= 9*image1.height div 10; {size 90% of height}
offset:= image1.height div 20; {offset 5% of height}
result:= 0;
repeat
rand1:= random(6)+1;
rand2:= random(6)+1;
inc(result)
drawDie(image1,point(offset,offset),size,rand1); {draw 1st die}
drawDie(image1,point(offset+image1.width div 2,offset),size,rand2);
until rand1 and rand2 = anumb;
end;
The last test question is for real brains, how much is the probability to roll at least one 6 with
two dice?
Once again the map above shows this; count the number of 6 appears when two dice are
rolled, you will find the answer is 11. Eleven times out of 36 or 30.556 % is 11/36.
2
Albert Einstein famously remarked in a letter to Max Born: "I am
convinced that God does not play dice".[20] (http://en.wikipedia.org/wiki/Probability)
Let's make the conclusion on the average:
Knowing how these formulas work is only half the battle. Figuring out how to interpret a real
world situation can be quite hard. I hope the dice pattern can help you to decide:
1. We role one dice to get a six -> 1/6 16.66 %
2. We role two dice to get a pair of same numbers -> 6/36 (1/6) 16.66 %
3. We role two dice to get a specific pair of numbers -> 1/36 02.77 %
4. We role two dice to get at least one specific number -> 11/36 30.55 %
But at least you know how to calculate this 4 cases.
//maXbox: ..menu/Output/3D Lab
Feedback @
max@kleiner.com
Literature: Kleiner et al., Patterns konkret, 2003, Software & Support
Links of maXbox and Statistics:
http://www.softwareschule.ch/download/maxbox_starter10.pdf
https://en.wikipedia.org/wiki/Probability_theory
https://github.com/maxkleiner/maXbox3/releases
3

More Related Content

Similar to Dice and the Law of Probability (maXbox)

Pure ch20
Pure ch20Pure ch20
Pure ch20arbi
 
7.4 la1 teachers
7.4 la1 teachers7.4 la1 teachers
7.4 la1 teachersNRGPSchools
 
Beginners counting and probability.pptx
Beginners counting and probability.pptxBeginners counting and probability.pptx
Beginners counting and probability.pptxAbbyXiong
 
Shark attacks and the Poisson approximationByron Schmuland.docx
Shark attacks and the Poisson approximationByron Schmuland.docxShark attacks and the Poisson approximationByron Schmuland.docx
Shark attacks and the Poisson approximationByron Schmuland.docxbagotjesusa
 
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”Lviv Startup Club
 
Week 3 Homework (HW3) LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docx
Week 3 Homework  (HW3)  LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docxWeek 3 Homework  (HW3)  LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docx
Week 3 Homework (HW3) LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docxcockekeshia
 
44 randomized-algorithms
44 randomized-algorithms44 randomized-algorithms
44 randomized-algorithmsAjitSaraf1
 
Sky math challenge 7H
Sky math challenge 7HSky math challenge 7H
Sky math challenge 7Hecooperms
 
Unit 12: Probability
Unit 12: ProbabilityUnit 12: Probability
Unit 12: ProbabilityRenegarmath
 
The Lattice Method of Multiplication for Children
The Lattice Method of Multiplication for ChildrenThe Lattice Method of Multiplication for Children
The Lattice Method of Multiplication for ChildrenMark Runge
 
13.1 Theoretical Probability
13.1 Theoretical Probability13.1 Theoretical Probability
13.1 Theoretical Probabilityvmonacelli
 
Kahn Help for ACT Math III
Kahn Help for ACT Math IIIKahn Help for ACT Math III
Kahn Help for ACT Math IIIJim Mathews
 
Kahn Help on ACT Math 1
Kahn Help on ACT Math 1 Kahn Help on ACT Math 1
Kahn Help on ACT Math 1 Jim Mathews
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Statistics Homework Helper
 

Similar to Dice and the Law of Probability (maXbox) (20)

Pure ch20
Pure ch20Pure ch20
Pure ch20
 
7.4 la1 teachers
7.4 la1 teachers7.4 la1 teachers
7.4 la1 teachers
 
Intro to probability
Intro to probabilityIntro to probability
Intro to probability
 
Beginners counting and probability.pptx
Beginners counting and probability.pptxBeginners counting and probability.pptx
Beginners counting and probability.pptx
 
Shark attacks and the Poisson approximationByron Schmuland.docx
Shark attacks and the Poisson approximationByron Schmuland.docxShark attacks and the Poisson approximationByron Schmuland.docx
Shark attacks and the Poisson approximationByron Schmuland.docx
 
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
Ігор Антонов “Короткий курс теорії ймовірності для ігрових дизайнерів.”
 
Unit 2 Probability
Unit 2 ProbabilityUnit 2 Probability
Unit 2 Probability
 
Week 3 Homework (HW3) LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docx
Week 3 Homework  (HW3)  LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docxWeek 3 Homework  (HW3)  LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docx
Week 3 Homework (HW3) LANE C5 AND ILLOWSKY C3 AND C4OVERVIEW O.docx
 
44 randomized-algorithms
44 randomized-algorithms44 randomized-algorithms
44 randomized-algorithms
 
Sky math challenge 7H
Sky math challenge 7HSky math challenge 7H
Sky math challenge 7H
 
Unit 12: Probability
Unit 12: ProbabilityUnit 12: Probability
Unit 12: Probability
 
The Lattice Method of Multiplication for Children
The Lattice Method of Multiplication for ChildrenThe Lattice Method of Multiplication for Children
The Lattice Method of Multiplication for Children
 
Mathematics Homework Help
Mathematics Homework HelpMathematics Homework Help
Mathematics Homework Help
 
13.1 Theoretical Probability
13.1 Theoretical Probability13.1 Theoretical Probability
13.1 Theoretical Probability
 
Puzzles
PuzzlesPuzzles
Puzzles
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
Kahn Help for ACT Math III
Kahn Help for ACT Math IIIKahn Help for ACT Math III
Kahn Help for ACT Math III
 
Kahn Help on ACT Math 1
Kahn Help on ACT Math 1 Kahn Help on ACT Math 1
Kahn Help on ACT Math 1
 
8.3 trans 3
8.3 trans 38.3 trans 3
8.3 trans 3
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚
 

More from Max Kleiner

EKON26_VCL4Python.pdf
EKON26_VCL4Python.pdfEKON26_VCL4Python.pdf
EKON26_VCL4Python.pdfMax Kleiner
 
EKON26_Open_API_Develop2Cloud.pdf
EKON26_Open_API_Develop2Cloud.pdfEKON26_Open_API_Develop2Cloud.pdf
EKON26_Open_API_Develop2Cloud.pdfMax Kleiner
 
maXbox_Starter91_SyntheticData_Implement
maXbox_Starter91_SyntheticData_ImplementmaXbox_Starter91_SyntheticData_Implement
maXbox_Starter91_SyntheticData_ImplementMax Kleiner
 
Ekon 25 Python4Delphi_MX475
Ekon 25 Python4Delphi_MX475Ekon 25 Python4Delphi_MX475
Ekon 25 Python4Delphi_MX475Max Kleiner
 
EKON 25 Python4Delphi_mX4
EKON 25 Python4Delphi_mX4EKON 25 Python4Delphi_mX4
EKON 25 Python4Delphi_mX4Max Kleiner
 
maXbox Starter87
maXbox Starter87maXbox Starter87
maXbox Starter87Max Kleiner
 
maXbox Starter78 PortablePixmap
maXbox Starter78 PortablePixmapmaXbox Starter78 PortablePixmap
maXbox Starter78 PortablePixmapMax Kleiner
 
maXbox starter75 object detection
maXbox starter75 object detectionmaXbox starter75 object detection
maXbox starter75 object detectionMax Kleiner
 
BASTA 2020 VS Code Data Visualisation
BASTA 2020 VS Code Data VisualisationBASTA 2020 VS Code Data Visualisation
BASTA 2020 VS Code Data VisualisationMax Kleiner
 
EKON 24 ML_community_edition
EKON 24 ML_community_editionEKON 24 ML_community_edition
EKON 24 ML_community_editionMax Kleiner
 
maxbox starter72 multilanguage coding
maxbox starter72 multilanguage codingmaxbox starter72 multilanguage coding
maxbox starter72 multilanguage codingMax Kleiner
 
EKON 23 Code_review_checklist
EKON 23 Code_review_checklistEKON 23 Code_review_checklist
EKON 23 Code_review_checklistMax Kleiner
 
EKON 12 Running OpenLDAP
EKON 12 Running OpenLDAP EKON 12 Running OpenLDAP
EKON 12 Running OpenLDAP Max Kleiner
 
EKON 12 Closures Coding
EKON 12 Closures CodingEKON 12 Closures Coding
EKON 12 Closures CodingMax Kleiner
 
NoGUI maXbox Starter70
NoGUI maXbox Starter70NoGUI maXbox Starter70
NoGUI maXbox Starter70Max Kleiner
 
maXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIImaXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIIMax Kleiner
 
maXbox starter68 machine learning VI
maXbox starter68 machine learning VImaXbox starter68 machine learning VI
maXbox starter68 machine learning VIMax Kleiner
 
maXbox starter67 machine learning V
maXbox starter67 machine learning VmaXbox starter67 machine learning V
maXbox starter67 machine learning VMax Kleiner
 
maXbox starter65 machinelearning3
maXbox starter65 machinelearning3maXbox starter65 machinelearning3
maXbox starter65 machinelearning3Max Kleiner
 
EKON22_Overview_Machinelearning_Diagrams
EKON22_Overview_Machinelearning_DiagramsEKON22_Overview_Machinelearning_Diagrams
EKON22_Overview_Machinelearning_DiagramsMax Kleiner
 

More from Max Kleiner (20)

EKON26_VCL4Python.pdf
EKON26_VCL4Python.pdfEKON26_VCL4Python.pdf
EKON26_VCL4Python.pdf
 
EKON26_Open_API_Develop2Cloud.pdf
EKON26_Open_API_Develop2Cloud.pdfEKON26_Open_API_Develop2Cloud.pdf
EKON26_Open_API_Develop2Cloud.pdf
 
maXbox_Starter91_SyntheticData_Implement
maXbox_Starter91_SyntheticData_ImplementmaXbox_Starter91_SyntheticData_Implement
maXbox_Starter91_SyntheticData_Implement
 
Ekon 25 Python4Delphi_MX475
Ekon 25 Python4Delphi_MX475Ekon 25 Python4Delphi_MX475
Ekon 25 Python4Delphi_MX475
 
EKON 25 Python4Delphi_mX4
EKON 25 Python4Delphi_mX4EKON 25 Python4Delphi_mX4
EKON 25 Python4Delphi_mX4
 
maXbox Starter87
maXbox Starter87maXbox Starter87
maXbox Starter87
 
maXbox Starter78 PortablePixmap
maXbox Starter78 PortablePixmapmaXbox Starter78 PortablePixmap
maXbox Starter78 PortablePixmap
 
maXbox starter75 object detection
maXbox starter75 object detectionmaXbox starter75 object detection
maXbox starter75 object detection
 
BASTA 2020 VS Code Data Visualisation
BASTA 2020 VS Code Data VisualisationBASTA 2020 VS Code Data Visualisation
BASTA 2020 VS Code Data Visualisation
 
EKON 24 ML_community_edition
EKON 24 ML_community_editionEKON 24 ML_community_edition
EKON 24 ML_community_edition
 
maxbox starter72 multilanguage coding
maxbox starter72 multilanguage codingmaxbox starter72 multilanguage coding
maxbox starter72 multilanguage coding
 
EKON 23 Code_review_checklist
EKON 23 Code_review_checklistEKON 23 Code_review_checklist
EKON 23 Code_review_checklist
 
EKON 12 Running OpenLDAP
EKON 12 Running OpenLDAP EKON 12 Running OpenLDAP
EKON 12 Running OpenLDAP
 
EKON 12 Closures Coding
EKON 12 Closures CodingEKON 12 Closures Coding
EKON 12 Closures Coding
 
NoGUI maXbox Starter70
NoGUI maXbox Starter70NoGUI maXbox Starter70
NoGUI maXbox Starter70
 
maXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIImaXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VII
 
maXbox starter68 machine learning VI
maXbox starter68 machine learning VImaXbox starter68 machine learning VI
maXbox starter68 machine learning VI
 
maXbox starter67 machine learning V
maXbox starter67 machine learning VmaXbox starter67 machine learning V
maXbox starter67 machine learning V
 
maXbox starter65 machinelearning3
maXbox starter65 machinelearning3maXbox starter65 machinelearning3
maXbox starter65 machinelearning3
 
EKON22_Overview_Machinelearning_Diagrams
EKON22_Overview_Machinelearning_DiagramsEKON22_Overview_Machinelearning_Diagrams
EKON22_Overview_Machinelearning_Diagrams
 

Recently uploaded

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 

Recently uploaded (20)

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 

Dice and the Law of Probability (maXbox)

  • 1. maXbox Starter 10+ Introduction to Probability 1.1 Dice and the Law of Probability Probability theory is required to describe nature and life. A revolutionary discovery of early 20th century physics was the random character of all physical processes that occur at sub-atomic scales and are governed by the laws of quantum mechanics. But now you are playing a game which uses dice. You are about to roll one of them and you need to roll at least a 6. Obviously the chances of rolling a 6 were 1/6 which is correct1 .. Our next question will be to find out the probability to roll two same numbers with two dice. When two dice are rolled, there are now 36 different and unique ways the dice can land. You can get this result by multiplying the number of ways the first die appears (one..six) by the number of ways the second die appears (one..six). 6 x 6 = 36. 1 rolling a 5,4,3,2 or 1 is also 1/6
  • 2. If you use the above graphic and count the number of times two same numbers appear when two dice are rolled (or one by one), you will see the answer is 6, each per column. Six times out of 36 or 16 %, the same as before because 6/36 is 1/6. You can test that with the following script (app see above): http://www.softwareschule.ch/examples/650_dice.txt Load it in maXbox an press the second button it will run 150 times to simulate the rolling and in the end you get a result of about 0.166667. This should never be the same result, it depends each time on the random simulation. Such an amusement; so let's use that same method to answer our second question and determine the chances of get just one pair of numbers, for example the 6 pair. Like before we do have 36 ways but only one pair of six! So, there are 1 out of 36 chances (1/36) of one pair of a 6 (or another dice number) which is about only 0.0278 probability. This you can test with the second button, and here's the code behind: function DiceSimulation_OneNumberPair(anumb: byte): integer; var size, offset, rand1, rand2:integer; begin image1.canvas.brush.color:= form1.color; with image1 do canvas.fillrect(clientrect); size:= 9*image1.height div 10; {size 90% of height} offset:= image1.height div 20; {offset 5% of height} result:= 0; repeat rand1:= random(6)+1; rand2:= random(6)+1; inc(result) drawDie(image1,point(offset,offset),size,rand1); {draw 1st die} drawDie(image1,point(offset+image1.width div 2,offset),size,rand2); until rand1 and rand2 = anumb; end; The last test question is for real brains, how much is the probability to roll at least one 6 with two dice? Once again the map above shows this; count the number of 6 appears when two dice are rolled, you will find the answer is 11. Eleven times out of 36 or 30.556 % is 11/36. 2
  • 3. Albert Einstein famously remarked in a letter to Max Born: "I am convinced that God does not play dice".[20] (http://en.wikipedia.org/wiki/Probability) Let's make the conclusion on the average: Knowing how these formulas work is only half the battle. Figuring out how to interpret a real world situation can be quite hard. I hope the dice pattern can help you to decide: 1. We role one dice to get a six -> 1/6 16.66 % 2. We role two dice to get a pair of same numbers -> 6/36 (1/6) 16.66 % 3. We role two dice to get a specific pair of numbers -> 1/36 02.77 % 4. We role two dice to get at least one specific number -> 11/36 30.55 % But at least you know how to calculate this 4 cases. //maXbox: ..menu/Output/3D Lab Feedback @ max@kleiner.com Literature: Kleiner et al., Patterns konkret, 2003, Software & Support Links of maXbox and Statistics: http://www.softwareschule.ch/download/maxbox_starter10.pdf https://en.wikipedia.org/wiki/Probability_theory https://github.com/maxkleiner/maXbox3/releases 3