Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • System Modeler

    Multidomain modeling and simulation of complex systems

  • Compute ServicesUse with Mathematica and Wolfram|One
  • AI AccessUse with Mathematica and Wolfram|One
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Wolfram|Alpha

  • Wolfram|Alpha Website
  • Wolfram|Alpha APIs

AI Products

  • Wolfram AI Ecosystem
  • Wolfram Foundation Tool
  • Wolfram Cloud MCP
  • Wolfram Local MCP
  • Agent One API
  • CAG Component APIs

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • Linguistic Understanding

Additional Deployment Options

  • Wolfram Cloud
  • Wolfram Web Engine
  • wolframscript
  • WSTPServer
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

Wolfram Consulting

Data Science, Finance & Business

  • Artificial Intelligence
  • Data Science
  • Healthcare
  • Real Estate

Engineering

  • Civil Engineering
  • Automotive Engineering
  • Sustainable Energy

Science & Technology

  • AgTech
  • Biosciences
  • Environmental Science
  • Food Science
  • Quantum Computation
  • Social and Behavioral Sciences

More Wolfram Solutions

Technology for Education

  • Research Universities
  • Colleges & Teaching Universities
  • High Schools
  • Resources for Students

Education Initiatives

  • Next-Gen EdTech
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
For AIs
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • System Modeler
    • Compute ServicesUse with Mathematica and Wolfram|One
    • AI AccessUse with Mathematica and Wolfram|One
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Wolfram|Alpha
      • Wolfram|Alpha Website
      • Wolfram|Alpha APIs
    • AI Products
      • Wolfram AI Ecosystem
      • Wolfram Foundation Tool
      • Wolfram Cloud MCP
      • Wolfram Local MCP
      • Agent One API
      • CAG Component APIs
    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • Linguistic Understanding
    • Additional Deployment Options
      • Wolfram Cloud
      • Wolfram Web Engine
      • wolframscript
      • WSTPServer
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions
    • Wolfram Consulting

    Data Science, Finance & Business

    • Artificial Intelligence
    • Data Science
    • Healthcare
    • Real Estate

    Engineering

    • Civil Engineering
    • Automotive Engineering
    • Sustainable Energy

    Science & Technology

    • AgTech
    • Biosciences
    • Environmental Science
    • Food Science
    • Quantum Computation
    • Social and Behavioral Sciences

    More Wolfram Solutions

    Technology for Education

    • Research Universities
    • Colleges & Teaching Universities
    • High Schools
    • Resources for Students

    Education Initiatives

    • Next-Gen EdTech
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • For AIs
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
NormalDistribution
  • See Also
    • StudentTDistribution
    • ChiDistribution
    • ChiSquareDistribution
    • MaxwellDistribution
    • RayleighDistribution
    • RiceDistribution
    • HalfNormalDistribution
    • SkewNormalDistribution
    • BinormalDistribution
    • MultinormalDistribution
    • Erf
    • InverseErf
    • GaussianMatrix
    • Around
  • Related Guides
    • Normal and Related Distributions
    • Probability & Statistics
    • Random Variables
    • Probability & Statistics with Quantities
    • Mathematical Functions
    • Numbers with Uncertainty
    • Scientific Models
    • Parametric Statistical Distributions
    • Functions Used in Statistics
    • Actuarial Computation
    • Distributions in Communication Systems
  • Tech Notes
    • Continuous Distributions
    • See Also
      • StudentTDistribution
      • ChiDistribution
      • ChiSquareDistribution
      • MaxwellDistribution
      • RayleighDistribution
      • RiceDistribution
      • HalfNormalDistribution
      • SkewNormalDistribution
      • BinormalDistribution
      • MultinormalDistribution
      • Erf
      • InverseErf
      • GaussianMatrix
      • Around
    • Related Guides
      • Normal and Related Distributions
      • Probability & Statistics
      • Random Variables
      • Probability & Statistics with Quantities
      • Mathematical Functions
      • Numbers with Uncertainty
      • Scientific Models
      • Parametric Statistical Distributions
      • Functions Used in Statistics
      • Actuarial Computation
      • Distributions in Communication Systems
    • Tech Notes
      • Continuous Distributions

NormalDistribution[μ,σ]

represents a normal (Gaussian) distribution with mean μ and standard deviation σ.

NormalDistribution[]

represents a normal distribution with zero mean and unit standard deviation.

