I have received this confusing task: You have two variables 𝑥 and 𝑦, where y is a response variable which can be written as an explicit linear function of 𝑥. However, the technique used for measuring 𝑥 is twice as better than that for measuring 𝑦 in the sense of error variance, i.e. the variance of the error in 𝑥 is twice as small as the variance of error in 𝑦. The task is to model y as a function of x.
How should I go about doing this? When I used a basic linear regression algorithm on the data, this was the result:

When I removed the outliers, this was the result:
The second one looks pretty good, but I think I am missing something. This is supposedly the data that has a "measurement error". What do you think I should do instead?

xandy, once you decide which are the valid observations. Don't confuse those problems. $\endgroup$