Interactive Illustration of Errors in Hypothesis Testing and Rejection Region

Interactive Illustration of Errors in Hypothesis Testing and Rejection Region
Loading the math board and drawing, please wait…
2016-03-31 18:59
① This applet dynamically illustrates the relationships between Type I error, Type II error, power, and the rejection region for testing simple hypotheses, using two normal distributions representing the null and alternative hypotheses. ② Core mathematical concepts include normal distribution, hypothesis testing, significance level, rejection region, error probabilities, and statistical power, with areas under density curves computed via integration. ③ Construction details: The GeoGebra commands Normal, Point, Line, Segment, and Integral are used to create the two density curves, mark the rejection boundary, and shade areas corresponding to error probabilities and power. Sliders (e.g., size) adjust sample size or significance level, while checkboxes (ShowA, ShowSize, ShowTypeII, ShowPower) toggle visual elements. ④ Suitable for university-level statistics or probability courses, as well as advanced high school statistics, serving as an interactive teaching tool to clarify abstract hypothesis testing concepts.

GeoGebra Commands & Parameters

  1. Normal((n * p0), sqrt(((n * p0) * (1 - p0))), x) → f
  2. Normal((n * p1), sqrt(((n * p1) * (1 - p1))), x) → g
  3. Point(xAxis) → R
  4. Line(R, x = 0) → a
  5. Segment(R, (x(R), Max[f(x(R)), g(x(R))])) → b
  6. Segment((-20, -0.005), (x(R), -0.005)) → c
  7. Integral(f, -20, x(R)) → size
  8. Integral(g, x(R), 200) → TypeIIError
  9. Integral(g, -20, x(R)) → Power

AI Drawing Prompt Reference

Create an interactive statistical graph illustrating errors in hypothesis testing and power. Draw two normal density curves on the same axes, representing the null and alternative hypotheses, with the null curve centered at a smaller value and the alternative curve at a larger value. Place a movable point on the x-axis as the critical value, and draw a vertical dashed line through it as the rejection boundary. Add a vertical segment from this point up to the higher of the two curve heights at that x-coordinate. Shade the area under the null curve to the left of the critical value to represent Type I error, shade the area under the alternative curve to the right of the critical value for Type II error, and also shade the area under the alternative curve to the left of the critical value for power. Include sliders to adjust sample size or significance level, and checkboxes to toggle the visibility of each shaded region.
The prompt above was compiled from the original drawing commands and is for reference only.