Skip to content

Commit f0a4e8b

Browse files
committed
Increase minimum z-score of normal approx. to binomial dist. problem
The table in Stevens says to use P(Z < z) = 0.0001 for all z < -3.5, which isn't accurate when z is still near -3.5, so we avoid this making z >= -3.4.
1 parent fb68f2a commit f0a4e8b

File tree

1 file changed

+1
-1
lines changed
  • Contrib/Piedmont/StevensStatistics/6-ContinuousProbabilityDistributions

1 file changed

+1
-1
lines changed

Contrib/Piedmont/StevensStatistics/6-ContinuousProbabilityDistributions/6.5.13.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $p = 0.48;
3434
$q = 1 - $p;
3535
$mu = Compute($n*$p);
3636
$sigma = Compute(sqrt($n*$p*$q));
37-
$x = random(round(-3.5*$sigma + $mu), round(-2*$sigma+$mu));
37+
$x = random(round(-3.4*$sigma + $mu), round(-2*$sigma+$mu));
3838

3939
$z = Compute(($x - $mu)/$sigma)->with(
4040
tolType => 'absolute',

0 commit comments

Comments
 (0)