I have data points in 3D space, and I'd like to quantify how well they conform to a straight line.
Specifically, this is a body tracking problem. I have multiple options available for the 3D positions of body parts. For example, there are points for the knee, calf, and foot. I need to select one correct point for each body part. Since the knee to foot is a rigid link, the correct points should be fairly aligned. I want to reject combinations of knee/calf/foot positions which are not in a straight enough line.
The line of best fit for 3D points can be found using the method described in this thread. Is there a metric for how well this line fits the data?