Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Linear Least Squares Fit?

  1. Nov 28, 2007 #1
    I am currently working on a lab report for my physics class. During the lab, we used air tracks, gliders, and a photogate to measure the value of 'g'. Basically, we would raise one end of the air track to a certain height and let the glider slide down the frictionless track and the timer would go on when the glider entered the photogate and the timer would end when the glider left the photogate.

    Now, I'm working on the lab report and it wants to know what four averages I would use to find the linear least squares fit. I recorded the original height of the air track, the change in heights, the time it took for the glider to go through the photogate, and the instantaneous velocity when the glider was halfway through the photogate.

    Can someone help me out and tell me which four values I would need to average to find the least squares fit? I know what to do from there...but I'm having a bit of trouble getting started. Here is more information, just in case:

    Also, if I wanted to re-arrange this equation: mgh=1/2mv^2, how would I do it so it's a linear equation in the form y=mx+b? I figured I would solve for v^2=2gh...but then what is 'b'?
  2. jcsd
  3. Nov 28, 2007 #2


    Staff: Mentor

    Your model is not linear in your measured values. For example, if you have a particular error in your measurement of v then that is very different from the error in your measurement of v^2. Your model uses v^2, so it is of the form y^2=mx+b not of the form y=mx+b.

    However, I assume that your lab is not worried about statistical niceties like that, so that is not your real question. To answer what I assume is your real question I would say the following: In your model there is no "b", or equivalently b=0. So, if you get a significantly non-zero estimate for b in your least squares (I think you can use a simple F test for that) then you know that there is some significant problem with either your data or your model. Alternatively, many linear least squares algorithms allow you to require b=0. However, if you do that then the r value is no longer really meaningful.

    I would recommend the following, run the fit normally, see if your b value is significantly different from zero. If not then re-run the fit using the option to force b to zero. Do not report r.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Linear Least Squares Fit?
  1. Curve fitting (Replies: 0)

  2. Least Squares (Replies: 2)