A11 · Lesson 35 · Estimation
Sample statistics, bias and maximum likelihood
Twenty power supplies run a thousand hours each, and four fail. What is their failure rate? Five readings of a reference voltage scatter around 5 V. What is the meter's noise? Until now the course has assumed the parameters were known: , , . In practice you estimate them from data, and you need to know whether an estimate is systematically off, how much it scatters, and how to find a good one when there's no obvious formula. Maximum likelihood answers the last question for almost every model in this course.
- A reliability test saw failures in thousand device-hours, with exponential lifetimes. The curve is the log-likelihood: how well each failure rate explains that data.
- The peak is the maximum likelihood estimate, .
- Raise and together, keeping their ratio. The peak stays put but gets sharper: more data, less uncertainty.
Predict
Five readings are 4.9, 5.1, 5.0, 5.2 and 4.8 V. What is the best estimate of the meter's noise standard deviation?
0.158 V. The squared deviations from the sample mean add to 0.10 V². Dividing by gives 0.025 V², whose square root is 0.158 V. Dividing by 5 underestimates on average, because the deviations are measured from the sample's own mean, which sits closer to the data than the true mean does. (0.071 V is the standard error of the mean, a different quantity.)
Name it
Estimators
An estimator is a formula that turns data into a guess at a parameter . Because the data are random, so is , and it's judged by its distribution:
- bias: , a systematic error;
- variance, or its square root, the standard error: the scatter from sample to sample;
- mean squared error: .
A good estimator has small MSE and is consistent: it converges to as the data grow.
Sample mean and variance
From readings :
is unbiased with standard error , estimated as . is unbiased because of the , Bessel's correction; dividing by gives an estimate whose average is , too low. The deviations from always add to zero, so only of them are free.
Maximum likelihood
The likelihood is the chance (or density) of the observed data, viewed as a function of the parameter. The maximum likelihood estimate is the that makes the data most probable. In practice maximize , which turns the product into a sum, by setting its derivative to zero.
| Model | Data | MLE |
|---|---|---|
| Bernoulli | successes in | |
| Poisson | counts | |
| exponential rate | failures in total time | |
| Gaussian , | readings | , and |
The exponential case: , whose derivative is zero at . For lifetime tests with replacement, is the total device-hours run, whoever failed.
For large samples the MLE is nearly unbiased and nearly Gaussian, with a spread set by how sharply peaks. For counts of events, that's a relative uncertainty of about , the Poisson rule again.
Worked example
Twenty supplies each run 1000 hours, with failed units replaced, and 4 failures occur. Estimate the failure rate and MTTF, and their uncertainty.
Show the solution
- Total time.
- Failure rate.
- MTTF. It's one over the rate:
- Uncertainty. With only 4 failures the relative uncertainty is about so the true MTTF could easily be 3000 or 10,000 h.
- Why tests run hot. Reliability tests need many failures, which is why they run hot to speed failures up.
Answer the failure rate is per hour and the MTTF 5000 h, each uncertain by about 50%.
Worked example
For the readings 4.9, 5.1, 5.0, 5.2, 4.8 V, find , and the standard error of the mean.
Show the solution
- Mean.
- Squared deviations. They are 0.01, 0.01, 0, 0.04 and 0.04, adding to 0.10 V².
- Sample standard deviation. so V.
- Standard error of the mean.
Answer V, V and a standard error of 0.071 V: report V.
Worked example
7 of 50 sampled boards fail a test. Estimate the failure rate and its standard error.
Show the solution
- Estimate the rate.
- Standard error.
- What it means. The rate is about : fifty boards pin it down only roughly. Halving the uncertainty would take 200 boards.
Answer the failure rate is about 0.14, with a standard error of 0.049.
Check
5 readings have squared deviations from their mean adding to 0.4. What is the sample variance ?
Check
The true variance is 4. On average, what does the divide-by- estimate give, from 4 readings?
Check
A life test runs 50 thousand device-hours in total and sees 3 failures. What is the maximum likelihood estimate of the failure rate, per thousand hours?
Check
A Geiger counter records 3, 7 and 6 counts in three equal intervals. What is the maximum likelihood estimate of the Poisson mean per interval?
Check
16 readings have sample standard deviation 2 mV. What is the standard error of their mean?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
An estimator has bias 0.1 and standard deviation 0.2. What is its mean squared error?
Check
7 of 50 boards fail a test.
(a)
What is the estimated failure rate?
(b)
What is its standard error?
Check
Readings have sample standard deviation ; there are of them.
Step 1
What is the standard error of the mean?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the half-width of a 95% interval, for large ?
Explain why
Why does dividing by underestimate the variance?
The deviations are measured from the sample mean , and is, by construction, the value that makes the sum of squared deviations as small as possible. The true mean is somewhere else, so deviations from it would be larger on average. Measuring from therefore shrinks the sum, by exactly one variance's worth on average: . Dividing by instead of undoes that.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.