Coder Social home page Coder Social logo

pareto_distribution_bet_game's Introduction

Pareto distribution bet game

Introduction

The Pareto distribution is a probability distribution that is often used to describe the distribution of wealth in a population. It is also known as the 80/20 rule, as it states that 80% of the outcome are due to 20% of the causes. The goal is to simulate this experiment that Dr Jordan B Peterson uses to teach his students about the Pareto principle.

Software and Libraries

This project uses Python 3.9.2 and the following libraries:

Running the code

The code is provided in the form of a Jupyter Notebook bet_game.ipynb

Results

We have been able to simulate the experiment and the results are as expected. At the beginning the distribution of money is uniform between the players:

Starting

After a betting cycle the distribution of money is pretty unequal and a lot of players have 0 money

Middle

Just for fun now let's apply a tax to the rich players and redistribute some money to the broke players:

After Taxes

End if we run again a betting cycle

Ending

We can also check the evolution of every palyer moneys:

Money Trend

You can find more information in this blog post

Acknowledgements

Thanks Dr Jordan B Peterson for the wonderful lectures and the idea of this experiment.

pareto_distribution_bet_game's People

Contributors

simonerigoni avatar

Watchers

James Cloos avatar  avatar

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.