Stochastic models for reliability