Lab10_Spreading of a Virus - Lab 10 Lab 10 Spreading of a...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 10 Lab 10: Spreading of a Virus Background Information In every field of engineering, it is often necessary to analyze the behavior of extremely complex systems. Examples of such systems include the cooling of a metal rod in a pool of liquid, the transfer of materials throughout a chemical plant, the flow of electricity in a circuit, etc. If a strict mathematical analysis of such systems is performed, a set of high-order differential equations often results. However, it is usually extremely difficult (or even impossible) to solve such systems in a timely manner. This lab demonstrates a way to simplify such problems through the use of a discreet time analysis. The method will ignore the exact solutions to differential equations, and instead form an estimate by modelling the system’s behavior. The example in this lab will consider population dynamics to study the spread of a virus. Ironically, this has applications not only in human viruses but also computer viruses. Just like humans, computers typically spread viruses through contact with others. To begin developing this model, we will look at one individual and see how they can get sick. The easiest way to get sick is to have contact with someone. Take the following vector, P, and imagine you are in the middle, P(2): There are 3 types of people around you: Healthy, Sick and Immune. An Immune person will be one who was Sick and has now recovered from the virus. If we convert the above vector to a numeric, it would be the following (assuming you are healthy): The chances of you getting sick will rely on two conditions being met (1) How many sick people you are exposed to and (2) the chance that being exposed actually leads to you being sick which is determined by the aggressiveness of the virus. The first condition would be met when P(1) = 1 or P(3) = 1. The second condition can only happen if the first condition occurs. The second condition would be determined by taking the number of neighbors sick (1 time in the above example) and insert the value into the equation below: ChanceSick = 0.25*(NeighborsSick - 1) + 0.25; This would then be the probability that you get sick. Thus if one person around you is sick, you have a 25% chance of getting sick. If two people around you are sick, then you have a 50% chance of being sick. The more aggressive the virus the higher these probabilities would be. Part A. One-Dimensional Model of Virus Spreading Your task in Part A is to expand this model to include more than 3 elements in the vector, P. Below is the scenario for Day 1 and how to determine the state of the population going into Day 2. Step 1: Use the instructions below to generate a script file to determine if each person is exposed to the virus and then if they become sick. Generate a Vector, P = [0 1 0 0 1 0 1 1 0 0] which will represent the population at the beginning of Day 1. Below is an explanation of why the vector is 0’s and 1’s.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern