開始使用免費開始

執行適合度檢定

vendor_inco_term 的長條圖顯示,在四個類別中的分布與假設的分布相當接近。你需要執行「卡方適合度檢定」來判斷這些差異是否具有統計顯著性。

為了決定要採取哪個假設,我們將顯著水準設為 0.1

已提供 late_shipments;並已載入 tibbledplyrggplot2infer

本練習屬於課程

R 中的假設檢定

檢視課程

動手互動練習

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

hypothesized_props <- c(
  EXW = 0.75, CIP = 0.05, DDP = 0.1, FCA = 0.1
)

# Run chi-square goodness of fit test on vendor_inco_term
test_results <- ___





# See the results
test_results
編輯並執行程式碼