Details
Details and Options Details and Options
Background & Context
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
Possible Issues  
Neat Examples  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • StudentTDistribution
    • ChiDistribution
    • ChiSquareDistribution
    • MaxwellDistribution
    • RayleighDistribution
    • RiceDistribution
    • HalfNormalDistribution
    • SkewNormalDistribution
    • BinormalDistribution
    • MultinormalDistribution
    • Erf
    • InverseErf
    • GaussianMatrix
    • Around
  • Related Guides
    • Normal and Related Distributions
    • Probability & Statistics
    • Random Variables
    • Probability & Statistics with Quantities
    • Mathematical Functions
    • Numbers with Uncertainty
    • Scientific Models
    • Parametric Statistical Distributions
    • Functions Used in Statistics
    • Actuarial Computation
    • Distributions in Communication Systems
  • Tech Notes
    • Continuous Distributions
    • See Also
      • StudentTDistribution
      • ChiDistribution
      • ChiSquareDistribution
      • MaxwellDistribution
      • RayleighDistribution
      • RiceDistribution
      • HalfNormalDistribution
      • SkewNormalDistribution
      • BinormalDistribution
      • MultinormalDistribution
      • Erf
      • InverseErf
      • GaussianMatrix
      • Around
    • Related Guides
      • Normal and Related Distributions
      • Probability & Statistics
      • Random Variables
      • Probability & Statistics with Quantities
      • Mathematical Functions
      • Numbers with Uncertainty
      • Scientific Models
      • Parametric Statistical Distributions
      • Functions Used in Statistics
      • Actuarial Computation
      • Distributions in Communication Systems
    • Tech Notes
      • Continuous Distributions

NormalDistribution

NormalDistribution[μ,σ]

represents a normal (Gaussian) distribution with mean μ and standard deviation σ.

NormalDistribution[]

represents a normal distribution with zero mean and unit standard deviation.

Details

  • The probability density for value in a normal distribution is proportional to . »
  • NormalDistribution allows μ to be any real number and σ to be any positive real number.
  • NormalDistribution allows μ and σ to be any quantities of the same unit dimensions. »
  • NormalDistribution can be used with such functions as Mean, CDF, and RandomVariate. »

Background & Context

  • NormalDistribution[μ,σ] represents the so-called "normal" statistical distribution that is defined over the real numbers. The distribution is parametrized by a real number μ and a positive real number σ, where μ is the mean of the distribution, σ is known as the standard deviation, and σ2 is known as the variance. The probability density function (PDF) of a normal distribution is unimodal, with the peak occurring at the mean , and the parameter σ determines both the height of the PDF and the "thickness" of its tails. The PDF of a normal distribution is symmetric about its maximum, and the tails of its PDF are "thin" in the sense that the PDF decreases exponentially for large values of . (This behavior can be made quantitatively precise by analyzing the SurvivalFunction of the distribution.) The zero-argument form NormalDistribution[] is equivalent to NormalDistribution[0,1] and is sometimes called the standard normal distribution.
  • Due to the presence of the Gaussian function in its PDF, a normal distribution is sometimes referred to as a Gaussian distribution. Informally, a normal distribution may also be referred to as a "bell curve" as a result of the bell-like shape of its PDF. However, it should be noted that other distributions such as CauchyDistribution, StudentTDistribution, and LogisticDistribution also display qualitatively similar "bell" shapes.
  • Random variables that are normally distributed are sometimes called normal variates, and the standard normal distribution may also be referred to as the unit normal distribution.
  • Normal distributions are among the most widely occurring probability distributions and thus have many applications. For example, normally distributed values are of fundamental importance in applications of the Monte Carlo method. In addition, the normal distribution is also fundamental in defining the so-called Wiener process, a continuous-time stochastic process consisting of independent increments , each of which is independent and identically normally distributed with and for . Moreover, a number of probabilistic and statistical values including percentile ranks and - and -scores are derived from normal distributions. Furthermore, because of the central limit theorem, the mean of a sufficiently large number of independent random variables will be approximately normally distributed provided certain hypotheses are satisfied, regardless of the original distributions describing the variables. The normal distribution also arises naturally when modeling a number of physical phenomena, such as the velocity of ideal gas molecules, the positions of particles experiencing diffusion, and the long-timescale behavior of thermal light. In addition, a large number of biological phenomena, including sizes of living tissue and quantities such as fasting blood glucose level and blood pressure, yield variables whose logarithms tend to be normally distributed.
  • RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a normal distribution. Distributed[x,NormalDistribution[μ,σ]], written more concisely as xNormalDistribution[μ,σ], can be used to assert that a random variable x is distributed according to a normal distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
  • The probability density and cumulative distribution functions may be given using PDF[NormalDistribution[μ,σ],x] and CDF[NormalDistribution[μ,σ],x]. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively.
  • DistributionFitTest can be used to test if a given dataset is consistent with a normal distribution, EstimatedDistribution to estimate a normal parametric distribution from given data, and FindDistributionParameters to fit data to a normal distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic normal distribution, and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic normal distribution.
  • TransformedDistribution can be used to represent a transformed normal distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a normal distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving normal distributions.
  • NormalDistribution is closely related to a number of other distributions. A number of distributions, including LogNormalDistribution, HalfNormalDistribution, NoncentralChiSquareDistribution, and LevyDistribution, can be viewed as transformed versions of NormalDistribution, while NormalDistribution can also be considered a limiting case of a number of distributions, including HyperbolicDistribution, StudentTDistribution, PoissonDistribution, and BinomialDistribution. In addition, NormalDistribution is a special case of ExponentialPowerDistribution (PDF[NormalDistribution[μ,σ],x] is the same as PDF[ExponentialPowerDistribution[2,μ,σ],x]), SkewNormalDistribution (PDF[NormalDistribution[μ,σ],x] is the same as PDF[SkewNormalDistribution[μ,σ,0],x]), and PearsonDistribution (PDF[NormalDistribution[μ,σ],x] is the same as PDF[PearsonDistribution[3,σ-2,-μ σ-2,0,0,1],x] when σ>0) and is the marginal distribution of BinormalDistribution and MultinormalDistribution. NormalDistribution is also closely related to StableDistribution, RiceDistribution, RayleighDistribution, MaxwellDistribution, LevyDistribution, LaplaceDistribution, JohnsonDistribution, ChiDistribution, and ChiSquareDistribution.

