Processing math: 100%

Homework 2

Due Monday September 17 at 11:59pm

Homework policies and submission instructions

Problems

  1. (5 points) Textbook problem 2.1
  2. (5 points) Textbook problem 2.2
  3. (5 points) Textbook problem 2.3
  4. (10 points) Show that corr({(x+c,y)})=corr({(x,y)}), by substituting into the definition. You'll need to use the properties of the mean and standard deviation.
  5. (10 points) Show that corr({(kx,y)})=sign(k)corr({(x,y)}) for k0, by substituting into the definition. You'll need to use the properties of the mean and standard deviation. Note that sign(k) is defined as follows: sign(k)={1if k<01if k>0
  6. (15 points) Textbook problem 2.8 (data). Note that US state abbreviations were not standardized until 1963. This data is from 1960, so NE=Nevada and NB=Nebraska. Here's how to annotate points in a scatter plot with matplotlib.