Week 5: Wednesday
==================
**Reminder:**
The Segregation Exercise is due by midnight.
**Reminder:**
Spend lots of time on your project.
By Friday, you should have refined your model
outline and implemented a skeleton where not all the
procedures are empty.
Readings
--------
**Required reading:**
- Finish reading the Lecture Slides on Experimental Design
https://subversion.american.edu/aisaac/notes/experimental-design.xhtml
Graduate students should also skim:
- nothing today
**Recommended (i.e., entirely optional) reading and resources:**
- Sofware Testing
http://en.wikipedia.org/wiki/Software_testing
Assignments
------------
- Learn how to get data out of a simulation using file operations:
https://subversion.american.edu/aisaac/notes/netlogo-intro.xhtml#open-a-file
Try the following in any model (e.g., the segregation model or your own model).
During ``setup``, open a file ``temp.csv``.
Each tick, write one number on one line of the file.
(This could just be the value of ``ticks``, or something more interesting.)
At the end of the simulation, be sure to close the file using ``file-close``.
Now, try to open the file you created in your favorite spreadsheet.
Please discuss your experiences in our discussion group.
- Next, try to set up a Behavior Space experiment.
Use table output, and try to read the output file into your favorite spreadsheet.
Please discuss your experiences in our discussion group.
Some Possible Topics for Discussion
-----------------------------------
Reminder: timely and substantive participation in the discussions is
a graded activity. Please participate in **discussion**. Posting
reading summaries *begins* a discussion.
- Experimental design: experiences and difficulties with BehaviorSpace.
- Segregation model: continue ongoing discussion.
Discuss whether this should interest social scientists.
Is this a cellular automaton?
Week 5: Thursday
==================
**Reminder:**
The Segregation assignment was due last night.
**Reminder:**
Spend lots of time on your project.
By tomorrow, you should have refined your model
outline and implemented a skeleton where not all the
procedures are empty. Graduate students should post
their skeleton program to the Subversion repository.
**Reminder:**
Timely and substantive participation in the discussions is
a graded activity. Please participate in **discussion**.
Posting reading summaries *begins* a discussion.
Assignments
------------
- Course Project:
Implement your two-page outline as a (possibly empty) collection of procedures.
Add procedure bodies one at a time, testing (!) as your go.
- Course Project:
Decide on your outcome measures for your experimental design.
Readings
--------
**Required reading:**
- [kelton-1999-dse]_
http://www.informs-sim.org/wsc99papers/004.PDF
(Do not worry about the math.)
- Kleijnen et al. (2005)
A User's Guide to the Brave New World of Designing Simulation Experiments
http://ideas.repec.org/p/dgr/kubcen/20031.html
sections 1 & 2
Graduate students should also skim:
- the rest of Kleijnen et al. (2005)
**Recommended (i.e., entirely optional) reading and resources:**
- nothing today; work on your project!
Some Possible Topics for Discussion
-----------------------------------
- Experimental Design:
Post your experiences and difficulties with BehaviorSpace.
- Segregation Model:
Continue ongoing discussion.
- Course Project:
Share your experiences, difficulties, questions, etc.
- Testing:
R&G chapter 6 emphasize the importance of testing
as part of the process of writing code.
What kinds of tests are you finding helpful?
Which seem more trouble than they're worth?