开始使用免费开始使用

各组的正态性

既然您已经验证了方差齐性,下一步需要检查的是各行业融资额的正态性。

在本练习中,您将可视化并比较符合与不符合正态性的数据显示。虽然这些可视化也可以用 plt.hist() 完成,但这一次请练习在 DataFrame 上使用 .plot() 方法,并使用 kindalpha 参数。

您之前创建的 3 个 DataFrame(biotech_dfenterprise_dfecommerce_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()
编辑并运行代码