{
 "原理:多知道一點資訊,機率就會改變#3": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "條件機率",
    "sub": "P(B | A) = P(A ∩ B) ÷ P(A)"
   },
   {
    "label": "乘法公式與樹狀圖",
    "sub": "分階段事件"
   },
   {
    "label": "獨立事件",
    "sub": "互不影響"
   },
   {
    "label": "貝氏定理",
    "sub": "由結果反推原因",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ]
 },
 "原理:多知道一點資訊,機率就會改變#4": {
  "type": "table",
  "head": [
   "符號",
   "意義"
  ],
  "widths": [
   1.4,
   3
  ],
  "rows": [
   [
    "P(A ∩ B)",
    "A 與 B 同時發生的機率"
   ],
   [
    "P(B | A)",
    "已知 A 發生,B 也發生的機率"
   ],
   [
    "P(A | B)",
    "已知 B 發生,A 也發生的機率"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "觀念教學:條件機率、乘法公式與樹狀圖#1": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "A 發生了",
    "sub": "樣本空間縮小成 A"
   },
   {
    "label": "B 只能在 A ∩ B 發生"
   },
   {
    "label": "P(B | A)",
    "sub": "P(A ∩ B) ÷ P(A)",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "觀念教學:條件機率、乘法公式與樹狀圖#2": {
  "type": "bar",
  "labels": [
   "點數和 8",
   "都是偶數",
   "同時發生"
  ],
  "values": [
   5,
   3,
   3
  ],
  "unit": " 種",
  "colors": [
   0,
   1,
   2
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "觀念教學:條件機率、乘法公式與樹狀圖#3": {
  "type": "bar",
  "labels": [
   "男生",
   "女生",
   "男戴眼鏡",
   "女戴眼鏡"
  ],
  "values": [
   24,
   16,
   6,
   8
  ],
  "unit": " 人",
  "colors": [
   0,
   4,
   0,
   4
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ]
 },
 "觀念教學:條件機率、乘法公式與樹狀圖#5": {
  "type": "cards",
  "cards": [
   {
    "title": "不放回",
    "points": [
     "各次結果彼此有影響",
     "P(兩球都紅) = 5/8 × 4/7"
    ],
    "value": "5/14"
   },
   {
    "title": "放回",
    "points": [
     "每次的機率不變",
     "P(兩球都紅) = 5/8 × 5/8"
    ],
    "value": "25/64"
   }
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   2
  ]
 },
 "觀念教學:條件機率、乘法公式與樹狀圖#6": {
  "type": "flow",
  "layout": "snake",
  "nodes": [
   {
    "label": "每階段畫分支",
    "sub": "標上機率"
   },
   {
    "label": "路徑機率",
    "sub": "沿途相乘"
   },
   {
    "label": "多條路徑",
    "sub": "機率相加"
   },
   {
    "label": "例:第二球是紅球",
    "sub": "與第一球紅的機率相同",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ]
 },
 "觀念教學:獨立事件與貝氏定理#2": {
  "type": "table",
  "head": [
   "事件",
   "機率",
   "結論"
  ],
  "widths": [
   1.6,
   2.4,
   1.4
  ],
  "rows": [
   [
    "A、B(和為 7)",
    "P(A ∩ B) = 1/12 = 1/2 × 1/6",
    "獨立"
   ],
   [
    "A、C(和為 8)",
    "P(A ∩ C) = 1/12 ≠ 1/2 × 5/36",
    "不獨立"
   ]
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   2,
   2
  ]
 },
 "觀念教學:獨立事件與貝氏定理#4": {
  "type": "cards",
  "cards": [
   {
    "title": "互斥",
    "points": [
     "A ∩ B = ∅",
     "P(A ∩ B) = 0"
    ]
   },
   {
    "title": "獨立",
    "points": [
     "P(A ∩ B) = P(A) × P(B)"
    ]
   },
   {
    "title": "機率皆正的互斥",
    "points": [
     "P(A) × P(B) > 0",
     "所以一定不獨立"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "觀念教學:獨立事件與貝氏定理#5": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "甲命中率 0.8",
    "sub": "未命中 0.2"
   },
   {
    "label": "乙命中率 0.7",
    "sub": "未命中 0.3"
   },
   {
    "label": "至少一人命中",
    "sub": "1 − 0.2 × 0.3 = 0.94",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "觀念教學:獨立事件與貝氏定理#6": {
  "type": "flow",
  "layout": "snake",
  "nodes": [
   {
    "label": "已知結果 B",
    "sub": "想知道原因 A"
   },
   {
    "label": "分子",
    "sub": "通過 A 再到 B 的路徑"
   },
   {
    "label": "分母",
    "sub": "通過 B 的所有路徑和"
   },
   {
    "label": "P(A | B)",
    "sub": "目標路徑 ÷ 路徑總和",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ]
 },
 "觀念教學:獨立事件與貝氏定理#7": {
  "type": "pie",
  "labels": [
   "真陽性 0.0095",
   "假陽性 0.0495"
  ],
  "values": [
   0.0095,
   0.0495
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   2,
   2
  ]
 },
 "公式與計算:條件機率與乘法公式#3": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "P(A) × P(B | A)",
    "sub": "通過 A 的路徑"
   },
   {
    "label": "P(A′) × P(B | A′)",
    "sub": "通過 A′ 的路徑"
   },
   {
    "label": "P(B)",
    "sub": "兩條路徑相加",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   2,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#5": {
  "type": "flow",
  "layout": "snake",
  "nodes": [
   {
    "label": "寫清楚已知與所求"
   },
   {
    "label": "判斷",
    "sub": "P(B | A) 還是 P(A | B)"
   },
   {
    "label": "能數個數",
    "sub": "n(A ∩ B) ÷ n(A)"
   },
   {
    "label": "分階段畫樹狀圖"
   },
   {
    "label": "檢驗",
    "sub": "機率介於 0 與 1,路徑和為 1",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "公式與計算:條件機率與乘法公式#7": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "P(A ∩ B)",
    "sub": "0.5 + 0.4 − 0.7 = 0.2"
   },
   {
    "label": "P(B | A)",
    "sub": "0.2 ÷ 0.5 = 0.4"
   },
   {
    "label": "P(A | B)",
    "sub": "0.2 ÷ 0.4 = 0.5",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#10": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "點數和為 10",
    "sub": "3 種"
   },
   {
    "label": "兩顆都是偶數",
    "sub": "2 種"
   },
   {
    "label": "P",
    "sub": "2 ÷ 3",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#12": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "P(戴眼鏡 | 男生)",
    "sub": "6 ÷ 24 = 1/4"
   },
   {
    "label": "戴眼鏡共",
    "sub": "6 + 8 = 14 人"
   },
   {
    "label": "P(男生 | 戴眼鏡)",
    "sub": "6 ÷ 14 = 3/7",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#14": {
  "type": "waterfall",
  "unit": "",
  "items": [
   {
    "label": "紅白 24/90",
    "value": 24
   },
   {
    "label": "白紅",
    "value": 24
   },
   {
    "label": "顏色不同",
    "value": 48,
    "kind": "total"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#16": {
  "type": "cards",
  "cards": [
   {
    "title": "放回",
    "points": [
     "5/8 × 5/8"
    ],
    "value": "25/64"
   },
   {
    "title": "不放回",
    "points": [
     "5/8 × 4/7"
    ],
    "value": "5/14"
   }
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "公式與計算:條件機率與乘法公式#18": {
  "type": "flow",
  "layout": "snake",
  "nodes": [
   {
    "label": "P(紅紅)",
    "sub": "3/5 × 2/4 = 3/10"
   },
   {
    "label": "P(白紅)",
    "sub": "2/5 × 3/4 = 3/10"
   },
   {
    "label": "P(第二紅)",
    "sub": "3/10 + 3/10 = 3/5"
   },
   {
    "label": "P(第一紅 | 第二紅)",
    "sub": "(3/10) ÷ (3/5) = 1/2",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "公式與計算:條件機率與乘法公式#20": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "至少一枚正面",
    "sub": "8 − 1 = 7 種"
   },
   {
    "label": "恰兩枚正面",
    "sub": "3 種"
   },
   {
    "label": "P",
    "sub": "3 ÷ 7",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:條件機率與乘法公式#21": {
  "type": "table",
  "head": [
   "常見錯誤",
   "正確"
  ],
  "widths": [
   2.4,
   2.4
  ],
  "rows": [
   [
    "P(B | A) 與 P(A | B) 混淆",
    "看清楚「已知」的是哪一個"
   ],
   [
    "分母用 n(S)",
    "分母是 n(A)"
   ],
   [
    "不放回仍用原來的比例",
    "要重算剩下的球"
   ],
   [
    "漏掉某條路徑",
    "畫樹狀圖列出所有路徑"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 },
 "公式與計算:獨立事件與貝氏定理#2": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "分子",
    "sub": "P(A) × P(B | A)"
   },
   {
    "label": "分母",
    "sub": "+ P(A′) × P(B | A′)"
   },
   {
    "label": "P(A | B)",
    "sub": "目標路徑 ÷ 所有路徑和",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   2,
   3
  ]
 },
 "公式與計算:獨立事件與貝氏定理#5": {
  "type": "flow",
  "layout": "snake",
  "nodes": [
   {
    "label": "列出原因事件",
    "sub": "互斥且涵蓋全部"
   },
   {
    "label": "各原因機率",
    "sub": "P(Aᵢ)"
   },
   {
    "label": "各原因下結果機率",
    "sub": "P(B | Aᵢ)"
   },
   {
    "label": "畫樹狀圖",
    "sub": "計算各路徑機率"
   },
   {
    "label": "目標路徑 ÷ 路徑總和",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "公式與計算:獨立事件與貝氏定理#9": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "甲廠不良",
    "sub": "0.6 × 0.02 = 0.012"
   },
   {
    "label": "乙廠不良",
    "sub": "0.4 × 0.05 = 0.020"
   },
   {
    "label": "P(不良)",
    "sub": "0.032"
   },
   {
    "label": "P(甲 | 不良)",
    "sub": "0.012 ÷ 0.032 = 3/8",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   2,
   4
  ]
 },
 "公式與計算:獨立事件與貝氏定理#11": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "真陽性",
    "sub": "0.01 × 0.95 = 0.0095"
   },
   {
    "label": "假陽性",
    "sub": "0.99 × 0.05 = 0.0495"
   },
   {
    "label": "P(陽性)",
    "sub": "0.059"
   },
   {
    "label": "P(病 | 陽性)",
    "sub": "19/118,約 0.161",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   2,
   3,
   4
  ]
 },
 "公式與計算:獨立事件與貝氏定理#13": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "P(甲且紅)",
    "sub": "1/2 × 3/5 = 3/10"
   },
   {
    "label": "P(乙且紅)",
    "sub": "1/2 × 1/5 = 1/10"
   },
   {
    "label": "P(甲 | 紅)",
    "sub": "(3/10) ÷ (3/10 + 1/10) = 3/4",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:獨立事件與貝氏定理#15": {
  "type": "pie",
  "labels": [
   "甲 0.005",
   "乙 0.006",
   "丙 0.010"
  ],
  "values": [
   0.005,
   0.006,
   0.01
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   3
  ]
 },
 "公式與計算:獨立事件與貝氏定理#18": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "P(B)",
    "sub": "0.30 + 0.08 = 0.38"
   },
   {
    "label": "P(A | B)",
    "sub": "0.30 ÷ 0.38 = 15/19",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "公式與計算:獨立事件與貝氏定理#20": {
  "type": "flow",
  "layout": "row",
  "nodes": [
   {
    "label": "和 ≥ 10",
    "sub": "共 6 種"
   },
   {
    "label": "至少一顆 6",
    "sub": "共 5 種"
   },
   {
    "label": "P",
    "sub": "5 ÷ 6",
    "kind": "end"
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "公式與計算:獨立事件與貝氏定理#21": {
  "type": "table",
  "head": [
   "常見錯誤",
   "正確"
  ],
  "widths": [
   2.4,
   2.4
  ],
  "rows": [
   [
    "把互斥當成獨立",
    "機率皆正的互斥事件一定不獨立"
   ],
   [
    "貝氏分子分母相同",
    "分子是目標路徑,分母是所有路徑之和"
   ],
   [
    "陽性就當成 95% 生病",
    "P(陽性 | 病) 與 P(病 | 陽性) 不同"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "課後重點整理:條件機率與貝氏定理#2": {
  "type": "cards",
  "cards": [
   {
    "title": "條件機率",
    "points": [
     "樣本空間縮小成 A"
    ]
   },
   {
    "title": "乘法公式 + 樹狀圖",
    "points": [
     "路徑相乘",
     "結果相加"
    ]
   },
   {
    "title": "獨立事件",
    "points": [
     "P(A ∩ B) = P(A) × P(B)"
    ]
   }
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ]
 },
 "課後重點整理:條件機率與貝氏定理#7": {
  "type": "table",
  "head": [
   "要點",
   "說明"
  ],
  "widths": [
   1.8,
   3
  ],
  "rows": [
   [
    "P(A | B) 與 P(B | A)",
    "通常不同"
   ],
   [
    "互斥與獨立",
    "是不同的概念"
   ],
   [
    "事前機率很小",
    "檢驗很準,陽性者也未必有病"
   ],
   [
    "取後放回",
    "才是獨立;不放回用條件機率"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ]
 }
}