Example of Quantiles in a Discrete Random Variable

Example of Quantiles in a Discrete Random Variable
Loading the math board and drawing, please wait…
2016-04-05 20:15
① This example shows how to visualise quantiles (quartiles, median, etc.) of a discrete random variable together with its step‑wise cumulative distribution function in GeoGebra. ② Core mathematical concepts: discrete probability distribution, cumulative distribution function, definition and geometric interpretation of quantiles. ③ Construction highlights: the If command builds the piecewise constant CDF; Segment and Vector draw the step segments and indicator arrows; objects such as g, alphaM, alpha, D2‑D4, A2‑A6, B1‑B6, C1‑C5 provide dynamic labels and interactivity. ④ Suitable for high‑school probability & statistics electives, introductory university probability courses, and as a teaching resource for instructors and self‑study learners.

GeoGebra Commands & Parameters

  1. If(D2 ≥ alphaM, A2, If[D3 ≥ alphaM, A3, If[D4 ≥ alphaM, A4, A5]]) → valor
  2. Segment(A, L) → a
  3. Segment(B, M) → b
  4. Segment(C, N) → c
  5. Segment(D, O) → d
  6. Segment(W, J_1) → l
  7. Segment(Z, K_1) → m
  8. Segment(A_1, L_1) → q
  9. Segment(U_1, V_1) → g_1
  10. Segment(J_1, Z) → h_1
  11. Segment(K_1, A_1) → i_1
  12. Segment(A, W) → s_1
  13. Segment(K_2, A_2) → e
  14. If(valor ≟ A2, D2, If[valor ≟ A3, D3, If[valor ≟ A4, D4, D5]]) → imgvalor
  15. Vector(F, W_1) → u
  16. Segment(A_2, G) → h
  17. Segment(I, H) → i

AI Drawing Prompt Reference

Create a graph of a discrete random variable showing its stepwise cumulative distribution function, with horizontal and vertical reference lines marking quantiles such as quartiles and median. Use arrows to indicate the quantile values on the x-axis, and connect key points with line segments to highlight their positions. Include point markers for the probability mass function and a stepped CDF curve. Label the quantile positions with dynamic text showing their numeric values. Arrange the elements clearly for educational demonstration.
The prompt above was compiled from the original drawing commands and is for reference only.