I’m working on an application with statistic analysis, and I need some help.
Given a set of n points, how can I approximate a line by them. I’m sure there is an algorithm but I couldn’t find it.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The topic is called linear regression, or ordinary least squares. You should be able to find more details in any linear algebra or stat book.
A Java implementation can be found here