How to Estimate Uniform Distribution Parameters by Moments
At a glance
- 1. Specify the model
Decide whether the interval endpoints are both unknown or one endpoint is known.
- 2. Write population moments
Use the mean and, when needed, the second raw moment or variance of the uniform distribution.
- 3. Match sample moments
Set the population moments equal to the corresponding sample moments and solve for the parameters.
- 4. Check the estimates
Confirm the endpoint order and remember that moment estimates need not contain every observation.
The method of moments estimates distribution parameters by matching theoretical moments to moments calculated from the data. For a uniform distribution, the formula depends on which endpoint or endpoints are unknown. The common one-parameter model is uniform on ; if both endpoints are unknown, you need two moments.
The estimates below use the ordinary method-of-moments convention: the th sample raw moment is . This means the variance-like quantity in the two-parameter formula uses divisor , not .
If the distribution is uniform on
For , the population mean is
The first sample raw moment is the sample mean, . Match it to the population mean and solve:
For example, with observations , the sample mean is , so the method-of-moments estimate is . This estimate is not based on the largest observation; it comes from matching means. If the known lower endpoint is instead , so that , then and .
If both endpoints are unknown
Suppose , with . Its first two raw moments are
Define the first and second sample raw moments as
The moment equations are and . It is convenient to use the identity . The corresponding sample moment difference is
Thus the estimated midpoint is , and the estimated width is . Solving for the endpoints gives
Equivalently, if , then and .
Worked example
Take the data . Their mean is , and their second raw moment is
Therefore . The estimated endpoints are
The moment estimate is approximately . If you are given the usual unbiased sample variance (with divisor ), first convert it: . Do not substitute directly for .
A symmetric uniform distribution
A different model is . Its mean is always zero, so the first moment cannot identify . Use the second moment, , instead. Matching it to gives , with .
Common mistakes
- Assuming there is one formula for every uniform model. The answer changes depending on whether the interval is , , , or .
- Using the sample maximum for the method of moments. The maximum is central to the maximum-likelihood estimate in some uniform models, but it is not the method-of-moments calculation. For , the moment estimate is .
- Using divisor without adjustment. Standard sample raw moments use divisor . If starting from the unbiased sample variance, multiply it by before applying the two-endpoint formula.
- Treating the result as a maximum-likelihood estimate. With two unknown endpoints, the moment estimates need not place every observation between the estimated endpoints. They are still the algebraic moment estimates, but a fitted uniform density with those endpoints would assign zero density to any observation outside the interval. Maximum likelihood instead uses the sample minimum and maximum (with parameter-space details depending on the convention).
If all observations are identical, the two-endpoint formulas give equal endpoints. This is a degenerate boundary case rather than a nonzero-width continuous uniform distribution.
References
- Mathematical Statistics with Applications — Dennis D. Wackerly, William Mendenhall III, and Richard L. Scheaffer
- Statistical Inference — George Casella and Roger L. Berger
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.