Chocolate Boxes II: Histogram & Median Demo
Loading the math board and drawing, please wait…
In collections
Nível 2
① This example shows how to build a histogram of chocolate boxes in GeoGebra and dynamically display statistics such as mean and median as the data change. ② Core mathematical concepts include data distribution, frequency histograms, calculation of mean and median, and ideas from sequences and series. ③ Construction highlights: the commands Segment, Point, DynamicCoordinates, and Polygon are used to create the box base, front face, and multiple candy objects (e.g., FundoDaCaixinha, BombomAmarelo), with dynamic coordinates enabling automatic arrangement of candies and updating of the statistical graphics. ④ Suitable for high‑school probability and statistics courses, introductory university statistics, and as a training resource for data visualization and GeoGebra modeling.
GeoGebra Commands & Parameters
Segment(A, B) → fPoint(f) → CSegment(A, C) → gPoint(f) → DSegment(C, D) → hPoint(f) → ESegment(D, E) → iSegment(BAP1, P4) → a4Segment(BBP1, B) → b4Segment(BRP1, B) → r4Segment(BVP1, D) → v2DynamicCoordinates(BAP1, If[a4 < 0.75, x(J), x(BAP1)], If[a4 < 0.75, y(J), y(BAP1)]) → A1DynamicCoordinates(BBP1, If[b4 < 0.75, x(J), x(BBP1)], If[b4 < 0.75, y(J), y(BBP1)]) → B1DynamicCoordinates(BRP1, If[r4 < 0.75, x(J), x(BRP1)], If[r4 < 0.75, y(J), y(BRP1)]) → R1DynamicCoordinates(BVP1, If[v2 < 0.75, x(H), x(BVP1)], If[v2 < 0.75, y(H), y(BVP1)]) → V1Polygon(BAP1, BAP2, BAP2 + (0, 1.4), BAP1 + (0, 1.4)) → q1, j, k, l, mPolygon(BBP1, BBP2, BBP2 + (0, 1.4), BBP1 + (0, 1.4)) → q2, n, p, q, rPolygon(BVP1, BVP2, BVP2 + (0, 1.3), BVP1 + (0, 1.3)) → q3, s, t, a, bPolygon(BRP1, BRP2, BRP2 + (0, 1.2), BRP1 + (0, 1.2)) → q4, c, d, e, f_1Segment(BAP1, P1) → a1Segment(BAP1, P2) → a2Segment(BAP1, P3) → a3Segment(BBP1, C) → b1Segment(BBP1, D) → b2Segment(BBP1, E) → b3Segment(BRP1, C) → r1Segment(BRP1, D) → r2Segment(BRP1, E) → r3Segment(BVP1, C) → v1Segment(BVP1, E) → v3Segment(BVP1, B) → v4
AI Drawing Prompt Reference
Draw a statistical chart of chocolate boxes including a histogram with dynamically displayed mean and median. The chart should show multiple candy objects like yellow candies, arranged automatically by dynamic coordinates, and update statistical graphics as data changes. The box consists of multiple faces, including a base and a front face, drawn using polygon tools, with candy positions and quantities labeled.
The prompt above was compiled from the original drawing commands and is for reference only.