X = [31, 32, 33, 49, 53, 69, 101, 109, 120, 132, 141] Y = [540, 650,705, 840, 850, 890, 900, 1150, 1200, 1550, 1700] a) Find and print the r_value, intercept, and slope values between x and y arrays...


BY USING PYTHON



X = [31, 32, 33, 49, 53, 69, 101, 109, 120, 132, 141]<br>Y = [540, 650,705, 840, 850, 890, 900, 1150, 1200, 1550, 1700]<br>a) Find and print the r_value, intercept, and slope values between x and y arrays by<br>using linear regression function.<br>b) Then, find the prediction of y according to the array x. (Hint: you can use the formula<br>which is

Extracted text: X = [31, 32, 33, 49, 53, 69, 101, 109, 120, 132, 141] Y = [540, 650,705, 840, 850, 890, 900, 1150, 1200, 1550, 1700] a) Find and print the r_value, intercept, and slope values between x and y arrays by using linear regression function. b) Then, find the prediction of y according to the array x. (Hint: you can use the formula which is "prediction = intercept + slope * x" for finding the predicted y values.) c) Finally, plot x-y graph and predicted y values over it also by using matplot library. %3|

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here