Question: Please solve the below problem using R Studio 1.2. A morning newspaper lists the following used-car prices for a foreign compact with age x, measured
Please solve the below problem using R Studio

1.2. A morning newspaper lists the following used-car prices for a foreign compact with age x, measured in years and selling price x2 measured in thousands of dollars: X 1 2 3 3 4 5 6 8 9 11 X2 18.95 19.00 17.95 15.54 14.00 12.95 8.94 7.49 6.00 3.99 (a) Construct a scatter plot of the data and marginal dot diagrams. (b) Infer the sign of the sample covariance $12 from the scatter plot. (c) Compute the sample means x, and x2 and the sample variances $1 1 and $22. Com- pute the sample covariance $12 and the sample correlation coefficient /12. Interpret these quantities. (d) Display the sample mean array x, the sample variance-covariance array S,, and the sample correlation array R using (1-8)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
