Macaulay2 » Documentation
Packages » Probability » ProbabilityDistribution » continuousProbabilityDistribution » normalDistribution
next | previous | forward | backward | up | index | toc

normalDistribution -- normal distribution

Description

The normal distribution with mean mu and standard deviation sigma.

i1 : X = normalDistribution(30, 5)

o1 = N(30,5)

o1 : ContinuousProbabilityDistribution
i2 : density_X 25

o2 = .04839414490382868

o2 : RR (of precision 53)
i3 : probability_X 35

o3 = .8413447460685429

o3 : RR (of precision 53)
i4 : quantile_X 0.75

o4 = 33.37244875098041

o4 : RR (of precision 53)
i5 : random X

o5 = 30.93436236939618

o5 : RR (of precision 53)

With no arguments, the standard normal distribution with mean 0 and standard deviation 1 is returned.

i6 : Z = normalDistribution()

o6 = N(0,1)

o6 : ContinuousProbabilityDistribution
i7 : quantile_Z 0.975

o7 = 1.959963984540054

o7 : RR (of precision 53)

Ways to use normalDistribution:

  • normalDistribution()
  • normalDistribution(Number,Number)

For the programmer

The object normalDistribution is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Probability.m2:1143:0.