0% found this document useful (0 votes)
20 views3 pages

Introduction To Simulation and Random Walks

This lecture introduces simulation models and illustrates random walks by simulating one. It discusses subclasses, inheritance, generators, analytic and simulation methods. A random walk simulation models the possible behaviors of a system. Generators remember function state and values between yields, differing from returns which lose state.

Uploaded by

CoursePin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Introduction To Simulation and Random Walks

This lecture introduces simulation models and illustrates random walks by simulating one. It discusses subclasses, inheritance, generators, analytic and simulation methods. A random walk simulation models the possible behaviors of a system. Generators remember function state and values between yields, differing from returns which lose state.

Uploaded by

CoursePin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Introduction to Simulation and Random Walks

Session Overview
This lecture completes the introduction of classes by showing a way to implement user-defined iterators. It then discusses simulation models, and illustrates some of the ideas underlying simulations modeling by simulating a random walk. Image courtesy of donovanbeeson on Flickr.

Session Activities
Lecture Videos

Lecture 12: Introduction to Simulation and Random Walks (00:50:24)

About this Video Topics covered: Subclasses, inheritance, generator, analytic methods, simulation methods, simulations, models, random walk. Resources

Lecture code handout (PDF) Lecture code (PY)

Check Yourself
What is a generator?

answer A function that remembers the point in the function body where it last returned a value and the values of all local variables.

What is the difference between yield and return? answer When yield is used, the state of the function is not lost.

What is a model? answer A model is a theoretical construct that will provide useful information about the possible behaviors of the system being modeled.

Problem Sets
Problem Set 5: RSS Feed Filter (Due) In problem set 5, you will build a program to monitor news feeds over the Internet. Your program will filter the news, alerting the user when it notices a news story that matches that user's interests (for example, the user may be interested in a notification whenever a story related to the Red Sox is posted).

Instructions (PDF) Code Files (ZIP) (This file contains 1 .txt file, 3 .pyc files, and 6 .py files.) Solutions (ZIP) (This ZIP file contains: 1 .py file.)

Problem Set 6 (Assigned)

Problem set 6 is assigned in this session. The instructions and solutions can be found on the session page where it is due, Lecture 14 Sampling and Monte Carlo Simulation.

You might also like