How to calculate coverage percentage?

help me to find the caluculation and explain the bins creation.
-TIA

Hello Indira,

Here is the explanation:

  1. To calculate the coverage (or %) we need to know what’s the possible bins, and what are the observed bins.

    From your cover point definitions, we can calculate the number of bins as follows:
    Total bins = sum of all possible bins
    = bins of a+ bins of b+ bins of c+ bins of d + bins of e
    = 1 ({1 or 2}) + 2 {3,4}+ 2 {5, 6 or 7}+6 {8,9,10,11,12,13} + 18 {14,15,16…31}
    Total possible bins = 29

Now calculate the observed bins:
19,25,26,27(4 from all bins of e),7(second bin of c),10 (one from 6 bins of d) = 6 bins

Now the coverage % = observed/possible * 100 = 6/29 * 100 = 20.69

1 Like

Thank you, i have understood now,
In addition , what is the use of default bin ? it should not be considered for the calculations.

A default bin counts the number of times a coverpoint was sampled an no other bin was hit. It may be used for debug and analysis.

1 Like

Thank you @dave_59 I got it. :blush: