Converter tool

Weibull Analysis for Life Data

Fit failure times with right-censored suspensions by maximum likelihood and by rank regression, compare Weibull, lognormal and exponential, and read B-life, reliability and hazard from a probability plot.

One row per failure or suspension

1. Your data

Or paste the table

Weibull Analysis for Life Data

Operator: Abdulla Al Fahad. How tools are built and checked

Ten bearings fail between 54 and 386 hours while ten more are taken off the test, still running, at 500 hours. Ignoring those ten survivors would make the bearings look far worse than they are; treating their 500 hours as failure times would make them look better. A Weibull fit counts each suspended unit as proof that it lasted at least that long.

The page fits the two-parameter Weibull by maximum likelihood and by median-rank regression, compares it with lognormal and exponential fits on AIC, and reports shape (beta), scale (eta), the life by which a chosen percentage has failed (B1, B10 and others), reliability at a time you choose, and the mean time to failure.

Interval data and the three-parameter Weibull are not part of this tool: it handles exact failure times and right-censored suspensions. Very large datasets are handled too: past 5,000 failures the rank regression switches to the Benard approximation and the probability plot shows about 2,000 evenly spaced points, while the fit still uses every unit.

Key features

  • Maximum likelihood fit with the Fisher-information covariance, giving bounds on beta, eta, any B-life and reliability at a time
  • Rank regression on Y and on X with Johnson's adjusted ranks for suspensions and exact (beta distribution) or Benard median ranks
  • Lognormal and exponential maximum likelihood fits, compared with log-likelihood, AIC and BIC
  • B-life percentages of your choice, reliability at time t, MTTF, and a choice of 80, 90 or 95% two-sided confidence
  • A probability plot on Weibull paper, plus density, unreliability and hazard plots, each downloadable as SVG or PNG
  • A count column, so 10 units suspended at 500 hours can be one row, and up to 200,000 units in total

Life data layout, censoring, the three fits and how bounds are computed

The time column holds positive numbers. An optional status column says which rows are suspensions; the page proposes a value such as suspension, censored or S from the column and lets you change it. An optional count column repeats a row, up to 200,000 units in total. At least two failures at two different times are needed, because one time cannot define a shape.

Johnson's adjusted rank for a failure is the previous adjusted rank plus (N + 1 minus the previous) divided by (1 plus the number of units from this one to the end). For failures at 100, 200 and 300 hours with suspensions at 150 and 250, the adjusted ranks are 1, 2.25 and 4.125. A median rank is then taken from the beta distribution with that fractional rank, or from Benard's (rank minus 0.3) over (N plus 0.4).

Bounds assume the sampling distribution of the estimates is roughly normal on the log scale: beta and eta bounds multiply and divide by an exponential of z times the standard error over the estimate, and B-life and reliability bounds use the delta method. With few failures these bounds are narrow-sample approximations, not exact.

How it works

Maximum likelihood maximises the sum over failures of the log density and over suspensions of the log survival function. The page solves the profile equation for beta by bracketing and bisection, derives eta in closed form from beta, and inverts the observed information matrix for the covariance.

Rank regression puts each failure at its median rank on the Weibull scale, ln(-ln(1 - F)) against ln(time), and fits a line. Regressing y on x gives one slope and x on y another. With plenty of failures the two usually differ by a few percent and land near the maximum likelihood estimate; with few failures they spread further apart, and both can sit below it, as in the examples under the FAQ.

The comparison table gives each distribution's log-likelihood on the same data, with AIC and BIC. A difference in AIC below about 2 is not evidence for one model over the other, and in the example Weibull and lognormal are 0.12 apart.

Common use cases

  • A warranty analyst fitting 4,000 returns by months in service, with the units still in the field entered as suspensions through a count column.
  • A test lab running 12 pumps for 2,000 hours, with 3 failures and 9 survivors, who needs a B10 life with a confidence bound for the datasheet.
  • Before changing a replacement interval, a maintenance planner checks whether shape is above 1, which signals wear-out.
  • Six failures, two methods: a reliability engineer sees how far rank regression lands from maximum likelihood.

How to use this tool

  1. Drop the life table or paste it, then pick the time column.
  2. Pick the status column and the value that marks a suspension, and a count column if rows represent several units.
  3. Choose the rank method and confidence level, and type the B-life percentages you need.
  4. Read the fits and the comparison table, then check the probability plot for a straight line.
  5. Download the results CSV or XLSX, or any chart.

