什麼是統計學?

統計學入門

George Boorman

Curriculum Manager, DataCamp

什麼是統計學?

  • 統計學領域:蒐集並分析資料的實務與研究

 

  • 統計學兩大分支:

    • 描述/摘要統計:描述或摘要資料
    • 推論統計:以樣本推論其所代表的母體
統計學入門

統計無所不在!

  • 運動統計

 

 

 

  • 個人理財

football_stadium.jpg

 

piggy_bank_with_coins_around_it.jpg

1 Image credits: https://unsplash.com/@jesusance; https://unsplash.com/@andretaissin; https://unsplash.com/@unarchive
統計學入門

統計能做什麼?

  • 幫助回答實務問題:

    • 美國的平均薪資是多少?
    • 公司每週可能收到多少客訴?

 

  • 應用遍及社會各面向:
    • 開發更安全的產品,如汽車或飛機
    • 協助政府了解民眾需求

 

  • 驗證科學突破,例如新冠疫苗
1 source: https://www.bmj.com/content/373/bmj.n1088
統計學入門

統計的侷限

  • 統計需要明確且可量化的問題:

    • 搖滾樂比爵士樂更受歡迎嗎?
    • 平均而言,女性是否比男性更長壽?
  • 統計無法告訴我們關係存在的原因

you_are_what_you_listen_to.jpg

1 Image credit: https://unsplash.com/@mohammadmetri
統計學入門

資料型態:數值型

  • 連續型資料:
    • 股價
股票 開盤價 ($) 收盤價 {$}
Amazon.com, Inc 2328.14 2329.00
Apple Inc 156.77 157.04
Netflix Inc 188.32 188.75
  • 區間/計數型資料:
    • 人們平均每天喝幾杯咖啡?
名字 每天咖啡杯數
Jessica 4
Andrew 2
Penny 3
1 Image credits: Stocks https://unsplash.com/@behy_studio
統計學入門

數值型資料視覺化

theft_vs_vehicle_crime_scatter_plot.png

1 Data source: Metropolitan Police Service, United Kingdom
統計學入門

資料型態:類別型

  • 名目資料:
    • 眼睛顏色
名字 眼睛顏色
Jessica Brown
Adam Green
Sarah Blue
  • 序位資料:
    • 你多同意「籃球是最好的運動」?

survey asking how strongly you agree that basketball is the best sport, with answers of strongly disagree/somewhat disagree/neither agree nor disagree/somewhat agree/strongly agree.png

1 Image credit: https://unsplash.com/@mango_quan
統計學入門

類別型資料視覺化

theft_by_greater_london_borough_bar_plot.png

統計學入門

描述/摘要統計

  • 描述摘要 資料
Borough Number of Thefts Percentage of Total
Westminster 40,278 36.48%
Camden 18,928 17.15%
Southwark 17,309 15.68%
Hackney 17,121 15.51%
Newham 16,762 15.18%
統計學入門

推論統計

  • 用樣本對母體作出結論

  • 有多少人會因社群媒體廣告而購買衣服?

 

oneline_shopping_image_of_credit_card_and_laptop.png

1 source: https://unsplash.com/@pickawood
統計學入門

一起來練習吧!

統計學入門

Preparing Video For Download...