题目网址:http://nbviewer.jupyter.org/github/schmit/cme193-ipython-notebooks-lecture/blob/master/Exercises.ipynb


题目:

习题 关于jupyter notebook(第十四周)

习题 关于jupyter notebook(第十四周)


解答:

习题 关于jupyter notebook(第十四周)

Part 1

For each of the four datasets...

  • Compute the mean and variance of both x and y
  • Compute the correlation coefficient between x and y
  • Compute the linear regression line: y=β0+β1x+ϵy=β0+β1x+ϵ (hint: use statsmodels and look at the Statsmodels notebook)

习题 关于jupyter notebook(第十四周)

习题 关于jupyter notebook(第十四周)

习题 关于jupyter notebook(第十四周)


Part 2

Using Seaborn, visualize all four datasets.

hint: use sns.FacetGrid combined with plt.scatter

习题 关于jupyter notebook(第十四周)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-01-01
  • 2021-06-16
  • 2021-08-30
  • 2021-08-19
  • 2021-11-03
  • 2021-10-23
相关资源
相似解决方案