Example

A bearing test lab entering 20 units: ten failures and ten still running when the test stopped at 500 hours

hours,status
54,failure
187,failure
216,failure
240,failure
244,failure
335,failure
361,failure
373,failure
375,failure
386,failure
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension
500,suspension

Maximum likelihood fit, life measures and model comparison

Weibull by maximum likelihood: shape 1.7208, scale 606.53 hours, log-likelihood -75.135
90% bounds: shape 1.065 to 2.781, scale 432 to 851 hours
B10 life 164.0 hours (90% bounds 93.4 to 288.0), B1 life 41.9 hours, MTTF 540.7 hours
Reliability at 300 hours: 74.2% (90% bounds 57.8 to 85.1%)
AIC: Weibull 154.27, lognormal 154.39, exponential 155.11

Tips for best results

  • A shape near 1 means failures look random in time, below 1 means early failures dominate, and above 1 means wear-out. The bounds on beta say whether 1 is excluded.
  • On the probability plot, a curve rather than a line points to a mixture of failure modes or to a lognormal distribution; read the AIC table together with the plot.
  • With under 10 failures, show both maximum likelihood and rank regression. They are two answers to a small-sample question, and reporting one hides the spread.

Common pitfalls

Suspensions must be right-censored: units that were still working at the time. A unit removed because it was about to fail is a failure, and treating it as a suspension flatters the product.

B-life bounds from maximum likelihood are normal approximations, and they are wide with few failures. Do not read them as guarantees.

Rank regression logs and ranks are not likelihoods, so the log-likelihood shown for those fits is computed at their parameters for comparison only.

Failure times of zero or negative numbers are refused, because a Weibull is defined for positive times.

Interval-censored and left-censored observations are not supported; enter the end of the interval as a failure time only if that is a decision you can defend.

Common errors and how to fix them

At least 2 failures are needed to fit a life distribution.
Check the status column and the value that marks a suspension; if every row was a suspension, there is nothing to fit.
All failures happened at the same time, so the shape cannot be estimated.
Use exact failure times rather than inspection dates, or collect data at two or more different times.
Row 7: "12h" in the time column is not a number.
Remove the unit text. Times must be plain positive numbers in one unit.
The data describes 250,000 units; the limit is 200,000.
Aggregate rows with the count column, or analyse a sample.

Choosing between Weibull, lognormal and exponential

The comparison table uses AIC and BIC from maximum likelihood. A lognormal distribution suits failures that come from a multiplicative process, such as crack growth or a repair time, and an exponential distribution fits a constant failure rate with a single parameter. When the AIC values are within 2 of each other, choose on engineering grounds and say so, as the data cannot decide.

Extrapolating a long way below the first failure, to B1 for example, depends strongly on the distribution you pick. In the example the Weibull B1 is 41.9 hours but its 90% bounds run from 13.0 to 134.9, which shows how little ten failures say about the lower tail.

Frequently asked questions

How do I know the numbers are right?

The 20-unit example is the one worked in section 8.4.1.3 of the NIST/SEMATECH e-Handbook of Statistical Methods, which gives shape 1.7208, scale 606.5280 and log-likelihood -75.135; this page returns 1.7208, 606.528 and -75.135. Rank regression was checked against the six-failure example in ReliaSoft's life data analysis reference (16, 34, 53, 75, 93 and 120 hours): rank regression on Y gives shape 1.4301 and scale 76.32, on X 1.4429 and 76.08, and maximum likelihood 1.933 and 73.53, matching its published values.

Why do maximum likelihood and rank regression disagree?

They optimise different things. Likelihood uses all units, including suspensions, directly; rank regression fits a line to plotted points and is sensitive to the earliest failures. On the NIST data rank regression on Y gives shape 1.46 against 1.72 by maximum likelihood.

Is beta below 1 a problem?

It means the failure rate falls with age, which suggests infant mortality or a mixture of a weak and a strong population. A single Weibull may then be the wrong model; look for a bend on the probability plot.

Can I enter units that were removed at different times?

Yes. Each distinct suspension time can be its own row, with a count if several units were removed together.

How is this different from Kaplan-Meier?

Kaplan-Meier on this site makes no distribution assumption and describes the observed survival curve; a Weibull fit supplies a smooth model that extrapolates to B10 or B1 lives.