How this calculation works
In doubly truncated sampling, a lifetime or measurement is observed only when it falls inside its own observation window. Cases outside their windows are absent rather than recorded as censored values.
Observedtriples(L_i,t_i,R_i),L_i≤t_i≤R_i. Distinctsupportt_jwithmultiplicityn_j andJ_ij=1(L_i≤t_j≤R_i). Conditional loglikΣ_jn_jlogp_j-Σ_ilogF_i,F_i=Σ_jJ_ijp_j. Optimizepositive simplexprobabilities usinglogmasssoftmax;gradientinlogmass n_j-p_jΣ_iJ_ij/F_i. Commonfixedpointp_j∝n_j/[Σ_iJ_ij/F_i] canbeusedwithmonotonicitychecks andconvergencecriterion. Strongconnectivity/identifiabilityanalysisrequired; disconnectedwindowscanleavecomponentmassunidentified. DisplayCDFjumps andlikelihood,KKTresidual;no unconditionalpopulationtailclaimsoutsidesupport.A worked example
With the prefilled inputs, conditionalLogLikelihood = -13.183347464017315. Rows [lower,observed,upper] with lower < observed < upper.
Good to know
Observed-value support conditional NPMLE with independent double truncation. Connectivity is necessary but not a general uniqueness certificate; this is an interior numerical solution.
Reference: Primary method reference or author-maintained documentation (opens in a new tab) ↗
Truncation removes observations from view
In doubly truncated sampling, a lifetime or measurement is observed only when it falls inside its own observation window. Cases outside their windows are absent rather than recorded as censored values.
The likelihood therefore conditions each observed value on being visible within that window. Treating the recorded values as an ordinary random sample generally changes the inferred distribution.
Compare with the Turnbull interval censored survival calculator from observation bounds. Estimate a distribution when observations enter only inside individual selection windows; interval censoring observes a window containing an unknown value rather than an exactly observed selected value.
Enter a window for every observation
Rows [lower,observed,upper] with lower < observed < upper.Supply a lower limit, observed value and upper limit for each record, with the value lying inside its own window. This version uses closed intervals, so values equal to a limit are included.
All records must use the same measurement unit and ordering convention. An impossible window or a window containing no supported observation needs an input diagnostic before optimization begins. Each row is lower truncation bound, observed value and upper truncation bound, with strict inequalities. Unlike ordinary censoring, truncation means observations outside the interval would not appear in the sample at all. The observed-value support determines the finite mass model used here. Repeated values contribute repeated counts at the same support location. Interval endpoints are not quietly treated as included observations, because changing open to closed intervals can change which support masses enter the conditional denominator and therefore change the likelihood.
Place mass on observed support
The nonparametric estimate assigns probability jumps to distinct observed values. Repeated observations share a support location but contribute their multiplicity to the likelihood.
For each record, its window probability is the sum of all estimated support masses lying inside that window. The conditional contribution divides the observed-location mass by this visibility probability.
Check identification before convergence
Overlapping windows connect information about different parts of the support. If windows isolate separate components, the relative total mass of those components may not be identified by the conditional data.
An optimizer can stop even when many mass allocations have the same likelihood. Report connectivity and identification diagnostics separately from a small numerical update or a successful iteration status.
A complete-window reference
For observed values one and two with both windows covering zero through three, every support point is visible to every record. The conditional denominators are then one.
The maximizing masses are one-half and one-half, with likelihood one-quarter. In contrast, if each window contains only its own support point, every positive split yields conditional likelihood one and the relative masses remain unidentified.
Interpret the fitted distribution
The estimated cumulative distribution rises at the observed support points according to their fitted masses. It is adjusted for the specified truncation windows under the model's sampling assumptions.
The estimate does not create observed information about remote tails with no supported values. Extrapolating beyond the data requires a separate parametric model or additional sampling information. Reprojection of the fitted masses through the entered intervals checks the conditional model, not the number of unobserved people or events omitted by truncation.
Keep assumptions and diagnostics together
Window assignment must satisfy the independence or quasi-independence conditions required by the chosen truncation analysis. A numerical mass estimate cannot test those conditions by itself.
Retain the support, masses, conditional log likelihood and convergence residuals with the result. They make it possible to distinguish a stable identified fit from an arbitrary output in a flat likelihood region. The likelihood divides each observed support mass by the total probability inside that record's observable interval. Self-consistency updates use those interval masses and the observed multiplicities. If the support splits into disconnected observable components, their relative probability is not identified by these conditional records and the page rejects the fit. Connectivity alone is not a general uniqueness theorem, so convergence and the likelihood-score check are still necessary. Output consists of estimated masses, their cumulative sums, conditional log likelihood and iteration diagnostics. It is neither the naive empirical CDF nor a guarantee that independent truncation was satisfied by the original sampling process. Observed-value support conditional NPMLE with independent double truncation. Connectivity is necessary but not a general uniqueness certificate; this is an interior numerical solution.
A few questions, answered
How is truncation different from censoring?
A truncated case is not observed at all outside its window; a censored case is recorded with partial information.
Can windows fail to identify the distribution?
Yes. Disconnected visibility components can leave their relative probability mass unidentified.
Why combine repeated observed values?
They share one support location, while their multiplicity still contributes to the likelihood.
Does convergence guarantee uniqueness?
No. Numerical stabilization and statistical identification are separate checks.