農業實驗中的常態性視覺檢查
一家農業公司委託你分析一項以 50 隻雞為對象的實驗。這些雞被分成 4 組,每組餵食不同的飼料。研究人員在 20 天內每隔 1 天量測一次體重。
你將分析 chicken_data 來評估常態性,藉此判斷參數式統計檢定是否合適,並先從資料分佈的視覺化檢查開始。所需的分析套件已為你匯入:
import seaborn as sns
import pandas as pd
from statsmodels.graphics.gofplots import qqplot
本練習屬於課程
Python 的實驗設計
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Plot the distribution of the chickens' weight
sns.____(data=____, x='____', kind="____")
plt.show()