- #1

- 16

- 0

line for my programing but i am not sure what is the formula. maybe someone can help me out here?

thanks in advance

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter tnecniv
- Start date

- #1

- 16

- 0

line for my programing but i am not sure what is the formula. maybe someone can help me out here?

thanks in advance

- #2

- 586

- 1

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

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

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

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.

Share: