Problem 56533. Cricket - You Miss, I Hit (Rank Bowlers by Proportion of Bowled and LBW Wickets)
The example is wrong, but the problem description is correct. We must not count the caught-and-bowled events, and probability can also be equal to the threshold despite the example.
Overall these problems are not hard, but they require close attention. And I recommend using tables; these problems are perfect for a DBMS lecture.
@Raphael: Thank you for catching that - I was tweaking the example and didn't update the image correctly. I have now.
To clarify: Raphael is correct that "caught and bowled" does *not* count to the "bowled" category. And yes, in the example, if Ned's second wicket was "bowled" or "lbw" instead of "caught and bowled", then he would have WWProp = 0.5 and should be included as the last row of the output table, having at least 2 wickets and a proportion of at least 0.5.
Problem Recent Solvers10
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Convert to Binary Coded Decimal
Find my daddy long leg (No 's')
Calculate cosine without cos(x)
More from this Author22
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!