Assignment 2 Last name: Zhu First name: Xiaobo Student ID: 1000456776 Course section: STA302H1F-Summer 2017 Due Date: June 3, 2017, 23:00
Q1 (20 pts) - Correlation and SLR. Q1-(a) (6 pts): Find the correlation between percentage of field goals made and percentage of fields goals made in the previous year. Is this estimated correlation significant different from zero ? Explain how this result supports the claim in The New York Times article. Answer: cor = -0.1391935 The estimated correlation equals to -0.1391935. P-value for null hypothesis (ρ=0)=0.2305. |r|is between 0.2 and 0.4, correlation is weak. H0 :ρ=0 (X and Y have no linear relationship). Therefore we do not reject H0 in this case. This result supports the claim in The New York Times article. a2 = read.csv("/Users/Xiaobo/Desktop/sta 302 asgn2/FieldGoals03to06.csv",header=T) rp2