Home Download Help Forum Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish
|
NetLogo Models Library: |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
In a room of 23 people, what are the chances that some two of them will have the same birthday?
Make your best guess, then run the model and see how often it happens.
Each turtle is randomly assigned a birthday. If a turtle has the same birthday as another turtle in the room, it turns green.
The model doesn't take leap years into account (there are no February 29th birthdays).
Press SETUP to initialize the model.
Press GO ONCE to generate a single room full of people.
Press GO to repeatedly generate many rooms full of people. The SUCCESS RATE monitor will show what percentage of those rooms had at least one matching birthday.
Is the success rate higher or lower than you expected?
To try a room with more people in it, edit the view and increase max-pycor.
How many people need to be in the room before the chance of a matching birthday is at least 90%? (Is this higher or lower than you expected?)
Can you work out mathematically what the odds should be? (Hint: start by considering the odds when the number of people is small.)
Include leap year birthdays in the list of possibilities.
This model uses lists a lot, including list primitives such as map
, foreach
, item
, position
, sentence
, and sort-on
. Lists are used mostly to make the model display actual day names, instead of just numbers from 0 to 364. Lists are also used when sorting the turtles by birthday.
The ProbLab suite of models, in the Mathematics/Probability section, contains many explorations of basic questions about probability and statistics.
If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.
For the model itself:
Please cite the NetLogo software as:
Copyright 2004 Uri Wilensky.
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.
This model was created as part of the projects: PARTICIPATORY SIMULATIONS: NETWORK-BASED DESIGN FOR SYSTEMS LEARNING IN CLASSROOMS and/or INTEGRATED SIMULATION AND MODELING ENVIRONMENT. The project gratefully acknowledges the support of the National Science Foundation (REPP & ROLE programs) -- grant numbers REC #9814682 and REC-0126227.
(back to the NetLogo Models Library)