開始使用免費開始

各產業的常態性

既然你已經確認變異數相等,接下來要檢查的條件是各產業募資金額是否符合常態分佈。

在這個練習中,你會視覺化並比較符合與不符合常態性的資料。雖然可以用 plt.hist() 來建立這些圖,但在這裡你會練習對 DataFrame 使用 .plot(),並搭配 kind 與 alpha 參數。

你先前建立的 3 個 DataFrame(biotech_df、enterprise_df、ecommerce_df)都已經為你載入。同時也已載入 pandas(縮寫為 pd)、NumPy(np)、Matplotlib(plt),以及 SciPy 的 stats 套件。

本練習屬於課程

Python 推論基礎

檢視課程

動手互動練習

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

# Plot a histogram of the funding for each industry
____.plot(kind=____, alpha=____)
____.plot(____)
____.plot(____)
plt.show()
編輯並執行程式碼