Confidence Intervals, Hypothesis Testing, and p-values

Confidence Intervals, Hypothesis Testing, and p-values
Loading the math board and drawing, please wait…
2014-07-22 01:30
This applet illustrates the equivalence between confidence interval-based plausibility testing and formal hypothesis testing. It covers key statistical concepts such as confidence intervals, hypothesis testing, and p-values. Using GeoGebra commands like InverseNormal, Line, Point, etc., it dynamically demonstrates these concepts. Suitable for statistics and probability courses.

GeoGebra Commands & Parameters

  1. InverseNormal(0, 1, 1 - alpha / 2) → zstar
  2. Line((0, (-ciseparation)), (1, (-ciseparation))) → ciLine
  3. Point(ciLine) → xbarPoint
  4. Point(l) → μ_0
  5. Point({x(μ_0), pcurve(x(μ_0))}) → ptracer
  6. Segment((x(μ_0), y(μ_0) - 0.075), (x(μ_0), y(μ_0) - 0.125)) → lefteffectsizeinterval
  7. Segment((x(μ_0), l(0) + 0.05), (x(μ_0), (-ciseparation) - 0.01)) → verticalmarkerline
  8. Textfield(pvalue) → pInput
  9. Textfield(effectsizevalue) → effectsizeInput
  10. Segment((xbar, y(μ_0) - 0.075), (xbar, y(μ_0) - 0.125)) → righteffectsizeinterval
  11. Segment((xbar, (-ciseparation) + 0.025), (xbar, (-ciseparation) - 0.025)) → xbarci
  12. Segment((xbar, (-ciseparation) - 0.03), (xbar, norm(xbar) + 0.01)) → xbarmarkerline
  13. Line(xbarPoint, Vector[Point[{1, 0}]]) → CIaxis
  14. Segment((xbar - zstar, (-ciseparation)), (xbar + zstar, (-ciseparation))) → ciline
  15. Mirror(CILeftEndP1, ciline) → CILeftEndP2
  16. Point({xbar - zstar, (-ciseparation)}) → CILeftEndP3
  17. Circle(CILeftEndP1, CILeftEndP2, CILeftEndP3) → CILeftEndCircle
  18. Arc(CILeftEndCircle, CILeftEndP1, CILeftEndP2) → CILeftEndArc
  19. Mirror(CILeftEndP1, x + (0 * z) = xbar) → CILeftEndP1'
  20. Mirror(CILeftEndP2, x + (0 * z) = xbar) → CILeftEndP2'
  21. Arc(Mirror[CILeftEndCircle, x + (0 * z) = xbar], CILeftEndP1', CILeftEndP2') → CIRightEndArc
  22. IntegralBetween(norm, l, x(μ_0) - 5, x(μ_0) - effectsize) → lefttail
  23. IntegralBetween(norm, l, x(μ_0) + effectsize, x(μ_0) + 5) → righttail
  24. Segment((x(μ_0), y(μ_0) - 0.1), (xbar, y(μ_0) - 0.1)) → effectsizeinterval
  25. Segment((x(μ_0), (-ciseparation) + 0.015), (x(μ_0), y(P))) → verticalmarkerline2
  26. Segment((xbar - 6, (-ciseparation)), (xbar - zstar, (-ciseparation))) → leftrejectline
  27. Segment((xbar + zstar, (-ciseparation)), (xbar + 5, (-ciseparation))) → rightrejectline
  28. Textfield(alpha) → alphaInput
  29. Segment((xbar - zstar, (-ciseparation)), (xbar - zstar, pcurve(xbar - zstar))) → thresholdGuideline1
  30. Segment((xbar + zstar, (-ciseparation)), (xbar + zstar, pcurve(xbar + zstar))) → thresholdGuideline2
  31. Ray((0, 0), (0, 1)) → pAxisLine
  32. Line(alphaP1, alphaP2) → pThresholdLine

AI Drawing Prompt Reference

Draw a normal distribution curve illustrating confidence intervals and hypothesis testing. Start by drawing a horizontal line to represent the confidence level, then draw the confidence interval and the rejection region for hypothesis testing. Add points for the sample mean and the null hypothesis mean, and connect them with segments to show the effect size and confidence interval.
The prompt above was compiled from the original drawing commands and is for reference only.