3
$\begingroup$

When I use 5-k cross validation, is the mean absolute error (MAE) equal to

$$\text{mean}(\text{MAEs of each 5 steps})=\frac{1}{5}(MAE_1 + \cdots + MAE_5)$$

or equal to

$$\text{mean}(\text{absolute errors of all predictions})$$?

$\endgroup$
2
  • $\begingroup$ If there are an even number of training examples, wont this be exactly the same? With an odd number then they differ slightly. $\endgroup$
    – B_Miner
    Sep 19, 2011 at 15:20
  • $\begingroup$ @B_M How does that work? Perhaps you are thinking of medians? $\endgroup$
    – whuber
    Sep 19, 2011 at 19:02

1 Answer 1

3
$\begingroup$

CV is a simulation of running testing algorithm on unseen data, so the first one.
The second is more an OOB error approximation of a bagging ensemble of your classifiers.

$\endgroup$
1
  • $\begingroup$ Indeed, it makes more sense. wikidoc.org/index.php/Cross-validation : "The K results from the folds then can be averaged (or otherwise combined) to produce a single estimation" $\endgroup$
    – hijack
    Sep 20, 2011 at 14:26

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.