normally distributed population, calculating in R the probability of negative or zero readings occurring

283 views Asked by At

In R, how do you calculate the probability of negative or zero readings occurring? μ and σ are giving.

1

There are 1 answers

2
denis On

You can use the distribution function of the gaussian distribution:

pnorm(0,μ,σ)

(I guess you are speaking about gaussian distribution)


edit

The pnorm is the cumulative density function. Its values are between 0 and 1, and its value at x gives the area under the gaussian curve from -inf to x. In my example below, the value at 0 of pnorm give the area in pink under the gaussian curve, so the probability you are looking for, i.e. the probability of sampling a value following the corresponding gausian distribution with a value below or equal to 0.

enter image description here