這些發現可以推及整體母體嗎?
我們再看另一個樣本,判斷它是否能代表母體。這次你要查看 Spotify 資料集中的 duration_minutes 欄位,內容是歌曲的長度(以分鐘為單位)。
已提供 spotify_population 與 spotify_mysterious_sample2;已載入 dplyr 與 ggplot2。
本練習屬於課程
R 的抽樣
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Visualize the distribution of duration_minutes as a histogram with a binwidth of 0.5
___