[Solved] FYS4150 Project5-Theoretical background and description of the system

$25

File Name: FYS4150_Project5-Theoretical_background_and_description_of_the_system.zip
File Size: 649.98 KB

SKU: [Solved] FYS4150 Project5-Theoretical background and description of the system Category: Tag:
5/5 - (1 vote)

Theoretical background and description of the system

The goal of this project is to develop a Monte Carlo simulation of the spread of an infectious disease. We will use the classical SIRS model of to develop the necessary transition probabilities for the simulation. Interpreting the simulation requires a thorough understanding of the SIRS model, so a deterministic approach is used in conjunction with Monte Carlo methods.

The main purpose of creating such a simulation is to investigate how a disease spreads throughout a given population over time. Then we can make predictions about whether or not a certain disease has the capacity to establish itself within the population, i.e. a fraction of the population remains infected after the system reaches equilibrium.

The SIRS model considers an isolated population of S→I→R→S“>SIRSSIRS. The rate of transmission b“>bb and the rate of immunity loss (1)N=S(t)+I(t)+R(t).“>N=S(t)+I(t)+R(t).(1)(1)N=S(t)+I(t)+R(t).

For the simple case, we will assume that the dynamics of the epidemic occur during a time scale much smaller than the average persons lifetime. Hence the effect of the birth and death rate of the population is ignored.

From these assumptions, a set of coupled differential equations can be constructed to form the classical SIRS model:

aSI“>aSIaSI instead of R′“>RR can just be omitted:

s“>ss, r“>rr denote the fractions of people in I“>II, and (4)s∗=ba,i∗=1−ba1+bc,r∗=bc1−ba1+bc.“>sir=ba,=1ba1+bc,=bc1ba1+bc.(4)(4)s=ba,i=1ba1+bc,r=bc1ba1+bc.

Here, the asterisk (b“>bb must be less than the rate of transmission b&lt;a“>b<ab<a.

For this project you can collaborate with fellow students and you can hand in a common report. This project (together with projects 3 and 4) counts 1/3 of the final mark.

Part a) setting up the differential equations

We will create four different populations to investigate the effect of increasing the rate of recovery a“>aa and the rate of immunity loss b“>bb be varied because it is the one parameter which can be reasonably controlled by the actions of human society (access to health care, development of new medicines, etc). Note that the rates have units of inverse time. The table here lists a possible set of parameters for the four different populations.

Rate A B C D
a 4 4 4 4
b 1 2 3 4
c 0.5 0.5 0.5 0.5

The rates of transmission are given by the parameter b“>bb, and immunity loss A“>AA, C“>CC, and S“>SS, R“>RR are continuous variables, when they are discrete in reality. We can use the idea of randomness to remedy this issue by defining a set of transition probabilities for the possible moves a person can take from one state to another: I&#x2192;R“>IRIR, and &#x0394;t“>tt, the number of people moving from I“>II is approximately bI&#x0394;t“>bItbIt move from R“>RR and R“>RR to &#x0394;t“>tt be small enough so that at most one person moves from a given group to another. Since

(6)&#x0394;t=min{4aN,1bN,1cN}.“>t=min{4aN,1bN,1cN}.(6)(6)t=min{4aN,1bN,1cN}.

This construction allows us to reinterpret the values bI&#x0394;t“>bItbIt, and (7)P(S&#x2192;I)=aSIN&#x0394;t,P(I&#x2192;R)=bI&#x0394;t,P(R&#x2192;S)=cR&#x0394;t.“>P(SI)P(IR)P(RS)=aSINt,=bIt,=cRt.(7)(7)P(SI)=aSINt,P(IR)=bIt,P(RS)=cRt.

For each possible move, a random number between 0 and 1 is generated. If the number is less than the probability for the move, the move is taken.

Develop now a Monte Carlo algorithm which implements the last equations using the same parameters a“>aa, c“>cc for each population. Compare your results to those obtained with the deterministic differential equation solver and discuss your findings.

You will need to find the fraction of people when the system has been equilibrated. You will need to find the equlibrium expectation values and corresonding standard deviations.

Part c) Improvements, vital dynamics

The same principles used in this simple model can be extended to include more details about the population and disease.

