| get.Py | R Documentation |
Computes the transition function of the semi-Markov chain
(Y_k)_{k \in \mathbb{N}} absorbed in
\Delta at the first passage to the down states (see
get.qy) (Barbu and Limnios, 2008, Proposition 5.1 and its second proof,
pp. 105-106):
P_Y = \psi_Y * (I - H_Y),
where \psi_Y and H_Y are computed from the kernel
q_Y as in get.psi and get.H.
get.Py(x, k, upstates = x$states)
x |
An object of S3 class |
k |
A positive integer giving the time horizon. |
upstates |
Vector giving the subset of operational states |
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_1 = \textrm{card}(U), T_D the first passage time to
D and q_Y the kernel of get.qy.
For an up state i \in U,
P_Y(k)_{i \Delta} = P(T_D \le k \mid Z_0 = i),
where T_D is the first passage time to D, so that the
reliability of the system is
R(k) = \sum_{i \in U} \alpha_i \left(1 - P_Y(k)_{i \Delta}\right),
with \alpha the initial distribution (see reliability).
The rows and columns are the up states, in the order of x$states,
followed by \Delta.
A numeric array of dimension (s_1 + 1, s_1 + 1, k + 1), where
s_1 = \textrm{card}(U) is the number of up states,
whose slice l + 1 is the matrix P_Y(l), for
l = 0, \dots, k.
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.
get.qy, get.P, reliability
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 <- c("a", "b")
Py <- get.Py(x, k = 10, upstates = up)
Py[, , 11] # P_Y(10): rows/columns "a", "b", Delta
# Reliability at time 10
sum(x$init[1:2] * (1 - Py[1:2, 3, 11]))
reliability(x, k = 10, upstates = up)[11, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.