Problem 44286. Compute average gain for some bets.
Solution Stats
Problem Comments
-
3 Comments
????
Please revise problem statement to indicate that summation is required, such as:
"the function avg_gain(odds,bets) should return the SUM of each bet's average gain (averaged for each possible outcome)"
It is not obvious from the example.
As stated by David, it is required to sum the averages after the calculation.
Problem Recent Solvers24
Suggested Problems
-
1767 Solvers
-
1388 Solvers
-
275 Solvers
-
Remove the two elements next to NaN value
515 Solvers
-
161 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!