The first step is to choose an appropriate coordinate system. Different coordinate systems have great influence on the calculation.
The second step is to establish the equation of hypothetical multidimensional space and judge whether each set of data is related to the hypothetical equation. If both sets of data are related to the hypothetical equation, it means that the two sets of data are related; If at least one set of data has nothing to do with the hypothetical equation, it means that these two sets of data have nothing to do with the hypothetical equation.