mttr: Mean Time To Repair (MTTR) Function

View source: R/allgenerics.R

mttrR Documentation

Mean Time To Repair (MTTR) Function

Description

Consider a system \mathcal{S} that has just failed at time k = 0. The mean time to repair (MTTR) is defined as the mean of the repair duration.

Usage

mttr(x, upstates = x$states, level = 0.95, klim = 10000)

Arguments

x

An object of S3 class smmfit or smm.

upstates

Vector giving the subset of operational states U.

level

Confidence level of the asymptotic confidence interval. Helpful for an object x of class smmfit.

klim

Optional. The time horizon used to approximate the series in the computation of the mean sojourn times vector m (cf. meanSojournTimes function) for the asymptotic variance.

Details

Notation (see smmR-package for the complete description of the models): (Z_k)_{k \in \mathbb{N}} is the semi-Markov chain, E = U \cup D the partition into up and down states, s = \textrm{card}(E), s_1 = \textrm{card}(U) and T_D the first passage time to D.

Consider a system (or a component) \mathcal{S} whose possible states during its evolution in time are E = \{1,\dots,s\}. Denote by U = \{1,\dots,s_1\} the subset of operational states of the system (the up states) and by D = \{s_1 + 1,\dots,s\} the subset of failure states (the down states), with 0 < s_1 < s (obviously, E = U \cup D and U \cap D = \emptyset, U \neq \emptyset,\ D \neq \emptyset). One can think of the states of U as different operating modes or performance levels of the system, whereas the states of D can be seen as failures of the systems with different modes.

We are interested in investigating the mean time to repair of a discrete-time semi-Markov system \mathcal{S}. Consequently, we suppose that the evolution in time of the system is governed by an E-state space semi-Markov chain (Z_k)_{k \in \mathbb{N}}. The system has just failed at instant 0 and the state of the system is given at each instant k \in \mathbb{N} by Z_k: the event \{Z_k = i\}, for a certain i \in U, means that the system \mathcal{S} is in operating mode i at time k, whereas \{Z_k = j\}, for a certain j \in D, means that the system is not operational at time k due to the mode of failure j or that the system is under the repairing mode j.

Let T_U denote the first passage time in subset U, called the duration of repair or repair time, i.e.,

T_U := \textrm{inf}\{ n \in \mathbb{N};\ Z_n \in U\}\ \textrm{and}\ \textrm{inf}\ \emptyset := \infty.

The mean time to repair (MTTR) is defined as the mean of the repair duration, i.e., the expectation of the hitting time to up set U,

MTTR = E[T_{U}]

Value

A matrix with s_1 = \textrm{card}(U) rows, and with columns giving values of the mean time to repair for each state i \in U, asymptotic variances (sigma2), lower (lwr) and upper (upr) asymptotic confidence limits (if x is an object of class smmfit).

References

V. S. Barbu, N. Limnios. (2008). Semi-Markov Chains and Hidden Semi-Markov Models Toward Applications - Their Use in Reliability and DNA Analysis. New York: Lecture Notes in Statistics, vol. 191, Springer.

I. Votsi & A. Brouste (2019) Confidence interval for the mean time to failure in semi-Markov models: an application to wind energy production, Journal of Applied Statistics, 46:10, 1756-1773

Examples

states <- c("a", "b", "c")
ptrans <- matrix(c(0, 0.6, 0.4,
                   0.5, 0, 0.5,
                   0.7, 0.3, 0), nrow = 3, byrow = TRUE)
param <- matrix(c(0.3, 2, 0.6,
                  NA, NA, 0.8), nrow = 3)
x <- smmparametric(states = states, init = c(1/3, 1/3, 1/3),
                   ptrans = ptrans, type.sojourn = "fi",
                   distr = c("geom", "pois", "dweibull"), param = param)

# Up states "a" and "b", down state "c"
mttr(x, upstates = c("a", "b"))


smmR documentation built on Nov. 28, 2026, 1:06 a.m.