New Mexico Computer Science For All Designing and Running Simulations Maureen Psaila-Dombrowski.

Slides:



Advertisements
Similar presentations
Work and play: Disease spread, social behaviour and data collection in schools Dr Jenny Gage, Dr Andrew Conlan, Dr Ken Eames.
Advertisements

6.1 Simulation Probability is the branch of math that describes the pattern of chance outcomes It is an idealization based on imagining what would happen.
Biomedical Modeling: Introduction to the Agent-based epidemic modeling
IE 429, Parisay, January 2003 Review of Probability and Statistics: Experiment outcome: constant, random variable Random variable: discrete, continuous.
Introduction to Training and Learning in Neural Networks n CS/PY 399 Lab Presentation # 4 n February 1, 2001 n Mount Union College.
G. Alonso, D. Kossmann Systems Group
Overarching Goal: Understand that computer models require the merging of mathematics and science. 1.Understand how computational reasoning can be infused.
EPIDEMIOLOGY: Introduction to the Agent-based epidemic modeling Dr. Qi Mi Department of Sports Medicine and Nutrition, SHRS, Univ. of Pitt.
Ant Optimization in NetLogo By: Stephen Johnson. Optimization Wide spread applicability Much easier through the use of computers Very clear results.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
Optimality of Ant Foraging Jason Green Supervisor: Bernd Meyer Is it really optimal, and how do we find that out?
1 Monte-Carlo Simulation Simulation with Spreadsheets.
Ant Colonies As Logistic Processes Optimizers
Descriptive Modelling: Simulation “Simulation is the process of designing a model of a real system and conducting experiments with this model for the purpose.
Chapter 12: Simulation and Modeling Invitation to Computer Science, Java Version, Third Edition.
New Mexico Computer Science For All Abstraction in Modeling and Simulation Maureen Psaila-Dombrowski.
Optimizing the Placement of Chemical and Biological Agent Sensors Daniel L. Schafer Thomas Jefferson High School for Science and Technology Defense Threat.
Department of Computer Science What is NetLogo UH-DMML  Multi-agent programmable modeling environment  Well suited for modeling complex systems evolving.
Introduction to ModelingMonte Carlo Simulation Expensive Not always practical Time consuming Impossible for all situations Can be complex Cons Pros Experience.
Analysis of Simulation Results Andy Wang CIS Computer Systems Performance Analysis.
Chapter 12: Simulation and Modeling
UNLOCKING THE SECRETS HIDDEN IN YOUR DATA PART 1 Data and Data Analysis.
GUTS Youth Leadership Corps Things you need to know.
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
Simulation Prepared by Amani Salah AL-Saigaly Supervised by Dr. Sana’a Wafa Al-Sayegh University of Palestine.
Computer Science 101 Modeling and Simulation. Scientific Method Observe behavior of a system and formulate an hypothesis to explain it Design and carry.
Day 2 Review Chapters 5 – 7 Probability, Random Variables, Sampling Distributions.
New Mexico Computer Science For All Interface Input in NetLogo Maureen Psaila-Dombrowski.
Introduction to Modeling Introduction Management Models Simulate business activities and decisions Feedback about and forecast of outcomes Minimal risk.
New Mexico Computer Science For All Interface Output in NetLogo (Part 1) Maureen Psaila-Dombrowski.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 10, Slide 1 Chapter 10 Understanding Randomness.
The Nature of Science Hello my future scientists!!!
Computer Science 112 Fundamentals of Programming II Modeling and Simulation.
SUPERCOMPUTING CHALLENGE KICKOFF 2015 A Model for Computational Science Investigations Oct 2015 © challenge.org Supercomputing Around.
COMP 170 L2 L17: Random Variables and Expectation Page 1.
Jack DeWeese Computer Systems Research Lab. Purpose  Originally intended to create my own simulation with easily modified variables  Halfway through.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
A Model for Computational Science Investigations Supercomputing Challenge
2-Day Introduction to Agent-Based Modelling Day 2: Session 6 Mutual adaption.
Complexity: Ch. 1 Complexity in Systems 1. Broad Examples Insect colonies The brain The immune system Economies The World-wide Web Complexity in Systems.
Monte Carlo Process Risk Analysis for Water Resources Planning and Management Institute for Water Resources 2008.
ECE 466/658: Performance Evaluation and Simulation Introduction Instructor: Christos Panayiotou.
Agent-Based Modeling and Simulation (ABMS) Bertan Badur Department of Management Information Systems Boğaziçi University.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
AP Statistics Semester One Review Part 2 Chapters 4-6 Semester One Review Part 2 Chapters 4-6.
Simulation in Healthcare Ozcan: Chapter 15 ISE 491 Fall 2009 Dr. Burtner.
Biologically Inspired Computation Ant Colony Optimisation.
Computational Representation of Ant Foraging Clayton Lewis June 26, 2010.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
Modelling & Simulation of Semiconductor Devices Lecture 1 & 2 Introduction to Modelling & Simulation.
Unit 3: Probability.  You will need to be able to describe how you will perform a simulation  Create a correspondence between random numbers and outcomes.
Simulation Modeling.
Selected Topics in CI I Genetic Programming Dr. Widodo Budiharto 2014.
Chapter 12: Simulation and Modeling
Computer Simulation Henry C. Co Technology and Operations Management,
Prepared by Lloyd R. Jaisingh
Just What Is Science Anyway???
Games with Chance Other Search Algorithms
Professor S K Dubey,VSM Amity School of Business
Simulation Modeling.
Title Name Class.
Simulating experiments
traveling salesman problem
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Agent-Based Models Hiroki Sayama
Primary School Computing
Monte Carlo simulation
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

