{
  "schema_version": 2,
  "diagram_type": "workflow",
  "meta": {
    "title": "Burning Man: 3 ca tử vong có bất thường không?",
    "quality_profile": "showcase",
    "views": [
      {
        "id": "crude",
        "label": "So sánh thô",
        "focus": [
          "obs",
          "crude"
        ],
        "note": "Tỉ lệ thô của Mỹ 909.3/100k/năm, quy về 70.000 người trong 1 tuần: kỳ vọng 12.2 ca, gấp hơn 4 lần số quan sát."
      },
      {
        "id": "std",
        "label": "Chuẩn hoá tuổi",
        "focus": [
          "census",
          "std",
          "poisson",
          "normal"
        ],
        "note": "Áp tỉ lệ theo nhóm tuổi vào phân bố tuổi người dự: kỳ vọng 4.9 ca. Poisson: P(≤3) ≈ 27%, nên 3 ca không bất thường."
      },
      {
        "id": "history",
        "label": "Lịch sử gần 0",
        "focus": [
          "poisson",
          "history",
          "selection"
        ],
        "note": "Gần như không có ca tử vong qua hơn 30 năm mới là bất thường; tác giả cho là do chọn lọc người khoẻ."
      }
    ],
    "legend": {
      "mode": "hidden"
    }
  },
  "lanes": [
    {
      "id": "data",
      "label": "Dữ liệu"
    },
    {
      "id": "calc",
      "label": "Tính toán"
    },
    {
      "id": "concl",
      "label": "Kết luận"
    }
  ],
  "phases": [
    {
      "id": "p1",
      "label": "Quan sát",
      "fromCol": 0,
      "toCol": 1
    },
    {
      "id": "p2",
      "label": "Kỳ vọng",
      "fromCol": 2,
      "toCol": 3,
      "variant": "emphasis"
    },
    {
      "id": "p3",
      "label": "Diễn giải",
      "fromCol": 4,
      "toCol": 5,
      "variant": "dashed"
    }
  ],
  "mainPath": [
    "obs",
    "crude",
    "std",
    "poisson",
    "history",
    "selection"
  ],
  "nodes": [
    {
      "id": "obs",
      "lane": "data",
      "col": 0,
      "type": "external",
      "label": "Quan sát 2026",
      "sublabel": "3 ca / ~70.000 người, 1 tuần",
      "width": 170
    },
    {
      "id": "crude",
      "lane": "calc",
      "col": 1,
      "type": "backend",
      "label": "Tỉ lệ thô",
      "sublabel": "909.3/100k/năm → 12.2 ca",
      "width": 170
    },
    {
      "id": "census",
      "lane": "data",
      "col": 2,
      "type": "database",
      "label": "BRC Census 2025",
      "sublabel": "phân bố tuổi người dự",
      "width": 160
    },
    {
      "id": "std",
      "lane": "calc",
      "col": 2,
      "type": "backend",
      "label": "Chuẩn hoá tuổi",
      "sublabel": "kỳ vọng 4.9 ca",
      "width": 150
    },
    {
      "id": "poisson",
      "lane": "calc",
      "col": 3,
      "type": "backend",
      "label": "Poisson",
      "sublabel": "P(≤3 | 4.9) ≈ 27%",
      "width": 150
    },
    {
      "id": "normal",
      "lane": "concl",
      "col": 3,
      "type": "frontend",
      "label": "3 ca: bình thường",
      "sublabel": "trong khoảng hợp lý",
      "width": 160
    },
    {
      "id": "history",
      "lane": "concl",
      "col": 4,
      "type": "security",
      "label": "Gần 0 mỗi năm",
      "sublabel": "mới là bất thường",
      "width": 150
    },
    {
      "id": "selection",
      "lane": "concl",
      "col": 5,
      "type": "frontend",
      "label": "Selection bias",
      "sublabel": "theo tác giả: người khoẻ hơn",
      "width": 170
    }
  ],
  "edges": [
    {
      "id": "e1",
      "from": "obs",
      "to": "crude",
      "label": "so với Mỹ"
    },
    {
      "id": "e2",
      "from": "crude",
      "to": "std",
      "label": "trẻ hơn",
      "variant": "emphasis"
    },
    {
      "id": "e3",
      "from": "census",
      "to": "std",
      "label": "tuổi"
    },
    {
      "id": "e4",
      "from": "std",
      "to": "poisson"
    },
    {
      "id": "e5",
      "from": "poisson",
      "to": "normal",
      "label": "năm 2026",
      "variant": "dashed",
      "role": "branch"
    },
    {
      "id": "e6",
      "from": "poisson",
      "to": "history",
      "label": "cả lịch sử",
      "variant": "emphasis"
    },
    {
      "id": "e7",
      "from": "history",
      "to": "selection",
      "label": "giải thích"
    }
  ],
  "cards": [
    {
      "dot": "cyan",
      "title": "Vì sao chỉ chuẩn hoá theo tuổi",
      "items": [
        "Chênh lệch giữa các nhóm tuổi hơn 10 lần",
        "Thiếu dữ liệu kết hợp tuổi, giới, chủng tộc, thu nhập"
      ]
    },
    {
      "dot": "rose",
      "title": "Độ bất định",
      "items": [
        "Chỉ 3 ca: sai số tương đối ~58% (1/√3)",
        "Khoảng tin cậy 95%: [0.6, 8.8]"
      ]
    }
  ]
}
