Introduction to Statistics (MAT/SST 115.03 2008S)
Parts a-c are all simple calculations that you should be able to do on your own.
Part d is there primarily to confirm your answers above, so let's just look at the code. (You had to figure out code for 27-3, so I'm not sure that there's an advantage to requiring you to do so again.)
HousePrices = read.csv("/home/rebelsky/Stats115/Data/HousePricesAG.csv") cor(HousePrices$Price, HousePrices$Size)
Copyright (c) 2007-8 Samuel A. Rebelsky.
This work is licensed under a Creative Commons
Attribution-NonCommercial 2.5 License. To view a copy of this
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.