Login
📚 Statistical Inference for Everyone
Chapters ▾

7.3 The Normal Distribution - Estimating From Data

Estimating the mean, μ, knowing the deviation, σ

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 N measurements, data={x1,x2,x3,,xN}
  2. The real deviation, σ
  3. We are modeling the data as a true value, μ, with uncertainty with a likelihood from the Normal distribution with known deviation, σ, as in Normal(0,σ). Further, we assume independence between the measurements.

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

P ( μ | d a t a , σ ) = N o r m a l ( x ¯ , σ / N )

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

Sample Mean The sample mean of a set of N samples, x1,x2,,xN is given by

x ¯ x 1 + x 2 + x 3 + + x N N

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

Estimate of location parameter μ given N samples and σ, the known deviation In summary, the best estimate for the location parameter μ in the Normal distribution given a set of N samples, x1,x2,,xN is given by

μ ^ = x 1 + x 2 + x 3 + + x N N ± σ / N

Estimating the mean, μ, not knowing the deviation, σ

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 N samples, x1,x2,,xN is given by

S 1 N 1 ( ( x 1 x ¯ ) 2 + ( x 2 x ¯ ) 2 + + ( x N x ¯ ) 2 )

Approximate estimate of location parameter μ and deviation σ given N samples The posterior probability for μ and σ given a set of N samples, x1,x2,,xN 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 )

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

With a smaller data set, the value of S as an estimate for the deviation becomes too small. When the estimate for σ is too small, then the result is claiming more confidence in the estimate of the mean, μ, 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 μ takes the form of the Student's t distribution,

Estimate of location parameter μ given N samples and unknown σ The posterior probability for μ takes the form of the Student's t distribution,

P ( μ | d a t a ) = S t u d e n t d o f = N 1 ( x ¯ , S / N )

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

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.