163k views
0 votes
I need help to get the residual plot from this data 13.8 1.42 16.7 3.21 0.7 1.11 18 4 16.7 3.21 20 4 18 3.8 19.5 3.78 21.9 3.69 0.7 1.11

User Schpet
by
8.4k points

1 Answer

3 votes

Answer:

To create a residual plot, you need to first fit a model to the data. Without any information about the problem you are trying to solve or the model you are fitting, I will assume that you are trying to fit a linear regression model to these data points.

First, you would need to find the equation of the line that best fits the data using a regression analysis software or by hand. Let's assume that the equation of the line is:

y = 0.2x + 2.5

where y is the response variable (dependent variable) and x is the predictor variable (independent variable).

Next, you would calculate the predicted values of y (i.e., the values that the model predicts) for each value of x in your dataset, using the equation of the line. For example, for the first data point (13.8, 1.42), the predicted value of y would be:

y_predicted = 0.2 * 13.8 + 2.5 = 5.06

The residual for this data point would be the difference between the actual value of y and the predicted value of y:

residual = 1.42 - 5.06 = -3.64

You would repeat this process for each data point in your dataset, to get a list of residuals.

User Economy
by
7.4k points