Simulations
Slides from today will be uploaded after the lesson
What is a simulation?
A simulation is a way to simulate real-world environments to test safety or logistics. It's important to use random numbers, consider biases, and consider if a simulation is the best solution.
Why would you make a simulation?
Simulations are useful because they are safe, inexpensive, repeatable, and accurately model how something would be in the real world. Simulations are also useful in predicting how something will happen in future based on previously collected data.
Simulations vs. Experiments
- The main difference between simulations and experiments is that simulations replicate real world scenarios digitally while experiments are held in the real world
- Simulations usually are less expensive than running an experiment because the expenses needed for acquiring equipment are not present when running a simulation
- Since experiments and done in the real world, they provide actual results while simulations use models based on collected data to provide estimations of what is expected to happen
- Simulations can provide estimations for events that can't be recreated in the real world because simulations don't run the risk of safety issues and they can be done without equipment that would be needed for experimentation
- Once created, simulations are easier to repeat to obtain more estimations when compared to experiments because experiments often take a long time to set up and execute
However, using a simulation is not always the best solution, and you should consider if a simulation is the most cost and time effective solution. Simulations may not be suitable if the circumstances are very complicated or if an experiment would be easier to do.
How do you make a simulation?
At this time, you don't need to know exactly how to actually make a simulation. However, you do need to know the principals that are important when making one.
What details need to be removed?
In the real world, there is mostly no such thing as 'true random.' For example, when rolling dice, things like particles in the air and the velocity of the throw are what really determine what you will roll. However, simulating that would be extremely expensive and unnecessary. What do you think could be used as an alterative to simulating all the factors that decide what you roll?
A pseudo-random number generator could be used to randomly roll the dice. However, random numbers are highly important in a variety of situations as well. pseudo-random number generators are used to mock the imperfections that are always in the real world and save resources.
You also may remove other details to improve functionality of the simulation. Let's go back to the flight simulation example. You could add a weather system, taking into account rain, storms, etc. to your simulation. However, it would be easier to instead just run multiple simulations, with a variety of aircraft speeds and visibility.
Example simulation
Skim though the scenario section of this article (it is at the top and includes the diagram). What techniques do you notice he uses? You should consider both ideas from this lesson and from the other college board key ideas.
Some possible answers include:
- Procedure and iteration
- Flowcharts
- Conditionals
- Removing details; like accidents or weather
- And a lot more!
Summary of 'how'
Key idea: when making a simulation you should consider:
- Removing details, which could be done using pseudo-random number generators
- Using other ideas from previous college board lessons; like procedure, flowcharts and conditionals