stats::normal -- the normal
(Gaussian) distribution
Introductionstats::normal(x, m, v) computes the
value
1/sqrt(2*PI*v) * int(exp(-(t-m)^2/2/v), t=-infinity..x)
of the normal distribution with mean m and variance v at the point x.
Call(s)stats::normal(x <, m> <, v>)
Parametersx |
- | an arithmetical expression. |
m |
- | the mean of the distribution: an arithmetical expression. |
v |
- | the variance of the distribution: an arithmetical expression. |
Returnsan arithmetical expression.
Side
EffectsThe function is sensitive to the environment variable DIGITS, when the argument
x is a floating point number.
Related
Functionsstats::ChiSquare,
stats::Tdist
Details
Example
1We compute the normal distribution with mean m=0 and variance v=1 at the point x = 3.4:
>> stats::normal(3.4)
0.9996630707
Example
2We compute the normal distribution with symbolic arguments:
>> stats::normal(x, m, v)
/ 1/2 \
| 2 (x - m) |
erfc| ------------ |
| 1/2 |
\ 2 v /
1 - --------------------
2