Formula for closest distance to regression line

AI Thread Summary
To calculate the closest distance from a point to a regression line, one should compute the distance from each point to the line and identify the minimum distance. The general method for finding the distance between a point and a line can be applied to develop an algorithm for this purpose. It's important to note that points can lie on the regression line yet still represent a poor approximation of the data. The discussion emphasizes the need for clarity on the relevance of this calculation in the context of regression analysis. Ultimately, the goal is to identify the point that is nearest to the regression line.
tnecniv
Messages
15
Reaction score
0
i need to calculate the closest distance of the point that lies closest to the regression
line for my programing but i am not sure what is the formula. maybe someone can help me out here?

thanks in advance
 
Mathematics news on Phys.org
What are you given..? A set of points and you want to fit them to a straight line?

Without further information I would suggest computing the distance to the line for every point and then taking the minimum.
 
I agree with pere Callahan.

But I really don't see what possible interest such a calculation could have.

After all, you could have points lying ON the line of regression, and still have a very bad approximation.
 
i am trying to find the nearest point to regression line
Having found the regression line, i will need to figure out the point that lies closest to the regression line.

Thanks in advance
 
tnecniv said:
i am trying to find the nearest point to regression line
Having found the regression line, i will need to figure out the point that lies closest to the regression line.

Thanks in advance

Do you know how, in general, to find the distance between a point and a line?

If you do, just make an algorithm to calculate those distances, and pick out that point whose distance is the least.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top