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
Project Euler: Problem 3, Largest prime factor
Solve the set of simultaneous linear equations
Matrix with different incremental runs
Van Eck's Sequence's nth member
More from this Author22
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!