Giter Site home page Giter Site logo

philosophy's Introduction

  1. The St. Petersburg paradox was probably first discussed by Nicolas Bernoulli (one of a famous Swiss family of mathematicians in the 18th century) in 1713 in letters to another mathematician, Pierre Rémond de Montmort. It later appeared in a famous paper by his cousin Daniel Bernoulli submitted to the Imperial Academy of Sciences in Petersburg in 1738 [1], where he also discussed resolutions of the paradox. Here is another contemporary description from a letter by Gabriel Cramer, another 18th-century mathematician:

"For the sake of simplicity I shall assume that A tosses a coin in the air and B commits himself to give A 1 ducat if, at the first throw, the coin falls with its cross upward; 2 if it falls thus only at the second throw, 4 if at the third throw, 8 if at the fourth throw, etc. The paradox consists in the infinite sum which calculation yields as the equivalent which A must pay to B. This seems absurd since no reasonable man would be willing to pay 20 ducats as equivalent."

a. Assuming that you are allowed to play this game once in a casino exactly as stated above, what would you yourself be willing to pay to enter the game (reasoning rationally, and momentarily forgetting any personal objections against gambling)? 

b. The formulation of the game and the estimate of its value as infinity makes several unrealistic assumptions, both from the player's point of view and from the casino's point of view. What are these assumptions?

c. One is that even a large casino does not have infinite resources, and would have to decide on a maximum number of rounds in the game to avoid going bankrupt. Assume that the maximum payout of the casino is X, and implement and perform a simulation that estimates the expected value of the game in this case. 

First, choose a reasonable number of X (in SEK) for a large casino. As a guideline, one of the largest casinos in the world is The Venetian in Macau. Their yearly revenue prior to the pandemic was almost 3 billion USD. So, a maximum payout of 10 million SEK or larger seems quite possible.

Present the result of your simulations as a diagram that shows the average payoff calculated over the last n games as a function of n. Choose a suitable maximal number of games N yourself, repeat the simulation a number of times, and include the result of all simulations as well as a mean value in the diagram.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.