Notes

  • Simulation: simpler abstraction of an very complicated natural phenomena
  • Simulations remove details that are unnecessary or are too difficult to simulate
  • Simulations are cheaper to do, safer, repeatable, and can be used to make predictions
  • Experiments are usually much harder to do than simulations, but involve all real world variables
  • Simulations can be used for complex scenarioes
  • Things like rolling a dice have many things affecting it
  • Can use a psuedo-random number generator to represent things like roling a dice
  • Important to use flowcharts to plan out simulations
    • Will take a lot of conditionals, iteration

Answers to Hacks

Question Answer
Name(First+Last) Arnav Kanekar
1 None
2 None
3 A. To mock imperfections from the real world
4 B. Other aircraft
5 C. Situation considered
6 A. Simulation
7 A. Simulation
8 None
9 B. Experiment/Calculation

Explanation of Answers

  • Q3: The random number generator is unable to mock imperfections from the real world, like terrain or air molecules when rolling dice. However, it is pretty good at simulating a random selection of numbers.
  • Q4: Since this is a flight traffic simulation, it mean that it is necessary to have a simulation of other aircraft.
  • Q5: Both simulations and experiments try to have the same environment for good simulation. However, simulations may try to simplify some scenarios, to make it cheaper.
  • Q6: Simulation is probably better because it would be cheaper and safer to do. However, it may be possible to an experiment with test dummies.
  • Q7: Simulation, since the environmental group will not want to spread extra greenhouse gases. The simulation would be much easier to do.
  • Q9: You just have to calculate the average.

Reflection

Simulations help for people to learn more and predict important data which they can use to better improve algorithms and products. Simulations are often much cheaper and have no safety limits compared to real life experiments. I found these problems to be a little challenging, but a good review of simulations.

Extra Simulation

I made a simple simulation for 1000 dice roles.

import random

tracker = {1:0, 2:0, 3:0, 4:0, 5:0, 6:0}
i = 0

def diceGame():
    dice_roll = random.randint(1, 6)
    return dice_roll

while i < 1000:
    score = diceGame()
    tracker[score] += 1
    i += 1

print("Here are the results of the dice rolling simulation.")
for j in range(1, 7):
    tracker[j] = ((tracker[j])/1000)*100
    print("Frequency of " + str(j) + ": " + str(tracker[j]) + "%")
Here are the results of the simulation
Frequency of 1: 17.299999999999997%
Frequency of 2: 15.9%
Frequency of 3: 15.9%
Frequency of 4: 18.2%
Frequency of 5: 16.400000000000002%
Frequency of 6: 16.3%