Formula for closest distance to regression line

  • Thread starter tnecniv
  • Start date
  • #1
16
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
 

Answers and Replies

  • #2
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.
 
  • #3
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
10,025
134
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.
 
  • #4
16
0
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
 
  • #5
arildno
Science Advisor
Homework Helper
Gold Member
Dearly Missed
10,025
134
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.
 

Related Threads on Formula for closest distance to regression line

Replies
17
Views
42K
  • Last Post
Replies
5
Views
15K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
19
Views
2K
  • Last Post
Replies
9
Views
1K
  • Last Post
Replies
2
Views
3K
Replies
1
Views
4K
Replies
9
Views
15K
Top