Skip to content

Commit

Permalink
Merge pull request #936 from d-torrance/normal-approx-to-binomial
Browse files Browse the repository at this point in the history
Increase minimum z-score of normal approx. to binomial dist. problem
  • Loading branch information
drdrew42 authored Aug 17, 2022
2 parents 5a61ce9 + f0a4e8b commit cb0f03c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $p = 0.48;
$q = 1 - $p;
$mu = Compute($n*$p);
$sigma = Compute(sqrt($n*$p*$q));
$x = random(round(-3.5*$sigma + $mu), round(-2*$sigma+$mu));
$x = random(round(-3.4*$sigma + $mu), round(-2*$sigma+$mu));

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

0 comments on commit cb0f03c

Please sign in to comment.