點估計區間

用 Python 改善你的資料視覺化

Nick Strayer

Instructor

以「母體」標示的盒中有黑白點的示意圖

用 Python 改善你的資料視覺化

從較大的點之母體中抽出一小個黑白點樣本

用 Python 改善你的資料視覺化

從較大的點之母體中抽出多個小樣本

用 Python 改善你的資料視覺化

什麼時候不確定性很重要?

需要不確定性

  • 來自樣本的估計
    • 子集的平均
    • 線性模型係數

不需要不確定性

  • _事實_
    • 計數
    • 全母體的摘要
用 Python 改善你的資料視覺化

為什麼不確定性重要?

  • 有助於判斷估計的可信度
  • 決策所必需
  • 承認資料的侷限

跳傘者與降落傘

用 Python 改善你的資料視覺化

許多黑白點小樣本的網格

用 Python 改善你的資料視覺化

信賴區間示意圖,灰色樣本網格下方有上下邊界

用 Python 改善你的資料視覺化
plt.hlines(xmin='lower', xmax='upper', y='y', data=data, 
           linewidth=5, color='steelblue', alpha=0.5)

# Point-estimate for reference plt.plot('est', 'y', 'k|', data = data)

基本信賴區間圖:藍色水平條,中間為白點

用 Python 改善你的資料視覺化

一起來練習吧!

用 Python 改善你的資料視覺化

Preparing Video For Download...