go ahead... be a heretic  
PerlMonks 
Re: Testing by Contractby chunlou (Curate) 
on Jun 30, 2003 at 22:10 UTC ( [id://270342]=note: print w/replies, xml )  Need Help?? 
A naive probabilistic approach to the problem of testing all possible combinations: Instead of testing all possible combinations, we could try to estimate the total number of bugs by a probabilistic approach. Given a list of all possible combinations, we randomly select two subsets of combinations for Tester One and Two to test. Let T be the total unknown number of possible bugs associated with all combinations. Let A be the number of bugs found by Tester One. Let B be the number of bugs found by Tester Two. Let C be the number of bugs found by both Tester One and Two.Hence (let P(X) be probability of X) P(A and B) = P(C) (by definition)That means, the less bugs both Tester One and Two found at the same time, the more likely there're still a large number of unknown bugs yet to be found. Or, the more common bugs found by both Tester One and Two, the more likely that they have found most of the bugs. _________ If someone wanna see the Venn diagram: ++    ++     T    A         ++     C     ++     B        ++    ++
In Section
Seekers of Perl Wisdom

