0
$\begingroup$

I have loaded the data set Animals2 from the package library (robustbase) and I have ploted three estimated regression lines (least-squares line, the LMS line, and the line of Siegel). I wanted to know which of the estimated regression lines is most suitable for this data sets.enter image description here

$\endgroup$
6
  • 4
    $\begingroup$ Most suitable in what sense? $\endgroup$ Commented May 23, 2022 at 11:45
  • $\begingroup$ @kjetilbhalvorsen most suitable to estimate my data $\endgroup$
    – user358880
    Commented May 23, 2022 at 11:50
  • 1
    $\begingroup$ Your data already exists, you do not "estimate your data", you do however estimate parameters from your data. And the question is, what exactly do you want to estimate? Most suitable regression line... for what purpose? $\endgroup$ Commented May 23, 2022 at 11:57
  • 1
    $\begingroup$ What do you mean by "estimate my data"? You already have your data, so no estimation is necessary. $\endgroup$
    – Dave
    Commented May 23, 2022 at 12:36
  • $\begingroup$ I think what he means is to predict his data. $\endgroup$
    – Janosch
    Commented May 23, 2022 at 14:16

1 Answer 1

0
$\begingroup$

One way to decide which model fits best to your data, is to you use the Mean Squared Error (MSE). The model with lowest MSE can be considered the best fitting model. However, there is more to it. For example, how many parameters more does the better fitting model have compared to the other models. You would want the best fitting model with the fewest parameters.

Also MSE is just one Metric to measure the goodness of fit. Generally, speaking OLS will provide the lowest MSE. Hence the name. However, one can consider a situation, where outliers have a large effect on the estimation of the OSL. You could, for example, estimate your model only on parts of the data and then evaluate the model on the left over data. This could evaluate how well your model works for unseen data.

$\endgroup$
3
  • 1
    $\begingroup$ This answer is circular, because proposing MSE is equivalent to just asserting OLS is the right solution--but it offers no independent reason for doing so. All three of the proposed fits in this question use the same number of parameters, so that offers no help. $\endgroup$
    – whuber
    Commented May 23, 2022 at 14:17
  • 1
    $\begingroup$ The lowest sum of squared residuals will always come from the OLS ("LM") model. $\endgroup$
    – Dave
    Commented May 23, 2022 at 14:17
  • $\begingroup$ True that. But assuming that the way the question is asked he might not aware of that fact. However, I will edit my answer to make that clear. Also that is not completely true, when we talk about non-linear models for example. $\endgroup$
    – Janosch
    Commented May 23, 2022 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.