<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Benny Chin on Medium]]></title>
        <description><![CDATA[Stories by Benny Chin on Medium]]></description>
        <link>https://medium.com/@wcchin.88?source=rss-12446182e489------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UBVDknkHf9JDarDzur_wlw.jpeg</url>
            <title>Stories by Benny Chin on Medium</title>
            <link>https://medium.com/@wcchin.88?source=rss-12446182e489------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:56:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wcchin.88/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[肺炎危機解除了嗎？分析2020年5月的新確診案例變化趨勢]]></title>
            <link>https://medium.com/@wcchin.88/%E8%82%BA%E7%82%8E%E5%8D%B1%E6%A9%9F%E8%A7%A3%E9%99%A4%E4%BA%86%E5%97%8E-%E5%88%86%E6%9E%902020%E5%B9%B45%E6%9C%88%E7%9A%84%E6%96%B0%E7%A2%BA%E8%A8%BA%E6%A1%88%E4%BE%8B%E8%AE%8A%E5%8C%96%E8%B6%A8%E5%8B%A2-84973aa99be4?source=rss-12446182e489------2</link>
            <guid isPermaLink="false">https://medium.com/p/84973aa99be4</guid>
            <category><![CDATA[疫情]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[資料分析]]></category>
            <category><![CDATA[資料視覺化]]></category>
            <category><![CDATA[covid-19-crisis]]></category>
            <dc:creator><![CDATA[Benny Chin]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 15:27:08 GMT</pubDate>
            <atom:updated>2020-06-04T15:27:08.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3s5gXHkh-l0civeswN59Pw.png" /><figcaption>全球每日新確診案例數的變化趨勢及其簡單移動平均，包括週線（7天）、雙週線（14天）、月線（28天）。從全球的新確診案例數的趨勢來看，大概從四月初起至五月底之間，新確診案例數以固定的數量每日增加，然而在五月底起，案例的每日增加數量似乎又開始往上飆升，這可以從週線在上帶動月線往上移動的趨勢觀察的出。</figcaption></figure><p>全球人類與COVID-19 （以下簡稱19肺炎）的戰爭開打至今已經過四個多月。如今全球趨勢似乎開始趨向平緩，各大城市、國家介已開始籌劃城市、國家的重啓計劃。然而我們真的安全了嗎？這個全球大流行的19肺炎危機真的快要解除了嗎？這是這篇短文核心想探討的問題。本文將從兩個尺度去討論這個問題，包括全球尺度與國家尺度。然後，我將試着將近一個月的趨勢相近的國家做（非監督式學習）的群聚分析。</p><h3>資料</h3><p>跟上一篇文章一樣，本文用的是 Johns Hopkins University (JHU) 大學的 Center for Systems Science and Engineering (CSSE) 中心所提供的 COVID-19 全球趨勢資料集爲基本輸入資料進行分析。原始資料是從 Github 上拉下來：<a href="https://github.com/CSSEGISandData/COVID-19">https://github.com/CSSEGISandData/COVID-19</a> (2020/6/1 抓的資料，內容最新至5/31).</p><h3>全球尺度分析</h3><p>本文的封面圖片（最上面）所呈現的就是全球 19肺炎的每日新確診案例數隨時間的變化趨勢。其中包括：每日增加數（藍線）以及三條不同週期的移動平均線（橘線爲週線、綠線爲雙週線、紅線爲月線）。需要強調說明一下，本文的圖都是每日新增確診的數量，而非總確診數或正在發病中的確診數。</p><p>從圖中可以觀察到，全球在三月初開始往上飆升到四月初，從低於1萬上升至每日新增 8萬病例，然後維持這個新增速度一直到五月中旬，然後又開始往上增加至超過12萬。目前似乎還在持續上升中。所以簡單來說，從全球尺度來看，全球大流行還在持續進行中，所以我們還並不安全，還不能鬆懈下來。更何況，因爲19肺炎的症狀包括輕微如乾咳到非常嚴重的死亡，且有些國家因醫療系統的不完善而導致其可檢測的能力不足，故而促使其真正染病人數可能遠大於其實際通報人數。也就是說目前的這些觀察數字可能會嚴重低估實際全球疫情狀況。然而在低估的情況下，狀況依然是非常悲觀的。</p><h3>國家尺度分析</h3><p>在2020年五月期間，不少在三、四月啓動國家或城市封鎖、移動限制令的地區逐漸開始其重啓計劃，以讓其人民回歸到原來的生活與工作、學習。在經過了兩三個月的努力之後，這些國家的疫情似乎開始被控制，這些國家的新增病例數或正在染病中接受治療的人數都逐漸開始下降。</p><p>下圖呈現的是 24 個國家的每日新增病例數以及其移動平均的週線、雙週線、月線。最上面的 8 個國家包括法國、意大利、西班牙、德國、澳洲、日本、南韓、及泰國。這些國家的新增病例數已經在前一段時間下降，並且在近期進入低新增病例數的階段。</p><p>中間 8 個國家包括加拿大、英國、美國、俄羅斯、新加坡、馬來西亞、葡萄牙、烏克蘭。這些國家最近剛經過其每日新增病例數的頂峰時期，並開始進入下降的趨勢。其中，馬來西亞的趨勢與其他 7 國的趨勢有點不同，其在下降的過程中，似乎又開始反彈上去，即週線在上，月線在下，有可能要開始被往上帶的趨勢。</p><p>最後的 8 個國家包括印度、印尼、伊拉克、伊朗、菲律賓、巴西、肯亞、埃及。這些國家在過去四周很不幸的正在逐漸往上攀升中。其中，伊朗的趨勢是在大約第10週的時候已達到一次頂峰，然後在下滑的過程中，於第15週又開始往上攀升。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AecVj10qmakVBVjPyBtpTw.png" /><figcaption>24 個國家的新增確診病例數。前兩排的8個國家已經進入低新增病例數的階段一陣子，中間兩排8個國家剛經過其最高峰並且新增案例數開始減少，後兩排8個國家則是其每日新增案例依然在持續上升中。</figcaption></figure><h3>近28天的新增病例數的群聚分析</h3><p>前一部分所呈現的是全球其中 24 個國家，分別反映了三種趨勢階段。那其他的國家呢？爲系統性的分析各國近一個月左右的趨勢，我接下來應用一個基本的資料分析方法 — 群聚分析（clustering analysis）。群聚分析方法簡單來說是將「類似」的分析單位歸類爲同一群，並將各個分析單位分到各自所屬的群中。以本文的目的來看，基本上就是把最近28天的新增病例數趨勢去做分組。操作上，是把28天的資料當成28個維度去計算各個國家與國家之間的差距，差距越大就是越不像，差距越小則越相近。</p><p>本文中應用最常見且簡單操作的 k-means clustering （直接翻譯則是 k個平均中心群聚分析）方法。這個演算法需要給定一個參數 k，即要將資料分成幾群。這個參數可以透過另一個評估指標 — silhouette score 的高低來判斷這個分群數是否是最好的參數設定。本文的分析結果是，k 的最佳數值爲 4，即分成4群，其 silhouette score 達到0.478 （在 2&lt;= k &lt;= 10 之間最高）。分成四群的國家如下圖顯示。分群的結果是有點混亂，趨勢差異並不如預期的清晰，其中有一些結果跟前面的觀察有所衝突，例如伊朗、印尼、菲律賓被分到 群聚2 而不是 群聚3 。這可能可以透過使用更進階的分群方法、或時間趨勢的分群方法來取得更好更清晰的結果。但目前來說，也還算可以從中找到各群的一些趨勢特性。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZKzzwJ7oclge9dQOEJjtA.png" /><figcaption>應用最近 28天的新增病例數月線資料進行 K-means 群聚分析結果。兩條虛線之間所包圍的即是 28 天範圍。K 設定爲 4 所以分成 4 群。</figcaption></figure><p>第一群 (圖a，群聚 1) 由 47 個國家所組成，包括法國、挪威、德國、澳洲、泰國等。這些國家的趨勢主要是在前些日子經過了其最高峰，而在近 28 天中都在相對較低數值的新增病例數。下表是 47 個國家的 28 天前與倒數 1 天的新增病例數及其變化。其中大部分的國家 （35 個國家，序從7至41）的差異在正負10之間，亦即變化較低。</p><pre>Cluster-1 <br>╒══╤═════════════════════╤════════════╤════════════╤════════════╕<br>│  │ Country/Region      │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞══╪═════════════════════╪════════════╪════════════╪════════════╡<br>│ 0│ Spain               │        884 │        251 │       -633 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 1│ Germany             │        697 │        221 │       -476 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 2│ France              │        407 │        257 │       -150 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 3│ Switzerland         │         88 │         17 │        -71 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 4│ Norway              │         38 │          3 │        -35 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 5│ Australia           │         23 │         10 │        -13 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 6│ Luxembourg          │         12 │          2 │        -10 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 7│ Croatia             │          8 │          0 │         -8 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 8│ Cyprus              │          8 │          0 │         -8 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 9│ Taiwan*             │          4 │          0 │         -4 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│10│ Greece              │          6 │          2 │         -4 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│11│ Tunisia             │          4 │          1 │         -3 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│12│ Vietnam             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│13│ Andorra             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│14│ Iceland             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│15│ Barbados            │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│16│ Saint Lucia         │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│17│ Fiji                │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│18│ Mauritius           │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│19│ New Zealand         │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│20│ Western Sahara      │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│21│ Montenegro          │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│22│ Cambodia            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│23│ Seychelles          │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│24│ Eritrea             │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│25│ Monaco              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│26│ Brunei              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│27│ Saint Kitts         │          0 │          0 │         +0 │<br>│  │ and Nevis           │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│28│ Liechtenstein       │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│29│ Belize              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│30│ Trinidad            │          0 │          0 │         +0 │<br>│  │ and Tobago          │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│31│ Dominica            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│32│ Laos                │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│33│ Slovenia            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│34│ Lithuania           │          4 │          5 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│35│ Antigua             │          0 │          1 │         +1 │<br>│  │ and Barbuda         │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│36│ Namibia             │          0 │          1 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│37│ Thailand            │          3 │          4 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│38│ West Bank           │          0 │          1 │         +1 │<br>│  │ and Gaza            │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│39│ Estonia             │          1 │          4 │         +3 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│40│ Austria             │         39 │         46 │         +7 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│41│ Suriname            │          0 │          9 │         +9 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│42│ Czechia             │         26 │         38 │        +12 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│43│ China               │          5 │         18 │        +13 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│44│ Libya               │          0 │         26 │        +26 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│45│ Korea, South        │          8 │         35 │        +27 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│46│ Israel              │         23 │         59 │        +36 │<br>╘══╧═════════════════════╧════════════╧════════════╧════════════╛</pre><p>第二群（圖 b，群聚 0 ）包含 36 個國家， 包括日本、丹麥、葡萄牙、馬來西亞、荷蘭等。這些國家也是已經過其高峰期一段時間，但沒有前一群那麼久，其新增病例數也還未到達相對較低的數值區，但明顯是已經下降了一段時間的階段。如下表顯示，這些國家在過去28天的下降幅度相對前一群聚較大，因爲他們已進入穩定的下降趨勢並且還在下降中。</p><pre>Cluster-0 <br>╒═══╤════════════════════╤════════════╤════════════╤════════════╕<br>│   │ Country/Region     │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞═══╪════════════════════╪════════════╪════════════╪════════════╡<br>│ 0 │ Ecuador            │       2074 │        527 │      -1547 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 1 │ Italy              │       1389 │        333 │      -1056 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 2 │ Turkey             │       1670 │        839 │       -831 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 3 │ Japan              │        306 │         35 │       -271 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 4 │ Ireland            │        330 │         61 │       -269 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 5 │ Belgium            │        389 │        195 │       -194 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 6 │ Netherlands        │        335 │        185 │       -150 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 7 │ Denmark            │        116 │         36 │        -80 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 8 │ Serbia             │        102 │         31 │        -71 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 9 │ Malaysia           │        122 │         57 │        -65 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│10 │ Hungary            │         56 │          9 │        -47 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│11 │ Finland            │         78 │         33 │        -45 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│12 │ Kosovo             │         28 │          0 │        -28 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│13 │ Cuba               │         38 │         20 │        -18 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│14 │ Niger              │         14 │          2 │        -12 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│15 │ Burkina Faso       │         10 │          0 │        -10 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│16 │ Malta              │          9 │          0 │         -9 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│17 │ Latvia             │          8 │          1 │         -7 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│18 │ Burma              │          4 │          0 │         -4 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│19 │ San Marino         │          2 │          0 │         -2 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│20 │ Uruguay            │          3 │          2 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│21 │ Jamaica            │          6 │          5 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│22 │ Slovakia           │          1 │          0 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│23 │ Holy See           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│24 │ Timor-Leste        │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│25 │ Bahamas            │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│26 │ Saint Vincent      │          0 │          0 │         +0 │<br>│   │ and the Grenadines │            │            │            │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│27 │ Papua New Guinea   │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│28 │ Botswana           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│29 │ Grenada            │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│30 │ Tanzania           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│31 │ Benin              │          0 │          8 │         +8 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│32 │ Albania            │          6 │         15 │         +9 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│33 │ Georgia            │          7 │         26 │        +19 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│34 │ North Macedonia    │          5 │         62 │        +57 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│35 │ Portugal           │         92 │        297 │       +205 │<br>╘═══╧════════════════════╧════════════╧════════════╧════════════╛</pre><p>第三群（圖c，群聚2）有 42 個國家，包括美國、英國、加拿大、俄羅斯、新加坡等。這些國家剛經過其最高峰，並呈現開始下降的趨勢。這些國家的過去28天下降幅度又比前兩者大（如下表顯示）。另一方面，有幾個正在上升中的國家也被誤歸類在這一群，包括伊朗、印尼及菲律賓等。這三個國家的月線移動平均也呈現大幅度上升中。</p><pre>Cluster-2 <br>╒════╤══════════════════╤════════════╤════════════╤════════════╕<br>│    │ Country/Region   │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞════╪══════════════════╪════════════╪════════════╪════════════╡<br>│  0 │ US               │      25501 │      20007 │      -5494 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  1 │ United Kingdom   │       4342 │       1937 │      -2405 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  2 │ Canada           │       2578 │        798 │      -1780 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  3 │ Russia           │      10633 │       9268 │      -1365 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  4 │ Romania          │        431 │        124 │       -307 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  5 │ Morocco          │        174 │         27 │       -147 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  6 │ Singapore        │        657 │        518 │       -139 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  7 │ Poland           │        318 │        215 │       -103 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  8 │ Algeria          │        179 │        127 │        -52 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  9 │ Ukraine          │        502 │        468 │        -34 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 10 │ Bulgaria         │         24 │         14 │        -10 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 11 │ Mali             │         19 │         15 │         -4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 12 │ Paraguay         │         26 │         22 │         -4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 13 │ Cote d&#39;Ivoire    │         36 │         34 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 14 │ Eswatini         │          4 │          2 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 15 │ Bosnia           │         18 │         16 │         -2 │<br>│    │ and Herzegovina  │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 16 │ Gambia           │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 17 │ Sri Lanka        │         13 │         13 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 18 │ Guinea-Bissau    │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 19 │ Guinea           │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 20 │ Kyrgyzstan       │         26 │         26 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 21 │ Guyana           │          0 │          1 │         +1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 22 │ Dominican        │        376 │        377 │         +1 │<br>│    │ Republic         │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 23 │ Cabo Verde       │         13 │         14 │         +1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 24 │ Liberia          │          4 │          8 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 25 │ Rwanda           │          4 │         11 │         +7 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 26 │ Somalia          │         51 │         60 │         +9 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 27 │ Belarus          │        877 │        898 │        +21 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 28 │ Congo            │          0 │         40 │        +40 │<br>│    │ (Brazzaville)    │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 29 │ Senegal          │         67 │        110 │        +43 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 30 │ Uzbekistan       │         31 │         77 │        +46 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 31 │ Moldova          │         69 │        153 │        +84 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 32 │ Maldives         │          8 │        101 │        +93 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 33 │ United Arab      │        564 │        661 │        +97 │<br>│    │ Emirates         │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 34 │ Sweden           │        235 │        429 │       +194 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 35 │ Ghana            │          0 │        302 │       +302 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 36 │ Saudi Arabia     │       1552 │       1877 │       +325 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 37 │ Indonesia        │        349 │        700 │       +351 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 38 │ Kazakhstan       │         63 │        476 │       +413 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 39 │ Panama           │          0 │        445 │       +445 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 40 │ Philippines      │        295 │        862 │       +567 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 41 │ Iran             │        976 │       2516 │      +1540 │<br>╘════╧══════════════════╧════════════╧════════════╧════════════╛</pre><p>最後一群（圖d，群聚3）由 61 個國家組成，包括巴西、印度、肯亞、巴基斯坦等。這些國家正處於大幅度上升的趨勢中。過去 28 天，這 61 個國家的新增病例數都明顯的在持續增加中。其中三個國家曾在大概第 12 週的時候到達一個新增病例的高峰，然後進入下降的趨勢，並且在近 28 天之中又進入上升趨勢，這三個國家是 哥斯達黎加、約旦、及黎巴嫩。另外，從前一階段的觀察也發現，伊朗也由類似這三個國家的趨勢，但其被誤歸類在了前一群。從下表可以看到，這一大群的國家的每日新增病例數正在大幅度的持續上升中。</p><pre>Cluster-3 <br>╒════╤══════════════════╤════════════╤════════════╤════════════╕<br>│    │ Country/Region   │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞════╪══════════════════╪════════════╪════════════╪════════════╡<br>│  0 │ Zambia           │          5 │          0 │         -5 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  1 │ Sierra Leone     │         11 │          9 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  2 │ South Sudan      │          1 │          0 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  3 │ Madagascar       │         14 │         13 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  4 │ Nicaragua        │          1 │          0 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  5 │ Comoros          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  6 │ Equatorial       │          0 │          0 │         +0 │<br>│    │ Guinea           │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  7 │ Syria            │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  8 │ Cameroon         │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  9 │ Gabon            │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 10 │ Mongolia         │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 11 │ Burundi          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 12 │ Lesotho          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 13 │ Angola           │          0 │          2 │         +2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 14 │ Costa Rica       │          6 │          9 │         +3 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 15 │ Uganda           │          1 │          4 │         +3 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 16 │ Jordan           │          1 │          5 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 17 │ Sao Tome         │          0 │          4 │         +4 │<br>│    │ and Principe     │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 18 │ Malawi           │          1 │          5 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 19 │ Zimbabwe         │          0 │          4 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 20 │ Togo             │          1 │          9 │         +8 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 21 │ Mozambique       │          1 │         10 │         +9 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 22 │ Bhutan           │          0 │         10 │        +10 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 23 │ Yemen            │          0 │         13 │        +13 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 24 │ Chad             │          0 │         19 │        +19 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 25 │ Lebanon          │          4 │         29 │        +25 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 26 │ Venezuela        │         12 │         51 │        +39 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 27 │ Kenya            │         30 │         74 │        +44 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 28 │ Mauritania       │          0 │         47 │        +47 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 29 │ Central          │          0 │         49 │        +49 │<br>│ 29 │ African Republic │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 30 │ Honduras         │         45 │        108 │        +63 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 31 │ Tajikistan       │         52 │        123 │        +71 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 32 │ El Salvador      │         44 │        122 │        +78 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 33 │ Colombia         │        383 │        485 │       +102 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 34 │ Congo (Kinshasa) │          0 │        104 │       +104 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 35 │ Ethiopia         │          2 │        109 │       +107 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 36 │ Nigeria          │        170 │        307 │       +137 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 37 │ Nepal            │         16 │        171 │       +155 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 38 │ Djibouti         │          0 │        160 │       +160 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 39 │ Iraq             │         77 │        260 │       +183 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 40 │ Azerbaijan       │         38 │        248 │       +210 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 41 │ Sudan            │          0 │        226 │       +226 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 42 │ Armenia          │        113 │        355 │       +242 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 43 │ Haiti            │          3 │        259 │       +256 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 44 │ Bolivia          │        124 │        390 │       +266 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 45 │ Guatemala        │         15 │        348 │       +333 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 46 │ Afghanistan      │        235 │        680 │       +445 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 47 │ Kuwait           │        364 │        851 │       +487 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 48 │ Bahrain          │         99 │        605 │       +506 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 49 │ Argentina        │        102 │        637 │       +535 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 50 │ Oman             │         85 │       1014 │       +929 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 51 │ Qatar            │        679 │       1648 │       +969 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 52 │ Egypt            │        272 │       1536 │      +1264 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 53 │ South Africa     │        447 │       1716 │      +1269 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 54 │ Mexico           │       1383 │       3152 │      +1769 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 55 │ Bangladesh       │        665 │       2545 │      +1880 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 56 │ Pakistan         │        981 │       3039 │      +2058 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 57 │ Chile            │       1228 │       4830 │      +3602 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 58 │ Peru             │       3394 │       8805 │      +5411 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 59 │ India            │       2806 │       8782 │      +5976 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 60 │ Brazil           │       4726 │      16409 │     +11683 │<br>╘════╧══════════════════╧════════════╧════════════╧════════════╛</pre><p>下圖是將四大群分別進行國家的新增病例數加總，並計算四群分別的移動平均結果。在過去 28 天中，第一群的每日新增病例數維持在較低的數值，第二群則是持續下降中，第三群剛進入下降趨勢，第四群則持續上升中。第四群的最大及最近的每日新增病例數高達 8萬，這是比其他三群的最高峰都來的更高的數值。第四群的這 61 個國家的每日新增病例數依然在快速上升中，這是一件非常令人擔憂的事。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY8HPrcjAg96kz5XauW3KQ.png" /><figcaption>四群國家的每日新增病例數加總趨勢圖。</figcaption></figure><p>這裡稍微說明一下，上面的分析是應用月線移動平均，也就是相對較穩定，並且較不會對每天波動所引起的趨勢變化而敏感的月線，來進行群聚分析。但也因爲不敏感，也就是因爲月線是過去 28 天的移動平均，其對趨勢的反映速度也相對較緩慢，有 四週的延遲（lag）。這可能是造成分析中上面提到的一些誤判的原因之一。如果應用雙週線或週線也許可以減輕這個問題，但那樣也就需要更注意其可能會受到日線的高敏感性而反映太快造成的分析結果的敏感。</p><h3>結語</h3><p>上述分析透過兩個尺度所分析結果都得到一致的結論：很多國家的新增案例數依然在上升中，導致全球趨勢還在持續變得更嚴峻。雖然 19肺炎在不少已發展國家中獲得了不錯的控制，但 19 肺炎仍然持續在很多發展中國家或第三世界國家中進行大規模肆虐。而且，基本上可以預期在這些國家所通報的病例數是低估的，一方面因爲這些國家的醫療系統與疾病應對措施的不完善，另一方面則是因爲 19 肺炎的症狀包含輕度（看不出來或在某些情況下病人忌醫）的狀況，從而存在無法被偵測到的病例。目前，大部分的「強國」或較富有的國家都剛被 19 肺炎所衝擊，其資源、經費都緊縮或轉移到重振國家內部的經濟，所以不太可能在這時候對於第四群的那些國家施以援手。最後回到本文最初的目的的答案是：經過四個月的19肺炎大流行之後，危機尚未解除。</p><p>相關文章:</p><p><a href="https://medium.com/@wcchin.88/are-we-safe-now-the-incidence-trends-of-covid-19-in-may-2020-b0ae20cd123b">Are we safe now? The incidence trends of COVID-19 in May 2020.</a> (2020/06/03)</p><p><a href="https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00">Covid-19 in 100 days: A simple observation report</a> (2020/05/03)</p><p><a href="https://medium.com/@wcchin.88/2019-%E5%86%A0%E7%8B%80%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E-covid-19-%E7%9A%84%E7%99%BE%E6%97%A5%E8%A7%80%E5%AF%9F%E5%A0%B1%E5%91%8A-6c52cec1fa9a">2019 冠狀病毒肺炎 (Covid-19) 的百日觀察報告</a> (2020/05/04)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84973aa99be4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are we safe now? The incidence trends of COVID-19 in May 2020.]]></title>
            <link>https://medium.com/@wcchin.88/are-we-safe-now-the-incidence-trends-of-covid-19-in-may-2020-b0ae20cd123b?source=rss-12446182e489------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0ae20cd123b</guid>
            <category><![CDATA[disease-incidence]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[epidemic]]></category>
            <category><![CDATA[pandemic]]></category>
            <dc:creator><![CDATA[Benny Chin]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 09:45:48 GMT</pubDate>
            <atom:updated>2020-06-09T16:04:08.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3s5gXHkh-l0civeswN59Pw.png" /><figcaption>The global daily new cases, and the simple moving average lines for 7 days (weekly), 14 days (bi-weekly), and 28 days (monthly). If we view the incidence globally, there is a stable number of new cases in the last two months, and the trend seems like going up again at the end of May — the weekly line is leading the monthly line to move up.</figcaption></figure><p>It’s about four months since the war between COVID-19 and mankind has started. One of the critical questions that we want to know is that <strong><em>ARE WE SAFE NOW</em></strong>? This article intended to give some information regarding that question, in two scales: <strong>globally</strong> and <strong>by country</strong>. Then, I tried to group the countries with similar trends in the last month, using an (unsupervised) clustering method.</p><h3>Data</h3><p>Same as my previous <a href="https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00">article</a>, the data is obtained from the COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. The data repository is on Github: <a href="https://github.com/CSSEGISandData/COVID-19">https://github.com/CSSEGISandData/COVID-19</a> (accessed on 1st June 2020).</p><h3>Global level Analysis</h3><p>The global COVID-19 situation is shown in the cover picture (above) of this article. In which, the number of global new cases (blue line), and the three simple moving average (weekly in orange, bi-weekly in green, and monthly in red lines) by weeks since Jan 22 are presented.</p><p>Base on this figure, we can observe that the global incidence of COVID-19 has a stable growth started in April, and which continues to May, then it shows a potential increment again. So in simple words, viewing globally, <strong>NO</strong>, the pandemic situation is still <strong>ONGOING</strong>, and is becoming worse during the last month. Plus, it is safe to expect that the official reported incidence is an underestimated case number because there are some proportion of COVID-19 patients were not getting tests and treatments, especially in the countries without a complete health-care system and adequate resources even before the pandemic.</p><h3>Country level Analysis</h3><p>In 2020 May, some of the previously locked-down countries/cities had planned or started to reopen — resuming to their normal lives. Those countries/cities had been facing a critical outbreak situation before April or May and eventually entering to some levels of city/country lock-downs to restrict the movement of people, and the spread of the virus. After few weeks of stay at home, work/study from home, and a lot of efforts on the disease control, the disease situation in these countries/cities seems to be under control — that their new cases are decreasing and their active cases started to decrease as well.</p><p>The next figure shows the new incidence case number, along with its weekly, bi-weekly, and monthly moving averages, of 24 countries. The 8 countries in the first two rows, including France, Italy, Spain, Germany, Australia, Japan, South Korea, and Thailand, have a relatively low number of new cases in the last four weeks; it seems like these countries have gone through their peak of new cases for a while now.</p><p>For the middle 8 countries, including Canada, United Kingdom, United State of America, Russia, Singapore, Malaysia, Portugal, and Ukraine, they have just passed their peak of new cases, and heading down during the last four weeks; it is worth to mention that Malaysia’s monthly line is lower than the weekly line in the last few days, indicating that the daily and weekly line is probably leading the bi-weekly and monthly lines to move up.</p><p>The last 8 countries are getting worse during the last month, including India, Indonesia, Iraq, Iran, Philippines, Brazil, Kenya, and Egypt; in which Iran has been heading downward since week-10, and moving up again after week-15.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AecVj10qmakVBVjPyBtpTw.png" /><figcaption>The simple moving average for the 24 countries. The 8 countries in the first two rows have passed the peak and moved downward for a while. The 8 countries in the third and fourth rows have just passed the peak and started to move downward. The 8 countries in the bottom two rows have been moving upward in the last four weeks.</figcaption></figure><h3>Clustering of countries with similar incidence trends during the last 28 days</h3><p>In the previous part, I observed 3 types of situations according to their last month patterns and selected 8 countries for each type to present the patterns. But what about the other countries? To automatically identify the pattern, I used a technique in data analysis — -clustering analysis. Clustering analysis is an unsupervised learning technique, that group multi-dimensional data into several groups with similar patterns. In this case, the new cases’ monthly moving average line in the last 28 days (each day as a dimension, the value was normalized using a feature scaling function) was used to represent the trend of a country.</p><p>For this quick analysis, I used a clustering algorithm named k-means clustering. K-means clustering algorithm takes a parameter k, which is the number of expected cluster numbers, which can be determined through an assessment metric, silhouette score, with multiple trials of different k values. For this dataset, the optimized k value is 4, which silhouette score is about 0.478 (the highest for 2&lt;=k&lt;=10). The patterns of countries in the four clusters are presented in the following figure. The patterns were not as clean as expected, that there are some unexpected and not aligned up and downtrend in the four figures. Some conflicting patterns with the previous individual country trend existed, e.g. Iran, Indonesia, and the Philippines are grouped as in Cluster-2. This could be improved with an advanced clustering algorithm. But still, there are some similar trends in each figure worth observing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZKzzwJ7oclge9dQOEJjtA.png" /><figcaption>The k-means clustering result using the feature scaling of the last 28 days’ (in between the two vertical dashed lines) monthly simple moving average lines with k=4.</figcaption></figure><p>The first cluster ((a) Cluster-1) consisted of 47 countries, including France, Norway, Germany, Australia, Thailand, etc. It seems like these countries had passed the peak for a relatively long time, and the number of new cases is lower than the other three clusters. The following table showed the number of new cases on May 3rd (28 days ago) and May 31, and the differences. The differences between the two dates are low for most countries in this cluster — the differences of the 35 countries (with index from 7 to 41) are between plus-minus-10.</p><pre>Cluster-1 <br>╒══╤═════════════════════╤════════════╤════════════╤════════════╕<br>│  │ Country/Region      │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞══╪═════════════════════╪════════════╪════════════╪════════════╡<br>│ 0│ Spain               │        884 │        251 │       -633 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 1│ Germany             │        697 │        221 │       -476 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 2│ France              │        407 │        257 │       -150 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 3│ Switzerland         │         88 │         17 │        -71 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 4│ Norway              │         38 │          3 │        -35 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 5│ Australia           │         23 │         10 │        -13 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 6│ Luxembourg          │         12 │          2 │        -10 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 7│ Croatia             │          8 │          0 │         -8 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 8│ Cyprus              │          8 │          0 │         -8 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│ 9│ Taiwan*             │          4 │          0 │         -4 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│10│ Greece              │          6 │          2 │         -4 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│11│ Tunisia             │          4 │          1 │         -3 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│12│ Vietnam             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│13│ Andorra             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│14│ Iceland             │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│15│ Barbados            │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│16│ Saint Lucia         │          1 │          0 │         -1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│17│ Fiji                │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│18│ Mauritius           │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│19│ New Zealand         │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│20│ Western Sahara      │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│21│ Montenegro          │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│22│ Cambodia            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│23│ Seychelles          │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│24│ Eritrea             │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│25│ Monaco              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│26│ Brunei              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│27│ Saint Kitts         │          0 │          0 │         +0 │<br>│  │ and Nevis           │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│28│ Liechtenstein       │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│29│ Belize              │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│30│ Trinidad            │          0 │          0 │         +0 │<br>│  │ and Tobago          │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│31│ Dominica            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│32│ Laos                │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│33│ Slovenia            │          0 │          0 │         +0 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│34│ Lithuania           │          4 │          5 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│35│ Antigua             │          0 │          1 │         +1 │<br>│  │ and Barbuda         │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│36│ Namibia             │          0 │          1 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│37│ Thailand            │          3 │          4 │         +1 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│38│ West Bank           │          0 │          1 │         +1 │<br>│  │ and Gaza            │            │            │            │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│39│ Estonia             │          1 │          4 │         +3 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│40│ Austria             │         39 │         46 │         +7 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│41│ Suriname            │          0 │          9 │         +9 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│42│ Czechia             │         26 │         38 │        +12 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│43│ China               │          5 │         18 │        +13 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│44│ Libya               │          0 │         26 │        +26 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│45│ Korea, South        │          8 │         35 │        +27 │<br>├──┼─────────────────────┼────────────┼────────────┼────────────┤<br>│46│ Israel              │         23 │         59 │        +36 │<br>╘══╧═════════════════════╧════════════╧════════════╧════════════╛</pre><p>The second cluster ((b) Cluster-0) contained 36 countries, including Japan, Denmark, Portugal, Malaysia, Netherlands, etc. These countries had passed the peak of new cases for some time, but not as long as the previous cluster. The decrements (as shown in the following table) are larger for this group than in the previous group because most of them are in a stable decreasing trend.</p><p><a href="https://plotly.com/~wcchin/351/">Cluster - 0, K-means clustering with new case count data for May 3 to May 31 period. | table made by Wcchin | plotly</a></p><pre>Cluster-0 <br>╒═══╤════════════════════╤════════════╤════════════╤════════════╕<br>│   │ Country/Region     │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞═══╪════════════════════╪════════════╪════════════╪════════════╡<br>│ 0 │ Ecuador            │       2074 │        527 │      -1547 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 1 │ Italy              │       1389 │        333 │      -1056 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 2 │ Turkey             │       1670 │        839 │       -831 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 3 │ Japan              │        306 │         35 │       -271 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 4 │ Ireland            │        330 │         61 │       -269 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 5 │ Belgium            │        389 │        195 │       -194 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 6 │ Netherlands        │        335 │        185 │       -150 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 7 │ Denmark            │        116 │         36 │        -80 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 8 │ Serbia             │        102 │         31 │        -71 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│ 9 │ Malaysia           │        122 │         57 │        -65 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│10 │ Hungary            │         56 │          9 │        -47 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│11 │ Finland            │         78 │         33 │        -45 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│12 │ Kosovo             │         28 │          0 │        -28 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│13 │ Cuba               │         38 │         20 │        -18 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│14 │ Niger              │         14 │          2 │        -12 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│15 │ Burkina Faso       │         10 │          0 │        -10 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│16 │ Malta              │          9 │          0 │         -9 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│17 │ Latvia             │          8 │          1 │         -7 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│18 │ Burma              │          4 │          0 │         -4 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│19 │ San Marino         │          2 │          0 │         -2 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│20 │ Uruguay            │          3 │          2 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│21 │ Jamaica            │          6 │          5 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│22 │ Slovakia           │          1 │          0 │         -1 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│23 │ Holy See           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│24 │ Timor-Leste        │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│25 │ Bahamas            │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│26 │ Saint Vincent      │          0 │          0 │         +0 │<br>│   │ and the Grenadines │            │            │            │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│27 │ Papua New Guinea   │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│28 │ Botswana           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│29 │ Grenada            │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│30 │ Tanzania           │          0 │          0 │         +0 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│31 │ Benin              │          0 │          8 │         +8 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│32 │ Albania            │          6 │         15 │         +9 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│33 │ Georgia            │          7 │         26 │        +19 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│34 │ North Macedonia    │          5 │         62 │        +57 │<br>├───┼────────────────────┼────────────┼────────────┼────────────┤<br>│35 │ Portugal           │         92 │        297 │       +205 │<br>╘═══╧════════════════════╧════════════╧════════════╧════════════╛</pre><p>The third cluster (( c ) Custer-2) is composed of 42 countries, including the US, UK, Canada, Russia, Singapore, etc. These countries have just passed the peak of new cases and started to go downward. The decreasing number of new cases is larger than the previous two clusters (as shown in the following table). On the other hand, several countries that look to be increasing are also grouped into this cluster, e.g. Iran, Indonesia, and the Philippines. These three countries’ moving average pattern in the previous analysis are increasing.</p><pre>Cluster-2 <br>╒════╤══════════════════╤════════════╤════════════╤════════════╕<br>│    │ Country/Region   │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞════╪══════════════════╪════════════╪════════════╪════════════╡<br>│  0 │ US               │      25501 │      20007 │      -5494 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  1 │ United Kingdom   │       4342 │       1937 │      -2405 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  2 │ Canada           │       2578 │        798 │      -1780 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  3 │ Russia           │      10633 │       9268 │      -1365 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  4 │ Romania          │        431 │        124 │       -307 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  5 │ Morocco          │        174 │         27 │       -147 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  6 │ Singapore        │        657 │        518 │       -139 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  7 │ Poland           │        318 │        215 │       -103 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  8 │ Algeria          │        179 │        127 │        -52 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  9 │ Ukraine          │        502 │        468 │        -34 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 10 │ Bulgaria         │         24 │         14 │        -10 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 11 │ Mali             │         19 │         15 │         -4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 12 │ Paraguay         │         26 │         22 │         -4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 13 │ Cote d&#39;Ivoire    │         36 │         34 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 14 │ Eswatini         │          4 │          2 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 15 │ Bosnia           │         18 │         16 │         -2 │<br>│    │ and Herzegovina  │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 16 │ Gambia           │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 17 │ Sri Lanka        │         13 │         13 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 18 │ Guinea-Bissau    │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 19 │ Guinea           │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 20 │ Kyrgyzstan       │         26 │         26 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 21 │ Guyana           │          0 │          1 │         +1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 22 │ Dominican        │        376 │        377 │         +1 │<br>│    │ Republic         │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 23 │ Cabo Verde       │         13 │         14 │         +1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 24 │ Liberia          │          4 │          8 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 25 │ Rwanda           │          4 │         11 │         +7 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 26 │ Somalia          │         51 │         60 │         +9 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 27 │ Belarus          │        877 │        898 │        +21 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 28 │ Congo            │          0 │         40 │        +40 │<br>│    │ (Brazzaville)    │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 29 │ Senegal          │         67 │        110 │        +43 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 30 │ Uzbekistan       │         31 │         77 │        +46 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 31 │ Moldova          │         69 │        153 │        +84 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 32 │ Maldives         │          8 │        101 │        +93 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 33 │ United Arab      │        564 │        661 │        +97 │<br>│    │ Emirates         │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 34 │ Sweden           │        235 │        429 │       +194 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 35 │ Ghana            │          0 │        302 │       +302 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 36 │ Saudi Arabia     │       1552 │       1877 │       +325 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 37 │ Indonesia        │        349 │        700 │       +351 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 38 │ Kazakhstan       │         63 │        476 │       +413 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 39 │ Panama           │          0 │        445 │       +445 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 40 │ Philippines      │        295 │        862 │       +567 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 41 │ Iran             │        976 │       2516 │      +1540 │<br>╘════╧══════════════════╧════════════╧════════════╧════════════╛</pre><p>The last cluster ((d) Cluster-3) contains 61 countries, including Brazil, India, Kenya, Egypt, Pakistan, etc. These countries are all experiencing the increment trend, which can be observed from the figure that almost all of them are going up in the last 28 days. Three of these countries had reached their peak of new case number once on about the 12th weeks. The three countries are Costa Rica, Jordan, and Lebanon. These countries are grouped here because their trend of new cases is going up again during the last 28 days. Another country with similar patterns is Iran, which was mistakenly grouped to the Cluster-2. As shown in the following table, most of these countries’ new case numbers are increasing in a large value.</p><pre>Cluster-3 <br>╒════╤══════════════════╤════════════╤════════════╤════════════╕<br>│    │ Country/Region   │ 2020/05/03 │ 2020/05/31 │ difference │<br>╞════╪══════════════════╪════════════╪════════════╪════════════╡<br>│  0 │ Zambia           │          5 │          0 │         -5 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  1 │ Sierra Leone     │         11 │          9 │         -2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  2 │ South Sudan      │          1 │          0 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  3 │ Madagascar       │         14 │         13 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  4 │ Nicaragua        │          1 │          0 │         -1 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  5 │ Comoros          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  6 │ Equatorial       │          0 │          0 │         +0 │<br>│    │ Guinea           │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  7 │ Syria            │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  8 │ Cameroon         │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│  9 │ Gabon            │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 10 │ Mongolia         │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 11 │ Burundi          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 12 │ Lesotho          │          0 │          0 │         +0 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 13 │ Angola           │          0 │          2 │         +2 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 14 │ Costa Rica       │          6 │          9 │         +3 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 15 │ Uganda           │          1 │          4 │         +3 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 16 │ Jordan           │          1 │          5 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 17 │ Sao Tome         │          0 │          4 │         +4 │<br>│    │ and Principe     │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 18 │ Malawi           │          1 │          5 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 19 │ Zimbabwe         │          0 │          4 │         +4 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 20 │ Togo             │          1 │          9 │         +8 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 21 │ Mozambique       │          1 │         10 │         +9 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 22 │ Bhutan           │          0 │         10 │        +10 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 23 │ Yemen            │          0 │         13 │        +13 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 24 │ Chad             │          0 │         19 │        +19 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 25 │ Lebanon          │          4 │         29 │        +25 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 26 │ Venezuela        │         12 │         51 │        +39 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 27 │ Kenya            │         30 │         74 │        +44 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 28 │ Mauritania       │          0 │         47 │        +47 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 29 │ Central          │          0 │         49 │        +49 │<br>│ 29 │ African Republic │            │            │            │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 30 │ Honduras         │         45 │        108 │        +63 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 31 │ Tajikistan       │         52 │        123 │        +71 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 32 │ El Salvador      │         44 │        122 │        +78 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 33 │ Colombia         │        383 │        485 │       +102 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 34 │ Congo (Kinshasa) │          0 │        104 │       +104 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 35 │ Ethiopia         │          2 │        109 │       +107 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 36 │ Nigeria          │        170 │        307 │       +137 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 37 │ Nepal            │         16 │        171 │       +155 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 38 │ Djibouti         │          0 │        160 │       +160 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 39 │ Iraq             │         77 │        260 │       +183 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 40 │ Azerbaijan       │         38 │        248 │       +210 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 41 │ Sudan            │          0 │        226 │       +226 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 42 │ Armenia          │        113 │        355 │       +242 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 43 │ Haiti            │          3 │        259 │       +256 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 44 │ Bolivia          │        124 │        390 │       +266 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 45 │ Guatemala        │         15 │        348 │       +333 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 46 │ Afghanistan      │        235 │        680 │       +445 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 47 │ Kuwait           │        364 │        851 │       +487 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 48 │ Bahrain          │         99 │        605 │       +506 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 49 │ Argentina        │        102 │        637 │       +535 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 50 │ Oman             │         85 │       1014 │       +929 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 51 │ Qatar            │        679 │       1648 │       +969 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 52 │ Egypt            │        272 │       1536 │      +1264 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 53 │ South Africa     │        447 │       1716 │      +1269 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 54 │ Mexico           │       1383 │       3152 │      +1769 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 55 │ Bangladesh       │        665 │       2545 │      +1880 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 56 │ Pakistan         │        981 │       3039 │      +2058 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 57 │ Chile            │       1228 │       4830 │      +3602 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 58 │ Peru             │       3394 │       8805 │      +5411 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 59 │ India            │       2806 │       8782 │      +5976 │<br>├────┼──────────────────┼────────────┼────────────┼────────────┤<br>│ 60 │ Brazil           │       4726 │      16409 │     +11683 │<br>╘════╧══════════════════╧════════════╧════════════╧════════════╛</pre><p>The following figure showed the aggregated new cases and simple moving averages according to the clustering results. In the past 28 days, the new case number is low for the first cluster, reduced to a low level for the second cluster, showed a sign of decreasing in the third cluster, and continued to increase in the fourth cluster. The largest and latest daily new cases in the fourth cluster are about 80 thousand, which is higher than the other three clusters’ peaks. And the fourth cluster, containing 61 countries, is still in their increment trend currently, which is very worrying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iY8HPrcjAg96kz5XauW3KQ.png" /><figcaption>The aggregated number of new cases of the four clusters.</figcaption></figure><p>It is worth to mention that I used the monthly lines, which is more stable and not sensitive to the daily fluctuation, to perform the clustering analysis. But, because of the nature of the moving average is calculated for the past 28 days, the monthly lines are also slower than the others, i.e. monthly lines have about four weeks lag. This may be one of the reasons that are causing the incorrectness of the clusters. Thus, changing to bi-weekly or weekly may be one way to reduce the issue.</p><h3>Closing remarks</h3><p>The findings in the analyses of the two scales are telling the same result: the number of new cases (incidence) is continue to grow in many countries. Although the COVID-19 situation in many developed countries is about to get under control, the epidemic has just started in many developing countries or the so-called third world countries. We can expect that these countries have lower capabilities and a lack of resources to treat the disease or implement a complete strategy to deal with the epidemic situation. While the stronger and richer developed countries had just gone through their difficult time with the disease, it is hard for the world to give the forth cluster countries a hand with their COVID-19 battles. Therefore, the answer to the top critical question is: after four months of the COVID-19 epidemic, we are still not safe yet.</p><p>Related articles:</p><p><a href="https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00">Covid-19 in 100 days: A simple observation report</a> (2020/05/03)</p><p><a href="https://medium.com/@wcchin.88/%E8%82%BA%E7%82%8E%E5%8D%B1%E6%A9%9F%E8%A7%A3%E9%99%A4%E4%BA%86%E5%97%8E-%E5%88%86%E6%9E%902020%E5%B9%B45%E6%9C%88%E7%9A%84%E6%96%B0%E7%A2%BA%E8%A8%BA%E6%A1%88%E4%BE%8B%E8%AE%8A%E5%8C%96%E8%B6%A8%E5%8B%A2-84973aa99be4">肺炎危機解除了嗎？分析2020年5月的新確診案例變化趨勢</a> (2020/06/04)</p><p><a href="https://medium.com/@wcchin.88/2019-%E5%86%A0%E7%8B%80%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E-covid-19-%E7%9A%84%E7%99%BE%E6%97%A5%E8%A7%80%E5%AF%9F%E5%A0%B1%E5%91%8A-6c52cec1fa9a">2019 冠狀病毒肺炎 (Covid-19) 的百日觀察報告</a> (2020/05/04)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0ae20cd123b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2019 冠狀病毒肺炎 (Covid-19) 的百日觀察報告]]></title>
            <link>https://medium.com/@wcchin.88/2019-%E5%86%A0%E7%8B%80%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E-covid-19-%E7%9A%84%E7%99%BE%E6%97%A5%E8%A7%80%E5%AF%9F%E5%A0%B1%E5%91%8A-6c52cec1fa9a?source=rss-12446182e489------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c52cec1fa9a</guid>
            <category><![CDATA[新冠疫情]]></category>
            <category><![CDATA[2019冠狀病毒病]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Benny Chin]]></dc:creator>
            <pubDate>Mon, 04 May 2020 09:01:48 GMT</pubDate>
            <atom:updated>2020-05-04T09:01:48.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*TTH1MGT_rtIo7p0kT-sclg.png" /></figure><p>2019 冠狀病毒肺炎 (Covid-19，過去也被稱爲武漢肺炎、新冠肺炎等) 是一個正在進行中的全球大流行事件。自中國宣佈中國湖北省武漢市的封城（ 2020年1月 23日）以來，至今已超過 100日（4月30日）。Covid-19 是由一種被稱爲 SARS-CoV-2 的冠狀病毒所引起的疾病。Covid-19 最初在 2019年12月 被發現於中國的武漢市，隨後因大量民衆在農曆年前約十天起的中國春運（春節期間的交通運輸）的返鄉朝，致使大量在武漢工作的中國其他地區人民回鄉，並進而直接或間接的將疾病大量的擴散至中國其他城鎮。世界衛生組織（WHO）在1月30日發佈PHEIC。隨後，因 Covid-19 的高度傳染性（其傳染力相信是比 2003 年 SARS 的病毒 SARS-CoV-1 強上好幾倍），其開始在 2月快速的散播至世界各地，並引發當地的社區感染（即本土傳播病例，這些病例近期並沒有到武漢或中國的旅遊史）。在接下來的 3月，中國的疫情已在其官方的數據顯示爲逐漸的受控制，並且新發病例已大幅度降低，而此疾病的大爆發地 （epicenter）已轉移至歐洲。歐洲及世界各地的多個國家的 Covid-19 疫情在這時候也開始爆發，並且各國逐漸實施各種封城措施。</p><p>從武漢封城至今已過了三個多月（百日），此肺炎的疫情依然還在全球尺度持續進行中。全球感染人數超過三百萬。以下試着透過一些數據顯示 Covid-19 在經過百日的過程中，各國的疫情狀況。</p><h3>資料</h3><p>本次分析的資料主要是從 Johns Hopkins University (JHU) 的 Center for Systems Science and Engineering (CSSE) 所整理的 COVID-19 資料集所取得。其資料可以在 Github 上取得 （<a href="https://github.com/CSSEGISandData/COVID-19">https://github.com/CSSEGISandData/COVID-19</a>，獲取日爲 2020年5月1日）。人口數的資料則主要是從 The World Bank (<a href="https://data.worldbank.org/indicator/sp.pop.totl">https://data.worldbank.org/indicator/sp.pop.totl</a>) 所取得，其中缺少的國家或兩艘遊艇人數資料則是透過 Google 或 Worldometer 網站取得並手動加入。</p><p>接下來就看看應用這些資料所做的圖吧！</p><h3>全球趨勢</h3><p>下圖呈現的是全球確診病例數隨日（從 1月22日 爲第 0 天起算）。雖然數據顯示的與世界衛生組織的數字有些許出入，但整體的趨勢是一致的。從這張圖觀察藍線的趨勢，大致上可以觀察到，在疫情初期的上升速度「相對」來說是較緩慢的；在第 21 天有一個小的跳躍；然後在第 49 天（第 7 週，也就是 3月11 日）左右開始非常快速（指數）的上升。初期的相對緩慢上升主要是發生在中國境內，在大規模的封城與行動管制措施下，其疫情尚且逐漸的被控制下來。然而後期的迅速上升則是在全球尺度下的大規模爆發。這後期的大爆發（十萬至三百萬）的規模相對於早期的爆發（十位數至十萬）看起來相對緩慢。因此後面試着用另一種方式來呈現這百日的爆發趨勢。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*F9SO2OnJRWnQrMcgx5h90Q.png" /><figcaption>圖1- 全球 Covid-19 確診案例數。數據是透過從 JHU CSSE 取得的資料進行簡單的依國家加總。</figcaption></figure><p>如果將 Y軸的尺度改成對數尺度（取 log，以10爲底)，也就是用十倍間距，即用等間距來呈現十倍，從百至千、萬、十萬、百萬等，初期的相對較小數值的變化差異將被放大，而後期相對較大數值的變化差異則會被縮小。其結果如下圖所示。從這指數圖中可以觀察到，一開始至第 21天左右有快速的上升（從數百至十萬）的趨勢，這時候主要是發生至中國的案例數，也就是疫情快速在中國境內擴散的時期。在第 21天 之後，中國的通報新增案例數快速的降低，中國各大城市也逐漸的開始解封。正當中國的疫情看起來開始受控制，疫情開始在全球範圍內迅速擴散，包括美國、意大利、英國等多數歐洲國家。指數圖中的案例數從第 42 天開始至第 100 天期間又再次飛速上升，確診案例數從十萬上升至三百萬。在這期間，因爲疾病從有限的中國範圍擴散至全球各地，而也就是說潛在可感染者 (susceptible) 人數大幅度增加的情況下，疾病也就在世界各地以指數的速度上升。各國也逐漸開始施行不同層級的封鎖措施，包括全城封鎖、行動管制、增加人群社交距離（1公尺或2公尺等），以及對民衆勸導或規定在家上課、在家辦公等措施等。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*zgMuJAmMt7FA08HgutJflQ.png" /><figcaption>圖 2- 以對數尺度呈現全球 Covid-19 的確診個案數的趨勢。</figcaption></figure><p>有一點必須說明的是，雖然在後端，即第 91 天起，上升的幅度雖然在 圖2 中逐漸趨緩，但這是因爲這張圖是以對數進行呈現，在後段的案例數已達到數百萬的規模，其緩慢的上升速度在案例數上的上升速率也是很大的，即數百萬至數千萬的幅度。不過，在此指數圖中上升幅度趨緩也是一個好現象，即至少不是持續以指數上升的速度在發展。看起來，在疫情在多個國家（至少目前）呈現逐漸受控制的趨勢。</p><h3>各國確診個案的趨勢</h3><p>將確診個案分成依國家的案例數來呈現的圖如下 圖 3 顯示。在初期（第 42 天以前）主要只能觀察到中國的趨勢，表示在初期疫情主要是衝擊到中國。少數其他國家則是相對於中國的疫情來說都是比較輕微的，這些初期就有病例的國家主要包括泰國、新加坡、日本、以及南韓等。然而，在第 42 天 以後，大量的國家開始出現疫情，其中有好些國家的疫情更是超越中國的個案數。其中，美國的個案數遠超其他國家，案例數在百日上升至超過一百萬。即全球案例數的三分之一。因爲美國的數字相對其他國家高出許多，促使其他國家的案例數趨勢在這張圖中並不能很好的觀察，因爲都壓縮在一起了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*omkZR8RPi7kTAtpJIoNmqA.png" /><figcaption>圖 3- 以國家區分的案例數隨時間的疫情趨勢圖。這張圖並不好觀察，因爲看起來似乎只有美國進入危險的趨勢，而其他國家都很安全 —然而 事實並非如此。</figcaption></figure><p>下一張圖則（再次）將 Y 軸取對數進行呈現。透過取對數，大數值範圍（&gt;100,000）的差異被濃縮，而小數值範圍的差異則被強調。透過這樣的處理可以更好的觀察各國的疫情趨勢。圖4 的兩張圖分別標識了前十與前二十個案數的國家的疫情趨勢。其中，美國從第 63 天左右超越中國病例數起，就一直是案例數最多的國家。西班牙與意大利則有全球最多的第二、第三案例數。前20大案例數的國家中，大部分在第 77 天起上升速率相對減緩。其他持續上升的國家主要除了美國之外，還有俄羅斯、巴西、秘魯、印度、厄瓜多爾、及沙地阿拉伯。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTNeqeFZrswFQuqGgo6sow.png" /><figcaption>圖 4- 各國確診案例數： (a) 前10大案例數國家，(b) 前11至20大案例數國家。</figcaption></figure><p>上圖雖然可以清楚的呈現出各國的案例數發展趨勢，但這張圖並無法很好的提供比較各國趨勢的基準。舉例來說，西班牙跟意大利的後期案例數相近，是否就可以說明兩國的疫情趨勢相近？又，美國的人數明顯高於兩國，是否表示美國的處境相對那兩國更爲危險？美國人口數約爲3.3億，西班牙與意大利人口分別爲 4千6百萬 與 6千萬 。美國潛在可被感染人口遠大於西班牙與意大利。案例數高並不一定表示其情勢相對惡劣，有時也必須結合其他資訊，例如人口數等來配合觀察。</p><h3>各國確診病例數與人口數的關係</h3><p>從病理學來說，同樣病毒在不同國家的傳染力是可以被預期爲一樣的。但實際上， Covid-19 在各國的擴散速率不盡相同。有很多因素會促使各國的傳染速率有所差異。印象傳染力的因素包括人口數與密度、社經狀況、緯度、文化與社會行爲、人口移動形態、各國所進行的措施等。在這些因素之中，人口數是最基本且直接的影響因子，如前述提到的，人口數的高低直接反映當地的潛在可能被感染人數。</p><p>以下呈現的是在不同的人口數（橫軸）下，各國的疾病確診數（縱軸）的關係散步圖。 其中又六條左下至右上的參考線分別表示100%、十分之一、百分之一等確診個案比例。例如，假若某個國家的散佈點落在千分之一的參考線之上，表示該國每一千人至少有一人確診，若落在 100%則表示該國所有人口都患得此病，以此類推。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*p76Fe_izFYKBEdwtNJQVfw.gif" /><figcaption>圖 5- 各國確認人數與人口數的散佈圖。縱軸與橫軸都是以對數尺度繪製。六條斜對角線是六條參考線，亦即表示各國的感染人數比例。圖中20個標識的國家、遊艇表示的是最高比例的20個點。（另，最右邊的兩個點分別是中國與印度。）</figcaption></figure><p>下圖呈現的與上圖類似，只是固定在了最後一天 (4月30日)。標識的20個國家是確診比例最高的20個國家，也就是最靠近左上角。其中，美國是在最接近右上角的國家，表示其在最大的人口數的國家之中，確診病例也是最高的。有一個點（鑽石公主號）超出十分之一的參考線，也就是每 10 個人至少有一個確診。San Marino 與 Holy See 則是兩個超過百分之一的參考線（每百人至少有一人確診）。接下來則是前 20 大比例的國家中，大部分國家所落在的千分之一至百分之一之間的區塊。圖中靠左的那區的國家基本上人口不多，包括 Holy See, Monaco, Liechtenstein, San Marino, Andorra, Malta, Iceland, Djibouti ，其病例數雖然沒有其他擁有高人口數的國家（美國、西班牙、意大利、英國、德國、法國等）那麼高，但其病例數與人口的比例卻很高。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8fpd8sZKnSoVmG9Af6j9Q.png" /><figcaption>圖 6- 4月30日的確診病例數與人口數的散佈圖。標識的 20 個國家是具有最高比例的前 20 國家。</figcaption></figure><p>換言之，當我們在觀察各國 Covid-19 的疫情趨勢時，不只是需要注意其確診人數，也應該整合其人口數資訊等來進行觀察與討論。</p><h3>確診病例與人口數的比例趨勢</h3><p>在後面的兩張圖中，繪製的是確診病例數與各國人口的比例值隨時間的變化趨勢。病例數最高的十大國家標識於圖 7 ，而前二十大的國家則在圖 8 。這些標識的國家與前面的圖4 所標識的國家一致以供觀察。這二十大的國家並不是比例最高的 20 個國家，有一些線條甚至比他們高；這些線條主要是前述的一些人口數相對較低的國家所組成。總的來說，這 20 個國家在約 第 10 週之後的進展數度趨於緩慢。其中前十大中的 8 個國家與前二十大的 7 個國家的確診比例在 百日時落在了 千分之一之上，也就是每一千人至少有一人確診。其中，西班牙與比利時的確診比例是千分之四，美國、意大利、瑞士是千分之三，英國、法國、荷蘭、葡萄牙則是千分之二，剩下的是德國、土耳其、伊朗、加拿大、祕魯、厄瓜多爾是千分之一。換言之，西班牙的疫情危險程度高於美國。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yWaq5vvRKOPwLAiUDV9NjA.png" /><figcaption>圖 7- 從 1月 22日起確診病例數與人口數的比例隨時間的變化趨勢。縱軸也是取了對數。標識的是 十大確診人數的國家（與圖 4(a) 一致）。圖例中標識的國家後面的兩個數字分別爲確診人數與比例。</figcaption></figure><p>圖 7 中的兩個確診比例低於 千分之一的是俄羅斯與巴西，這兩個國家的發展趨勢在經過百日的現在仍然在上升中。圖 8 中有三個國家的確診比例低於千分之一，包括中國、沙地阿拉伯與印度。數據上中國在很早期的時候就停止了疫情的上升，確診比例停留在十萬分之六。沙地阿拉伯與印度的疫情趨勢則仍然在上升中。其中，印度的趨勢非常令人擔心，主要是其目前比例還算很低，表示該國境內仍然有很大量的潛在未被感染者。若該國無法推行有效的疾病控制措施，疫情很可能持續快速的上升。整體來說，透過目前的數據，很難預測接下來的幾週內全球疫情是否會整體趨於緩和。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESucJxFapK4ndtpVlYcmAA.png" /><figcaption>圖 8- 從 1月 22日起確診病例數與人口數的比例隨時間的變化趨勢。縱軸也是取了對數。標識的是前十至前二十大確診人數的國家（與圖 4(b) 一致）。圖例中標識的國家後面的兩個數字分別爲確診人數與比例。</figcaption></figure><p>如果單觀察圖 7–8 中的各線條變化趨勢，其趨勢與前述案例數（圖 4）的變化趨勢是一致的，因爲 圖 7–8 中的各國比例，是除以其國內人口數，既分別是一個常數。兩組圖之間的差異在於數值上，圖 4 是直接呈現人口數，因此例如美國人口衆多，在差不多的比例下其被感染的人數也就較高，而圖 7–8 則是反映每多少人中有多少人確診。計算確診比例的好處主要是讓我們可以更直接的在控制了人口數的差異的情況下，疫情危險程度的高低。</p><h3>結語</h3><p>本文所提供的觀察報告主要是想在 Covid-19 發生後的一百日，提供一個現今的疫情發展趨勢的簡單報告與討論。在本文中我所關注的主要是各國的確診人口數，並嘗試比較各國之間的疫情趨勢，所以我把各國確診數除以各國人口數。當然，病例數可以反映一個國家所正在面對的疫情危機度，例如美國目前的疫情是非常危險的；但其他國家，例如西班牙等前述的國家也是特別需要注意的，尤其是那些目前確診比例仍然在持續上升中的國家（包括俄羅斯、巴西、沙地阿拉伯、印度）。整體來說，在觀察數字的時候我們需要非常的小心謹慎。</p><p>Covid-19 是一個高傳染力的疾病，其具有一個大約14天的潛伏期與無症狀的階段的狀況。換言之，當我們所能觀察到疫情的數字的變化，亦即得知確診人數的時候，其實「傳染」事件早已在兩週前就發生。而我們現今所做的是否有效，也只能等兩週之後才知道。</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>本文英文版見這裏：<a href="https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00">https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c52cec1fa9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Covid-19 in 100 days: A simple observation report]]></title>
            <link>https://medium.com/@wcchin.88/covid-19-in-100-days-a-simple-observation-report-677348ab5d00?source=rss-12446182e489------2</link>
            <guid isPermaLink="false">https://medium.com/p/677348ab5d00</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[global-health]]></category>
            <dc:creator><![CDATA[Benny Chin]]></dc:creator>
            <pubDate>Sun, 03 May 2020 13:14:57 GMT</pubDate>
            <atom:updated>2020-05-04T09:06:10.905Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*TTH1MGT_rtIo7p0kT-sclg.png" /></figure><p>Covid-19 is an ongoing global pandemic. Starting from Jan 23rd, 2020 when China announced the lockdown of the city of Wuhan, Hubei Province of China, it had been 100 days (on Apr 30th) since the SARS-CoV-2 virus that cause Covid-19 (formerly known as 2019-nCoV) hit the Earth. Wuhan City is the first place where the first outbreak of Covid-19 occurred and reported since Dec of 2019. The disease quickly spread through China as a result of the extremely massive flow of non-local workers before the Chinese New Year (CNY), when people are going back to their hometown to celebrate CNY once a year with their family. As Covid-19 is extremely contagious (which is believed to be more contagious than the 2003 SARS-CoV-1), the disease quickly spreads internationally and causing the local community transmission and outbreak at those countries in Feb, after the announcement of PHEIC by WHO on Jan 30; and the epicenter of the outbreak has moved to Europe on early Mar when the number of new confirmed cases drop quickly at China. Many countries imposed the city or national levels lockdown measure starting from the end of Feb or in Mar. Covid-19 is recognized as a global pandemic, and it is a currently ongoing issue.</p><p>After about 14 weeks (100 days) since the first Covid-19 lockdown at Wuhan City, the number of confirmed cases surpassed 3,000,000 globally. The following would present some short and simple observations on the Covid-19.</p><h3>Data</h3><p>The data is obtained from the COVID-19 Data Repository by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. The data repository is on Github: <a href="https://github.com/CSSEGISandData/COVID-19">https://github.com/CSSEGISandData/COVID-19</a> (accessed on 1st May 2020). The population size data is mainly extracted from The World Bank (<a href="https://data.worldbank.org/indicator/sp.pop.totl">https://data.worldbank.org/indicator/sp.pop.totl</a>), some missing countries or cruises data are manually added in from the Worldometer website and Google.</p><h3>A quick global view</h3><p>The following figure shows the global total confirmed cases by days since Jan 22 (as day-0). Although the data is slightly inconsistent with the WHO numbers, the trends are similar. Based on the blue line in the plot, the trend of total cases can be observed as starting to rise slowly at the start, a small jump on day-21, and quickly increase after day-49 (7th weeks, around Mar 11). This is because the increment of cases is extremely large after day-49 (from about 100,000 to 3,000,000), which happened globally, making the increment before that (0 to 100,000), in which the majority of the cases occurred in China, looks slower. So the next figure will try to show the trends before the global pandemic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*F9SO2OnJRWnQrMcgx5h90Q.png" /><figcaption>Figure 1. The global confirmed cases of Covid-19, a simple summation of cases across countries were done based on the dataset from the JHU CSSE repository.</figcaption></figure><p>If we change the y-axis to log-scale (log 10 scale), i.e. hundred, thousand, ten thousand, hundred thousand, the increments at the early stage of the trend would be emphasized, which is shown in the following figure. In the log y-scale figure, there is a quick increment (approx. from thousands to hundred thousand) from the start to day-21 (3 weeks). These are the quick increment of reported cases mainly in China; the low amount of new cases are reported in the country after those days, and the cities in China are started to “unlock” from the lockdown measure. While it looks like the situation is being controlled in China, the situation has gone bad in many countries globally, including the USA, Italy, UK, and many countries in Europe. The log-trend climb again starting from day-42 (6 weeks) to day 100 (14 weeks), and the number of global cases is increased from 100,000 to 3,000,000. During this period, the Covid-19 spread to multiple countries, in which there is a large number of susceptible people. To get control of the outbreak, many countries started to implement varying levels of lockdown measures, e.g. complete lockdown, movement control, social (physical) distancing, or work from home advice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*zgMuJAmMt7FA08HgutJflQ.png" /><figcaption>Figure 2. The global confirmed cases of Covid-19 on a log-scale, a simple summation of cases across countries were done based on the dataset from the JHU CSSE repository.</figcaption></figure><p>Note that although the log-trend is moving up slightly slower after day-91 in this figure, this is because the numbers were increasing on a large scale (from 1 million to 10 million); the actual and absolute number of cases is still increasing in a high rate, which can be observed from the previous figure. Well, this is still a good sign that potentially indicates the disease is started to be controlled by most countries, or at least temporarily.</p><h3>Confirmed case trends by country</h3><p>If the number of cases is separated according to countries, it looks like the figure below. At the early stage (before day-42), China is the only observable, meaning that they have extremely large confirmed cases if compare to other countries. Some countries also started in the early days (day-7 to day-42) with a lower number of cases; those are the early affected countries, including Thailand, Singapore, Japan, and South Korea. After day-42, a lot of countries started to rise, and the number of cases quickly go up and beyond the China cases. One of the countries that goes way above other countries in the USA. Because of that, the trend of other countries is not observable in this figure as they are all squeezed together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*omkZR8RPi7kTAtpJIoNmqA.png" /><figcaption>Figure 3. The number of confirmed cases by days, separated according to country. This figure is not useful for observation, because it will just look like the only country in a dangerous situation is the USA, all other countries are safe — this is not true.</figcaption></figure><p>The next figure shows the same numbers with the y-axis turn to log-scale (again). With the log-scale, the changes in larger range (i.e. &gt;100,000) reduced, and the changes in smaller range numbers are enlarged. Thus we can observe the trend of the confirmed cases of the other countries. In Fig. 4, all countries were drawn in pink, with the top 20 countries of the largest total cases highlighted with different colors. Among the top 20 countries, the USA has the largest number since (approx.) day-63 when they pass over the China and Italy case number. Spain and Italy have the second and third largest number, and so on. From the curves, it looks like most of the top 20 countries started to having control over the disease as the curve grows slowly after about day-77. Some exceptions exist, which means the case number of those countries are still going up exponentially, including Russia, Brazil, Peru, India, Ecuador, and Saudi Arabia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTNeqeFZrswFQuqGgo6sow.png" /><figcaption>Figure 4. The number of confirmed cases in each country. (a) The top 10 countries, (b) the second top ten countries.</figcaption></figure><p>While looking at the curve, although it is clear that the number of cases does show some patterns of how the situation is going, but it is not a good figure to compare the situation of different countries. E.g. Spain and Italy have a similar number of cases, does this mean that the situation of the two countries similar? The USA has a lot larger number of cases than the two countries, does this mean that the situation in the USA is a lot more dangerous than the two countries? The population size of the USA is about 330 million, and the population size of Spain and Italy are respectively 46 million and 60 million (according to the Worldometer website). The number of susceptible people in the USA is way larger than the other two countries. The higher number of cases does not always mean that they are in a more dangerous situation. Sometime, we will also need to consider some other information when comparing the situation of different places.</p><h3>Scatter plot of the case number and population</h3><p>From the perspective of the virus pathology, the contagiousness of one virus would usually (expected to) be the same across different countries. Practically speaking, the situation varied in different countries. Many reasons may affect the contagiousness in different countries, probable factors including the population size and density, socio-economic status, latitude, cultural and community behaviors, human movement behaviors, the measures that the country implemented, etc. Among these factors, population size is the most direct variable as it also indicates the number of potential patients — the susceptible size.</p><p>So, population size is one of the keys to understand the disease situation, and the following animated figure shows the relationship between the number of cases and the population size from day-0 to day-99. Six reference lines are drawn to indicates the proportion of the cases to the population size. E.g., if a country moved to 100% means that all of the people in the country are infected; if the country goes beyond the 1/1000 line, it means that there is at least one infected patient for every 1,000 people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*p76Fe_izFYKBEdwtNJQVfw.gif" /><figcaption>Figure 5. The scatter plot shows the number of cases in each country vs. the population. Both axes are on the log-scale. The reference (diagonal) lines indicate the proportion of confirmed cases to the population. The labeled countries are the top 20 countries with the highest proportion. (Note that the point below China is India.)</figcaption></figure><p>The following figure shows the static scatter plot for the day-99 (April 30). The top 20 countries with the largest proportion (i.e. near to the top left) are labeled. In this figure, the USA is at the most top-right position, meaning that they have the largest population and also the largest case number. There is one point beyond the 1/10 line, which is the Princess Diamond Cruise. San Marion and Holy See are the two countries that go beyond 1/100 line, following by many labeled countries between 1/1000 and 1/100 range. Some small countries — -Holy See, Monaco, Liechtenstein, San Marino, Andorra, Malta, Iceland, Djibouti, etc. — -do not have as large case number as the big countries — -USA, Spain, Italy, UK, Germany, France, etc. — -but they also have a large proportion of population get infected by the Covid-19.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8fpd8sZKnSoVmG9Af6j9Q.png" /><figcaption>Figure 6. The same scatter plot of April 30. The labeled countries are the top 20 countries with the highest proportion of cases to their population, i.e. at the most top left of this figure.</figcaption></figure><p>In other words, not only the absolute total number of cases is important while analyzing the Covid-19 situation by country, but the proportion of case number to population size is also needed to be considered.</p><h3>Proportion of cases/population</h3><p>In the following figures, I calculate and plot the proportion of case numbers to population size: the top 10 are highlighted and labeled in Fig. 7, and the top 11–20 in Fig. 8, which were the same 20 countries in Fig. 4. The 20 countries are not the countries with the highest proportion; some other lines are higher than the highlighted lines. Those could be the small countries as mentioned earlier. Overall, most of the 20 countries showed a stable increment after 10 weeks. Eight out of the top ten and seven out of the second top ten countries have a proportion beyond 1/1000, i.e. one infected person for every 1,000 population. The proportion of Spain and Belgium is above 0.004 (4/1000); USA, Italy, and Switzerland are above 0.003 (3/1000); UK, France, Netherlands, and Portugal above 0.002 (2/1000); Germany, Turkey, Iran, Canada, Peru, Ecuador above 0.001 (1/1000). In other words, Spain is in a more dangerous situation than the USA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yWaq5vvRKOPwLAiUDV9NjA.png" /><figcaption>Figure 7. The proportion of confirmed cases to the population by days since Jan 22nd, with y-axis turn to log-scale. The highlighted countries are the top 10 highest total cases (same as Fig. 4(a)). In the legend, each label is followed by two numbers, the total case number, and the proportion.</figcaption></figure><p>The two countries with a proportion below 0.001 in Fig. 7 are Russia and Brazil; the trends of the two countries are still climbing. In Fig. 8, three countries had a proportion lower than 0.001: China’s proportion is relatively low if compared to those other countries, which is 6/100,000; the proportion trend of the other two — Saudi Arabia and India — is also still climbing. The situation in India is especially worrying, because of the increasing trend, and the proportion is low as compare to the other countries — there are still a lot more susceptible/potential patients than the other countries. Furthermore, it is extremely hard to tell if the trend would stop increasing exponentially in the following weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESucJxFapK4ndtpVlYcmAA.png" /><figcaption>Figure 8. The proportion of confirmed cases to the population by days since Jan 22nd, with y-axis turn to log-scale. The highlighted countries are the top 11–20 highest total cases (same as Fig. 4(b)). In the legend, each label is followed by two numbers, the total case number, and the proportion.</figcaption></figure><p>If only looking at the pattern, the trends in the proportion figures (Figs. 7–8) are the same as the curves of case number (Fig. 4), because the proportion is only divided the case number by the population size, which is a constant for a country. The two sets of the figure are only different in the numbers, i.e. the proportion shows the number of the infected person in every X amount of people in the country. Calculating the proportion would enable us to observe the similarities/differences between countries if we control the influences of the population size.</p><h3>Closing remarks</h3><p>This observation report is intended to give a quick overview of the global Covid-19 situation after 100 days. I focused on the number of confirmed cases and attempted to compare the situation between countries, thus divided the case number with the country’s population size. Of cause, the number of cases does give some overall idea of how the situation is in these countries, i.e. the situation in the USA is very worrying, but the situation in Spain (and others mentioned above) would also require large attention as the proportion is very high, especially those that are still increasing (e.g. Russia, Brazil, Saudi Arabia, and India). We will need to be very careful while reading these numbers and figures.</p><p>The Covid-19 is a highly contagious disease, that is believed to have a latent/asymptomatic period of about 14 days. In other words, “what’s happened, has happened”, we can only know if it is under control and is the things we are doing now correct, in the next two weeks.</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Chinese version (中文版): <a href="https://medium.com/@wcchin.88/2019-%E5%86%A0%E7%8B%80%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E-covid-19-%E7%9A%84%E7%99%BE%E6%97%A5%E8%A7%80%E5%AF%9F%E5%A0%B1%E5%91%8A-6c52cec1fa9a">https://medium.com/@wcchin.88/2019-%E5%86%A0%E7%8B%80%E7%97%85%E6%AF%92%E8%82%BA%E7%82%8E-covid-19-%E7%9A%84%E7%99%BE%E6%97%A5%E8%A7%80%E5%AF%9F%E5%A0%B1%E5%91%8A-6c52cec1fa9a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=677348ab5d00" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>