How this calculation works
Invert the empirical likelihood ratio for a scalar population mean using probability masses fitted to the entered observations.
p_i=1/[n(1+λ(x_i−μ))]; Σ(x_i−μ)/[1+λ(x_i−μ)]=0; W(μ)=2Σlog[1+λ(x_i−μ)].A worked example
For observations 1 through 10, the sample mean is 5.5. Testing μ=5.5 gives λ=0, ten equal masses of 0.1, and likelihood ratio statistic W=0.
Good to know
5–300 finite uncensored observations; nonconstant data, candidate mean strictly inside the observed range and confidence 80–99.9%. Positive-denominator multiplier solve and profile endpoint residual checks. Independent sampling and asymptotic one-degree chi-square calibration; no finite-sample coverage guarantee.
Reference: emplik authors: uncensored empirical likelihood (opens in a new tab) ↗
A confidence interval from fitted observation masses
Empirical likelihood starts with the observations themselves as the possible support points. It assigns an unknown probability to each observation, then asks which assignment makes a proposed population mean most plausible. The probabilities must add to one and reproduce that proposed mean. This is a different construction from inserting a standard error into a symmetric normal or Student interval.
The unconstrained optimum gives every observation mass one over the sample size. Adding a mean constraint usually moves those masses away from equality and reduces the optimized likelihood. The resulting likelihood ratio profile can be asymmetric even though the parameter is only a scalar mean. It follows the arrangement of the observations rather than assuming a fitted Gaussian distribution.
Compare this with the Mean and proportion confidence interval calculator. Optimize observation masses subject to a mean constraint and invert the empirical likelihood ratio, rather than use a normal or t interval formula.
Enter independent scalar observations
Paste between five and three hundred finite observations, a candidate mean and a confidence percentage. Repeated values are valid and retain their multiplicity: entering the same number twice represents two observations, not one support point with an unspecified weight. The calculator requires variation because a completely constant sample has no interior range over which to construct this profile.
The entered candidate must lie strictly between the smallest and largest observations. A mean outside their convex hull cannot be represented by nonnegative masses on the supplied support. At an endpoint, the usual positive-mass interior calculation also breaks down. Such failures concern the empirical support and do not establish that the actual population mean is impossible.
Solve the multiplier without losing feasibility
For a candidate mean μ, subtract μ from each observation. A single Lagrange multiplier controls the fitted masses through the denominator one plus λ times that difference. Every denominator must remain positive. Those inequalities provide a finite bracket for the multiplier, which can then be solved without exploring invalid negative probabilities.
After solving, check both the total fitted mass and the fitted mean. A small equation residual by itself is insufficient if floating arithmetic has moved a denominator too close to zero. The reported likelihood statistic uses logarithms of the positive denominators. Directly multiplying many probabilities would be less stable and would hide the numerical scale of the problem.
Invert the likelihood ratio profile
The confidence set contains candidate means whose statistic does not exceed the selected one-degree chi-square cutoff. The sample mean is an anchor because its multiplier is zero and its statistic is zero. Searching separately toward the two sample extremes finds the lower and upper profile crossings, subject to the bounded solver and residual checks.
The displayed interval is therefore tied to asymptotic likelihood calibration. Its nominal confidence level does not mean that this particular interval has a corresponding posterior probability of containing the parameter. Skewness, heavy tails, dependence and a small effective sample size can affect repeated-sampling coverage even when every numerical equation is solved accurately.
Understand the default sample
The ten default observations are the integers from one through ten. Their sum is fifty-five, so their sample mean is 5.5. At the default candidate, every centered observation sums to zero, making λ equal to zero a solution. Each fitted mass is 0.1 and the logarithmic likelihood ratio statistic is exactly zero before rounding.
Changing only the candidate mean leaves the observed sample unchanged but forces a different probability assignment. The profile rises as more mass must concentrate toward one end of the sample. This provides a useful check when exploring the controls: the profile minimum stays at 5.5, while the confidence cutoff changes when the requested confidence percentage changes.
Use transformations as consistency checks
Adding a constant to all observations and to the candidate shifts the interval by that constant. Multiplying all observations by a positive scale multiplies both interval endpoints by that scale. The likelihood ratio statistic at the correspondingly transformed candidate remains unchanged because the multiplier compensates for the change of units.
A negative scale reverses the endpoint ordering as well as changing the units. These transformations are useful diagnostic checks, but they do not repair an inappropriate sampling model. Rescaling measurements cannot remove clustering or selection bias. The calculator does not estimate survey weights, handle censoring or replace the observation-level model with an unstated adjustment.
Interpret an unresolved calculation
A numerical endpoint that fails its profile check is reported as unresolved rather than returned as a confident boundary. Near the observed extremes, fitted masses may become extremely unequal and the multiplier bracket becomes delicate. More displayed digits are not evidence that such a result is reliable; the constraint residuals and crossing conditions matter more.
Use this page for a mean-specific empirical likelihood question. Use a bootstrap interval when resampling is the intended procedure, and a Student interval when its model is the intended one. Comparing methods can reveal sensitivity, but choosing whichever interval looks most favorable after seeing the data changes the inferential procedure and is not justified by the calculator.
A few questions, answered
Why must the candidate lie inside the sample range?
The fitted masses live only on observed values, so their weighted mean cannot leave the observed convex hull.
Is the interval necessarily symmetric?
No. The likelihood profile can have different shapes on the two sides of the sample mean.
Does 95% describe a posterior probability?
No. It is the nominal repeated-sampling calibration of the asymptotic likelihood-ratio procedure.
Can repeated values be entered?
Yes. Each row or number remains one observation and contributes separately to the empirical likelihood.