A model is a simplified representation of a real-world object or system. Models can be physical, like a scale model of a building, or they can be digital, like a computer simulation of a weather system. Models are used to study and understand complex systems by focusing on the most important aspects while ignoring less relevant details.
Simulations are a way to model real-world processes or systems using computer programs. They allow us to study complex systems and predict their behavior under different conditions. They often involve randomness and can be used to test hypotheses, optimize processes, or understand the impact of different variables.
Simulations are a form of abstraction, where we focus on the most important aspects of a system while ignoring less relevant details. This allows us to create models that are easier to analyze and understand.
Models and simulations are most useful when real-world events are impractical for experiments (e.g., too big, too small, too fast, too slow, too expensive, or too dangerous). Watch the following videos, paying particular attention to the different ways in which the models abstract away certain details from the real world situations that are being modeled. Discuss with your classmates which features of the solar system each model chose to include and to exclude. How do those choices align with the educational goals of each model?
Bill Nye illustrates the problem of trying to build a scale model of the solar system by using his bicycle to demonstrate the relative sizes and the relative distances between the planets.
Simulations are used in many fields, including physics, biology, economics, and social sciences. They allow researchers to test hypotheses, explore scenarios, and make predictions about complex systems that would be difficult or impossible to study in the real world.
Computer simulations often use randomness to model real-world events. For example, a simulation of a coin toss might use a random number generator to determine whether the result is heads or tails. This allows the simulation to mimic the unpredictability of real-world events.
Computers cannot generate truly random numbers, but they can generate pseudorandom numbers that are close enough to random for most purposes. Pseudorandom numbers are generated using algorithms that produce sequences of numbers that appear random, but are actually determined by an initial value called a seed. By using different seeds, we can generate different sequences of pseudorandom numbers.
If you perform this experiment, heads will often come up 10 times, but not always, even though, supposedly, the probability of getting a head on a fair coin toss is 50%.
The problem with this experiment is you didnβt perform enough trials to draw any conclusion about the hypothesis that this is a fair coin. You would need to flip the coin many more times to get a better idea of whether the coin is fair or biased. This is where simulations can help.
We have already used the random module in Python to generate random numbers. The random.randint() function can be used to simulate a coin toss by generating a random integer between 0 and 1, where 0 represents heads and 1 represents tails.
This short Python program simulates flipping a fair coin 20 times. It uses the random module to generate a random number between 0 and 1 for each flip, where 0 represents heads and 1 represents tails. The program counts the number of heads and tails and prints the results.
Change the code so that it completes 100 flips instead of 20. What is the percentage of heads and tails? Does it come closer to 50% than the 20 flips did?
Simulations are often used to model population growth. In this simulation, you will explore how populations of rabbits and wolves change over time based on different initial conditions and parameters. You will be able to adjust the birth rates, death rates, and other factors to see how they affect the populations of both species.
This simulation of rabbits and wolves shows how nature attempts to stay balanced. Read the Learnerβs Tab about how the simulation works and then complete the following activities. (Note that this simulator works best in the Firefox browser).
On the Activity tab, click Start Simulation. You can open the population graphs at any point to see how they change over time. Record your observations about how the population of rabbits and wolves changed over time.
Then click the View/Modify Parameters button followed by the View/Modify Start Parameters (Note that the View/Modify parameters button does not currently work in Chrome, but does work in Firefox).
Reverse the hypothesis: What would happen if there were lots more wolves than there are bunnies? Would the wolves live forever? Record your hypothesis, prediction and experiment results. (Donβt forget to reset the simulation before changing the parameters.)
This model chose to include certain features and exclude other features. For example, this simulation only includes rabbits, wolves, and grass but there are other predators of rabbits and other food sources for rabbits. Why do you think the creators focused on these data elements and not others? How might this introduce bias (concentration on or interest in a particular area) into the simulation?
Review the vocabulary in this lesson. Drag the vocabulary term from the left and drop it on its correct definition on the right. Click the "Check Me" button to see if you are correct.
Review the vocabulary in this lesson and and try again.
Abstraction
Leaving out unnecessary details so you can focus only on what actually matters for a problem.
Bias
Favoring one outcome or perspectiveβoften happening in models when creators choose to include certain details while leaving others out.
Hypothesis
An educated guess or prediction about what will happen before you run an experiment or test.
Model
A simplified, mini version or computer version of a real-world object or idea used to study how it works.
Pseudorandomness
A computer math trick used to create numbers that look completely random (like simulating a coin flip or rolling dice), even though a program calculated them.
Random
The lack of pattern or regularity. A random sequence of events has no order or patten.
Random event
An event that cannot be predicted with certainty. Examples would include flipping a fair coin, rolling a die, picking a card from a well shuffled deck.
Random number generator
An algorithm that generates a sequence of numbers that seem to occur in random order.
Scale Model
A physical or digital model where all the sizes and distances are kept in exact proportion to the real object (like a mini planet where everything is scaled down evenly).
Simulation
Running a computer model over time to test "what-if" scenarios, see how things change, or mimic real life.
A list of numbers has n elements, indexed from 1 to n. The following algorithm is intended to display the number of elements in the list that have a value greater than 100. The algorithm uses the variables count and position. Steps 3 and 4 are missing.
A cityβs fire department is using simulation software to analyze how a fire in an apartment complex might spread under a number of conditions. Consider the benefits and limitations of using a simulation instead of studying the real thing.
Name at least one benefit of using a simulation for this purpose.