開始使用免費開始

火災保險理賠

Fire Insurance 是針對你的財產提供火災與雷擊造成損失或損害的保障。資料集 fireinsuranceclaims 包含比利時一家保險公司最近 40,000 筆火災保險的理賠金額。

套件 benford.analysis 已為你載入。它會產生數個圖形,但你只需要專注在第一張圖來檢查是否符合分佈。

本練習屬於課程

R 的詐欺偵測

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Validate data against Benford's Law using first digit
bfd.ins <- benford(___, number.of.digits = ___) 
plot(bfd.ins, except=c("second order", "summation", "mantissa", "chi squared","abs diff", "ex summation", "Legend"), multiple = F)
編輯並執行程式碼