The Constant That Minimises Squared Error

Statistics for MLMedium+20 XP+20

The Constant That Minimises Squared Error

You must summarise a dataset with a single constant ccc, used as the prediction for every observation. The dataset is

[ 2,  4,  6,  8,  30 ][\, 2, \; 4, \; 6, \; 8, \; 30 \,][2,4,6,8,30]

You are scored by the sum of squared errors

L(c)=∑i=15(xi−c)2L(c) = \sum_{i=1}^{5} (x_i - c)^2L(c)=∑i=15​(xi​−c)2

and ccc may be any real number.

Which constant minimises L(c)L(c)L(c), and what is the minimum value of LLL itself?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.