Homepage › Solution manuals › Gilbert Strang › Linear Algebra and Learning from Data › Exercise 4.7.5
DP = (1 − 2)2 + (2 − 2)2 + (3 − 2)2 = 2 and DQ = (4 − 4)2 = 0, so the D = DP + DQ = 2.