Reliability of a Complex System from Bayesian Viewpoint