Skip to content
Prev 247896 / 398506 Next

function of probability for normal distribution

Jeremy,

I don't seem to remember signing up to have R-help be my personal e-mail :-)

It is common to use phi to represent the standard normal distribution (with mean 0, and variance 1), the "script/small/lower case" version is for the distribution (height of the bell curve) and the "block/capitol/upper case"  is for the cumulative distribution.

So for arbitrary mean and variance you get 1/sigma * phi( (x-mu)/sigma ).

The general idea for any truncated distribution is that it will have the same shape as the non-truncated version, it just needs to be scaled so that the area is 1, the proper scaling is just the area under the original.  So the formulas you see on that page start with the regular normal (phi) divided by the area under the curve between A and B which is just the difference in the cumulative distribution at those 2 points.

In R dnorm will correspond to phi and pnorm to PHI.  You could use the exact formulas on that page, but it would be simpler to use the arguments to dnorm and pnorm.