跳至主要內容
Assignment 1 Grades Generator

Assignment 1 is designed to test your understanding of the skills practiced in weeks 1 through 4:

  • creating variables using Python's built-in data types
  • converting and checking data types
  • using built-in functions
  • using conditional statements and loops
  • writing functions

AI悦创原创...大约 3 分钟1v1python 1v1数据结构一对一留学生辅导留学生作业辅导加州大学美国1v1python 1v1数据结构一对一留学生辅导留学生作业辅导加州大学美国
How to Complete the Homeworks.pdf

AI悦创原创...大约 1 分钟1v1python 1v1数据结构一对一留学生辅导留学生作业辅导哥伦比亚大学1v1python 1v1数据结构一对一留学生辅导留学生作业辅导哥伦比亚大学
Observe Proper Netiquette

Netiquette is essentially rules and norms for interacting with others on the Internet.

We’re here to help with nine simple guidelines for how to be on your best behavior in an online classroom.

Nine netiquette guidelines every online student needs to know.

1. NO YELLING, PLEASE


AI悦创原创...大约 4 分钟1v1python 1v1数据结构一对一留学生辅导留学生作业辅导哥伦比亚大学1v1python 1v1数据结构一对一留学生辅导留学生作业辅导哥伦比亚大学
Econometric Python Lab Assignment 1

1. 题目

  1. (0 points) Please type your code and answers into Jupyter notebook. All visualizations should be prop-erly labelled. Submit the notebook as a pdf.

  2. (3.5 points) Use the bwght dataset from the Wooldridge python module to answer the following question. You can find the documentation for the data online here. Import this data into your notebook.

    (a) (1.5 Points) How many women are in the sample? What proportion of women with a family income higher than $50,000 are smokers? What proportion of women with a family income less than $20,000 are smokers?

    (b) (1 Points) Generate a table of summary statistics for the dataframe. What is the average number of cigarettes smoked in a day? Is the mean a good measure of the typical women’s smoking habits? If no, explain why and if there is a better measure.

    (c) (1 Points) Find the mode of fatheduc in the sample. Why are only 1,192 observations used to compute this statistic?

  3. (5.5 points) Use the bwght dataset from the Wooldridge python module to answer the following question.

    (a) (1 point) Generate two different histograms of bwght using Sturge’s and FD binning methods. Explain the strengths and weaknesses of each method when applied to bwght.

    (b) (1 point) Create a histogram of bwght using either sturges or fd to choose the number of bins. Overlay a density curve.

    (c) (2 points) Using a q-q plot, do you believe bwght is approximately normally distributed? Why are why not? What about family income?

    (d) (1.5 points) Create a boxplot conditioning on whether or not the mother was a smoker. Do you observe any differences? If so, what are they?

  4. (6 points) Use the bwght dataset from the Wooldridge python module to answer the following question.

    (a) (2 points) Estimate the parameters for the following simple regression:

    bwght^=β0^+β1^×packs \large \hat{bwght} = \hat{\beta_0} + \hat{\beta_1} \times packs

    report the intercept and slope. What do these tell you about the association between cigarette use and birth weight?

    (b) (2 points) What is the predicted value of birthweight when packs = 0? When packs = 2? What is the interpretation of the intercept?

    (c) (1 point) Verify the residuals of this regression sum (approximately) to zero.

    (d) (1 point) Using a scatter plot, show the observed values against the values predicted by a regression.


AI悦创原创...大约 3 分钟1v1python 1v1数据结构一对一留学生辅导留学生作业辅导加州大学美国1v1python 1v1数据结构一对一留学生辅导留学生作业辅导加州大学美国
Go to canvas and download titanic.csv

Notebook

使用命令行运行 Jupyter Notebook 的具体流程如下:

  1. 思考🤔:你想在哪里运行你的项目 or 你想把代码存储在哪里?「确定路径」
  2. 启动 CMD:在文件夹上面的路径中,直接输入 cmd 回车「Enter」目标🎯:为了更快速的到达目标路径。(还有多种方法,以后再讲)
  3. 确保安装了 Jupyter Notebook:
jupyter notebook

AI悦创原创...大约 21 分钟1v1python 1v1MA407伦敦政经LSE Home数据结构一对一留学生辅导留学生作业辅导1v1python 1v1MA407伦敦政经LSE Home数据结构一对一留学生辅导留学生作业辅导
待补充

1. 待解决问题🙋

公众号:AI悦创【二维码】

AI悦创原创...大约 1 分钟1v1python 1v1MA407伦敦政经LSE Home数据结构一对一留学生辅导留学生作业辅导1v1python 1v1MA407伦敦政经LSE Home数据结构一对一留学生辅导留学生作业辅导