I am trying to minimize the sum of squares of a deviation from the mean applying the following:
Minimize[Sum[(Subscript[x, i] - μ)^2, {i, 0, n}], x]
It returns the expression, but I was expecting it to return an answer similar to the one below
Sum[Subscript[x, i], {i, 0, n}]/n
which is the sample mean.
Is this kind of minimization possible in Mathematica?

nand Minimize the variable\[Mu](xis not a variable in your formulation). – Daniel Lichtblau Jun 02 '14 at 20:56Minimize[Sum[(Subscript[x, i] - \[Mu])^2, {i, 0, 10}], \[Mu]]and it works great. Thanks again – arvind Jun 02 '14 at 21:27Minimize[Sum[ Subscript[w, i]*(Subscript[x, i] - \[Mu])^2, {i, 0, 1}], \[Mu]]..so the answer is(Subscript[w, 0] Subscript[x, 0] + Subscript[w, 1] Subscript[x, 1])/(Subscript[w, 1] + Subscript[w, 2] )and not the various values it gives – arvind Jun 02 '14 at 21:47