Using the same datasets as in problem 2, utilize numpy's polyfit function to find the slope and intercept of the regression line. (the data sets are x = [2.3, 3.1, 4.4, 5.5, 6.1, 7.7, 8.8] and y = [3.2, 4.4, 4.0, 5.9, 6.5, 7.1, 8.0])
Added by John D.
Step 1
```python import numpy as np ``` Then, we define our datasets. ```python x = np.array([2.3, 3.1, 4.4, 5.5, 6.1, 7.7, 8.8]) y = np.array([3.2, 4.4, 4.0, 5.9, 6.5, 7.1, 8.0]) ``` Show more…
Show all steps
Close
Your feedback will help us improve your experience
Lucas Finney and 77 other Intro Stats / AP Statistics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Use least-squares regression to fit a straight line y = f(x) = Ax+B to: xi -7 -2 0 3 5 yi 6 5 2 2 -1 Along with the slope (A) and intercept (B),
Trent S.
(a) Use the method described in Exercise 45 to find the equation of the regression line for the given data set. (b) For Exercises 48 and $49,$ if your graphing utility has a feature for computing regression lines, use it to check your answer in part (a). $$\begin{array}{ccccc}\hline x & 2 & 4 & 8 & 10 \\y & -7 & -5 & -2 & -1 \\\hline\end{array}$$
Polynomial and Rational Functions.Applications to Optimization
Linear Functions
Compute the coefficient of correlation between X and Y and hence obtain the equations of the regression lines from the following data: X: 22 26 29 30 31 31 34 35 Y: 20 20 21 29 27 24 27 31
Ameer S.
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD