Normal distribution

Author: www.NiNa.Az
Feb 15, 2025 / 12:26

This article needs additional citations for verification Please help improve this article by adding citations to reliabl

Normal distribution
Normal distribution
Normal distribution

In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is

Normal distribution
Probability density function
image
The red curve is the standard normal distribution.
Cumulative distribution function
image
Notation
Parameters = mean (location)
= variance (squared scale)
Support
PDF
CDF
Quantile
Mean
Median
Mode
Variance
MAD
Skewness
Excess kurtosis
Entropy
MGF
CF
Fisher information

Kullback–Leibler divergence
Expected shortfall

The parameter is the mean or expectation of the distribution (and also its median and mode), while the parameter is the variance. The standard deviation of the distribution is (sigma). A random variable with a Gaussian distribution is said to be normally distributed, and is called a normal deviate.

Normal distributions are important in statistics and are often used in the natural and social sciences to represent real-valued random variables whose distributions are not known. Their importance is partly due to the central limit theorem. It states that, under some conditions, the average of many samples (observations) of a random variable with finite mean and variance is itself a random variable—whose distribution converges to a normal distribution as the number of samples increases. Therefore, physical quantities that are expected to be the sum of many independent processes, such as measurement errors, often have distributions that are nearly normal.

Moreover, Gaussian distributions have some unique properties that are valuable in analytic studies. For instance, any linear combination of a fixed collection of independent normal deviates is a normal deviate. Many results and methods, such as propagation of uncertainty and least squares parameter fitting, can be derived analytically in explicit form when the relevant variables are normally distributed.

A normal distribution is sometimes informally called a bell curve. However, many other distributions are bell-shaped (such as the Cauchy, Student's t, and logistic distributions). (For other names, see Naming.)

The univariate probability distribution is generalized for vectors in the multivariate normal distribution and for matrices in the matrix normal distribution.

Definitions

Standard normal distribution

The simplest case of a normal distribution is known as the standard normal distribution or unit normal distribution. This is a special case when image and image, and it is described by this probability density function (or density): image The variable image has a mean of 0 and a variance and standard deviation of 1. The density image has its peak image at image and inflection points at image and image.

Although the density above is most commonly known as the standard normal, a few authors have used that term to describe other versions of the normal distribution. Carl Friedrich Gauss, for example, once defined the standard normal as image which has a variance of image, and Stephen Stigler once defined the standard normal as image which has a simple functional form and a variance of image

General normal distribution

Every normal distribution is a version of the standard normal distribution, whose domain has been stretched by a factor image (the standard deviation) and then translated by image (the mean value):

image

The probability density must be scaled by image so that the integral is still 1.

If image is a standard normal deviate, then image will have a normal distribution with expected value image and standard deviation image. This is equivalent to saying that the standard normal distribution image can be scaled/stretched by a factor of image and shifted by image to yield a different normal distribution, called image. Conversely, if image is a normal deviate with parameters image and image, then this image distribution can be re-scaled and shifted via the formula image to convert it to the standard normal distribution. This variate is also called the standardized form of image.

Notation

The probability density of the standard Gaussian distribution (standard normal distribution, with zero mean and unit variance) is often denoted with the Greek letter image (phi). The alternative form of the Greek letter phi, image, is also used quite often.

The normal distribution is often referred to as image or image. Thus when a random variable image is normally distributed with mean image and standard deviation image, one may write

image

Alternative parameterizations

Some authors advocate using the precision image as the parameter defining the width of the distribution, instead of the standard deviation image or the variance image. The precision is normally defined as the reciprocal of the variance, image. The formula for the distribution then becomes

image

This choice is claimed to have advantages in numerical computations when image is very close to zero, and simplifies formulas in some contexts, such as in the Bayesian inference of variables with multivariate normal distribution.

Alternatively, the reciprocal of the standard deviation image might be defined as the precision, in which case the expression of the normal distribution becomes

image

According to Stigler, this formulation is advantageous because of a much simpler and easier-to-remember formula, and simple approximate formulas for the quantiles of the distribution.

Normal distributions form an exponential family with natural parameters image and image, and natural statistics x and x2. The dual expectation parameters for normal distribution are η1 = μ and η2 = μ2 + σ2.

Cumulative distribution function

The cumulative distribution function (CDF) of the standard normal distribution, usually denoted with the capital Greek letter image, is the integral

image

Error function

The related error function image gives the probability of a random variable, with normal distribution of mean 0 and variance 1/2 falling in the range image. That is:

image

These integrals cannot be expressed in terms of elementary functions, and are often said to be special functions. However, many numerical approximations are known; see below for more.

The two functions are closely related, namely

image

For a generic normal distribution with density image, mean image and variance image, the cumulative distribution function is

image

The complement of the standard normal cumulative distribution function, image, is often called the Q-function, especially in engineering texts. It gives the probability that the value of a standard normal random variable image will exceed image: image. Other definitions of the image-function, all of which are simple transformations of image, are also used occasionally.

The graph of the standard normal cumulative distribution function image has 2-fold rotational symmetry around the point (0,1/2); that is, image. Its antiderivative (indefinite integral) can be expressed as follows: image

The cumulative distribution function of the standard normal distribution can be expanded by integration by parts into a series:

image

where image denotes the double factorial.

An asymptotic expansion of the cumulative distribution function for large x can also be derived using integration by parts. For more, see Error function#Asymptotic expansion.

A quick approximation to the standard normal distribution's cumulative distribution function can be found by using a Taylor series approximation:

image

Recursive computation with Taylor series expansion

The recursive nature of the imagefamily of derivatives may be used to easily construct a rapidly converging Taylor series expansion using recursive entries about any point of known value of the distribution,image:

image

where:

image

Using the Taylor series and Newton's method for the inverse function

An application for the above Taylor series expansion is to use Newton's method to reverse the computation. That is, if we have a value for the cumulative distribution function, image, but do not know the x needed to obtain the image, we can use Newton's method to find x, and use the Taylor series expansion above to minimize the number of computations. Newton's method is ideal to solve this problem because the first derivative of image, which is an integral of the normal standard distribution, is the normal standard distribution, and is readily available to use in the Newton's method solution.

To solve, select a known approximate solution, image, to the desired image. image may be a value from a distribution table, or an intelligent estimate followed by a computation of image using any desired means to compute. Use this value of image and the Taylor series expansion above to minimize computations.

Repeat the following process until the difference between the computed image and the desired image, which we will call image, is below a chosen acceptably small error, such as 10−5, 10−15, etc.:

image

where

image is the image from a Taylor series solution using image and image

image

When the repeated computations converge to an error below the chosen acceptably small value, x will be the value needed to obtain a image of the desired value, image.

Standard deviation and coverage

image
For the normal distribution, the values less than one standard deviation from the mean account for 68.27% of the set; while two standard deviations from the mean account for 95.45%; and three standard deviations account for 99.73%.

About 68% of values drawn from a normal distribution are within one standard deviation σ from the mean; about 95% of the values lie within two standard deviations; and about 99.7% are within three standard deviations. This fact is known as the 68–95–99.7 (empirical) rule, or the 3-sigma rule.

More precisely, the probability that a normal deviate lies in the range between image and image is given by image To 12 significant digits, the values for image are:

image image image image OEIS
1 0.682689492137 0.317310507863
3 .15148718753
OEISA178647
2 0.954499736104 0.045500263896
21 .9778945080
OEISA110894
3 0.997300203937 0.002699796063
370 .398347345
OEISA270712
4 0.999936657516 0.000063342484
15787 .1927673
5 0.999999426697 0.000000573303
1744277 .89362
6 0.999999998027 0.000000001973
506797345 .897

For large image, one can use the approximation image.

Quantile function

The quantile function of a distribution is the inverse of the cumulative distribution function. The quantile function of the standard normal distribution is called the probit function, and can be expressed in terms of the inverse error function: image For a normal random variable with mean image and variance image, the quantile function is image The quantile image of the standard normal distribution is commonly denoted as image. These values are used in hypothesis testing, construction of confidence intervals and Q–Q plots. A normal random variable image will exceed image with probability image, and will lie outside the interval image with probability image. In particular, the quantile image is 1.96; therefore a normal random variable will lie outside the interval image in only 5% of cases.

The following table gives the quantile image such that image will lie in the range image with a specified probability image. These values are useful to determine tolerance interval for sample averages and other statistical estimators with normal (or asymptotically normal) distributions. The following table shows image, not image as defined above.

image image   image image
0.80 1.281551565545 0.999 3.290526731492
0.90 1.644853626951 0.9999 3.890591886413
0.95 1.959963984540 0.99999 4.417173413469
0.98 2.326347874041 0.999999 4.891638475699
0.99 2.575829303549 0.9999999 5.326723886384
0.995 2.807033768344 0.99999999 5.730728868236
0.998 3.090232306168 0.999999999 6.109410204869

For small image, the quantile function has the useful asymptotic expansion image[citation needed]

Properties

The normal distribution is the only distribution whose cumulants beyond the first two (i.e., other than the mean and variance) are zero. It is also the continuous distribution with the maximum entropy for a specified mean and variance. Geary has shown, assuming that the mean and variance are finite, that the normal distribution is the only distribution where the mean and variance calculated from a set of independent draws are independent of each other.

The normal distribution is a subclass of the elliptical distributions. The normal distribution is symmetric about its mean, and is non-zero over the entire real line. As such it may not be a suitable model for variables that are inherently positive or strongly skewed, such as the weight of a person or the price of a share. Such variables may be better described by other distributions, such as the log-normal distribution or the Pareto distribution.

The value of the normal density is practically zero when the value image lies more than a few standard deviations away from the mean (e.g., a spread of three standard deviations covers all but 0.27% of the total distribution). Therefore, it may not be an appropriate model when one expects a significant fraction of outliers—values that lie many standard deviations away from the mean—and least squares and other statistical inference methods that are optimal for normally distributed variables often become highly unreliable when applied to such data. In those cases, a more heavy-tailed distribution should be assumed and the appropriate robust statistical inference methods applied.

The Gaussian distribution belongs to the family of stable distributions which are the attractors of sums of independent, identically distributed distributions whether or not the mean or variance is finite. Except for the Gaussian which is a limiting case, all stable distributions have heavy tails and infinite variance. It is one of the few distributions that are stable and that have probability density functions that can be expressed analytically, the others being the Cauchy distribution and the Lévy distribution.

Symmetries and derivatives

The normal distribution with density image (mean image and variance image) has the following properties:

  • It is symmetric around the point image which is at the same time the mode, the median and the mean of the distribution.
  • It is unimodal: its first derivative is positive for image negative for image and zero only at image
  • The area bounded by the curve and the image-axis is unity (i.e. equal to one).
  • Its first derivative is image
  • Its second derivative is image
  • Its density has two inflection points (where the second derivative of image is zero and changes sign), located one standard deviation away from the mean, namely at image and image
  • Its density is log-concave.
  • Its density is infinitely differentiable, indeed supersmooth of order 2.

Furthermore, the density image of the standard normal distribution (i.e. image and image) also has the following properties:

  • Its first derivative is image
  • Its second derivative is image
  • More generally, its nth derivative is image where image is the nth (probabilist) Hermite polynomial.
  • The probability that a normally distributed variable image with known image and image is in a particular set, can be calculated by using the fact that the fraction image has a standard normal distribution.

Moments

The plain and absolute moments of a variable image are the expected values of image and image, respectively. If the expected value image of image is zero, these parameters are called central moments; otherwise, these parameters are called non-central moments. Usually we are interested only in moments with integer order image.

If image has a normal distribution, the non-central moments exist and are finite for any image whose real part is greater than −1. For any non-negative integer image, the plain central moments are:image Here image denotes the double factorial, that is, the product of all numbers from image to 1 that have the same parity as image

The central absolute moments coincide with plain moments for all even orders, but are nonzero for odd orders. For any non-negative integer image

image The last formula is valid also for any non-integer image When the mean image the plain and absolute moments can be expressed in terms of confluent hypergeometric functions image and image

image

These expressions remain valid even if image is not an integer. See also generalized Hermite polynomials.

Order Non-central moment Central moment
1 image image
2 image image
3 image image
4 image image
5 image image
6 image image
7 image image
8 image image

The expectation of image conditioned on the event that image lies in an interval image is given by image where image and image respectively are the density and the cumulative distribution function of image. For image this is known as the inverse Mills ratio. Note that above, density image of image is used instead of standard normal density as in inverse Mills ratio, so here we have image instead of image.

Fourier transform and characteristic function

The Fourier transform of a normal density image with mean image and variance image is

image

where image is the imaginary unit. If the mean image, the first factor is 1, and the Fourier transform is, apart from a constant factor, a normal density on the frequency domain, with mean 0 and variance image. In particular, the standard normal distribution image is an eigenfunction of the Fourier transform.

In probability theory, the Fourier transform of the probability distribution of a real-valued random variable image is closely connected to the characteristic function image of that variable, which is defined as the expected value of image, as a function of the real variable image (the frequency parameter of the Fourier transform). This definition can be analytically extended to a complex-value variable image. The relation between both is: image

Moment- and cumulant-generating functions

The moment generating function of a real random variable image is the expected value of image, as a function of the real parameter image. For a normal distribution with density image, mean image and variance image, the moment generating function exists and is equal to

image For any image, the coefficient of image in the moment generating function (expressed as an exponential power series in image) is the normal distribution's expected value image.

The cumulant generating function is the logarithm of the moment generating function, namely

image

The coefficients of this exponential power series define the cumulants, but because this is a quadratic polynomial in image, only the first two cumulants are nonzero, namely the mean image and the variance image.

Some authors prefer to instead work with the characteristic function E[eitX] = eiμtσ2t2/2 and ln E[eitX] = iμt1/2σ2t2.

Stein operator and class

Within Stein's method the Stein operator and class of a random variable image are image and image the class of all absolutely continuous functions image.

Zero-variance limit

In the limit when image tends to zero, the probability density image eventually tends to zero at any image, but grows without limit if image, while its integral remains equal to 1. Therefore, the normal distribution cannot be defined as an ordinary function when image.

However, one can define the normal distribution with zero variance as a generalized function; specifically, as a Dirac delta function image translated by the mean image, that is image Its cumulative distribution function is then the Heaviside step function translated by the mean image, namely image

Maximum entropy

Of all probability distributions over the reals with a specified finite mean image and finite variance image, the normal distribution image is the one with maximum entropy. To see this, let image be a continuous random variable with probability density image. The entropy of image is defined asimage

where image is understood to be zero whenever image. This functional can be maximized, subject to the constraints that the distribution is properly normalized and has a specified mean and variance, by using variational calculus. A function with three Lagrange multipliers is defined:

image

At maximum entropy, a small variation image about image will produce a variation image about image which is equal to 0:

image

Since this must hold for any small image, the factor multiplying image must be zero, and solving for image yields:

image

The Lagrange constraints that image is properly normalized and has the specified mean and variance are satisfied if and only if image, image, and image are chosen so that image The entropy of a normal distribution image is equal to image which is independent of the mean image.

Other properties

  1. If the characteristic function image of some random variable image is of the form image in a neighborhood of zero, where image is a polynomial, then the Marcinkiewicz theorem (named after Józef Marcinkiewicz) asserts that image can be at most a quadratic polynomial, and therefore image is a normal random variable. The consequence of this result is that the normal distribution is the only distribution with a finite number (two) of non-zero cumulants.
  2. If image and image are jointly normal and uncorrelated, then they are independent. The requirement that image and image should be jointly normal is essential; without it the property does not hold.[proof] For non-normal random variables uncorrelatedness does not imply independence.
  3. The Kullback–Leibler divergence of one normal distribution image from another image is given by:image The Hellinger distance between the same distributions is equal to

This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Normal distribution news newspapers books scholar JSTOR December 2024 Learn how and when to remove this message In probability theory and statistics a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real valued random variable The general form of its probability density function isf x 12ps2e x m 22s2 displaystyle f x frac 1 sqrt 2 pi sigma 2 e frac x mu 2 2 sigma 2 Normal distributionProbability density function The red curve is the standard normal distribution Cumulative distribution functionNotationN m s2 displaystyle mathcal N mu sigma 2 Parametersm R displaystyle mu in mathbb R mean location s2 R gt 0 displaystyle sigma 2 in mathbb R gt 0 variance squared scale Supportx R displaystyle x in mathbb R PDF12ps2e x m 22s2 displaystyle frac 1 sqrt 2 pi sigma 2 e frac x mu 2 2 sigma 2 CDFF x ms 12 1 erf x ms2 displaystyle Phi left frac x mu sigma right frac 1 2 left 1 operatorname erf left frac x mu sigma sqrt 2 right right Quantilem s2erf 1 2p 1 displaystyle mu sigma sqrt 2 operatorname erf 1 2p 1 Meanm displaystyle mu Medianm displaystyle mu Modem displaystyle mu Variances2 displaystyle sigma 2 MADs2 p displaystyle sigma sqrt 2 pi Skewness0 displaystyle 0 Excess kurtosis0 displaystyle 0 Entropy12log 2pes2 displaystyle frac 1 2 log 2 pi e sigma 2 MGFexp mt s2t2 2 displaystyle exp mu t sigma 2 t 2 2 CFexp imt s2t2 2 displaystyle exp i mu t sigma 2 t 2 2 Fisher informationI m s 1 s2002 s2 displaystyle mathcal I mu sigma begin pmatrix 1 sigma 2 amp 0 0 amp 2 sigma 2 end pmatrix I m s2 1 s2001 2s4 displaystyle mathcal I mu sigma 2 begin pmatrix 1 sigma 2 amp 0 0 amp 1 2 sigma 4 end pmatrix Kullback Leibler divergence12 s0s1 2 m1 m0 2s12 1 ln s12s02 displaystyle 1 over 2 left left frac sigma 0 sigma 1 right 2 frac mu 1 mu 0 2 sigma 1 2 1 ln sigma 1 2 over sigma 0 2 right Expected shortfallm s12pe qp X ms 221 p displaystyle mu sigma frac frac 1 sqrt 2 pi e frac left q p left frac X mu sigma right right 2 2 1 p The parameter m textstyle mu is the mean or expectation of the distribution and also its median and mode while the parameter s2 textstyle sigma 2 is the variance The standard deviation of the distribution is s textstyle sigma sigma A random variable with a Gaussian distribution is said to be normally distributed and is called a normal deviate Normal distributions are important in statistics and are often used in the natural and social sciences to represent real valued random variables whose distributions are not known Their importance is partly due to the central limit theorem It states that under some conditions the average of many samples observations of a random variable with finite mean and variance is itself a random variable whose distribution converges to a normal distribution as the number of samples increases Therefore physical quantities that are expected to be the sum of many independent processes such as measurement errors often have distributions that are nearly normal Moreover Gaussian distributions have some unique properties that are valuable in analytic studies For instance any linear combination of a fixed collection of independent normal deviates is a normal deviate Many results and methods such as propagation of uncertainty and least squares parameter fitting can be derived analytically in explicit form when the relevant variables are normally distributed A normal distribution is sometimes informally called a bell curve However many other distributions are bell shaped such as the Cauchy Student s t and logistic distributions For other names see Naming The univariate probability distribution is generalized for vectors in the multivariate normal distribution and for matrices in the matrix normal distribution DefinitionsStandard normal distribution The simplest case of a normal distribution is known as the standard normal distribution or unit normal distribution This is a special case when m 0 textstyle mu 0 and s2 1 textstyle sigma 2 1 and it is described by this probability density function or density f z e z222p displaystyle varphi z frac e frac z 2 2 sqrt 2 pi The variable z textstyle z has a mean of 0 and a variance and standard deviation of 1 The density f z textstyle varphi z has its peak 12p textstyle frac 1 sqrt 2 pi at z 0 textstyle z 0 and inflection points at z 1 textstyle z 1 and z 1 textstyle z 1 Although the density above is most commonly known as the standard normal a few authors have used that term to describe other versions of the normal distribution Carl Friedrich Gauss for example once defined the standard normal as f z e z2p displaystyle varphi z frac e z 2 sqrt pi which has a variance of 12 displaystyle frac 1 2 and Stephen Stigler once defined the standard normal as f z e pz2 displaystyle varphi z e pi z 2 which has a simple functional form and a variance of s2 12p textstyle sigma 2 frac 1 2 pi General normal distribution Every normal distribution is a version of the standard normal distribution whose domain has been stretched by a factor s textstyle sigma the standard deviation and then translated by m textstyle mu the mean value f x m s2 1sf x ms displaystyle f x mid mu sigma 2 frac 1 sigma varphi left frac x mu sigma right The probability density must be scaled by 1 s textstyle 1 sigma so that the integral is still 1 If Z textstyle Z is a standard normal deviate then X sZ m textstyle X sigma Z mu will have a normal distribution with expected value m textstyle mu and standard deviation s textstyle sigma This is equivalent to saying that the standard normal distribution Z textstyle Z can be scaled stretched by a factor of s textstyle sigma and shifted by m textstyle mu to yield a different normal distribution called X textstyle X Conversely if X textstyle X is a normal deviate with parameters m textstyle mu and s2 textstyle sigma 2 then this X textstyle X distribution can be re scaled and shifted via the formula Z X m s textstyle Z X mu sigma to convert it to the standard normal distribution This variate is also called the standardized form of X textstyle X Notation The probability density of the standard Gaussian distribution standard normal distribution with zero mean and unit variance is often denoted with the Greek letter ϕ textstyle phi phi The alternative form of the Greek letter phi f textstyle varphi is also used quite often The normal distribution is often referred to as N m s2 textstyle N mu sigma 2 or N m s2 textstyle mathcal N mu sigma 2 Thus when a random variable X textstyle X is normally distributed with mean m textstyle mu and standard deviation s textstyle sigma one may write X N m s2 displaystyle X sim mathcal N mu sigma 2 Alternative parameterizations Some authors advocate using the precision t textstyle tau as the parameter defining the width of the distribution instead of the standard deviation s textstyle sigma or the variance s2 textstyle sigma 2 The precision is normally defined as the reciprocal of the variance 1 s2 textstyle 1 sigma 2 The formula for the distribution then becomes f x t2pe t x m 2 2 displaystyle f x sqrt frac tau 2 pi e tau x mu 2 2 This choice is claimed to have advantages in numerical computations when s textstyle sigma is very close to zero and simplifies formulas in some contexts such as in the Bayesian inference of variables with multivariate normal distribution Alternatively the reciprocal of the standard deviation t 1 s textstyle tau 1 sigma might be defined as the precision in which case the expression of the normal distribution becomes f x t 2pe t 2 x m 2 2 displaystyle f x frac tau sqrt 2 pi e tau 2 x mu 2 2 According to Stigler this formulation is advantageous because of a much simpler and easier to remember formula and simple approximate formulas for the quantiles of the distribution Normal distributions form an exponential family with natural parameters 81 ms2 textstyle textstyle theta 1 frac mu sigma 2 and 82 12s2 textstyle textstyle theta 2 frac 1 2 sigma 2 and natural statistics x and x2 The dual expectation parameters for normal distribution are h1 m and h2 m2 s2 Cumulative distribution function The cumulative distribution function CDF of the standard normal distribution usually denoted with the capital Greek letter F textstyle Phi is the integral F x 12p xe t2 2dt displaystyle Phi x frac 1 sqrt 2 pi int infty x e t 2 2 dt Error function The related error function erf x textstyle operatorname erf x gives the probability of a random variable with normal distribution of mean 0 and variance 1 2 falling in the range x x textstyle x x That is erf x 1p xxe t2dt 2p 0xe t2dt displaystyle operatorname erf x frac 1 sqrt pi int x x e t 2 dt frac 2 sqrt pi int 0 x e t 2 dt These integrals cannot be expressed in terms of elementary functions and are often said to be special functions However many numerical approximations are known see below for more The two functions are closely related namely F x 12 1 erf x2 displaystyle Phi x frac 1 2 left 1 operatorname erf left frac x sqrt 2 right right For a generic normal distribution with density f textstyle f mean m textstyle mu and variance s2 textstyle sigma 2 the cumulative distribution function is F x F x ms 12 1 erf x ms2 displaystyle F x Phi left frac x mu sigma right frac 1 2 left 1 operatorname erf left frac x mu sigma sqrt 2 right right The complement of the standard normal cumulative distribution function Q x 1 F x textstyle Q x 1 Phi x is often called the Q function especially in engineering texts It gives the probability that the value of a standard normal random variable X textstyle X will exceed x textstyle x P X gt x textstyle P X gt x Other definitions of the Q textstyle Q function all of which are simple transformations of F textstyle Phi are also used occasionally The graph of the standard normal cumulative distribution function F textstyle Phi has 2 fold rotational symmetry around the point 0 1 2 that is F x 1 F x textstyle Phi x 1 Phi x Its antiderivative indefinite integral can be expressed as follows F x dx xF x f x C displaystyle int Phi x dx x Phi x varphi x C The cumulative distribution function of the standard normal distribution can be expanded by integration by parts into a series F x 12 12p e x2 2 x x33 x53 5 x2n 1 2n 1 displaystyle Phi x frac 1 2 frac 1 sqrt 2 pi cdot e x 2 2 left x frac x 3 3 frac x 5 3 cdot 5 cdots frac x 2n 1 2n 1 cdots right where textstyle denotes the double factorial An asymptotic expansion of the cumulative distribution function for large x can also be derived using integration by parts For more see Error function Asymptotic expansion A quick approximation to the standard normal distribution s cumulative distribution function can be found by using a Taylor series approximation F x 12 12p k 0n 1 kx 2k 1 2kk 2k 1 displaystyle Phi x approx frac 1 2 frac 1 sqrt 2 pi sum k 0 n frac 1 k x 2k 1 2 k k 2k 1 Recursive computation with Taylor series expansion The recursive nature of the eax2 textstyle e ax 2 family of derivatives may be used to easily construct a rapidly converging Taylor series expansion using recursive entries about any point of known value of the distribution F x0 textstyle Phi x 0 F x n 0 F n x0 n x x0 n displaystyle Phi x sum n 0 infty frac Phi n x 0 n x x 0 n where F 0 x0 12p x0e t2 2dtF 1 x0 12pe x02 2F n x0 x0F n 1 x0 n 2 F n 2 x0 n 2 displaystyle begin aligned Phi 0 x 0 amp frac 1 sqrt 2 pi int infty x 0 e t 2 2 dt Phi 1 x 0 amp frac 1 sqrt 2 pi e x 0 2 2 Phi n x 0 amp left x 0 Phi n 1 x 0 n 2 Phi n 2 x 0 right amp n geq 2 end aligned Using the Taylor series and Newton s method for the inverse function An application for the above Taylor series expansion is to use Newton s method to reverse the computation That is if we have a value for the cumulative distribution function F x textstyle Phi x but do not know the x needed to obtain the F x textstyle Phi x we can use Newton s method to find x and use the Taylor series expansion above to minimize the number of computations Newton s method is ideal to solve this problem because the first derivative of F x textstyle Phi x which is an integral of the normal standard distribution is the normal standard distribution and is readily available to use in the Newton s method solution To solve select a known approximate solution x0 textstyle x 0 to the desired F x textstyle Phi x x0 textstyle x 0 may be a value from a distribution table or an intelligent estimate followed by a computation of F x0 textstyle Phi x 0 using any desired means to compute Use this value of x0 textstyle x 0 and the Taylor series expansion above to minimize computations Repeat the following process until the difference between the computed F xn textstyle Phi x n and the desired F textstyle Phi which we will call F desired textstyle Phi text desired is below a chosen acceptably small error such as 10 5 10 15 etc xn 1 xn F xn x0 F x0 F desired F xn displaystyle x n 1 x n frac Phi x n x 0 Phi x 0 Phi text desired Phi x n where F x x0 F x0 textstyle Phi x x 0 Phi x 0 is the F x textstyle Phi x from a Taylor series solution using x0 textstyle x 0 and F x0 textstyle Phi x 0 F xn 12pe xn2 2 displaystyle Phi x n frac 1 sqrt 2 pi e x n 2 2 When the repeated computations converge to an error below the chosen acceptably small value x will be the value needed to obtain a F x textstyle Phi x of the desired value F desired textstyle Phi text desired Standard deviation and coverage For the normal distribution the values less than one standard deviation from the mean account for 68 27 of the set while two standard deviations from the mean account for 95 45 and three standard deviations account for 99 73 About 68 of values drawn from a normal distribution are within one standard deviation s from the mean about 95 of the values lie within two standard deviations and about 99 7 are within three standard deviations This fact is known as the 68 95 99 7 empirical rule or the 3 sigma rule More precisely the probability that a normal deviate lies in the range between m ns textstyle mu n sigma and m ns textstyle mu n sigma is given by F m ns F m ns F n F n erf n2 displaystyle F mu n sigma F mu n sigma Phi n Phi n operatorname erf left frac n sqrt 2 right To 12 significant digits the values for n 1 2 6 textstyle n 1 2 ldots 6 are n textstyle n p F m ns F m ns textstyle p F mu n sigma F mu n sigma 1 p textstyle 1 p or 1 in 1 p textstyle text or 1 text in 1 p OEIS1 0 682689 492 137 0 317310 507 863 3 151487 187 53 OEIS A1786472 0 954499 736 104 0 045500 263 896 21 977894 5080 OEIS A1108943 0 997300 203 937 0 002699 796 063 370 398347 345 OEIS A2707124 0 999936 657 516 0 000063 342 484 15787 19276735 0 999999 426 697 0 000000 573 303 1744 277 893626 0 999999 998 027 0 000000 001 973 506797 345 897 For large n textstyle n one can use the approximation 1 p e n2 2np 2 textstyle 1 p approx frac e n 2 2 n sqrt pi 2 Quantile function The quantile function of a distribution is the inverse of the cumulative distribution function The quantile function of the standard normal distribution is called the probit function and can be expressed in terms of the inverse error function F 1 p 2erf 1 2p 1 p 0 1 displaystyle Phi 1 p sqrt 2 operatorname erf 1 2p 1 quad p in 0 1 For a normal random variable with mean m textstyle mu and variance s2 textstyle sigma 2 the quantile function is F 1 p m sF 1 p m s2erf 1 2p 1 p 0 1 displaystyle F 1 p mu sigma Phi 1 p mu sigma sqrt 2 operatorname erf 1 2p 1 quad p in 0 1 The quantile F 1 p textstyle Phi 1 p of the standard normal distribution is commonly denoted as zp textstyle z p These values are used in hypothesis testing construction of confidence intervals and Q Q plots A normal random variable X textstyle X will exceed m zps textstyle mu z p sigma with probability 1 p textstyle 1 p and will lie outside the interval m zps textstyle mu pm z p sigma with probability 2 1 p textstyle 2 1 p In particular the quantile z0 975 textstyle z 0 975 is 1 96 therefore a normal random variable will lie outside the interval m 1 96s textstyle mu pm 1 96 sigma in only 5 of cases The following table gives the quantile zp textstyle z p such that X textstyle X will lie in the range m zps textstyle mu pm z p sigma with a specified probability p textstyle p These values are useful to determine tolerance interval for sample averages and other statistical estimators with normal or asymptotically normal distributions The following table shows 2erf 1 p F 1 p 12 textstyle sqrt 2 operatorname erf 1 p Phi 1 left frac p 1 2 right not F 1 p textstyle Phi 1 p as defined above p textstyle p zp textstyle z p p textstyle p zp textstyle z p 0 80 1 281551 565 545 0 999 3 290526 731 4920 90 1 644853 626 951 0 9999 3 890591 886 4130 95 1 959963 984 540 0 99999 4 417173 413 4690 98 2 326347 874 041 0 999999 4 891638 475 6990 99 2 575829 303 549 0 9999999 5 326723 886 3840 995 2 807033 768 344 0 99999999 5 730728 868 2360 998 3 090232 306 168 0 999999999 6 109410 204 869 For small p textstyle p the quantile function has the useful asymptotic expansion F 1 p ln 1p2 ln ln 1p2 ln 2p o 1 textstyle Phi 1 p sqrt ln frac 1 p 2 ln ln frac 1 p 2 ln 2 pi mathcal o 1 citation needed PropertiesThe normal distribution is the only distribution whose cumulants beyond the first two i e other than the mean and variance are zero It is also the continuous distribution with the maximum entropy for a specified mean and variance Geary has shown assuming that the mean and variance are finite that the normal distribution is the only distribution where the mean and variance calculated from a set of independent draws are independent of each other The normal distribution is a subclass of the elliptical distributions The normal distribution is symmetric about its mean and is non zero over the entire real line As such it may not be a suitable model for variables that are inherently positive or strongly skewed such as the weight of a person or the price of a share Such variables may be better described by other distributions such as the log normal distribution or the Pareto distribution The value of the normal density is practically zero when the value x textstyle x lies more than a few standard deviations away from the mean e g a spread of three standard deviations covers all but 0 27 of the total distribution Therefore it may not be an appropriate model when one expects a significant fraction of outliers values that lie many standard deviations away from the mean and least squares and other statistical inference methods that are optimal for normally distributed variables often become highly unreliable when applied to such data In those cases a more heavy tailed distribution should be assumed and the appropriate robust statistical inference methods applied The Gaussian distribution belongs to the family of stable distributions which are the attractors of sums of independent identically distributed distributions whether or not the mean or variance is finite Except for the Gaussian which is a limiting case all stable distributions have heavy tails and infinite variance It is one of the few distributions that are stable and that have probability density functions that can be expressed analytically the others being the Cauchy distribution and the Levy distribution Symmetries and derivatives The normal distribution with density f x textstyle f x mean m textstyle mu and variance s2 gt 0 textstyle sigma 2 gt 0 has the following properties It is symmetric around the point x m textstyle x mu which is at the same time the mode the median and the mean of the distribution It is unimodal its first derivative is positive for x lt m textstyle x lt mu negative for x gt m textstyle x gt mu and zero only at x m textstyle x mu The area bounded by the curve and the x textstyle x axis is unity i e equal to one Its first derivative is f x x ms2f x textstyle f x frac x mu sigma 2 f x Its second derivative is f x x m 2 s2s4f x textstyle f x frac x mu 2 sigma 2 sigma 4 f x Its density has two inflection points where the second derivative of f textstyle f is zero and changes sign located one standard deviation away from the mean namely at x m s textstyle x mu sigma and x m s textstyle x mu sigma Its density is log concave Its density is infinitely differentiable indeed supersmooth of order 2 Furthermore the density f textstyle varphi of the standard normal distribution i e m 0 textstyle mu 0 and s 1 textstyle sigma 1 also has the following properties Its first derivative is f x xf x textstyle varphi x x varphi x Its second derivative is f x x2 1 f x textstyle varphi x x 2 1 varphi x More generally its n th derivative is f n x 1 nHen x f x textstyle varphi n x 1 n operatorname He n x varphi x where Hen x textstyle operatorname He n x is the n th probabilist Hermite polynomial The probability that a normally distributed variable X textstyle X with known m textstyle mu and s2 textstyle sigma 2 is in a particular set can be calculated by using the fact that the fraction Z X m s textstyle Z X mu sigma has a standard normal distribution Moments The plain and absolute moments of a variable X textstyle X are the expected values of Xp textstyle X p and X p textstyle X p respectively If the expected value m textstyle mu of X textstyle X is zero these parameters are called central moments otherwise these parameters are called non central moments Usually we are interested only in moments with integer order p textstyle p If X textstyle X has a normal distribution the non central moments exist and are finite for any p textstyle p whose real part is greater than 1 For any non negative integer p textstyle p the plain central moments are E X m p 0if p is odd sp p 1 if p is even displaystyle operatorname E left X mu p right begin cases 0 amp text if p text is odd sigma p p 1 amp text if p text is even end cases Here n textstyle n denotes the double factorial that is the product of all numbers from n textstyle n to 1 that have the same parity as n textstyle n The central absolute moments coincide with plain moments for all even orders but are nonzero for odd orders For any non negative integer p textstyle p E X m p sp p 1 2pif p is odd1if p is even sp 2p 2G p 12 p displaystyle begin aligned operatorname E left X mu p right amp sigma p p 1 cdot begin cases sqrt frac 2 pi amp text if p text is odd 1 amp text if p text is even end cases amp sigma p cdot frac 2 p 2 Gamma left frac p 1 2 right sqrt pi end aligned The last formula is valid also for any non integer p gt 1 textstyle p gt 1 When the mean m 0 textstyle mu neq 0 the plain and absolute moments can be expressed in terms of confluent hypergeometric functions 1F1 textstyle 1 F 1 and U textstyle U E Xp sp i2 pU p2 12 12 ms 2 E X p sp 2p 2G 1 p2 p1F1 p2 12 12 ms 2 displaystyle begin aligned operatorname E left X p right amp sigma p cdot i sqrt 2 p U left frac p 2 frac 1 2 frac 1 2 left frac mu sigma right 2 right operatorname E left X p right amp sigma p cdot 2 p 2 frac Gamma left frac 1 p 2 right sqrt pi 1 F 1 left frac p 2 frac 1 2 frac 1 2 left frac mu sigma right 2 right end aligned These expressions remain valid even if p textstyle p is not an integer See also generalized Hermite polynomials Order Non central moment Central moment1 m textstyle mu 0 textstyle 0 2 m2 s2 textstyle mu 2 sigma 2 s2 textstyle sigma 2 3 m3 3ms2 textstyle mu 3 3 mu sigma 2 0 textstyle 0 4 m4 6m2s2 3s4 textstyle mu 4 6 mu 2 sigma 2 3 sigma 4 3s4 textstyle 3 sigma 4 5 m5 10m3s2 15ms4 textstyle mu 5 10 mu 3 sigma 2 15 mu sigma 4 0 textstyle 0 6 m6 15m4s2 45m2s4 15s6 textstyle mu 6 15 mu 4 sigma 2 45 mu 2 sigma 4 15 sigma 6 15s6 textstyle 15 sigma 6 7 m7 21m5s2 105m3s4 105ms6 textstyle mu 7 21 mu 5 sigma 2 105 mu 3 sigma 4 105 mu sigma 6 0 textstyle 0 8 m8 28m6s2 210m4s4 420m2s6 105s8 textstyle mu 8 28 mu 6 sigma 2 210 mu 4 sigma 4 420 mu 2 sigma 6 105 sigma 8 105s8 textstyle 105 sigma 8 The expectation of X textstyle X conditioned on the event that X textstyle X lies in an interval a b textstyle a b is given by E X a lt X lt b m s2f b f a F b F a displaystyle operatorname E left X mid a lt X lt b right mu sigma 2 frac f b f a F b F a where f textstyle f and F textstyle F respectively are the density and the cumulative distribution function of X textstyle X For b textstyle b infty this is known as the inverse Mills ratio Note that above density f textstyle f of X textstyle X is used instead of standard normal density as in inverse Mills ratio so here we have s2 textstyle sigma 2 instead of s textstyle sigma Fourier transform and characteristic function The Fourier transform of a normal density f textstyle f with mean m textstyle mu and variance s2 textstyle sigma 2 is f t f x e itxdx e imte 12 st 2 displaystyle hat f t int infty infty f x e itx dx e i mu t e frac 1 2 sigma t 2 where i textstyle i is the imaginary unit If the mean m 0 textstyle mu 0 the first factor is 1 and the Fourier transform is apart from a constant factor a normal density on the frequency domain with mean 0 and variance 1 s2 textstyle 1 sigma 2 In particular the standard normal distribution f textstyle varphi is an eigenfunction of the Fourier transform In probability theory the Fourier transform of the probability distribution of a real valued random variable X textstyle X is closely connected to the characteristic function fX t textstyle varphi X t of that variable which is defined as the expected value of eitX textstyle e itX as a function of the real variable t textstyle t the frequency parameter of the Fourier transform This definition can be analytically extended to a complex value variable t textstyle t The relation between both is fX t f t displaystyle varphi X t hat f t Moment and cumulant generating functions The moment generating function of a real random variable X textstyle X is the expected value of etX textstyle e tX as a function of the real parameter t textstyle t For a normal distribution with density f textstyle f mean m textstyle mu and variance s2 textstyle sigma 2 the moment generating function exists and is equal to M t E etX f it emtes2t2 2 displaystyle M t operatorname E left e tX right hat f it e mu t e sigma 2 t 2 2 For any k displaystyle k the coefficient of tk k displaystyle t k k in the moment generating function expressed as an exponential power series in t displaystyle t is the normal distribution s expected value E Xk displaystyle E X k The cumulant generating function is the logarithm of the moment generating function namely g t ln M t mt 12s2t2 displaystyle g t ln M t mu t tfrac 1 2 sigma 2 t 2 The coefficients of this exponential power series define the cumulants but because this is a quadratic polynomial in t displaystyle t only the first two cumulants are nonzero namely the mean m textstyle mu and the variance s2 displaystyle sigma 2 Some authors prefer to instead work with the characteristic function E eitX eimt s2t2 2 and ln E eitX imt 1 2 s2t2 Stein operator and class Within Stein s method the Stein operator and class of a random variable X N m s2 textstyle X sim mathcal N mu sigma 2 are Af x s2f x x m f x textstyle mathcal A f x sigma 2 f x x mu f x and F textstyle mathcal F the class of all absolutely continuous functions f R R such that E f X lt textstyle f mathbb R to mathbb R mbox such that mathbb E f X lt infty Zero variance limit In the limit when s2 textstyle sigma 2 tends to zero the probability density f x textstyle f x eventually tends to zero at any x m textstyle x neq mu but grows without limit if x m textstyle x mu while its integral remains equal to 1 Therefore the normal distribution cannot be defined as an ordinary function when s2 0 textstyle sigma 2 0 However one can define the normal distribution with zero variance as a generalized function specifically as a Dirac delta function d textstyle delta translated by the mean m textstyle mu that is f x d x m textstyle f x delta x mu Its cumulative distribution function is then the Heaviside step function translated by the mean m textstyle mu namely F x 0if x lt m1if x m displaystyle F x begin cases 0 amp text if x lt mu 1 amp text if x geq mu end cases Maximum entropy Of all probability distributions over the reals with a specified finite mean m textstyle mu and finite variance s2 textstyle sigma 2 the normal distribution N m s2 textstyle N mu sigma 2 is the one with maximum entropy To see this let X textstyle X be a continuous random variable with probability density f x textstyle f x The entropy of X textstyle X is defined asH X f x ln f x dx displaystyle H X int infty infty f x ln f x dx where f x log f x textstyle f x log f x is understood to be zero whenever f x 0 textstyle f x 0 This functional can be maximized subject to the constraints that the distribution is properly normalized and has a specified mean and variance by using variational calculus A function with three Lagrange multipliers is defined L f x ln f x dx l0 1 f x dx l1 m f x xdx l2 s2 f x x m 2dx displaystyle L int infty infty f x ln f x dx lambda 0 left 1 int infty infty f x dx right lambda 1 left mu int infty infty f x x dx right lambda 2 left sigma 2 int infty infty f x x mu 2 dx right At maximum entropy a small variation df x textstyle delta f x about f x textstyle f x will produce a variation dL textstyle delta L about L textstyle L which is equal to 0 0 dL df x ln f x 1 l0 l1x l2 x m 2 dx displaystyle 0 delta L int infty infty delta f x left ln f x 1 lambda 0 lambda 1 x lambda 2 x mu 2 right dx Since this must hold for any small df x textstyle delta f x the factor multiplying df x textstyle delta f x must be zero and solving for f x textstyle f x yields f x exp 1 l0 l1x l2 x m 2 displaystyle f x exp left 1 lambda 0 lambda 1 x lambda 2 x mu 2 right The Lagrange constraints that f x textstyle f x is properly normalized and has the specified mean and variance are satisfied if and only if l0 textstyle lambda 0 l1 textstyle lambda 1 and l2 textstyle lambda 2 are chosen so that f x 12ps2e x m 22s2 displaystyle f x frac 1 sqrt 2 pi sigma 2 e frac x mu 2 2 sigma 2 The entropy of a normal distribution X N m s2 textstyle X sim N mu sigma 2 is equal to H X 12 1 ln 2s2p displaystyle H X tfrac 1 2 1 ln 2 sigma 2 pi which is independent of the mean m textstyle mu Other properties If the characteristic function ϕX textstyle phi X of some random variable X textstyle X is of the form ϕX t exp Q t textstyle phi X t exp Q t in a neighborhood of zero where Q t textstyle Q t is a polynomial then the Marcinkiewicz theorem named after Jozef Marcinkiewicz asserts that Q textstyle Q can be at most a quadratic polynomial and therefore X textstyle X is a normal random variable The consequence of this result is that the normal distribution is the only distribution with a finite number two of non zero cumulants If X textstyle X and Y textstyle Y are jointly normal and uncorrelated then they are independent The requirement that X textstyle X and Y textstyle Y should be jointly normal is essential without it the property does not hold proof For non normal random variables uncorrelatedness does not imply independence The Kullback Leibler divergence of one normal distribution X1 N m1 s12 textstyle X 1 sim N mu 1 sigma 1 2 from another X2 N m2 s22 textstyle X 2 sim N mu 2 sigma 2 2 is given by DKL X1 X2 m1 m2 22s22 12 s12s22 1 ln s12s22 displaystyle D mathrm KL X 1 parallel X 2 frac mu 1 mu 2 2 2 sigma 2 2 frac 1 2 left frac sigma 1 2 sigma 2 2 1 ln frac sigma 1 2 sigma 2 2 right The Hellinger distance between the same distributions is equal to H2 X1 X2 1 2s1s2s12 s22exp 14 m1 m2 2s12 s22

rec-icon Recommended Topics
Share this article
Read the free encyclopedia and learn everything...
See more
Read the free encyclopedia. All information in Wikipedia is available. No payment required.
Share this article on
Share
XXX 0C
Saturday, 22 February, 2025
Follow Us On