2
$\begingroup$

I'm using the Matlab Neural Network toolbox for a regression problem (twelve inputs, one target). My target has a high dynamic range and is strongly non-gaussian. So far I've solved this by a log-transformation, but as an alternative I'm exploring if a different error function than the standard mean square error would be of use.

The Matlab Neural Network toolbox comes with four built-in "performance" functions:

>> help nnperformance
  Neural Network Toolbox Performance Functions.

    mae - Mean absolute error performance function.
    mse - Mean squared error performance function.
    sae - Sum absolute error performance function.
    sse - Sum squared error performance function.

In my understanding, such a performance function is a cost function. But as a cost function is simply something to be minimised, what is the difference between Mean absolute error and Sum absolute error in practice? Similarly, what is the difference between Mean squared error and Sum squared error? Shouldn't those be the same?

The documentation for the different functions is of no use. In fact, the documentation for mse and sse is identical apart except for one word.

$\endgroup$

2 Answers 2

1
$\begingroup$

You are correct, the minimizers are the same.

However, looking at mean values can be easier to interpret, while the sum is related to the complete log likelihood and can thus serve for comparison with other models that use a non uniform prior on your parameters. Also, you can use it for cross model measures such as AIC or BIC.

$\endgroup$
0
$\begingroup$

The mse and sse might give different results if you compare models that do not have the same number of parameters. At least that is what I can make of this description:

http://surveillance.cancer.gov/joinpoint/webhelp/Executing_the_Joinpoint_Parameters/Statistical_Notes/Statistics_Related_to_the_k-joinpoint_Model/sse_mse.htm

$\endgroup$

Your Answer

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

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