Comparing Experimental and Theoretical Probability
Loading the math board and drawing, please wait…
This example demonstrates the comparison between experimental and theoretical probability to understand basic concepts of probability and statistics. It uses commands like Sequence, Polygon, Segment, Textfield, LaTeX, Translate, If, etc., suitable for high school math education.
GeoGebra Commands & Parameters
Sequence(Segment[StartPoint - (i * (0, TableHeight)), StartPoint + (TableW1 + TableW2, 0) - (i * (0, TableHeight))], i, 0, NumRows) → HorizontalLinesPolygon(StartPoint, StartPoint + (TableW1 + TableW2, 0), StartPoint + (TableW1 + TableW2, (-TableHeight)), StartPoint + (0, (-TableHeight))) → ShadedTop, startpoint, f, g, hSegment(StartPoint, StartPoint - (0, (NumRows * TableHeight))) → LeftSegmentSegment(StartPoint + (TableW1, 0), StartPoint + (TableW1, ((-NumRows) * TableHeight))) → MidSegmentSegment(StartPoint + (TableW1 + TableW2, 0), StartPoint + (TableW1 + TableW2, ((-NumRows) * TableHeight))) → RightSegmentTextfield(StudentAns) → StudentAnswerLaTeX("Type\ a\ number\ into\ the\ input\ box\\ before\ checking\ your\ answer.") → FeedbackNSLaTeX("\times") → WrongLaTeX("\checkmark") → RightLaTeX("Value") → ValueLaTeX("Frequency") → FrequencyLaTeX("Tally") → TallySegment(StartPoint + (TableW1 + TableW3, 0), StartPoint + (TableW1 + TableW3, ((-NumRows) * TableHeight))) → Mid2SegmentSegment(StartPoint + (TableW1 + (2 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (2 * tallydist), (-2 * TableHeight) + tallyheight)) → T11Segment(StartPoint + (TableW1 + (3 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (3 * tallydist), (-2 * TableHeight) + tallyheight)) → T12Segment(StartPoint + (TableW1 + (4 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (4 * tallydist), (-2 * TableHeight) + tallyheight)) → T13Segment(StartPoint + (TableW1 + (5 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (5 * tallydist), (-2 * TableHeight) + tallyheight)) → T14Segment(StartPoint + (TableW1 + (7 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (7 * tallydist), (-2 * TableHeight) + tallyheight)) → T16Segment(StartPoint + (TableW1 + (8 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (8 * tallydist), (-2 * TableHeight) + tallyheight)) → T17Segment(StartPoint + (TableW1 + (9 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (9 * tallydist), (-2 * TableHeight) + tallyheight)) → T18Segment(StartPoint + (TableW1 + (10 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (10 * tallydist), (-2 * TableHeight) + tallyheight)) → T19Segment(StartPoint + (TableW1 + (12 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (12 * tallydist), (-2 * TableHeight) + tallyheight)) → T111Segment(StartPoint + (TableW1 + (13 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (13 * tallydist), (-2 * TableHeight) + tallyheight)) → T112Segment(StartPoint + (TableW1 + (14 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (14 * tallydist), (-2 * TableHeight) + tallyheight)) → T113Segment(StartPoint + (TableW1 + (15 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (15 * tallydist), (-2 * TableHeight) + tallyheight)) → T114Segment(StartPoint + (TableW1 + (17 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (17 * tallydist), (-2 * TableHeight) + tallyheight)) → T116Segment(StartPoint + (TableW1 + (18 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (18 * tallydist), (-2 * TableHeight) + tallyheight)) → T117Segment(StartPoint + (TableW1 + (19 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (19 * tallydist), (-2 * TableHeight) + tallyheight)) → T118Segment(StartPoint + (TableW1 + (20 * tallydist), (-TableHeight) - tallyheight), StartPoint + (TableW1 + (20 * tallydist), (-2 * TableHeight) + tallyheight)) → T119Segment(StartPoint + (TableW1 + (1.5 * tallydist), (-3 / 2 * TableHeight)), StartPoint + (TableW1 + (5.5 * tallydist), (-3 / 2 * TableHeight))) → T15Segment(StartPoint + (TableW1 + (6.5 * tallydist), (-3 / 2 * TableHeight)), StartPoint + (TableW1 + (10.5 * tallydist), (-3 / 2 * TableHeight))) → T110Segment(StartPoint + (TableW1 + (11.5 * tallydist), (-3 / 2 * TableHeight)), StartPoint + (TableW1 + (15.5 * tallydist), (-3 / 2 * TableHeight))) → T115Segment(StartPoint + (TableW1 + (16.5 * tallydist), (-3 / 2 * TableHeight)), StartPoint + (TableW1 + (20.5 * tallydist), (-3 / 2 * TableHeight))) → T120Translate(T11, (0, (-TableHeight))) → T21Translate(T12, (0, (-TableHeight))) → T22Translate(T13, (0, (-TableHeight))) → T23Translate(T14, (0, (-TableHeight))) → T24Translate(T15, (0, (-TableHeight))) → T25Translate(T16, (0, (-TableHeight))) → T26Translate(T17, (0, (-TableHeight))) → T27Translate(T18, (0, (-TableHeight))) → T28Translate(T19, (0, (-TableHeight))) → T29Translate(T110, (0, (-TableHeight))) → T210Translate(T111, (0, (-TableHeight))) → T211Translate(T112, (0, (-TableHeight))) → T212Translate(T113, (0, (-TableHeight))) → T213Translate(T114, (0, (-TableHeight))) → T214Translate(T115, (0, (-TableHeight))) → T215Translate(T116, (0, (-TableHeight))) → T216Translate(T117, (0, (-TableHeight))) → T217Translate(T118, (0, (-TableHeight))) → T218Translate(T119, (0, (-TableHeight))) → T219Translate(T120, (0, (-TableHeight))) → T220Translate(T21, (0, (-TableHeight))) → T31Translate(T22, (0, (-TableHeight))) → T32Translate(T23, (0, (-TableHeight))) → T33Translate(T24, (0, (-TableHeight))) → T34Translate(T25, (0, (-TableHeight))) → T35Translate(T26, (0, (-TableHeight))) → T36Translate(T27, (0, (-TableHeight))) → T37Translate(T28, (0, (-TableHeight))) → T38Translate(T29, (0, (-TableHeight))) → T39Translate(T210, (0, (-TableHeight))) → T310Translate(T211, (0, (-TableHeight))) → T311Translate(T212, (0, (-TableHeight))) → T312Translate(T213, (0, (-TableHeight))) → T313Translate(T214, (0, (-TableHeight))) → T314Translate(T215, (0, (-TableHeight))) → T315Translate(T216, (0, (-TableHeight))) → T316Translate(T217, (0, (-TableHeight))) → T317Translate(T218, (0, (-TableHeight))) → T318Translate(T219, (0, (-TableHeight))) → T319Translate(T220, (0, (-TableHeight))) → T320Translate(T31, (0, (-TableHeight))) → T41Translate(T32, (0, (-TableHeight))) → T42Translate(T33, (0, (-TableHeight))) → T43Translate(T34, (0, (-TableHeight))) → T44Translate(T35, (0, (-TableHeight))) → T45Translate(T36, (0, (-TableHeight))) → T46Translate(T37, (0, (-TableHeight))) → T47Translate(T38, (0, (-TableHeight))) → T48Translate(T39, (0, (-TableHeight))) → T49Translate(T310, (0, (-TableHeight))) → T410Translate(T311, (0, (-TableHeight))) → T411Translate(T312, (0, (-TableHeight))) → T412Translate(T313, (0, (-TableHeight))) → T413Translate(T314, (0, (-TableHeight))) → T414Translate(T315, (0, (-TableHeight))) → T415Translate(T316, (0, (-TableHeight))) → T416Translate(T317, (0, (-TableHeight))) → T417Translate(T318, (0, (-TableHeight))) → T418Translate(T319, (0, (-TableHeight))) → T419Translate(T320, (0, (-TableHeight))) → T420Translate(T41, (0, (-TableHeight))) → T51Translate(T42, (0, (-TableHeight))) → T52Translate(T43, (0, (-TableHeight))) → T53Translate(T44, (0, (-TableHeight))) → T54Translate(T45, (0, (-TableHeight))) → T55Translate(T46, (0, (-TableHeight))) → T56Translate(T47, (0, (-TableHeight))) → T57Translate(T48, (0, (-TableHeight))) → T58Translate(T49, (0, (-TableHeight))) → T59Translate(T410, (0, (-TableHeight))) → T510Translate(T411, (0, (-TableHeight))) → T511Translate(T412, (0, (-TableHeight))) → T512Translate(T413, (0, (-TableHeight))) → T513Translate(T414, (0, (-TableHeight))) → T514Translate(T415, (0, (-TableHeight))) → T515Translate(T416, (0, (-TableHeight))) → T516Translate(T417, (0, (-TableHeight))) → T517Translate(T418, (0, (-TableHeight))) → T518Translate(T419, (0, (-TableHeight))) → T519Translate(T420, (0, (-TableHeight))) → T520Translate(T51, (0, (-TableHeight))) → T61Translate(T52, (0, (-TableHeight))) → T62Translate(T53, (0, (-TableHeight))) → T63Translate(T54, (0, (-TableHeight))) → T64Translate(T55, (0, (-TableHeight))) → T65Translate(T56, (0, (-TableHeight))) → T66Translate(T57, (0, (-TableHeight))) → T67Translate(T58, (0, (-TableHeight))) → T68Translate(T59, (0, (-TableHeight))) → T69Translate(T510, (0, (-TableHeight))) → T610Translate(T511, (0, (-TableHeight))) → T611Translate(T512, (0, (-TableHeight))) → T612Translate(T513, (0, (-TableHeight))) → T613Translate(T514, (0, (-TableHeight))) → T614Translate(T515, (0, (-TableHeight))) → T615Translate(T516, (0, (-TableHeight))) → T616Translate(T517, (0, (-TableHeight))) → T617Translate(T518, (0, (-TableHeight))) → T618Translate(T519, (0, (-TableHeight))) → T619Translate(T520, (0, (-TableHeight))) → T620LaTeX("The\ experiment\ is\ over.\\ Now\ use\ the\ data\ to\ find\ the\ probability.") → ExperimentOverTextIf(favoutcomes ≟ 1, "trial", "trials") → trialsLaTeX("The\ experimental\ probability\ is") → ProbLaTeX((((((((((((((((((("You\ performed\ " * NumTried) * "\ trials.\\ ") * eventCap) * "\ occurred\ in\ ") * favoutcomes) * "\ ") * trials) * ".\\\ \\ According\ to\ this\ experiment,\, the\ probability\\ of\ ") * action2) * "\ ") * event) * "\ is\ \dfrac{") * favoutcomes) * "}{") * NumTried) * "}") * or) * ".")) → FeedbackWrongLaTeX("The\ theoretical\ probability\ is") → TheoreticalProTextfield(StudentAns2) → StudentAnsSecondLaTeX("\times") → Wrong2LaTeX("\checkmark") → Correct2LaTeX("\textbf{Instructions\text{:}}\ Enter\ the\ probability\ in\ the\ input\ box.") → TheoInstructions2LaTeX(action3 + ((((("\ the\ " * object) * "\ at\ least\ ") * MinTimes) * "\ times\\ before\ ending\ the\ experiment."))) → FBNotEnoughTrialsLaTeX("Correct!") → FeedbackCorrectLaTeX("End\ the\ experiment\ before\ checking\ your\ work.") → FBEndExperimentLaTeX((("That\ is\ not\ correct.\\ You\ performed\ " * NumTried) * "\ trials.\, Count\ the\ number\ of\\ trials\ that\ had\ favourable\ outcomes\ and\ try\ again.")) → FeedbackWrong1LaTeX((((((((("A\ " * object) * "\ is\ ") * action) * ".\ What\ is\ the\ theoretical\ probability\ of\ ") * action2) * "\ ") * event) * "?")) → TheoInstructionsLaTeX((("\textbf{Instructions\text{:}}\ Press\ the\ \textbf{Run\ a\ Trial}\ button\ to\ " * BDlowercase) * ".\\ End\ the\ experiment\ and\ then\ enter\ the\ experimental\ probability\ into\ the\ input\ box.")) → Instructions2LaTeX("Part\ 1") → Part1LaTeX("Part\ 2") → Part2LaTeX(("Total\ number\ of\ trials\text{:}\ " * NumTried)) → TotalTrialsLaTeX(("Total\ number\ of\ trials\text{:}\ " * NumTried)) → TotalTrials2LaTeX((((((((((((((((("Incorrect.\\ There\ are\ " * Tposoutcomes) * "\ outcomes\ and\ ") * Tfavoutcomes) * "\ of\ those\ outcomes\ ") * Tis) * "\ favourable.\\ Therefore\ the\ theoretical\ probability\ of\ ") * action2) * "\ ") * event) * "\ is\ \dfrac{") * Tfavoutcomes) * "}{") * Tposoutcomes) * "}") * Tor) * ".")) → TheoFeedbackLaTeX((((((((((action3 * "\ the\ ") * object) * "\ at\ least\ ") * MinTimes) * "\ times.\ The\ table\ below\ will\ summarize\ the\ results.\\ Use\ the\ data\ you\ collect\ to\ find\ the\ experimental\ probability\ of\ \textbf{") * action2) * " \ ") * event) * "}.")) → Instructions
AI Drawing Prompt Reference
Create a statistical chart comparing experimental and theoretical probability, featuring multiple horizontal line segments and colored polygons. The chart includes three horizontal bars at the bottom with varying widths, representing different experimental outcomes, and small rectangular bars above them to indicate frequencies. Vertical line segments separate different sections, with text labels like 'Value', 'Frequency', 'Tally' to explain the content.
The prompt above was compiled from the original drawing commands and is for reference only.