Processing math: 100%
Problems
- (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.
- Find mean{x} and std{x}
- Find x3 and x4 given that x3≤x4
- (10 points) Textbook problem 2.1
- (10 points) Textbook problem 2.2
- (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.
- (10 points) Download the daily adjusted closing stock prices for current year of the Coca-Cola Company (KO) and PepsiCo (PEP).
- Use this data to find the correlation coefficient between the stock prices of these two corporations
- Plot a scatter plot with KO prices on the horizontal axis and PEP prices on the vertical axis
- Add a prediction line to your plot that shows predictions of PEP prices from KO prices
- (Extra credit: 2 points) Let {^xi} be the standardized data set that is derived from {xi} and it has N items. Prove the vector ⟨^x1√N,...^xN√N⟩ has unit length.