6.6k views
3 votes
I am unsure what exactly to put in the x and y values for the scatter plot. I just need Part B answered, I added the first part which is completed so that you can reference the function. The last time it was answered the scatter plot was not generating at all, this is what I have so far. Thanks!The rules to be followed for the assignment are: -

i. Do NOT load additional packages beyond what we've shared in the cells below.
ii. Some problems with code may be autograded. If we provide a function or class API do not change it.
iii. Do not change the location of the data or data directory. Use only relative paths to access the data.

User Otupman
by
6.6k points

1 Answer

3 votes

Final answer:

To add the equation of the least-squares regression line to a scatter plot, use a calculator's regression function, plot the two points provided by the equation, and label the line on the plot.

Step-by-step explanation:

To find the equation of the least-squares regression line and add it to your scatter plot, you can use a calculator's regression function. Here's how:

  1. First, enter the data into the calculator and create a scatter plot.
  2. Then, use the calculator's regression function to obtain the equation of the line.
  3. Add the regression line to the scatter plot by plotting the two points provided by the equation.

The independent variable is typically represented by the x-values, while the dependent variable is represented by the y-values.

User Genba
by
6.7k points