I am creating an objective function for an algorithm. I have an array that I need to return a single value from (and minimise in the optimisation). For the moment I only use the mean of the array. However, I would also like to consider the variance of that array (and minimise it as well).
Either I use the variance and the mean as independent variables to minimise (not ideal in my opinion), or combine the two values into a single one. Is there a method to combine the mean and the variance of an array into a single value? I was going to simply do: $$ \frac{Var_{norm}+Mean_{norm}}{2} $$
where $Var_{norm}$ is the variance normalised and $Mean_{norm}$ is the mean if the array normalised. I have a feeling that there must be something better out there. I have been looking but cannot find anythin.
Any ideas?
Thank you
I don't think there is an accepted combination of those two statistics that makes theoretical sense.
I suggest you consider a weighted average $$ t \times \text{ mean } + (1-t) \times \text{ variance} $$ and experiment with various values of $t$ between $0$ and $1$ to see what works in your particular application.
If the mean and variance have substantially different orders of magnitude the ordinary average ($t= 1/2$) will skew toward the larger of the two.