# Non-Parametric Bayesian - Expert Opinion

*This example appears in the Life Data Analysis Reference book*.

You can use the non-parametric Bayesian method to design a test using prior knowledge about a system's reliability. For example, suppose you wanted to know the reliability of a system and you had the following prior knowledge of the system:

- Lowest possible reliability:
*a*= 0.8

- Lowest possible reliability:

- Most likely reliability:
*b*= 0.85

- Most likely reliability:

- Highest possible reliability:
*c*= 0.97

- Highest possible reliability:

This information can be used to approximate the expected value and the variance of the prior system reliability.

These approximations of the expected value and variance of the prior system reliability can then be used to estimate and used in the beta distribution for the system reliability, as given next:

With and known, any single value of the four quantities system reliability *R*, confidence level *CL*, number of units *n*, or number of failures *r* can be calculated from the other three using the beta distribution function:

**Solve for System Reliability R**

Given *CL* = 0.9, *n* = 20, and *r* = 1, using the above prior information to solve *R*.

First, we get the number of successes: s = n – r = 19. Then the parameters in the posterior beta distribution for *R* are calculated as:

Finally, from this posterior distribution, the system reliability *R* at a confidence level of *CL*=0.9 is solved as:

**Solve for Confidence Level CL**

Given *R* = 0.85, *n* = 20, and *r* = 1, using the above prior information on system reliability to solve for *CL*.

First, we get the number of successes: s = n – r = 19. Then the parameters in the posterior beta distribution for *R* are calculated as:

Finally, from this posterior distribution, the corresponding confidence level for reliability *R*=0.85 is:

**Solve for Sample Size n**

Given *R* = 0.9, *CL* = 0.8, and *r* = 1, using the above prior information on system reliability to solve the required sample size in the demonstration test.

Again, the above beta distribution equation for the system reliability can be utilized. The figure below shows the result from Weibull++. The results show that the required sample size is 103. Weibull++ always displays the sample size as an integer.