Deep-ML is a free, open-source machine learning challenge platform. Practice ML coding problems, work with real datasets in labs, and learn through interactive articles.
Please enable JavaScript to use the full platform.
A game has a few possible outcomes: outcome i pays payouts[i] and happens with chance chances[i] (the chances add up to 1). Write fair_price(payouts, chances): what it’s fair to pay to play once.
payouts[i]
chances[i]
fair_price(payouts, chances)