Analytic geometry and statistics share an important idea: they turn positions, data or trends into relationships that can be read on a Cartesian plane.
The real issue is not only computing a slope or distance, but understanding what that quantity says.