Examples

open all close all

Basic Examples  (4)

Probability density function:

Wolfram Language code: Plot[Table[PDF[NormalDistribution[0, σ], x], {σ, {.75, 1, 2}}]//Evaluate, {x, -6, 6}, Filling -> Axis]
Wolfram Language code: Plot[Table[PDF[NormalDistribution[μ, 1.5], x], {μ, {-1, 1, 2}}]//Evaluate, {x, -6, 6}, Filling -> Axis]
Wolfram Language code: PDF[NormalDistribution[μ, σ], x]

Cumulative distribution function:

Wolfram Language code: Plot[Table[CDF[NormalDistribution[0, σ], x], {σ, {.75, 1, 2}}]//Evaluate, {x, -6, 6}, Filling -> Axis]
Wolfram Language code: Plot[Table[CDF[NormalDistribution[μ, 1.5], x], {μ, {-1, 1, 2}}]//Evaluate, {x, -6, 6}, Filling -> Axis]
Wolfram Language code: CDF[NormalDistribution[μ, σ], x]

Mean and variance:

Wolfram Language code: Mean[NormalDistribution[μ, σ]]
Wolfram Language code: Variance[NormalDistribution[μ, σ]]

Median:

Wolfram Language code: Median[NormalDistribution[μ, σ]]

Scope  (7)

Generate a sample of pseudorandom numbers from a normal distribution:

Wolfram Language code: data = RandomVariate[NormalDistribution[1, 3], 10 ^ 4];

Compare its histogram to the PDF:

Wolfram Language code: Show[ Histogram[data, 20, "PDF"], Plot[PDF[NormalDistribution[1, 3], x], {x, -9, 9}, PlotStyle -> Thick]]

Distribution parameters estimation:

Wolfram Language code: sample = RandomVariate[NormalDistribution[2, 3], 10 ^ 3];

Estimate the distribution parameters from sample data:

Wolfram Language code: edist = EstimatedDistribution[sample, NormalDistribution[μ, σ]]

Compare the density histogram of the sample with the PDF of the estimated distribution:

Wolfram Language code: Show[Histogram[sample, Automatic, "PDF"], Plot[PDF[edist, x], {x, -6, 11}, PlotStyle -> Thick]]

Skewness and kurtosis are constant:

Wolfram Language code: Skewness[NormalDistribution[μ, σ]]
Wolfram Language code: Kurtosis[NormalDistribution[μ, σ]]

Different moments with closed forms as functions of parameters:

Wolfram Language code: FormulaGrid[list_, type_] := Grid[...]

Moment:

Wolfram Language code: FormulaGrid[Table[Moment[NormalDistribution[μ, σ], k]//Expand, {k, 5}], M]

Closed form for symbolic order:

Wolfram Language code: Moment[NormalDistribution[μ, σ], r]

CentralMoment:

Wolfram Language code: FormulaGrid[Table[CentralMoment[NormalDistribution[μ, σ], k], {k, 5}], CM]

Closed form for symbolic order:

Wolfram Language code: CentralMoment[NormalDistribution[μ, σ], r]

FactorialMoment:

Wolfram Language code: FormulaGrid[Table[FactorialMoment[NormalDistribution[μ, σ], k]//Expand, {k, 5}], FM]

Cumulant:

Wolfram Language code: FormulaGrid[Table[Cumulant[NormalDistribution[μ, σ], k], {k, 5}], C]

Closed form for symbolic order:

Wolfram Language code: Cumulant[NormalDistribution[μ, σ], r]

Hazard function of a normal distribution is increasing:

Wolfram Language code: Plot[Table[HazardFunction[NormalDistribution[-1, σ], x], {σ, {2, 3, 4}}]//Evaluate, {x, -8, -2}, Filling -> Axis]
Wolfram Language code: Plot[Table[HazardFunction[NormalDistribution[μ, 2], x], {μ, {-2, 0, 1}}]//Evaluate, {x, -4, 4}, Filling -> Axis]
Wolfram Language code: HazardFunction[NormalDistribution[μ, σ], x]

Quantile function:

Wolfram Language code: Plot[Table[Quantile[NormalDistribution[-2, σ], q], {σ, {1 / 2, 1, 2}}]//Evaluate, {q, 0, 1}, Filling -> Median[NormalDistribution[-2, σ]]]
Wolfram Language code: Plot[Table[Quantile[NormalDistribution[μ, 2], q], {μ, {-1, 1, 4}}]//Evaluate, {q, 0, 1}, Filling -> Axis]
Wolfram Language code: Quantile[NormalDistribution[μ, σ], q]

Consistent use of Quantity in parameters yields QuantityDistribution:

Wolfram Language code: height𝒟 = NormalDistribution[Quantity[MixedMagnitude[{5, 9}], MixedUnit[{"Feet", "Inches"}]], Quantity[5., "Inches"]]

Find height quartiles:

Wolfram Language code: Quartiles[%]

Applications  (11)

Find the percentage of values that lie between and :

Wolfram Language code: Probability[μ - σ < x < μ + σ, x NormalDistribution[μ, σ]]

Between and :

Wolfram Language code: Probability[μ - 2 σ < x < μ + 2σ, x NormalDistribution[μ, σ]]

Between and :

Wolfram Language code: Probability[μ - 3 σ < x < μ + 3σ, x NormalDistribution[μ, σ]]

Package it up as a function:

Wolfram Language code: percentage[n_] := Probability[μ - n σ < x < μ + n σ, x NormalDistribution[μ, σ]]
Wolfram Language code: Table[N[percentage[n], 10], {n, 6}]

Compute ‐values for a ‐test under the null hypothesis and the alternative :

Wolfram Language code: CDF[NormalDistribution[], z]

Alternative hypothesis :

Wolfram Language code: 1 - CDF[NormalDistribution[], z]

Alternative hypothesis :

Wolfram Language code: 2 CDF[NormalDistribution[], -Abs[z]]

A battery has a lifetime that is approximately normally distributed with a mean of 1000 hours and a standard deviation of 50 hours. Find the fraction with a lifetime between 800 and 1000 hours:

Wolfram Language code: p = Probability[Quantity[800, "Hours"] < x < Quantity[1000, "Hours"], xNormalDistribution[Quantity[1000, "Hours"], Quantity[50, "Hours"]]]

Out of 100 batteries, compute how many have a lifetime between 800 and 1000 hours:

Wolfram Language code: Mean[BinomialDistribution[100, p]]
Wolfram Language code: N[%]

Coffee beans are sold in 5 lb sacks that have true weight normally distributed with a mean of 5 lbs and a variance of 0.01 lb. Find the probability that a given sack weighs at least 4 lbs, 15 oz:

Wolfram Language code: Probability[x > Quantity[MixedMagnitude[{4, 15}], MixedUnit[{"Pounds", "Ounces"}]], xNormalDistribution[Quantity[5, "Pounds"], Sqrt[Quantity[0.01, "Pounds"^2]]]]

This can be directly computed from the SurvivalFunction:

Wolfram Language code: SurvivalFunction[NormalDistribution[Quantity[5, "Pounds"], Sqrt[Quantity[0.01, "Pounds"^2]]], Quantity[MixedMagnitude[{4, 15}], MixedUnit[{"Pounds", "Ounces"}]]]

A company manufactures nails with length normally distributed, mean 0.497 inches, and standard deviation 0.002 inches. Find the fraction that satisfies the specification of length equal to 0.5 inches plus/minus 0.004 inches:

Wolfram Language code: len𝒟 = NormalDistribution[["0.497 in"], ["0.002 in"]]
Wolfram Language code: minlen = [".5 in"] - ["0.004 in"];maxlen = [".5 in"] + ["0.004 in"];
Wolfram Language code: Probability[minlen < len < maxlen, len len𝒟]

Direct computation with CDF:

Wolfram Language code: CDF[ len𝒟, maxlen] - CDF[ len𝒟, minlen]

A company manufactures nails with length normally distributed and a mean of 0.5 inches. If 50% of the produced nails have lengths between 0.495 and 0.505, find the standard deviation:

Wolfram Language code: Probability[Quantity[0.495, "Inches"] < x < Quantity[0.505, "Inches"], xNormalDistribution[Quantity[0.5, "Inches"], Quantity[σ, "Inches"]], Assumptions -> σ > 0]

Find the standard deviation:

Wolfram Language code: FindRoot[% == 0.5, {σ, 1.5}]

A sample is selected from a distribution with mean 5 and standard deviation 1.5. Find the minimum size of the sample so that with probability 0.97 the sample mean is within 0.8 of the distribution mean:

Wolfram Language code: prob = Probability[-0.8 + 5 < m < 0.8 + 5, mNormalDistribution[5, 1.5 / Sqrt[n]]]

The probability as a function of sample size:

Wolfram Language code: DiscretePlot[prob, {n, 1, 30}]

Find the minimum sample size :

Wolfram Language code: NMinimize[{n, prob ≥ 0.97}, {n, 12, 25}]

The weight of a person, including luggage, has normal distribution with mean 225 lbs and standard deviation 50 lbs. A plane's load limit is 10000 lbs and it can take 44 passengers. With the maximum number of passengers on board, find the probability of the plane being overloaded:

Wolfram Language code: totalWeightDist = TransformedDistribution[Subsuperscript[∑, k = 1, 44]Subscript[x, k], Table[Subscript[x, k]NormalDistribution[Quantity[225, "Pounds"], Quantity[50, "Pounds"]], {k, 44}]]
Wolfram Language code: Probability[x > Quantity[10000, "Pounds"], xtotalWeightDist]
Wolfram Language code: N[%]

Normally distributed points in the plane:

Wolfram Language code: Graphics[{AbsolutePointSize[1], Point[RandomVariate[NormalDistribution[], {10 ^ 4, 2}]]}]

Normally distributed points in 3D:

Wolfram Language code: Graphics3D[{AbsolutePointSize[1], Point[RandomVariate[NormalDistribution[], {10 ^ 4, 3}]]}]

Normal distribution was traditionally used to analyze the fractional stock price changes from the previous closing price. Find the estimated distribution for the daily fractional price changes of the S&P 500 index from January 1, 2000, to January 1, 2009:

Wolfram Language code: sp500 = FinancialData["SP500", "FractionalChange", {{2000, 1, 1}, {2009, 1, 1}, "Day"}]

The range of fractional prices falls within the range of the normal distribution:

Wolfram Language code: MinMax[sp500]

Fit normal distribution:

Wolfram Language code: edist = EstimatedDistribution[sp500, NormalDistribution[μ, σ]]

Compare the histogram of the data with the PDF of the estimated distribution:

Wolfram Language code: hist = Histogram[sp500, Automatic, "PDF"]; Show[hist, Plot[PDF[edist, Quantity[x, "%"]], {x, -10, 12}, PlotStyle -> Thick, PlotRange -> All]]

Find the probability of the fractional price change being greater than 0.5%:

Wolfram Language code: NProbability[x > 0.5, xedist]

Find the mean fractional price change:

Wolfram Language code: Mean[edist]

Simulate fractional price changes for 30 days:

Wolfram Language code: ListLinePlot[RandomVariate[edist, 30], AxesLabel -> Automatic]

Show that using LogisticDistribution provides better fit than using normal distribution:

Wolfram Language code: LogisticEstimate = EstimatedDistribution[sp500, LogisticDistribution[μ, β]]
Wolfram Language code: Show[hist, Plot[{PDF[edist, Quantity[x, "%"]], PDF[LogisticEstimate, Quantity[x, "%"]]}, {x, -10, 12}, PlotStyle -> Thick, PlotRange -> All, PlotLegends -> {"Fit with normal distribution", "Fit with logistic distribution"}]]

Generate Gaussian white noise:

Wolfram Language code: 𝒫 = WhiteNoiseProcess[]
Wolfram Language code: data = RandomFunction[𝒫, {0, 40}];
Wolfram Language code: ListPlot[data, Filling -> Axis]

Properties & Relations  (36)

Normal distribution is closed under translation and scaling:

Wolfram Language code: TransformedDistribution[a z + b, zNormalDistribution[μ, σ]]

In general, affine transformations of independent normals are normal:

Wolfram Language code: TransformedDistribution[a1 z1 + a2 z2 + c, {z1NormalDistribution[μ1, σ1], z2NormalDistribution[μ2, σ2]}]

Normal distribution is closed under addition:

Wolfram Language code: TransformedDistribution[x + y, {xNormalDistribution[Subscript[μ, 1], Subscript[σ, 1]], yNormalDistribution[Subscript[μ, 2], Subscript[σ, 2]]}]

The normal distribution is symmetric about its mean:

Wolfram Language code: Probability[u < -x + Mean[NormalDistribution[μ, σ]], uNormalDistribution[μ, σ]]
Wolfram Language code: Probability[u > x + Mean[NormalDistribution[μ, σ]], uNormalDistribution[μ, σ]]
Wolfram Language code: % - %%

Parameter mixture of a normal distribution with a normal distribution is again a normal distribution:

Wolfram Language code: ParameterMixtureDistribution[NormalDistribution[p, Subscript[σ, 1]], pNormalDistribution[μ, Subscript[σ, 2]]]

Relationships to other distributions:

Normal (SN) JohnsonDistribution is a normal distribution:

Wolfram Language code: PDF[JohnsonDistribution["SN", μ, σ, γ, δ], x]
Wolfram Language code: PDF[NormalDistribution[γ - μ δ / σ, δ / σ], x]
Wolfram Language code: % - %%//FullSimplify[#, σ > 0 && δ > 0]&

StudentTDistribution goes to a normal distribution as goes to :

Wolfram Language code: Limit[PDF[StudentTDistribution[ν], x], ν -> ∞]
Wolfram Language code: PDF[NormalDistribution[0, 1], x]
Wolfram Language code: % - %%

Normal distribution is a transformation of LogNormalDistribution:

Wolfram Language code: TransformedDistribution[Log[u], uLogNormalDistribution[μ, σ]]

The inverse transformation of normal distribution yields LogNormalDistribution:

Wolfram Language code: TransformedDistribution[Exp[u], uNormalDistribution[μ, σ]]

HalfNormalDistribution is a truncated normal distribution:

Wolfram Language code: PDF[HalfNormalDistribution[θ], x]
Wolfram Language code: PDF[TruncatedDistribution[{0, ∞}, NormalDistribution[0, 1 / (θSqrt[2 / π])]], x]
Wolfram Language code: FullSimplify[%% - %]

The normal and half-normal distributions:

Wolfram Language code: Block[{θ = 1}, Plot[{Legended[PDF[NormalDistribution[0, 1 / (θSqrt[2 / π])], x], "normal"], Legended[PDF[HalfNormalDistribution[θ], x], "half-normal"]}, {x, -3, 3}, Filling -> Axis]]

HalfNormalDistribution is a transformation of normal distribution:

Wolfram Language code: TransformedDistribution[Abs[x], xNormalDistribution[0, Sqrt[π / 2] / θ]]

HalfNormalDistribution is a transformation of normal distribution:

Wolfram Language code: TransformedDistribution[Abs[x - μ], xNormalDistribution[μ, Sqrt[π / 2] / θ]]

NormalDistribution is a special case of ExponentialPowerDistribution:

Wolfram Language code: PDF[ExponentialPowerDistribution[2, μ, σ], x]
Wolfram Language code: PDF[NormalDistribution[μ, σ], x]
Wolfram Language code: % - %%//FullSimplify

Normal distribution is a special case of SkewNormalDistribution with shape parameter :

Wolfram Language code: PDF[SkewNormalDistribution[0, σ, 0], x]
Wolfram Language code: PDF[NormalDistribution[0, σ], x]
Wolfram Language code: % - %%

SkewNormalDistribution is a transformation of normal distribution:

Wolfram Language code: TransformedDistribution[α Abs[u] + v, {u, v}ProductDistribution[{NormalDistribution[0, σ / Sqrt[1 + α ^ 2] ], 2}]]

Sum of squares of standard normally distributed variables follows ChiSquareDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[x ^ 2 + y ^ 2 + w ^ 2 + z ^ 2, {x, y, w, z}ProductDistribution[{NormalDistribution[], 4}]]

Sum of squares of normally distributed variables has NoncentralChiSquareDistribution:

Wolfram Language code: TransformedDistribution[u ^ 2 + v ^ 2 + w ^ 2, {uNormalDistribution[μ1, 1], vNormalDistribution[μ2, 1], wNormalDistribution[μ3, 1]}]

The norm of standard normally distributed variables follows ChiDistribution:

Wolfram Language code: TransformedDistribution[Norm[{x, y, w, z}], {x, y, w, z}ProductDistribution[{NormalDistribution[], 4}]]

The norm of three standard normal variables has MaxwellDistribution, a case of ChiDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[Norm[{x, y, z}], {x, y, z}ProductDistribution[{NormalDistribution[], 3}]]
Wolfram Language code: PDF[𝒟, x]
Wolfram Language code: PDF[MaxwellDistribution[1], x]
Wolfram Language code: % - %%

The norm of two standard normally distributed variables follows RayleighDistribution:

Wolfram Language code: TransformedDistribution[Norm[{x, y}], {x, y}ProductDistribution[{NormalDistribution[], 2}]]

The norm of two normally distributed variables follows RiceDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[Norm[{u, v}], {u, v}ProductDistribution[{NormalDistribution[α / Sqrt[2], β], 2}]];
Wolfram Language code: Block[{α = .3, β = 2}, Show[Histogram[RandomVariate[𝒟, 10 ^ 4], 20, "PDF"], Plot[PDF[RiceDistribution[α , β], x], {x, 0, 12}, PlotStyle -> Thick]]]

NormalDistribution is the limiting case of HyperbolicDistribution of for and :

Wolfram Language code: Limit[With[{β = 0, δ = σ^2α}, PDF[HyperbolicDistribution[λ, α, β, δ, μ], x]], α -> Infinity, Assumptions -> σ > 0 && {λ, μ, x}∈Reals]
Wolfram Language code: PDF[NormalDistribution[μ, σ], x]
Wolfram Language code: % - %%

If , , , and are independent and normal, then has LaplaceDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[x y + u v, {x, y, u, v}ProductDistribution[{NormalDistribution[], 4}]];
Wolfram Language code: Show[Histogram[RandomVariate[𝒟, 10 ^ 4], {-5, 5, 0.5}, "PDF"], Plot[PDF[TruncatedDistribution[{-5, 5}, LaplaceDistribution[0, 1]], x], {x, -6, 6}, PlotStyle -> Thick]]

Confirm via equality of CharacteristicFunction:

Wolfram Language code: CharacteristicFunction[𝒟, t] == CharacteristicFunction[LaplaceDistribution[], t]

If , , , and are independent and normal, then has LaplaceDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[w z - u v, {w, z, u, v}ProductDistribution[{NormalDistribution[], 4}]];
Wolfram Language code: Show[Histogram[RandomVariate[𝒟, 10 ^ 4], 30, "PDF"], Plot[PDF[LaplaceDistribution[0, 1], x], {x, -6, 6}, PlotRange -> All, PlotStyle -> Thick]]

Confirm via equality of CharacteristicFunction:

Wolfram Language code: CharacteristicFunction[𝒟, t] == CharacteristicFunction[LaplaceDistribution[], t]

Ratio of two normally distributed variables has CauchyDistribution:

Wolfram Language code: TransformedDistribution[u / v, {u, v}ProductDistribution[{NormalDistribution[], 2}]]

Square of a normally distributed variable is a special case of GammaDistribution, and also of ChiSquareDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[u ^ 2, uNormalDistribution[]]
Wolfram Language code: PDF[𝒟, x]
Wolfram Language code: PDF[GammaDistribution[1 / 2, 2], x]
Wolfram Language code: Simplify[% - %%]

LaplaceDistribution is a parameter mixture of a normal distribution with RayleighDistribution:

Wolfram Language code: 𝒟 = ParameterMixtureDistribution[NormalDistribution[μ, σ], σRayleighDistribution[ν]]

StudentTDistribution is a parameter mixture of a normal distribution with GammaDistribution:

Wolfram Language code: ParameterMixtureDistribution[NormalDistribution[μ, 1 / Sqrt[λ2]], λ2GammaDistribution[ν / 2, 2 / ν / σ^2], Assumptions -> σ > 0]

LevyDistribution is a transformation of a normal distribution:

Wolfram Language code: TransformedDistribution[(1/x^2), xNormalDistribution[]]

With mean and scale:

Wolfram Language code: TransformedDistribution[(x - μ) ^ -2, xNormalDistribution[μ, σ]]

Normal distribution is a special case of type 3 PearsonDistribution:

Wolfram Language code: PDF[PearsonDistribution[3, σ^-2, -μ σ^-2, 0, 0, 1], x]//FullSimplify[#, σ > 0]&
Wolfram Language code: PDF[NormalDistribution[μ, σ], x]
Wolfram Language code: % - %%

Normal distribution is a StableDistribution:

Wolfram Language code: PDF[NormalDistribution[μ, σ], x]
Wolfram Language code: PDF[StableDistribution[0, 2, 0, μ, σ / Sqrt[2]], x]
Wolfram Language code: % - %%//Simplify

Normal distribution is the marginal distribution of BinormalDistribution:

Wolfram Language code: MarginalDistribution[BinormalDistribution[{μ1, μ2}, {σ1, σ2}, ρ], 1]
Wolfram Language code: MarginalDistribution[BinormalDistribution[{μ1, μ2}, {σ1, σ2}, ρ], 2]

Normal distribution is the marginal distribution of MultinormalDistribution:

Wolfram Language code: Σ = (⁠| | | | | --------- | --------- | --------- | | σ1^2 | ρ12 σ1 σ2 | ρ13 σ1 σ3 | | ρ12 σ1 σ2 | σ2^2 | ρ23 σ2 σ3 | | ρ13 σ1 σ3 | ρ23 σ2 σ3 | σ3^2 |⁠);
Wolfram Language code: MarginalDistribution[MultinormalDistribution[{μ1, μ2, μ3}, Σ], 1]
Wolfram Language code: MarginalDistribution[MultinormalDistribution[{μ1, μ2, μ3}, Σ], 2]
Wolfram Language code: MarginalDistribution[MultinormalDistribution[{μ1, μ2, μ3}, Σ], 3]

NormalDistribution can be obtained from MultinormalDistribution:

Wolfram Language code: Σ = {{Subscript[σ, 1]^2, ρ Subscript[σ, 1]Subscript[σ, 2]}, {ρ Subscript[σ, 1]Subscript[σ, 2], Subscript[σ, 2]^2}};TransformedDistribution[u + v, {u, v}MultinormalDistribution[{Subscript[μ, 1], Subscript[μ, 2]}, Σ]]

StudentTDistribution can be obtained from NormalDistribution and ChiSquareDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[z Sqrt[ν / w], {zNormalDistribution[], wChiSquareDistribution[ν]}];
Wolfram Language code: PDF[𝒟, x]//FullSimplify[#, ν > 0]&
Wolfram Language code: PDF[StudentTDistribution[ν], x]//FunctionExpand//PowerExpand
Wolfram Language code: FullSimplify[% - %%, x ≠ 0]

NoncentralStudentTDistribution can be obtained from NormalDistribution and ChiSquareDistribution:

Wolfram Language code: 𝒟 = TransformedDistribution[(z + δ)Sqrt[ν / w], {zNormalDistribution[], wChiSquareDistribution[ν]}];
Wolfram Language code: Block[{δ = 3, ν = 15}, Show[Histogram[RandomVariate[𝒟, 10 ^ 4], 20, "PDF"], Plot[PDF[NoncentralStudentTDistribution[ν, δ], x], {x, -10, 10}, PlotStyle -> Thick]]]

VarianceGammaDistribution can be obtained from GammaDistribution and normal distribution:

Wolfram Language code: dist = TransformedDistribution[μ + β * v + Sqrt[v] * u, {uNormalDistribution[0, 1], vGammaDistribution[λ, 2 / (α - β) / (α + β)]}];
Wolfram Language code: MomentGeneratingFunction[dist, x]

Rewrite to simplify:

Wolfram Language code: E^x μ(1 / (1 + (2 x β/-α^2 + β^2)) / (1 + (x^2/-α^2 + β (2 x + β))))^λ//Simplify
Wolfram Language code: MomentGeneratingFunction[VarianceGammaDistribution[λ, α, β, μ], x]//Simplify
Wolfram Language code: %% / %//FullSimplify[#, λ > 0 && β > 0]&

Possible Issues  (2)

NormalDistribution is not defined when μ is not a real number:

Wolfram Language code: Mean[NormalDistribution[3 + I, 6]]

NormalDistribution is not defined when σ is not a positive real number:

Wolfram Language code: Mean[NormalDistribution[3, -6]]

Substitution of invalid parameters into symbolic outputs gives results that are not meaningful:

Wolfram Language code: Mean[NormalDistribution[μ, σ]] /. {μ -> I, σ -> -1}

Neat Examples  (1)

PDFs for different σ values with CDF contours:

Wolfram Language code: cdf = Function[{x, σ}, Evaluate[CDF[NormalDistribution[0, σ], x]]]; ql = {0.025, 0.10, 0.25, 0.5, 0.75, 0.90, 0.975}; cl = Table[ColorData["Rainbow"][q], {q, Join[{0.0}, ql]}];
Wolfram Language code: Legended[Plot3D[PDF[NormalDistribution[0, σ], x], {x, -5, 5}, {σ, 1, 5}, PlotTheme -> "Marketing", MeshFunctions -> {cdf}, Mesh -> {ql}, MeshStyle -> GrayLevel[0.8], MeshShading -> cl, AxesLabel -> Automatic, PlotPoints -> 100, BaseStyle -> Opacity[0.9], ImageSize -> 400, PlotRange -> All, Exclusions -> None], BarLegend["Rainbow", ql, LegendLabel -> "prob"]]

See Also

StudentTDistribution  ChiDistribution  ChiSquareDistribution  MaxwellDistribution  RayleighDistribution  RiceDistribution  HalfNormalDistribution  SkewNormalDistribution  BinormalDistribution  MultinormalDistribution  Erf  InverseErf  GaussianMatrix  Around

Function Repository: NormalCI  SigmaConfidenceLevel

Tech Notes

    ▪
  • Continuous Distributions

Related Guides

    ▪
  • Normal and Related Distributions
  • ▪
  • Probability & Statistics
  • ▪
  • Random Variables
  • ▪
  • Probability & Statistics with Quantities
  • ▪
  • Mathematical Functions
  • ▪
  • Numbers with Uncertainty
  • ▪
  • Scientific Models
  • ▪
  • Parametric Statistical Distributions
  • ▪
  • Functions Used in Statistics
  • ▪
  • Actuarial Computation
  • ▪
  • Distributions in Communication Systems

Related Links

  • An Elementary Introduction to the Wolfram Language : More about Numbers

History

Introduced in 2007 (6.0) | Updated in 2016 (10.4)

Wolfram Research (2007), NormalDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/NormalDistribution.html (updated 2016).

Text

Wolfram Research (2007), NormalDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/NormalDistribution.html (updated 2016).

CMS

Wolfram Language. 2007. "NormalDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/NormalDistribution.html.

APA

Wolfram Language. (2007). NormalDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NormalDistribution.html

BibTeX

@misc{reference.wolfram_2026_normaldistribution, author="Wolfram Research", title="{NormalDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/NormalDistribution.html}", note=[Accessed: 01-September-2026]}

BibLaTeX

@online{reference.wolfram_2026_normaldistribution, organization={Wolfram Research}, title={NormalDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/NormalDistribution.html}, note=[Accessed: 01-September-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • AI Access
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English