国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

CS 7280代做、代寫Python編程語言
CS 7280代做、代寫Python編程語言

時間:2024-11-05  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯



GT CS 7280: Network Science
Assignment 4: Modeling Epidemics
Fall 2024
Overview
The objective of this assignment is to experiment with the concepts we covered in Module-4
about network epidemics, and see how the theoretical results that were derived in class
compare to simulation results.
Submission
Please submit your Jupyter Notebook A4-YOURGTUSERNAME.ipynb with requirements.txt
so that we may be able to replicate your Python dependencies to run your code as needed.
With Anaconda, you can do this by running:
conda list -e > requirements.txt
Ensure all graphs and plots are properly labeled with unit labels and titles for x & y axes.
Producing readable, interpretable graphics is part of the grade as it indicates understanding of
the content – there may be point deductions if plots are not properly labeled.
Getting Started
Assignment 4 requires Epidemics on Network python module available here. You can download
this module and run the examples given in the documentation to become familiar with it.
You can install the library using: pip install EoN
This homework, especially parts 2 and 3, might take several minutes to run. Be aware of
this and plan to complete it accordingly.
**IMPORTANT** As with prior assignments the structure has been designed
to have several subsections in each part. The first few subsections are
meant to just define useful functions and the final subsection of each part
is where the functions are called and the analysis is done. If you are
confused about how a function is meant to be used, check the final
subsection in each part to see how they are being called. This should clear
up a lot of potential points of confusion early on.
GT CS 7280: Network Science
Part 1: Outbreak Modeling [40 Points]
The file “fludata.txt” has the list of students, teachers and staff at a school. The interaction
between them was measured based on the proximity of the sensors that people were carrying
on them. The data file has three columns, the first two columns are the IDs of the people and
the third column is the number of interactions.
Construct an undirected graph from that text file using functions in the networkX module. For
the purpose of this assignment, we consider only the unweighted graph (i.e., you can ignore
the third column).
1. [10 points] Suppose there is a pathogen with transmission rate of 0.01 and recovery
rate of 0.5. Suppose that an outbreak started at node **5 (“patient-0”). Complete the
simulate_outbreak function to simulate an outbreak under the SIS model using the
provided parameters. The function should return a list of length n_iter containing
simulation runs where n_iter is an argument to the function.
Important: When running your simulations, you will want to discard the outbreaks that
died out stochastically. To do this, check whether the number of infected nodes at the
last time step is 0 and replace them with a simulation that does not die out. In total you
should have n_iter simulations.
Additionally, complete the plot_outbreaks function to visualize the results of the
simulate_outbreak function. Show the results for each of the simulations on a single
plot and break each simulation into 2 lines, one for the number of infected and the other
for number of susceptible over time. Make sure to properly label these lines and to
create a legend identifying which lines are which.
2. [10 points] In the lecture we modeled the initial exponential increase of the number of
infected nodes as 𝐼(w**5;) ≈ 𝐼 , where 𝜏 is a time constant. Note that here as only
0
Ү**;
w**5;/τ
𝐼
0 = 1
one node was infected initially. Now, complete the get_exponent function to fit an
exponent to the curve of the number of infections. Choose only the initial portion of the
outbreak, say for 𝐼(w**5;) ≤ 100 (the exponential region of the outbreak, where the number of
infected is less than or equal to 100) and return the estimated time constant 𝜏.
Hint: scipy.optimize.curve_fit is a helpful function to fit the exponent to a curve.
Additionally, complete the plot_curve_fit function to plot both the actual number of
infected and the theoretical curve given a value of 𝜏 (for values of Infected < 100). This
function should also compute the r-squared between the two curves and print the value
for 𝜏 and r-squared in the title of the plot. Again, make sure to label both curves and
create a legend identifying which is which.
3. [5 points] In the lecture and textbook we discussed theoretical values for 𝜏 that can be
calculated from properties of the graph and the dynamics of the infection spread.
Complete the calculate_theoretical_taus function to compute:
GT CS 7280: Network Science
○ The random distribution shown in the Lesson 9 Canvas lecture “SIS Model”.
○ The arbitrary distribution from the Canvas lectures shown in the Lesson 9
Canvas lecture “Summary of SI, SIS, SIR Models with Arbitrary Degree
Distribution”.
○ The arbitrary distribution from the textbook found in Ch. 10, Equation 10.21.
Additionally, complete the compare_taus function to show a boxplot of the distribution of
sample 𝜏’s calculated from simulation runs (see 1.5 to understand where these come
from). Visualize the theoretical calculations as dots on the box plot. Again, label each of
these dots with the calculation used to generate them.
4. [10 points] Complete the calculate_theoretical_endemic_size function to compute the
size of the population that remains infected at the endemic state.
Then, complete the compare_endemic_sizes function to plot the distribution of
endemic sizes across several simulation runs as a boxplot, and compare it with the
theoretical calculation for endemic size as a single dot, similarly to the previous
subsection.
5. [5 points] Run the code provided in cell 1.5 and look at the resulting figures. How good of
a fit is the exponential curve in section 1.2? Explain how the theoretical estimates in 1.3
& 1.4 compare to the empirical distribution and indicate which you would consider a
reasonable fit for the data.
Part 2: Transmission Rate [25 Points]
Next, let us vary the transmission rate and see how it affects the spread of infection. Since we
know that only the ratio of the transmission rate and the recovery rate matters, let us keep the
recovery rate constant at 0.5 and vary only the transmission rate.
1. [10 points] Complete the simulate_beta_sweep function to vary the transmission rate
over a range of beta values between beta_min, beta_max with beta_samples number of
points. For each value of the transmission rate, compute 5 simulations to avoid outliers.
You can reuse your simulate_outbreak function from Part 1 in this function.
Next, complete the extract_average_tau function to return a list of the average 𝜏 value
calculated over the five simulation runs for EACH beta value. You may reuse the
get_exponent function from Part 1.
Finally, complete the plot_beta_tau_curves function to show the exponential curve
given by the 𝜏 values for each beta value. The x-axis is time and y-axis is the number of
infected people. Use a log scale on the y-axis and make sure that each line has its own
color. This function should be similar to the plot_curve_fit function in part 1.2, but you
GT CS 7280: Network Science
will be showing a series of exponentials instead of comparing an experimental with a
theoretical curve.
2. [10 points] Complete the extract_average_endemic_size function to return a list of the
average endemic size calculated over the five simulation runs for EACH beta value.
Next, complete the calculate_theoretical_endemic function to find the minimum
theoretical beta values of the transmission rate for an epidemic to occur. Calculate this
minimum based on the equations derived in lecture for both the random distribution and
the arbitrary distribution. Also, calculate the theoretical endemic size for each value of
beta under the assumption of random distribution.
Finally, complete the compare_endemic_sizes_vs_beta function to plot the average
endemic sizes and theoretical endemic sizes as a curve vs beta. Additionally, plot the
minimum values for beta to start an epidemic as vertical lines. Make sure to label each
line and provide a legend.
3. [5 points] Run the code provided in cell 2.3 and look at the resulting figures. How similar
is the theoretical to experimental endemic sizes? How closely do the minimum beta
values provide a reasonable lower bound for the start of an endemic?
Part 3: Patient-0 Centrality & 𝜏 [30 Points]
Now, let us see how the choice of “patient-0” affects the spread of an outbreak. Consider every
node of the network as patient-0, and run the SIS model using the parameters in Part 1 to
compute . Run the simulation with each node in the simulation as patient-0. Hint: You can skip
cases where the infection quickly diminishes to 0.
1. [10 points] Complete the sweep_initial_infected function to complete a single
simulation run for each node in the graph as the initial infected. Check for runs that
stochastically die out and do not save those. Return the list of simulation run results and
a list of nodes (integer IDs) where the simulation was successful.
Additionally, complete the compute_centrality function to calculate the: degree
centrality, closeness centrality (with wf_improved=false), betweenness centrality, and
eigenvector centrality of the graph. Remember to use the unweighted centrality metrics.
Return the centralities for each node where the simulation was kept in the previous
function.
Hint: We provide “nodes” as an argument which is meant to represent the second output
of the previous function. You can use this to filter for centralities of only these nodes
before you return them. Check the cell for 3.3 to see exactly how this is used.
GT CS 7280: Network Science
2. [15 points] Complete the calculate_pearson_correlation to compute the Pearson
correlation coefficient between each centrality metric and 𝜏, along with a p-value for that
correlation.
Additionally, complete the plot_centrality_vs_tau function to plot a scatter plot between
the 𝜏 value that corresponds to each node, and different centrality metrics of that node:
degree centrality, closeness centrality, betweenness centrality, and eigenvector
centrality. Do this all as one figure with four subfigures. Include the Pearson correlation
values as well as the corresponding p-values in the title for each scatter plot. Remember
to use the unweighted centrality metrics.
3. [5 points] Rank these centrality metrics based on Pearson’s correlation coefficient, and
determine which metrics can be a better predictor of how fast an outbreak will spread
from the initial node. Analyze your results. That is, do the results match your intuition? If
they differ, why might that be?
Part 4: Knowledge Question [5 Points]
Answer the following food for thought question from Lesson 10 – Submodularity of Objective
Function:
Prove that a non-negative linear combination of a set of submodular functions is also a
submodular function.
Hint: Make sure you understand the definition of linearity.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:COMP2404代做、C++編程設(shè)計
  • 下一篇:代寫SESI M2、代做C++編程設(shè)計
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊,2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團(tuán)隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁版入口 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    一区二区三区日韩视频| 欧美日韩亚洲综合一区二区三区激情在线 | 精品国偷自产在线视频| 97精品国产97久久久久久| 国产日本欧美在线| 国产精品一区二区久久国产| 国产免费黄色一级片| 国产欧美最新羞羞视频在线观看| 海角国产乱辈乱精品视频| 日韩免费av一区二区| 午夜精品理论片| 日本免费高清一区| 日韩精品无码一区二区三区| 热门国产精品亚洲第一区在线| 青青青国产精品一区二区| 欧美专区在线观看| 欧美精品与人动性物交免费看| 日本wwwcom| 日韩精品一区二区在线视频| 日本高清久久一区二区三区| 人人妻人人澡人人爽精品欧美一区| 日韩精品第1页| 国语自产精品视频在免费| 国模精品娜娜一二三区| 国产玖玖精品视频| 久久五月天婷婷| 日韩视频在线免费| 国产精品久久久久久久久久尿| 国产精品吊钟奶在线| 亚洲图片在线观看| 日本久久久久久久久久久| 欧美在线视频a| 黄色高清无遮挡| 精品一区二区三区无码视频 | 日韩在线观看你懂的| 国产精品男女猛烈高潮激情| 另类色图亚洲色图| 中文字幕不卡每日更新1区2区| 亚洲精品中文字幕无码蜜桃| 日产日韩在线亚洲欧美| 欧美亚洲日本黄色| 国产综合动作在线观看| 丰满人妻中伦妇伦精品app| 久久免费视频网| 久久久久北条麻妃免费看| 九九视频直播综合网| 色噜噜狠狠色综合网| 美女亚洲精品| 国产超碰91| 欧美激情免费在线| 欧美主播一区二区三区美女 久久精品人| 国内精品久久久| 91精品国产99久久久久久| 国产精品丝袜白浆摸在线| 亚洲最大福利视频网| 欧美在线观看日本一区| 国产精品香蕉视屏| 色琪琪综合男人的天堂aⅴ视频| 久久亚洲精品成人| 亚洲国产精品日韩| 欧美精品久久久久久久久久久| 国产精品有限公司| 久久精品99无色码中文字幕| 亚洲第一页在线视频| 黄色国产精品视频| 久久久精品动漫| 欧美激情乱人伦一区| 极品日韩久久| 久久福利一区二区| 亚洲精品欧洲精品| 国产精品自产拍在线观| 国产精品日本精品| 日本亚洲欧洲色α| 91麻豆国产语对白在线观看| 国产精品入口日韩视频大尺度| 大波视频国产精品久久| 国产欧美自拍视频| 久久天天躁狠狠躁夜夜躁| 色就是色欧美| 91精品久久香蕉国产线看观看| 精品国产第一页| 精品一区国产| 国产精品视频免费在线| 青青草视频国产| 国产l精品国产亚洲区久久| 亚洲第一精品区| 91久久国产精品| 亚洲一区二区三区久久| 国产乱码精品一区二区三区日韩精品| 久久天天躁狠狠躁夜夜av| 日本视频久久久| 国产精彩免费视频| 亚洲精品中文字幕乱码三区不卡 | 国产伦精品一区二区三区照片| 国产精品极品美女在线观看免费| 欧美一区二区在线| 精品久久国产精品| 免费在线观看日韩视频| 久久韩国免费视频| 日韩欧美不卡在线| 色婷婷av一区二区三区久久| 欧洲熟妇精品视频| 久久久精品国产网站| 欧美大香线蕉线伊人久久| 国产精品日韩欧美一区二区| 国内久久久精品| 精品久久久久久亚洲| 国产欧美日韩中文字幕| 在线精品日韩| 77777亚洲午夜久久多人| 欧美一级中文字幕| 色阁综合伊人av| 蜜桃免费区二区三区| 欧美成人精品影院| 国产伦精品一区二区三区四区免费 | 91精品中文在线| 五月天国产一区| 久久99精品久久久久久久青青日本| 日韩免费观看高清| 国产精品视频自在线| 国产日韩在线免费| 视频一区二区综合| 久久精品美女视频网站| 国产日韩中文在线| 亚洲最大福利视频网站| 国产成人精品久久| 美国av一区二区三区| 亚洲在线免费看| 色婷婷久久一区二区| 国产综合欧美在线看| 亚洲三级一区| 久久久久一区二区| 国模极品一区二区三区| 亚洲专区在线视频| 色妞色视频一区二区三区四区| 黄页网站在线观看视频| 一区二区三区观看| www亚洲欧美| 国产精品又粗又长| 亚洲不卡中文字幕无码| 久久久免费av| 国产欧美在线看| 人妻少妇精品久久| 一级特黄录像免费播放全99| 色妞在线综合亚洲欧美| 国产视频不卡| 日本精品免费| 一区二区三区观看| 久久精品91久久久久久再现| 成人a免费视频| 欧美不卡三区| 都市激情久久久久久久久久久| 国产精品入口免费视频一| 国产精品av在线播放| 黄页网站大全在线观看| 午夜精品一区二区三区在线视 | 一本久道久久综合狠狠爱亚洲精品| 久久久久久久999精品视频| 国产欧美日韩免费看aⅴ视频| 亚洲乱码中文字幕久久孕妇黑人| 久久久精品日本| 午夜精品久久久久久久白皮肤| 日韩中文娱乐网| 国产精品自产拍在线观| 欧美人与性禽动交精品| 欧美一区二区福利| 久久久久久国产精品三级玉女聊斋| 色偷偷偷亚洲综合网另类 | 国产精品亚洲天堂| 激情综合网婷婷| 热99精品只有里视频精品| 日日摸日日碰夜夜爽无码| 亚洲三区四区| 欧美激情综合色综合啪啪五月| 国产精品日韩欧美大师| 国产成人免费av| 日韩视频在线观看免费| 99国产盗摄| 成人免费福利视频| 国产男女在线观看| 国产深夜男女无套内射| 国内自拍在线观看| 国产精品午夜一区二区欲梦| 国产一区视频观看| 国产在线视频2019最新视频| 黄色国产精品一区二区三区| 国内精品国产三级国产99| 欧美一区激情视频在线观看| 日韩精品电影网站| 日韩精品资源| 欧美在线视频一区二区| 欧美日韩午夜爽爽| 日韩欧美在线一区二区| 日本午夜在线亚洲.国产| 日批视频在线免费看| 日本一本中文字幕| 日韩人妻一区二区三区蜜桃视频| 色中文字幕在线观看| 日韩高清专区| 欧洲日本亚洲国产区|