Research Ethics

In this class, you will learn about the importance of research ethics. You will also learn about computer simulations, and you will conduct some simple experiments using a simulation.

Preparation

First, watch/read these resources about human subjects research:

Computer simulations are sometimes used as an alternative to real-world experiments. One benefit of computer simulations is that they avoid harm to research subjects.

This video shows examples of computer simulations. You are welcome to watch the whole video, but it is sufficient to watch from 5:45 to 10:37.

Optional: Consider also reading:

In Class

Activity 1: Discussion

We will start class by discussing the readings.

Activity 2: Explore the Disease Spread Simulation Project

First, read page 1 of BJC’s Simulations lab, which explains why simulations might be preferred over real world experiments.

As described on page 2 of the Simulations lab, it would be unethical to intentionally spread a disease to measure how quickly it spreads. Instead, a program could be used to simulate disease spread. We have already completed the Disease Spread Simulation project for you. You will use this project to conduct several experiments.

Next, inspect the code of the completed Disease Spread Simulation project. In particular, review the code for the “average steps for disease spread,” “simulate disease,” “initialize person,” and “move person” blocks.

Run a single simulation by clicking the gray “simulate disease” block. This block reports the number of simulated steps before all individuals became infected. Click the gray “simulate disease” block several more times, and record the number of steps reported by each run.

Discuss with a neighbor: Why does the gray “simulate disease” block report a different number each time?

Next, run a series of simulations by clicking the green “average steps for disease spread” block. This block runs 20 simulations, then reports the average number of simulated steps before all individuals became infected. Click the green “average steps for disease spread” block several more times, and record the number of steps reported by each run.

Discuss with a neighbor: What is the advantage of using the green “average steps for disease spread” block instead of the gray “simulate disease” block?

Note: You can speed up the simulation by enabling “Turbo mode” from the settings menu.

Note: In BJC’s starter code, the blocks report the time taken for all individuals to become infected. In our code, the blocks report the number of steps required by the simulation. What is the advantage of reporting the number of steps, instead of the amount of time taken?

Activity 3: Experiments with Simulations

Next, you will conduct experiments to test the relationship between population size, percent initially infected, and movement speed (independent variables) and the number of simulation steps needed to infect the entire population (dependent variable).

Run experiments to fill in the blanks in the template below. For each category of experiment, one independent variable is changed while the others are fixed.

Hint: To evaluate the relationship between variables, I recommend creating a scatterplot with the independent variable on the x-axis (e.g., population size), and the dependent variable on the y-axis (i.e., average steps).

Hint: Instead of running each experiment manually, you could store the results directly into a variable in Snap!

Submit

Upload a PDF containing:

Template

Population Size Experiments

Population Size Initially Infected Movement Speed Average Steps
25 5% 2  
50 5% 2  
100 5% 2  
200 5% 2  
400 5% 2  
800 5% 2  

Percent Initially Infected Experiments

Population Size Initially Infected Movement Speed Average Steps
100 1% 2  
100 2% 2  
100 4% 2  
100 8% 2  
100 16% 2  
100 32% 2  
100 64% 2  

Movement Speed Experiments

Population Size Initially Infected Movement Speed Average Steps
100 5% 1  
100 5% 2  
100 5% 4  
100 5% 8  
100 5% 16  
100 5% 32  
100 5% 64  

Disease Spread Simulation Reflection Questions

Other Computer Simulations

Computer simulations are used in many areas of scientific research. Read and link to an article about a computer simulation created for scientific research. Answer these questions:

Note: If you’re unsure where to start, search for “computer simulations in science.”

Learning Goals

Students will:

Acknowledgements

Thanks to Stanford’s BJC materials, which served as a basis for this assignment.