This script outlines a way to infer a Weibull distribution that fits the interarrival times from a Computerised Maintenance Management System (CMMS). CMMS data is typically event data that has been entered by human beings and it is therefore prone to humans factors. This script only estimates from interarrival times that are known. It ignores recordings of interarrival times with an unknown start or an unknown end.
In some cases, these interarrival times equal the life time of an item, but this is not always the case. For example, the arrivals come from different members of a fleet or the shelf life should also be considered. In the setup of this script however, the interarrival times equal the life time which makes them of direct use to reliability engineers. Reliability engineers have often used Weibull plots to estimate the reliability from data about life times. As calendar time is rarely a cause of failures, the life time may also be expressed in terms of load cycles or "production volume" to enhance predictability. Predicting failures is important to align maintenance decisions with failure behaviour. This script ultimately just infers from known life times irrespective of their definition. The probabilities of the observed interarrival times on the vertical axis of the Weibull plot have been estimated by Benard's median rank approximation.
Rk=1−(i−0.3)(n+0.4)
This script applies the log-transform that enables an estimation of the parameters of the Weibull distribution by linear regression. The Weibull distribution is given by:
R(0,t]=e−(tη)β
Take the log:
ln(R(0,t])=−(tη)β
Eliminate the minus:
ln(1R(0,t])=(tη)β
Take the log again:
ln(ln(1R(0,t]))=βln(tη)=βln(t)−βln(η)
Now, the log transformed expression for reliability linearly depends on a log transformed time. The slope of this line is β and the intercept is −βln(η) as shown in the picture:
From the slope and the intercept of the linear regression line, the shape parameter (β) and the scale parameter (η) can be deduced. The Weibull distribution fitted in the picture becomes:
R(0,t]=e−(t272)0.615
In this case, the shape parameter β<1 meaning that the item suffers from a high infant mortality. This means that reliability steeply drops in the early stages of an item's life:
Having survived the initial stage, the reliability slowly decreases implying that it is highly probable that the item will survive a next time interval in its remaining life. As a consequence, a replacement of an old item by a new one increases the probability of a failure immediately after this replacement. Therefore, scheduled maintenance should not be applied if β<1.
If the shape parameter β>1, the item suffers from ageing or wear. If the parameter β=1, the item suffers from failures that occur randomly in time. Therefore, a Weibull plot shows some symptoms of the cause of the failure but expert judgement remains indispensible to identify this cause. Of course, as sensorrecordings from items become better accessible, it becomes increasingly possibly to directly predict failures from indicators of their suspected causes.