I am not sure, but I think you are talking about the least square method
8.5m questions
11.2m answers