I have a set of data $(x_i,y_i)$ for which i coumputed the Joint Probability Density Functions (see fig1). I would like to find the "best fitting line" that describes the distribution. In other words, I would like the dashed line in the figure. Fig 1 One important point is that the two variables are both affected by error, therefore the estimator should be "simmetric", that is return the same line if applied $f(x,y)$ or $f(y,x)$ (mirrored of course).
I tried several estimators, but couldn't find what I'm looking for. Both the Ordinary Least Square and the Generalised Least Square returns a results that depends by which variable is considered the "observed variable" and which the "explanatory variable"; while in my case both the readings are affected by error.
Looking around I found this equation $$y(x) = \operatorname{sgn}(\rho) \frac{\sigma_x}{\sigma_y}(x-\mu_x)+\mu_y$$ from the wikipedia pageMultivariate normal distribution that represent the Best Linear Unbiased Predictor for a multivariate normal distribution. This is indeed simmetric in x and y, but it returns the dark-red line in the figure, not bad, but nor what I would expect. I think it is due to the fact that the distribution is far from being normal.
Do you have any suggestion to find a good estimator for this problem?
Thank you very much
Luca