Processing math: 100%

Homework 2

Due Mon. Sept. 13 at 11:59pm

Homework policies and submission instructions

Problems

  1. (10 points) Suppose you have a dataset {x}={x1,x2,x3,x4} consisting of 4 items. You know that x1=25 and x2=15 and that after standardization ˆx1=0 and ˆx2=1.
    1. Find mean{x} and std{x}
    2. Find x3 and x4 given that x3x4
  2. (10 points) Textbook problem 2.1
  3. (10 points) Textbook problem 2.2
  4. (10 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.
  5. (10 points) Download the daily adjusted closing stock prices for current year of the Coca-Cola Company (KO) and PepsiCo (PEP).
    1. Use this data to find the correlation coefficient between the stock prices of these two corporations
    2. Plot a scatter plot with KO prices on the horizontal axis and PEP prices on the vertical axis
    3. Add a prediction line to your plot that shows predictions of PEP prices from KO prices
  6. (Extra credit: 2 points) Let {^xi} be the standardized data set that is derived from {xi} and it has N items. Prove the vector ^x1N,...^xNN has unit length.