From Wikipedia, the free encyclopedia
Probability density function for the normal distribution
gnuplot source under GPL:
_ln_dnorm(x, m, s) = -0.5 * log(2*pi) - log(s) - 0.5*((x-m)*1.0/s)**2
dnorm(x, mean, sd) = exp(_ln_dnorm(x, mean, sd))
pnorm(x, mean, sd) = norm((x-mean) * 1.0/sd)
set samples 1001
set terminal postscript enhanced color solid lw 2 "Times-Roman" 20
set output
set xrange [-5:5]
set xtics 1
set yrange [0:1]
set ytics 0.1
f(x,y,z) = dnorm(x, y, sqrt(z)) #use variance, not sd!
set key 3.8,0.94
#f(x,y,z) = pnorm(x, y, sqrt(z))
#set key 3.8,0.2
plot \
f(x, 0, 0.2) title "{/Symbol m} = 0, {/Symbol s}^2 = 0.2", \
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):