Algorithm 5.
| Step 1: Use Algorithm 1–Algorithm 4 to construct the confidence intervals |
| Step 2: If , set 1; else set 0 |
| Step 3: Compute |
| Step 4: Repeat step 1–step 3, a total 5,000 times |
| Step 5: Compute mean of defined by the coverage probability |
| Step 6: Compute mean of defined by the average length |