Confidence Intervals, Hypothesis Testing, and p-values
Loading the math board and drawing, please wait…
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
InverseNormal(0, 1, 1 - alpha / 2) → zstarLine((0, (-ciseparation)), (1, (-ciseparation))) → ciLinePoint(ciLine) → xbarPointPoint(l) → μ_0Point({x(μ_0), pcurve(x(μ_0))}) → ptracerSegment((x(μ_0), y(μ_0) - 0.075), (x(μ_0), y(μ_0) - 0.125)) → lefteffectsizeintervalSegment((x(μ_0), l(0) + 0.05), (x(μ_0), (-ciseparation) - 0.01)) → verticalmarkerlineTextfield(pvalue) → pInputTextfield(effectsizevalue) → effectsizeInputSegment((xbar, y(μ_0) - 0.075), (xbar, y(μ_0) - 0.125)) → righteffectsizeintervalSegment((xbar, (-ciseparation) + 0.025), (xbar, (-ciseparation) - 0.025)) → xbarciSegment((xbar, (-ciseparation) - 0.03), (xbar, norm(xbar) + 0.01)) → xbarmarkerlineLine(xbarPoint, Vector[Point[{1, 0}]]) → CIaxisSegment((xbar - zstar, (-ciseparation)), (xbar + zstar, (-ciseparation))) → cilineMirror(CILeftEndP1, ciline) → CILeftEndP2Point({xbar - zstar, (-ciseparation)}) → CILeftEndP3Circle(CILeftEndP1, CILeftEndP2, CILeftEndP3) → CILeftEndCircleArc(CILeftEndCircle, CILeftEndP1, CILeftEndP2) → CILeftEndArcMirror(CILeftEndP1, x + (0 * z) = xbar) → CILeftEndP1'Mirror(CILeftEndP2, x + (0 * z) = xbar) → CILeftEndP2'Arc(Mirror[CILeftEndCircle, x + (0 * z) = xbar], CILeftEndP1', CILeftEndP2') → CIRightEndArcIntegralBetween(norm, l, x(μ_0) - 5, x(μ_0) - effectsize) → lefttailIntegralBetween(norm, l, x(μ_0) + effectsize, x(μ_0) + 5) → righttailSegment((x(μ_0), y(μ_0) - 0.1), (xbar, y(μ_0) - 0.1)) → effectsizeintervalSegment((x(μ_0), (-ciseparation) + 0.015), (x(μ_0), y(P))) → verticalmarkerline2Segment((xbar - 6, (-ciseparation)), (xbar - zstar, (-ciseparation))) → leftrejectlineSegment((xbar + zstar, (-ciseparation)), (xbar + 5, (-ciseparation))) → rightrejectlineTextfield(alpha) → alphaInputSegment((xbar - zstar, (-ciseparation)), (xbar - zstar, pcurve(xbar - zstar))) → thresholdGuideline1Segment((xbar + zstar, (-ciseparation)), (xbar + zstar, pcurve(xbar + zstar))) → thresholdGuideline2Ray((0, 0), (0, 1)) → pAxisLineLine(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.