Results 1 to 5 of 5

Math Help - 3D Line of Best Fit

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    17

    3D Line of Best Fit

    I want to draw a line of best fit through some data points in 3D space I have made a few attempts such as averaging the slopes and intercepts for each axis from regular, 2D, simple linear regression however none have turned out very well. Google isn't bringing up very much either.

    Any suggestions?

    Thanks.
    -Halty
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Aug 2007
    From
    USA
    Posts
    3,110
    Thanks
    2
    Look up "multi-linear regression", "normal equations", and "least squares".
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    May 2011
    From
    Sacramento, CA
    Posts
    165
    Normally in 3D you would produce a regression plane, but it makes sense to also ask if we cannot fit a line in the same manner as in 2D. I did a quick Google search. The "Math Doctor" says its the 3D Orthogonal Distance Regression (ODR) line. See the link for more details, or Google ODR for more.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member
    Joined
    Aug 2011
    Posts
    244
    Thanks
    56

    Re: 3D Line of Best Fit

    I want to draw a line of best fit through some data points in 3D space I have made a few attempts such as averaging the slopes and intercepts for each axis from regular, 2D, simple linear regression however none have turned out very well. Google isn't bringing up very much either.
    Any suggestions?
    Try the computation process (non-recursive) detailed pages 9-10 in the paper "Regressions et trajectoires en 3D." The link is :
    Scribd
    The first part of the paper (in English) deals with 3d. orthogonal linear regession.
    The second part (still in French) deals with 3d. orthogonal planar regression (which is not in the scope of the present thread).
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    Apr 2010
    Posts
    17

    Re: 3D Line of Best Fit

    Wow, very nice. Just took a quick glance and yes this was exactly what I was looking for. Thankyou very much, the work I needed it for is done now but I'll no doubt need it again. I'll take a proper look next week when I'm less busy.

    Thanks again.
    -Halty
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 3
    Last Post: November 4th 2011, 06:42 PM
  2. Replies: 1
    Last Post: March 18th 2011, 10:36 AM
  3. Replies: 5
    Last Post: November 4th 2009, 06:49 PM
  4. Replies: 0
    Last Post: October 22nd 2009, 11:04 AM
  5. Replies: 4
    Last Post: March 17th 2008, 01:53 PM

/mathhelpforum @mathhelpforum