Important Notes/Vocab

  • A simulation is an simpler abstraction of an very complicated natural phenomena
  • It removes details that are unnecessary or are too difficult to simulate
  • Simulations make it safer, less expensive, repeatable, and can make predictions
  • You can remove details that do not matter
  • The difference between simulations and experiments is that experiments are held in the real world and simulations replicate the real world
  • A pseudo-random number generator could be used to randomly roll the dice
  • Simulations can not always be used for situations
  • Simulations are more of a prediction, while experiments are the actual outcome
  • An example of removing details from a simulation: when rolling a 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 unnecessary.

Answer table

Comment on this blog post to submit your hacks.

Fill out the table with your full name and the LETTER of each answer for every question. In order to receive any credit you must fill out the answer table according to the directions! Each question is worth .1 points. To get >0.9/1 you can show your understanding in the area labeled extra.

Question Answer
Name(First+Last) James Hunter
1 N/A
2 N/A
3 C: because sudo code can make code more accurate then normal code
4 B: because there is almost always another plain flying in the air
5 C: Situation considered because most of the time the same situation is considered
6 A: Simulation because it is a safer way to operate
7 A: Simulation because they are guessing, so it would be a simulation
8 N/A
9 B: Experiment/calculation because they are calculating the grades, no point in making a simulation

Extra

import random

num_rolls = int(input("how many times would you like to roll?"))

for i in range(num_rolls):
    roll = random.randint(1, 6)
    print(f'Roll {i+1}: {roll}')
Roll 1: 1
Roll 2: 6
  • This is a simulation that takes the amount of roles a person inputs and then roles a dice that many times and then dsiplays the output of each role.

Blog/Final Thoughts

  • Learned about simulations
  • Compared simulations to experiments
  • Learned you can factor out unnecessary factors
  • Also now I understand when to not and when to use a simulation