New Mexico Computer Science For All Designing and Running Simulations Maureen Psaila-Dombrowski

Models vs. Simulations Model ▫The actual program ▫The abstraction of the real world ▫Captures the elements of the system and the behavior of the elements being modeled Simulation ▫Running the model to simulate the passage of time ▫Exploring the behavior of the modeled system over time. ▫In studying complex systems, sometime unexpected patterns emerge that weren’t explicitly programmed into the model.

Simulations on Your Computer Why?  Once the model is developed ▫Can run many trials ▫Can run many parameters  Can develop models for situations where experimentation is difficult ▫Too dangerous ▫Too expensive ▫Too time intensive

Deterministic vs. Stochastic Two types of simulation models: ▫Deterministic simulation models:  Provide single outputs for each set of inputs  No Randomness involved ▫Stochastic simulation models  Can produce somewhat different outputs for each set of inputs  Randomness IS involved  Agent-based models of Complex Adaptive Systems have Randomness -> they are stochastic  Look at the probability distribution of possible outcomes.

How to run a Simulation Simple parameter sweeping (one dimension) ▫Hold all other variables constant ▫Set min, max, and increment for one variable. ▫Sweep one variable (from min to max value) Repetition – Because the models are stochastic ▫Repetitions at each setting ▫Take the average? What output do you want?

Ant Foraging Model Food piles Ants wander around looking for food Ant finds a piece of food ▫Carries the food back to the nest ▫Drops a chemical as it moves – trail  Chemical evaporation  Chemical diffusion Other ants find the chemical trail, ▫Follow the chemical to food ▫Carries the food back to the nest ▫Reinforce chemical trail Repeated until there is no more food in that pile.

Show model

Ant Foraging Experiment/Simulation Three Parameters ▫Number of ants (0-200) ▫Diffusion rate (0-99)  How quickly the chemical diffuses  How wide the trail is ▫Evaporation rate (0-99)  How fast the chemical evaporates  How long the trail lasts

Ant Foraging Experiment/Simulation NEED TO KNOW WHAT OUTPUT DATA you are collecting…. Is it food left after # ticks? Is it ticks before all food is found?

Parameter Sweeping Picking Sample Points (where and how many) ▫Make sense  no ants does not make sense ▫Must represent the variable or parameter being explored  Extremes are not enough ▫2 points = line…. assumption  Must use points in the middle ▫More points if behavior is complicated

Ant Simulation – Parameter Sweeping Parameter Sweeping ▫Ants (3 sample points)  50, 100, 200 ▫Diffusion rate (4 sample points)  0, 33, 66, 99 ▫Evaporation rate (4 sample points)  0, 33, 66, 99 Total Number of sampling points ▫3 x 4 x 4 ▫48 sample points

Repetitions Stochastic model Must run repetitions at each sample point How many repetitions? ▫How random is the process? ▫Up to the experimenter – YOU!

Ant Simulation - Repetitions I get to decide ▫Run the model to see how random ▫5 repetitions How many experiments? (number of sample points) x (number of repetitions) ( 48 ) x ( 5) = 240 Can Limit Experiments ▫Fix the number of ants to 100 (number of sample points) x (number of repetitions) ( 4 x 4 ) x ( 5) = 80

What Output? Simulation Output depends on the model ▫Number of ticks ▫Number of agents ▫Number of patches of color Epidemic model ▫Ticks until everyone infected ▫Number of agents infected after number of ticks Ants Model ▫Amount of food left after # ticks ▫Ticks before all food is found ▫Ticks before all found gathered

Show program running – not stopping

Stopping Forever Button Forever GO button can go forever Want an accurate measurement Automatically Stop the Forever GO button ▫Conditional Stop at the TOP of GO procedure to go if condition? [ stop ]... end

Show Stop in program

Table of Results

Graph of Results

Computer Simulation Write-up: Must include enough  replication ▫Description of problem of interest and abstraction ▫Description of Model  Assumptions/Simplifications  Variables/Parameters ▫Description of Simulation  Parameter Sweeping  Repetitions ▫Description of Results  Verbal Description  Tables/Graphs ▫Discussion of Results/Conclusions

Summary Model – The program that captures the elements of the system being modeled and the behavior of those elements Simulation - Running the model to explore the behavior of the modeled system over time. Deterministic simulation models: Provide single outputs for each set of inputs because No Randomness involved Stochastic simulation models: produce different outputs for each set of inputs because Randomness IS involved  Agent-based models of Complex Adaptive Systems have Randomness -> they are stochastic  Look at the probability distribution of possible outcomes. How to perform a Stochastic Simulation  Parameter Sweeping  Repetition When you write up simulation results  must include enough detail for simulation to be repeated and explained