SlideShare a Scribd company logo
1 of 14
R で数理モデルシミュレーション
~ワクチン接種と感染症伝播~
20151205 リクルートGINZA8
YF@Med_KU
はじめにお断り
製薬会社の
回し者では
あ り ま せ ん
今日の内容は
今までになく
真 面 目 で す
感染症の数理モデル:SIR model
Susceptible Infected Recovered
p time
感染症の数理モデル:ワクチン
Susceptible Infected Recovered
)1( vp  time
Vaccination
もしも世界が I*J 人の村だったら
J
I
単純に I*J の行列を想定する
Vaccinated Infected Susceptible
R 的実装
j
i
1i
1i
1j 1j
],[ ji]1,[ ji ]1,[ ji
],1[ ji ]1,1[  ji ]1,1[  ji
],1[ ji ]1,1[  ji ]1,1[  ji
)1( vp  p
の感染者は周囲8方向に sample関数で感染させる],[ ji
ntt 
R 的ベクトル実装
j
i
1i
1i
1j 1j
])1([ ijI ])2([ ijI  ][ iIj 
]1)1([  ijI]1)2([  ijI ]1[ iIj
]1)1([  ijI]1)2([  ijI ]1[ iIj
行列へのアクセスは でも可能
(行列はもともとベクトル)
])1([ ijI 
ntt 
Simulation
100*100 の行列, 感染期間 3
感染効率 0.7, ワクチン効率 0.9
接種率 0.95 接種率 0.75
0tt 
Simulation
100*100 の行列, 感染期間 3
感染効率 0.7, ワクチン効率 0.9
接種率 0.95 接種率 0.75
ntt 
Simulation
100*100 の行列, 感染期間 3
感染効率 0.7, ワクチン効率 0.9
接種率 0.95 接種率 0.75
endtt 
Simulation
接種率0.95接種率0.75
接種率の感染予防効果
接種率0.95接種率0.75
ワクチン接種
しなかった人も
感染してない
ワクチン接種
した人も
感染している
経過中に
接種率0.95接種率0.75
外来は確実に
パ ン ク す る
まとめ
R で数理モデルシミュレーションができる
ワクチンはたくさん接種してくれると
接種しなかった人も予防できる
ワクチンはたくさん接種しないと
接種した人も感染する
Let’s try !
人の移動,潜伏期間,再発,医療経済…

More Related Content

Viewers also liked

Slide 04 - Otaciso, Digelvânia e Silvana
Slide 04 - Otaciso, Digelvânia e SilvanaSlide 04 - Otaciso, Digelvânia e Silvana
Slide 04 - Otaciso, Digelvânia e Silvanarafaelly04
 
JavaScript Unit Testing
JavaScript Unit TestingJavaScript Unit Testing
JavaScript Unit TestingKeir Bowden
 
Lean Startup for AaltoES Summer of Startups
Lean Startup for AaltoES Summer of StartupsLean Startup for AaltoES Summer of Startups
Lean Startup for AaltoES Summer of StartupsMarko Taipale
 
8281 Gefahr der Überheblichkeit ....
8281   Gefahr der Überheblichkeit ....8281   Gefahr der Überheblichkeit ....
8281 Gefahr der Überheblichkeit ....Marianne Zipf
 
Spring 2011 Current Projects
Spring 2011 Current ProjectsSpring 2011 Current Projects
Spring 2011 Current Projectsgrantml
 
GBI 2016 Asia - Hong Kong Launch Presentation 270916
GBI 2016 Asia - Hong Kong Launch Presentation 270916GBI 2016 Asia - Hong Kong Launch Presentation 270916
GBI 2016 Asia - Hong Kong Launch Presentation 270916Ipsos UK
 
Golden rules from online community facilitators
Golden rules from online  community facilitatorsGolden rules from online  community facilitators
Golden rules from online community facilitatorsMichael Norton
 
Enterprise Mobility Transforming Public Service and Citizen Engagement
Enterprise Mobility Transforming Public Service and Citizen EngagementEnterprise Mobility Transforming Public Service and Citizen Engagement
Enterprise Mobility Transforming Public Service and Citizen EngagementSAP Asia Pacific
 
Strata Singapore: Gearpump Real time DAG-Processing with Akka at Scale
Strata Singapore: GearpumpReal time DAG-Processing with Akka at ScaleStrata Singapore: GearpumpReal time DAG-Processing with Akka at Scale
Strata Singapore: Gearpump Real time DAG-Processing with Akka at ScaleSean Zhong
 
Iconic AP images of the 20th century
Iconic AP images of the 20th centuryIconic AP images of the 20th century
Iconic AP images of the 20th centuryguimera
 

Viewers also liked (12)

Slide 04 - Otaciso, Digelvânia e Silvana
Slide 04 - Otaciso, Digelvânia e SilvanaSlide 04 - Otaciso, Digelvânia e Silvana
Slide 04 - Otaciso, Digelvânia e Silvana
 
JavaScript Unit Testing
JavaScript Unit TestingJavaScript Unit Testing
JavaScript Unit Testing
 
Lean Startup for AaltoES Summer of Startups
Lean Startup for AaltoES Summer of StartupsLean Startup for AaltoES Summer of Startups
Lean Startup for AaltoES Summer of Startups
 
8281 Gefahr der Überheblichkeit ....
8281   Gefahr der Überheblichkeit ....8281   Gefahr der Überheblichkeit ....
8281 Gefahr der Überheblichkeit ....
 
Spring 2011 Current Projects
Spring 2011 Current ProjectsSpring 2011 Current Projects
Spring 2011 Current Projects
 
CA concepts, principles and practices Kitui
CA concepts, principles and practices   KituiCA concepts, principles and practices   Kitui
CA concepts, principles and practices Kitui
 
Open Government Data - Zwei Beispiele der Community-Einbindung
Open Government Data - Zwei Beispiele der Community-EinbindungOpen Government Data - Zwei Beispiele der Community-Einbindung
Open Government Data - Zwei Beispiele der Community-Einbindung
 
GBI 2016 Asia - Hong Kong Launch Presentation 270916
GBI 2016 Asia - Hong Kong Launch Presentation 270916GBI 2016 Asia - Hong Kong Launch Presentation 270916
GBI 2016 Asia - Hong Kong Launch Presentation 270916
 
Golden rules from online community facilitators
Golden rules from online  community facilitatorsGolden rules from online  community facilitators
Golden rules from online community facilitators
 
Enterprise Mobility Transforming Public Service and Citizen Engagement
Enterprise Mobility Transforming Public Service and Citizen EngagementEnterprise Mobility Transforming Public Service and Citizen Engagement
Enterprise Mobility Transforming Public Service and Citizen Engagement
 
Strata Singapore: Gearpump Real time DAG-Processing with Akka at Scale
Strata Singapore: GearpumpReal time DAG-Processing with Akka at ScaleStrata Singapore: GearpumpReal time DAG-Processing with Akka at Scale
Strata Singapore: Gearpump Real time DAG-Processing with Akka at Scale
 
Iconic AP images of the 20th century
Iconic AP images of the 20th centuryIconic AP images of the 20th century
Iconic AP images of the 20th century
 

More from Med_KU

20160730tokyor55
20160730tokyor5520160730tokyor55
20160730tokyor55Med_KU
 
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワークMed_KU
 
20131216 Stat Journal
20131216 Stat Journal20131216 Stat Journal
20131216 Stat JournalMed_KU
 
20131207 Japan.R#4 LT
20131207 Japan.R#4 LT20131207 Japan.R#4 LT
20131207 Japan.R#4 LTMed_KU
 
20131110 第3回ニコニコ学会β データ研究会
20131110 第3回ニコニコ学会β データ研究会20131110 第3回ニコニコ学会β データ研究会
20131110 第3回ニコニコ学会β データ研究会Med_KU
 
20131109 TokyoR#35 Rでネットワーク解析とGIS
20131109 TokyoR#35 Rでネットワーク解析とGIS20131109 TokyoR#35 Rでネットワーク解析とGIS
20131109 TokyoR#35 Rでネットワーク解析とGISMed_KU
 
20131019 生物物理若手 Journal Club
20131019 生物物理若手 Journal Club20131019 生物物理若手 Journal Club
20131019 生物物理若手 Journal ClubMed_KU
 
20131011 KashiwaR#9
20131011 KashiwaR#920131011 KashiwaR#9
20131011 KashiwaR#9Med_KU
 
20121120 検査と臨床判断
20121120 検査と臨床判断20121120 検査と臨床判断
20121120 検査と臨床判断Med_KU
 
20130701 統計論文勉強会 遺伝的差異の定量的解析法
20130701 統計論文勉強会 遺伝的差異の定量的解析法20130701 統計論文勉強会 遺伝的差異の定量的解析法
20130701 統計論文勉強会 遺伝的差異の定量的解析法Med_KU
 
20130609 アイドルマスター解析
20130609 アイドルマスター解析20130609 アイドルマスター解析
20130609 アイドルマスター解析Med_KU
 
20130201 脳神経外科 脳腫瘍の浸潤数理モデル
20130201 脳神経外科 脳腫瘍の浸潤数理モデル20130201 脳神経外科 脳腫瘍の浸潤数理モデル
20130201 脳神経外科 脳腫瘍の浸潤数理モデルMed_KU
 
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析Med_KU
 
20130608 Kashiwa.R#8 Rでプロット
20130608 Kashiwa.R#8 Rでプロット20130608 Kashiwa.R#8 Rでプロット
20130608 Kashiwa.R#8 RでプロットMed_KU
 
20130318 統計手法勉強会 外れ値検出 FRaC
20130318 統計手法勉強会 外れ値検出 FRaC20130318 統計手法勉強会 外れ値検出 FRaC
20130318 統計手法勉強会 外れ値検出 FRaCMed_KU
 
20130220 Kashiwa.R#6
20130220 Kashiwa.R#620130220 Kashiwa.R#6
20130220 Kashiwa.R#6Med_KU
 
20121210 統計論文勉強会
20121210 統計論文勉強会20121210 統計論文勉強会
20121210 統計論文勉強会Med_KU
 
20121130 Kashiwa.R#5
20121130 Kashiwa.R#520121130 Kashiwa.R#5
20121130 Kashiwa.R#5Med_KU
 
20130727niconico
20130727niconico20130727niconico
20130727niconicoMed_KU
 
20130727niconicoLT
20130727niconicoLT20130727niconicoLT
20130727niconicoLTMed_KU
 

More from Med_KU (20)

20160730tokyor55
20160730tokyor5520160730tokyor55
20160730tokyor55
 
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク
20140308 第四回 ニコニコ学会β データ研究会 アニメ・声優・二次創作における百合ネットワーク
 
20131216 Stat Journal
20131216 Stat Journal20131216 Stat Journal
20131216 Stat Journal
 
20131207 Japan.R#4 LT
20131207 Japan.R#4 LT20131207 Japan.R#4 LT
20131207 Japan.R#4 LT
 
20131110 第3回ニコニコ学会β データ研究会
20131110 第3回ニコニコ学会β データ研究会20131110 第3回ニコニコ学会β データ研究会
20131110 第3回ニコニコ学会β データ研究会
 
20131109 TokyoR#35 Rでネットワーク解析とGIS
20131109 TokyoR#35 Rでネットワーク解析とGIS20131109 TokyoR#35 Rでネットワーク解析とGIS
20131109 TokyoR#35 Rでネットワーク解析とGIS
 
20131019 生物物理若手 Journal Club
20131019 生物物理若手 Journal Club20131019 生物物理若手 Journal Club
20131019 生物物理若手 Journal Club
 
20131011 KashiwaR#9
20131011 KashiwaR#920131011 KashiwaR#9
20131011 KashiwaR#9
 
20121120 検査と臨床判断
20121120 検査と臨床判断20121120 検査と臨床判断
20121120 検査と臨床判断
 
20130701 統計論文勉強会 遺伝的差異の定量的解析法
20130701 統計論文勉強会 遺伝的差異の定量的解析法20130701 統計論文勉強会 遺伝的差異の定量的解析法
20130701 統計論文勉強会 遺伝的差異の定量的解析法
 
20130609 アイドルマスター解析
20130609 アイドルマスター解析20130609 アイドルマスター解析
20130609 アイドルマスター解析
 
20130201 脳神経外科 脳腫瘍の浸潤数理モデル
20130201 脳神経外科 脳腫瘍の浸潤数理モデル20130201 脳神経外科 脳腫瘍の浸潤数理モデル
20130201 脳神経外科 脳腫瘍の浸潤数理モデル
 
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析
20130609 Wako.R トピックモデルを用いたボーカロイド楽曲の流行解析
 
20130608 Kashiwa.R#8 Rでプロット
20130608 Kashiwa.R#8 Rでプロット20130608 Kashiwa.R#8 Rでプロット
20130608 Kashiwa.R#8 Rでプロット
 
20130318 統計手法勉強会 外れ値検出 FRaC
20130318 統計手法勉強会 外れ値検出 FRaC20130318 統計手法勉強会 外れ値検出 FRaC
20130318 統計手法勉強会 外れ値検出 FRaC
 
20130220 Kashiwa.R#6
20130220 Kashiwa.R#620130220 Kashiwa.R#6
20130220 Kashiwa.R#6
 
20121210 統計論文勉強会
20121210 統計論文勉強会20121210 統計論文勉強会
20121210 統計論文勉強会
 
20121130 Kashiwa.R#5
20121130 Kashiwa.R#520121130 Kashiwa.R#5
20121130 Kashiwa.R#5
 
20130727niconico
20130727niconico20130727niconico
20130727niconico
 
20130727niconicoLT
20130727niconicoLT20130727niconicoLT
20130727niconicoLT
 

20151205japanr