Template:Example: Bayesian Test Design with Prior Information from Expert Opinion

Bayesian Test Design with Prior Information from Expert Opinion

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


 * Most likely reliability: b = 0.85


 * Highest possible reliability: c = 0.97

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


 * $$ E\left(R_{0}\right)=\frac{a+4b+c}{6}=0.861667 $$


 * $$ Var\left(R_{0}\right)=\frac{c-a}{6}=0.028333 $$

These approximations of the expected value and variance of the prior system reliability can then be used to estimate $$\alpha_{0}$$ and $$\beta_{0}$$ used in the Beta distribution for the system reliability, as given next:


 * $$ \alpha\,\!_{0}=E\left(R_{0}\right)\left[\frac{E\left(R_{0}\right)-E^{2}\left(R_{0}\right)}{Var\left(R_{0}\right)}-1\right]=2.763331 $$


 * $$ \beta\,\!_{0}=\left(1-E\left(R_{0}\right)\right)\left[\frac{E\left(R_{0}\right)-E^{2}\left(R_{0}\right)}{Var\left(R_{0}\right)}-1\right]=0.44363 $$

With $$\alpha_{0}$$ and $$\beta_{0}$$ known, any single value of the 4 quantities system reliability R, confidence level CL, number of units n, or number of failures r can be calculated from the other 3 using the Beta distribution function:


 * $$1-CL=\text{Beta}\left(R,\alpha,\beta\right)=\text{Beta}\left(R,n-r+\alpha_{0},r+\beta_{0}\right)$$

Solve for System Reliability R

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

First, we get the number of successes s is:


 * $$ s = n – r = 19 $$

Then the parameters in the posterior Beta distribution for R are calculated as:


 * $$ \alpha\,\!=\alpha\,\!_{0}+s=21.76333 $$


 * $$ \beta\,\!=\beta\,\!_{0}+r=1.44363 $$

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


 * $$ R=\text{BetaINV}\left(1-CL,\alpha\,\!,\beta\,\!\right)=0.902996 $$

Solve for Confidence Level CL

Given R = 0.9, 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 is:


 * $$ s = n – r = 19 $$

Then the parameters in the posterior Beta distribution for R are calculated as:


 * $$ \alpha\,\!=\alpha\,\!_{0}+s=21.76333 $$


 * $$ \beta\,\!=\beta\,\!_{0}+r=1.44363 $$

Finally, from this posterior distribution, the corresponding confidence level for reliablity R=0.9 is:


 * $$ CL=\text{Beta}\left(R,\alpha,\beta\right)=0.812164 $$

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 in below shows the result from Weibull++.



The above results shows the required sample size is 20. Weibull++ always displays the sample size as an integer.