Hypothesis Testing: Proportion or Mean

Hypothesis Testing: Proportion or Mean
Loading the math board and drawing, please wait…
2018-11-24 18:30
This example demonstrates the process of hypothesis testing for proportions or means, visually showing the relationship between test results and theoretical distributions. Key math concepts include hypothesis testing, normal distribution, test statistic, p-value, and power. Construction highlights involve GeoGebra commands like Mod, Sequence, Element, If, Normal, Min, TDistribution, and objects such as MnXbrSq, Seed, Op00. Suitable for high school and above mathematics and statistics education for teaching and concept illustration.

GeoGebra Commands & Parameters

  1. Mod(Op00, 2) → Op06
  2. Sequence(Mod[8 + (89 * k), 192] + 50, k, 1, 40) → OpSq1
  3. Element(OpSq1, Seed) → OpNm01
  4. Mod(OpNm01, 2) → Op01
  5. Mod(OpNm05, 2) → Op05
  6. If(Op06 ≟ 0, Element[MnRFSq, Op00 / 2], 1) → MnRF
  7. If(Op06 ≟ 0, Element[MnSDSq, Op00 / 2], 1) → MnSD
  8. If(Op06 ≟ 0, Element[MnNSq, Op00 / 2], 30) → MnN
  9. If(Op03 < 2, -1, If[Op03 > 3, 1, 0]) → TpNm
  10. Element(CnfSq, Op02) → Cnf
  11. If(TpNm ≟ 0, (-InverseTDistribution[MnN - 1, α / 2]), (-InverseTDistribution[MnN - 1, α])) → CVT
  12. If(Op06 ≟ 1, Element[PpNSq, (Op00 + 1) / 2], 100) → PpN
  13. If(Op06 ≟ 1, Element[PpXSq, (Op00 + 1) / 2], 75) → PpX
  14. Mod(OpNm04, 2) → Op04
  15. If(Op01 ≟ 0, -1, 1) → RndDr
  16. If(TpNm ≟ 0, (-InverseNormal[0, 1, α / 2]), (-InverseNormal[0, 1, α])) → CVZ
  17. If(PpPH < PpPp, -1, If[PpPH > PpPp, 1, 0]) → PpDtDr
  18. If(PpDtDr ≟ -1, If[Op04 ≟ 1, 0, 1], If[Op04 ≟ 1, 0, -1]) → PpIEDr
  19. If(PpIEDr ≟ 1, "is less than ", If[PpIEDr ≟ -1, "is more than ", "does not equal "]) → PpCnIETx
  20. If(PpIEDr ≟ 1, "is less than ", If[PpIEDr ≟ -1, "is more than ", "equals "]) → PpIETx
  21. If(Op06 ≟ 0, Element[MnXbrSq, Op00 / 2], 0) → MnMn
  22. If(MnMn < Mu0, -1, If[MnMn > Mu0, 1, 0]) → MnDtDr
  23. If(MnDtDr ≟ -1, If[Op04 ≟ 1, 0, 1], If[Op04 ≟ 1, 0, -1]) → MnIEDr
  24. If(MnIEDr ≟ 1, "is less than ", If[MnIEDr ≟ -1, "is more than ", "equals "]) → MnIETx
  25. If(PpDtDr ≟ -1, If[Op04 ≟ 1, " equals ", "is less than "], If[Op04 ≟ 1, " equals ", "is more than "]) → PpRlTx
  26. If(PpPH > 0.5, PpPH, 1 - PpPH) → PpPHH
  27. If(PpPH > 0.5, 1 - PpPH, PpPH) → PpPHL
  28. If(Op03 < 3, -1, 1) → ClcDr
  29. Normal(0, 1, PpTS) → PpPVLT0
  30. Min(PpPVLT0, PpPVRT0) → PpPVhf
  31. If(PpPVLT0 < 0.0001, 0.0001, PpPVLT0) → PpPVLT1
  32. If(PpPVTT0 < 0.0001, " < ", " = ") → PVTTsg
  33. If(PpPVTT0 < 0.0001, 0.0001, PpPVTT0) → PpPVTT1
  34. If(PpPVRT0 < 0.0001, 0.0001, PpPVRT0) → PpPVRT1
  35. If(PpPVRT0 < 0.0001, " < ", " = ") → PVRTsg
  36. If(PpPVLT0 < 0.0001, " < ", " = ") → PVLTsg
  37. If(PpIEDr ≟ -1, " > ", If[PpIEDr ≟ 1, " < ", " ≠ "]) → PpDrSgAlt
  38. If(PpIEDr ≟ -1, " ≤ ", If[PpIEDr ≟ 1, " ≥ ", " = "]) → PpDrSgNll
  39. If(PpIEDr ≟ -1, "right-tailed", If[PpIEDr ≟ 1, "left-tailed", "two-tailed"]) → PpTypTx
  40. If(TpNm ≟ -1, "≤ ", " ≥ ") → PVKSg
  41. If(PpIEDr ≟ -1, PpPVRT1, If[PpIEDr ≟ 1, PpPVLT1, PpPVTT1]) → PpPV
  42. If(PpPV < α, "<", "≥") → PpCmpIE
  43. If(PpPV < α, "reject", "keep") → PpDCS
  44. If(PpPV < α, "is", "is not") → PpIONTx
  45. If(PpPV < 0.0001, "<", "=") → PpPVsg
  46. Element(PSSq, Op00) → PS0
  47. TDistribution(MnN - 1, MnTS) → MnPVLT0
  48. If(MnPVLT0 < 0.0001, 0.0001, MnPVLT0) → MnPVLT1
  49. If(MnPVRT0 < 0.0001, 0.0001, MnPVRT0) → MnPVRT1
  50. Min(MnPVLT0, MnPVRT0) → MnPVhf
  51. If(MnPVTT0 < 0.0001, 0.0001, MnPVTT0) → MnPVTT1
  52. If(MnIEDr ≟ -1, MnPVRT1, If[MnIEDr ≟ 1, MnPVLT1, MnPVTT1]) → MnPV
  53. If(MnPV < 0.0001, "<", "=") → MnPVSg
  54. If(MnPV < α, "<", "≥") → MnCmpIE
  55. If(MnPV < α, "reject", "keep") → MnDCS
  56. If(MnDtDr ≟ -1, If[Op04 ≟ 1, " equals ", "is less than "], If[Op04 ≟ 1, " equals ", "is more than "]) → MnRlTx
  57. If(MnIEDr ≟ 1, "is less than ", If[MnIEDr ≟ -1, "is more than ", "does not equal "]) → MnCnIETx
  58. If(MnIEDr ≟ -1, " > ", If[MnIEDr ≟ 1, " < ", " ≠ "]) → MnDrSgnAl
  59. If(MnIEDr ≟ -1, " ≤ ", If[MnIEDr ≟ 1, " ≥ ", " = "]) → MnDrSgnNl
  60. If(MnIEDr ≟ -1, "right-tailed", If[MnIEDr ≟ 1, "left-tailed", "two-tailed"]) → MnTpTx
  61. If(MnPV < α, "is", "is not") → MnIONTx

AI Drawing Prompt Reference

Create a visual representation of hypothesis testing for proportions or means, showcasing normal and t distribution curves, test statistics, p-values, and power. The graph should illustrate the relationship between theoretical distributions and test outcomes, including left and right rejection regions, and decisions of acceptance or rejection under different scenarios. Use distinct colors for distributions and regions, and label key values.
The prompt above was compiled from the original drawing commands and is for reference only.