Problem 44286. Compute average gain for some bets.
Solution Stats
Problem Comments
-
3 Comments
Rafael Hernandez-Walls
on 12 Aug 2017
????
David Verrelli
on 13 Dec 2017
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.
Rafael S.T. Vieira
on 12 Oct 2020
As stated by David, it is required to sum the averages after the calculation.
Problem Recent Solvers24
Suggested Problems
-
2879 Solvers
-
convert matrix to single column
349 Solvers
-
Side of an equilateral triangle
4176 Solvers
-
Flip the vector from right to left
4911 Solvers
-
61 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!