Presentation is loading. Please wait.

Presentation is loading. Please wait.

Probability with Dice and Data, Wiggle Walk, and Colliding Turtles Modeling and Simulation Module 1: Lesson 1.

Similar presentations


Presentation on theme: "Probability with Dice and Data, Wiggle Walk, and Colliding Turtles Modeling and Simulation Module 1: Lesson 1."— Presentation transcript:

1 Probability with Dice and Data, Wiggle Walk, and Colliding Turtles Modeling and Simulation Module 1: Lesson 1

2 Review from Lesson 3 What commands enabled agents to react to their environments?

3 Review from Lesson 3 What commands enabled agents to react to their environments? IF/THEN IF/THEN/ELSE

4 Review from Lesson 3 An example of reacting to the environment: IF/THEN with a Boolean expression

5 New in Lesson 4 Today we are going to learn about probability (or the likelihood of something happening). Then we are going to use probability to make turtles do a “wiggle” walk.

6 Chances Are Today we are going to learn about probability Form small groups and each group gets a cup and a die. Roll the die in the cup and record the result on your activity sheet. Repeat until you have 50 trials.

7 Chances Are What were your results? If you used a bar graph to visualize your results, what would it look like? Pool each groups data and see the results for the class. What are the chances of rolling each number between 1 and 6?

8 Chances Are We can mimic a roll of a die in StarLogo Nova using the random command. Random 6 will return a number between 0 and 5.

9 Chances Are Random can be used within other commands. For example, used within a left turn command, what do you think this command now does? If we used this command in an agent’s walk, what would it’s trail look like?

10 Wiggle walk Next imagine that you were going to roll two dice instead of one die. Do you think we will still get a flat distribution? In other words, is rolling a pair of ones as common as rolling a sum of 8?

11 Wiggle walk Fill in all the possible combinations of rolling two dice.

12 Wiggle Walk What is the most common result of rolling two dice? What is the next most common result? If we were to graph out the number of occurrences of each result, what would it look like?

13 Wiggle Walk We use this “triangle” distribution when we want to to make agents walk with some randomness in their motion but mostly follow a straight line. We call this a wiggle walk.

14 Wiggle Walk We use this distribution when we want to to make agents walk with some randomness in their motion but mostly follow a straight line. We call this a wiggle walk.

15 Wiggle Walk

16 Try it yourself! Open your Bumper Turtle program and make your agents wiggle when they walk. Next you can get rid of the red, black and blue blocks

17 Wiggle Walk What’s the difference between a walk that uses one command And two commands?

18 Colliding Turtles New Command: Collision Collisions occur when two agents bump into one another. (They do not need to be centered on the same patch.)

19 Colliding Turtles New Command: Collision

20 Colliding Turtles New Command: Collision with a condition

21 New StarLogo Nova Blocks

22 Agent-Agent Interactions Your Challenge: Create turtles of two color, red and blue, and do not have them leave trails. Have the turtles move forward with a little wiggle in their walk. Upon colliding with a red turtle, have turtles react by changing their color to red. Save your project, upload and share

23 Review from Lesson 4 What could collisions represent in the real world? Why do we use probability in models?

24 End of Lesson 4


Download ppt "Probability with Dice and Data, Wiggle Walk, and Colliding Turtles Modeling and Simulation Module 1: Lesson 1."

Similar presentations


Ads by Google