Final answer:
The weighted average estimate of the duration of the debugging activity can be calculated by weighing the different durations according to the probability of their occurrence.
Step-by-step explanation:
The weighted average estimate of the duration of the debugging activity can be calculated by weighing the different durations according to the probability of their occurrence. Let's assign the durations as follows:
- D1 = 15 days (probability = p1)
- D2 = 20 days (probability = p2)
- D3 = 12 days (probability = p3)
To find the weighted average estimate, we need to determine the values of p1, p2, and p3. Based on the given information, we know that if the code has more errors per line than the parametric estimate of two per 1,000 lines, the duration will be 20 days. If there is about one error per 1,000 lines, the duration will be 12 days. Therefore, the probability of D2 occurring is the difference between the probability of having more errors than two per 1,000 lines and the probability of having about one error per 1,000 lines.
Now let's assume that the probability of having more errors than two per 1,000 lines is p4 and the probability of having about one error per 1,000 lines is p5. We can then calculate p2 as p4 - p5. Similarly, we can calculate p3 as 1 - p4, as it represents the probability of neither having more errors than two per 1,000 lines nor having about one error per 1,000 lines.
Once we have the values of p1, p2, and p3, we can calculate the weighted average estimate using the formula:
Weighted Average = (D1 * p1) + (D2 * p2) + (D3 * p3)
This will give us the estimated duration of the debugging activity.