BY USING PYTHON
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|
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here