Lose to Win? It's Not Impossible: A Computer Simulation of Coin-Tossing Games in C++ to Test Parrondo's Paradox
CSEF · 2003 Mathematics & Software
Overview
Objectives/Goals My objective is to explain Parrondo's Paradox and provide an example and variation of it by using the C++ programming language to program coin-tossing games. Methods/Materials Parrondo's Paradox is a recent discovery stating that games designed to lose can be combined into one game that will win. The project required me to program games in the C++ programming language that illustrate the Paradox. I then modified the values that define each game, such as the variables e (a very small number that affects the chances of winning) and m (which affects the way the games are played), and then tested the simulation by combining the games and playing them. Results These games confirmed my hypothesis that a simulation of two losing games designed according to Parrondo's Paradox will result in one winning game when combined. My two games, when played alone, lost. But when I played them together, they won. Conclusions/Discussion I learned that simulating the games in C++ is an effective way of testing the Paradox, as only a computer program could create the biased coins I needed for the coin-tossing games.
Summary statement
My project is about programming games in C++ that test Parrondo's Paradox.
Help received
Parents proofread.
Competition history
- CSEF 2003
Resources
Related projects
CSEF · 2003
Creating a Tic Tac Toe Computer Program
CSEF · 2011
Position or Piece: Computer Simulation and Study of the Strategy Board Game Blokus
CSEF · 2011
Unbeatable PONG through Artificial Intelligence
CSEF · 2014
Constructing an Adaptive Blackjack Computer Program to Self-Improve Itself Based on Previous Performance
CSEF · 2006
The Gaming Theory Is a Winner
CSEF · 2007
Flip of a Coin, Roll of a Die, Turn of a Door: Is It Fair? A Study on Probabilities
CSEF · 2003
Simulated Billiard Ball Paths
CSEF · 2005
Can a Computer Predict a Human's Decisions?
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects