# Wilson Score Interval - rating question (PHP)

**URL:** <https://boards.straightdope.com/t/wilson-score-interval-rating-question-php/616591>\
**Category:** Factual Questions\
**Created:** [March 23, 2012, 12:26pm UTC](https://boards.straightdope.com/t/wilson-score-interval-rating-question-php/616591 "2012-03-23T12:26:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rune](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@Rune](https://boards.straightdope.com/u/Rune)\
**Post date:** [March 23, 2012, 12:26pm UTC](https://boards.straightdope.com/t/wilson-score-interval-rating-question-php/616591/1 "2012-03-23T12:26:04Z")

</div>

So I was looking at this code: [PHP Content Rating / Confidence](http://www.derivante.com/2009/09/01/php-content-rating-confidence/), and I don’t understand this line:

```auto

$z = Rating::pnormaldist(1-$power/2,0,1);

```

. The function (public static function pnormaldist($qn)) only take one argument, so why are three arguments passed (1-$power/2 + 0 + 1)?

Also since the pnormaldist is not dependent on $positive or $total, would it be correct to assume that if I wanted to calculate a number of scores, this call can be taken out of the loop and called only once prior to that. Or rather, if I decide to use a power of e.g., 0.1 I can just hardcode 1.6448536466084 in it’s place and never call the pnormaldist function?
