How this calculation works
Estimate a two-parameter Weibull lifetime distribution from observed events and right-censored durations. Censored rows contribute survival information rather than being discarded or treated as exact failures. The page fits shape and scale with location fixed at zero, reports its likelihood and score check, and states where the supported inference stops.
log L=Σ_event[log k−k log lambda+(k−1)log t]−Σ_all(t/lambda)^k.A worked example
For fixed shape k=1, times 1,2,3,4 with the last right censored have three events and total exposure ten; the profile scale is 10/3. The full two-parameter fit also estimates shape and therefore generally differs from this exponential submodel.
Good to know
Positive times, 3–300 rows and ≥two observed events; two-parameter Weibull, location zero. Noninformative independent right censoring. Shape root restricted [0.001,1000]; no standard errors or other censoring forms.
Represent the observation process faithfully
An event indicator of one means the duration ended with the event of interest. Zero means the subject or item was still event-free at the recorded censoring time, so its true event time is later. The same numeric duration therefore has a different likelihood contribution depending on its indicator.
Discarding censored items preferentially removes longer lifetimes, while treating censoring as a failure places events too early. Neither change is a harmless simplification. The calculator needs one indicator for every positive duration and assumes independent subjects with censoring that is noninformative for the lifetime model.
The Competing risks cumulative incidence calculator separates event causes when one outcome prevents another. A single censored Weibull model treats censoring as incomplete follow-up rather than silently treating competing failures as independent censoring.
Identify shape, scale and fixed location
For positive time t, the survival function is exp of minus (t/scale) raised to shape. Scale is the time at which survival is exp of minus one, not automatically the mean lifetime. Shape changes the hazard pattern: below one it decreases, at one it is constant, and above one it increases.
Location is fixed at zero rather than estimated. A three-parameter Weibull can shift the origin and has a different likelihood problem. Subtracting a chosen threshold from every duration outside the calculator changes the model and must preserve positivity; it should not be done simply to obtain a more attractive shape estimate.
Combine event density and censored survival
Each observed event contributes the Weibull density, whereas each right-censored row contributes survival at its censoring time. The full log likelihood is event count times log shape minus event count times shape times log scale, plus the event-weighted log-time term, minus the cumulative power term over every row.
This makes long censored durations informative even without a known event time. The form does not add a guessed failure after censoring or impute a midpoint. Left censoring, interval censoring and delayed entry would require different contributions and are not converted into right censoring by changing the indicator alone.
Profile scale for a fixed shape
For any proposed shape k, the likelihood-maximizing scale satisfies scale to the power k equals the sum of all time-to-the-power-k values divided by the number of observed events. This reduces the search to a scalar shape equation and makes a useful partial calculation possible by hand.
With times one, two, three and four and only the last row censored, a fixed k=1 gives scale (1+2+3+4)/3=10/3. That is the exponential submodel. The full fit also optimizes shape, so its scale need not equal 10/3. Compare like models rather than using the fixed-shape check as the expected two-parameter answer.
Understand the profile score and numerical bound
The shape equation compares the average event log time with a power-weighted log-time average over all rows. The implementation evaluates weights after shifting log times to avoid unnecessary overflow. A bracketed root search solves the supported interior problem between shape 0.001 and 1000.
A small profile score checks the first-order fitting equation, not the uncertainty of the estimate. A solution outside the bracket or a data pattern without a supported finite interior maximum is rejected. The page does not label a bracket endpoint as a reliable maximum merely because it is the best allowed numeric point.
Interpret fitted quantiles without inventing intervals
The fitted median is scale times log two raised to the reciprocal shape. It is a point estimate conditional on the model. A small sample with many censored rows can give substantial uncertainty even when the numerical equation is solved accurately and the displayed median has many decimals.
No confidence interval for shape, scale, median or survival is calculated here. A likelihood value also cannot by itself tell you whether Weibull is an adequate family. Inspect survival behavior and plausible hazard patterns using a broader analysis before relying on extrapolated lifetimes well beyond the observed events.
Check model assumptions before operational use
Dependent failures, changing operating environments and informative dropout can violate the independent two-parameter model. A mixture of very different populations can also mimic a changing hazard without being Weibull. Report what counts as an event, the time origin and the censoring mechanism with the parameter estimates.
The minimum event requirement keeps an obviously underinformed numerical problem out, but it is not a general sample-size recommendation. Use the output as an educational likelihood calculation and validate consequential reliability or health decisions through an appropriate domain workflow. A converged parametric model is not an official safety or medical certification.
A few questions, answered
Should censored items be removed before fitting?
No. Their survival contributions are part of the likelihood. Removing them changes the sample and can bias the fit.
Is Weibull scale the mean lifetime?
No. At the scale time, survival is exp(−1). Mean and median are different functions of shape and scale.
Does zero indicator mean an event at time zero?
No. Zero denotes right censoring at the entered positive duration.
Does the page calculate confidence intervals?
No. It returns point estimates and numerical likelihood checks, not uncertainty intervals.