Best fit line for a series of 3D points

309 Views Asked by At

I have been trying to calculate the line of best fit for a series of 3D points. For example, my points are $(10,10,12)$, $(8,5,11)$, $(10,8,5)$, $(15,10,12)$. I want to find a line that will best fit these points.

I have no idea how to do it using mathematical equations. I am a developer with minimal knowledge in mathematical equations. Anyone please suggest a way to solve this issue.