Statistical Inference for EveryoneXYZ Homework Edition

⇩ Download ▾

7.3 The Normal Distribution - Estimating From Data

Estimating the mean, μ\mu, knowing the deviation, σ\sigma

Typically one is provided with a series of measurements of a quantity, and we want to estimate the value of that quantity, and have a description of our uncertainty in the estimate. In Chapter 9 (Applications of Parameter Estimation and Inference on page 165) we go through a number of detailed examples of this process. Here, we simply summarize the result. We are given:

  1. A series of NN measurements, data={x1,x2,x3,,xN}x_{1}, x_{2}, x_{3}, …, x_{N}
  2. The real deviation, σ\sigma
  3. We are modeling the data as a true value, μ\mu, with uncertainty with a likelihood from the Normal distribution with known deviation, σ\sigma, as in Normal(0,σ){\rm Normal}(0,\sigma). Further, we assume independence between the measurements.

Since in this case we are given σ\sigma, we wish then to estimate the parameter μ\mu. The result will be a probability distribution over μ\mu, with a best (i.e. most probable) value and an uncertainty in that value. The result is that the distribution of μ\mu is also a Normal distribution,

P ( μ | d a t a , σ ) = N o r m a l ( x ¯ , σ / N ) \begin{eqnarray*} P(\mu|{\rm data},\sigma) = {\rm Normal}(\bar{x}, \sigma/\sqrt{N}) \end{eqnarray*}

where the center value (and thus the most probable value of μ\mu) is given by the sample mean of the data.

Sample Mean The sample mean of a set of NN samples, x1,x2,,xNx_{1},x_{2},\cdots,x_{N} is given by

x ¯ x 1 + x 2 + x 3 + + x N N \begin{eqnarray*} \bar{x}\equiv\frac{x_{1} + x_{2} + x_{3} + \cdots + x_{N}}{N} \end{eqnarray*}

The uncertainty in μ\mu is given by σ/N\sigma/\sqrt{N}. As a consequence, larger NN (i.e. more data points), makes us more confident in the particular estimate for μ\mu.

Estimate of location parameter μ\mu given NN samples and σ\sigma, the known deviation In summary, the best estimate for the location parameter μ\mu in the Normal distribution given a set of NN samples, x1,x2,,xNx_{1},x_{2},\cdots,x_{N} is given by

μ ^ = x 1 + x 2 + x 3 + + x N N ± σ / N \begin{eqnarray*} \hat{\mu} = \frac{x_{1} + x_{2} + x_{3} + \cdots + x_{N}}{N} \pm \sigma/\sqrt{N} \end{eqnarray*}

Estimating the mean, μ\mu, not knowing the deviation, σ\sigma

If we are not so fortunate to be given the deviation, as in the previous case, then this parameter too must be estimated from the data. As a first step we can estimate the deviation with the sample deviation.

Sample Deviation The sample deviation of a set of NN samples, x1,x2,,xNx_{1},x_{2},\cdots,x_{N} is given by

S 1 N 1 ( ( x 1 x ¯ ) 2 + ( x 2 x ¯ ) 2 + + ( x N x ¯ ) 2 ) \begin{eqnarray*} S\equiv \sqrt{\frac{1}{N-1}\left( (x_{1}-\bar{x})^{2}+(x_{2}-\bar{x})^{2}+\cdots+(x_{N}-\bar{x})^{2}\right)} \end{eqnarray*}

Approximate estimate of location parameter μ\mu and deviation σ\sigma given NN samples The posterior probability for μ\mu and σ\sigma given a set of NN samples, x1,x2,,xNx_{1},x_{2},\cdots,x_{N} can be approximated with

P ( μ | d a t a ) N o r m a l ( x ¯ , S / N ) P ( σ | d a t a ) N o r m a l ( S , S 2 / ( N 1 ) / 3 ) \begin{eqnarray*} P(\mu|{\rm data}) &\sim& {\rm Normal}(\bar{x}, S/\sqrt{N}) \\ P(\sigma|{\rm data}) &\sim& {\rm Normal}\left(S, S^{2}/\sqrt{(N-1)/3}\right) \end{eqnarray*}

which works well if we have many (N>30N>30) data points.

With a smaller data set, the value of SS as an estimate for the deviation becomes too small. When the estimate for σ\sigma is too small, then the result is claiming more confidence in the estimate of the mean, μ\mu, than is warranted. This discrepancy depends on the number of data points, and thus it makes sense that the proper distribution should depend on the number of data points, in addition to the sample mean and deviation. The proper, although less convenient, result is that the posterior probability for μ\mu takes the form of the Student's tt distribution,

Estimate of location parameter μ\mu given NN samples and unknown σ\sigma The posterior probability for μ\mu takes the form of the Student's tt distribution,

P ( μ | d a t a ) = S t u d e n t d o f = N 1 ( x ¯ , S / N ) \begin{eqnarray*} P(\mu|{\rm data}) = {\rm Student}_{{\rm dof}=N-1}(\bar{x}, S/\sqrt{N}) \end{eqnarray*}

This distribution requires three numbers to specify, referred to as the mean (μ\mu), deviation (σ\sigma) and the degrees of freedom (dof). The degrees of freedom is defined in this case to be the number of data points less one, N1N-1.

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.