R programming: it is the whole question. no more data
![Problem Five: Below are some statistical summaries of the two variables “Age as the predictor and MaxHR as the response. The sample size for this data is 303. summary (Age) Min. ist Qu Median 29.00 48.00 56.00 54.44 61.00 77.00 var(Age) Mean Max [1] 81.69742 0 23182.6 20.a >summary (MaxHR) Min. lst Qu. Median Mean 3rd Qu 71.0 133.5 153.0 149.6 166.0 202.0 var(MaxHR) [1] 523.2658 [1] 2443182 sum (MaxHR *Age) a) Use the statistical summaries to calculate Sx, Sy, Syy SST b) Calculate the covariance between Age and MaxHR c) Calculate the linear correlation coefficient between Age and MaxHR d) What are the values of slope and the y-intercept values of the SLR using Age as the MaxHR as the response? predictor and e) Use the equation of the SLR to predict the MaxHR of someone who is 60 years old.](http://img.homeworklib.com/questions/dfb305d0-7161-11ea-ab99-3becea30c832.png?x-oss-process=image/resize,w_560)
Considering x=Age and y=MaxHR
Given
,x_bar=54.44,
=x_bar*303
=16495.32
Var(x) =81.697
81.697=
=> 81.697 =
=>
y_bar=149.6
, y_bar*303
=149.6*303= 45328.8
Similarly var(Y)=523.2658 =
=> 523.2658 =
= 6939738.02
a)Sxx =
Syy =
Sxy=
SST =
b)Cov(x,y) =
c)Correlation coefficient,r=
d)Equation is y=b0+b1*x
b1 = Sxy/Sxx = -24517.9/26073.32 = -0.94 and b0 =y_bar-b1*x_bar =149.6-(-0.94)*54.44 =200.77
Equation is y= 200.77-0.94*x
When age =60,MaxHR =200.77-0.94*60 = 144.35
R programming: it is the whole question. no more data Problem Five: Below are some statistical...