For instance, vital dynamics can be easily added to the system so that the model can describe the spread of diseases which occur over longer stretches of time. If d“>dd is the death rate, and (8)S&#x2032;=cR&#x2212;aSIN&#x2212;dS+eNI&#x2032;=aSIN&#x2212;bI&#x2212;dI&#x2212;dIIR&#x2032;=bI&#x2212;cR&#x2212;dR“>SIR=cRaSINdS+eN=aSINbIdIdII=bIcRdR(8)(8)S=cRaSINdS+eNI=aSINbIdIdIIR=bIcRdR

Here, we have assumed that all the babies born into the population are initially susceptible.

Add now these additions to your ODE solver and Monte Carlo solver and discuss the results.

Part d) Seasonal Variation

For diseases such as influenza, the rate of transmission depends largely on the time of year. During the colder months, individuals are more likely to spend time in closer proximity to one another, resulting in a rate of transmission which oscillates. So we can let (9)a(t)=Acos(&#x03C9;t)+a0,“>a(t)=Acos(t)+a0,(9)(9)a(t)=Acos(t)+a0,

where A“>AA is the maximum deviation from &#x03C9;“> is the frequency of oscillation. Study the the effect of seasonal variations as well, with both the ODE and Monte Carlo solver. Try different values of the above new parameters and discuss your results.

Part e) Vaccination

Diseases with available vaccinations allow people to move directly from R“>RR, breaking the cyclic structure of the SIRS model. We assume that a susceptible individuals choice to become vaccinated does not depend on how many other susceptibles are vaccinated. We may, however, assume that the rate of vaccination (10)S&#x2032;=cR&#x2212;aSIN&#x2212;fI&#x2032;=aSIN&#x2212;bIR&#x2032;=bI&#x2212;cR+f“>SIR=cRaSINf=aSINbI=bIcR+f(10)(10)S=cRaSINfI=aSINbIR=bIcR+f

Add now the effect of vaccination via the parameter f“>ff.

Introduction to numerical projects

Here follows a brief recipe and recommendation on how to write a report for each project.

  • Give a short description of the nature of the problem and the eventual numerical methods you have used.
  • Describe the algorithm you have used and/or developed. Here you may find it convenient to use pseudocoding. In many cases you can describe the algorithm in the program itself.
  • Include the source code of your program. Comment your program properly.
  • If possible, try to find analytic solutions, or known limits in order to test your program when developing the code.
  • Include your results either in figure form or in a table. Remember to label your results. All tables and figures should have relevant captions and labels on the axes.
  • Try to evaluate the reliabilty and numerical stability/precision of your results. If possible, include a qualitative and/or quantitative discussion of the numerical stability, eventual loss of precision etc.
  • Try to give an interpretation of you results in your answers to the problems.
  • Critique: if possible include your comments and reflections about the exercise, whether you felt you learnt something, ideas for improvements and other thoughts youve made when solving the exercise. We wish to keep this course at the interactive level and your comments can help us improve it.
  • Try to establish a practice where you log your work at the computerlab. You may find such a logbook very handy at later stages in your work, especially when you dont properly remember what a previous test version of your program did. Here you could also record the time spent on solving the exercise, various algorithms you may have tested or other topics which you feel worthy of mentioning.

Format for electronic delivery of report and programs

The preferred format for the report is a PDF file. You can also use DOC or postscript formats or as an ipython notebook file. As programming language we prefer that you choose between C/C++, Fortran2008 or Python. The following prescription should be followed when preparing the report:

  • Use Canvas to hand in your projects, log in at https://www.uio.no/english/services/it/education/canvas/ with your normal UiO username and password.
  • Upload only the report file! For the source code file(s) you have developed please provide us with your link to your github domain. The report file should include all of your discussions and a list of the codes you have developed. Do not include library files which are available at the course homepage, unless you have made specific changes to them. Alternatively, you can just upload the address to your GitHub or GitLab repository.
  • In your git repository, please include a folder which contains selected results. These can be in the form of output from your code for a selected set of runs and input parameters.
  • In this and all later projects, you should include tests (for example unit tests) of your code(s).
  • Comments from us on your projects, approval or not, corrections to be made etc can be found under your Canvas domain and are only visible to you and the teachers of the course.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] FYS4150 Project5-Theoretical background and description of the system
$25