1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Least squares method for cloud of atom

  1. Mar 16, 2015 #1
    1. The problem statement, all variables and given/known data
    After turnig of magnetic-optic pit, cold cloud of atom 87 Rb is expanding. Size of cloud after time t, is given with relation:
    ma_%7B0%7D%5E%7B2%7D%20+%20%5Cfrac%7Bk_%7BB%7D%5Ccdot%20T%7D%7Bm%7D%5Ccdot%20t%5E%7B2%7D%7D.gif
    where, k_B is Boltzman constant, m mass of 87 Rb.
    Draw a plot, then use least squares method to find temperature T, and initial size of cloud sigma_0, for next results of measurement.
    t(ms)
    sigma(mm)

    3. The attempt at a solution
    I am familiar with least squares method. What I dont understand in this problem is next.
    First of i must get this formulae to some linear shape ( regrression).
    So, ok, firstly we square the whole equation.
    I get next.

    ma_%7B0%7D%5E%7B2%7D%20+%20%5Cfrac%7Bk_%7BB%7D%5Ccdot%20T%7D%7Bm%7D%5Ccdot%20t%5E%7B2%7D%7D.gif

    now, on to assigning values to get form like y=ax+b, its obvius,
    y= sigma^2
    b=sigma_0^2
    x=t^2
    x= (k_B * T)/m

    and now, to use least square methd, i must calculate, x,y,xy,x^2,y^2, and sum of them all.
    my question here is next:

    This member boltzman constant/m. What should i do with it?
    Shuld i calculate it and continue to multiply numbers with it whole process?
    Or just write results like 0.157746 * ( K-b/m) and in the end multiply a with it?
     
  2. jcsd
  3. Mar 16, 2015 #2
    If you are given a series of data points you can use the squares method. You will find the constants that define your line: a and b. Since ##a = \frac {k_b T }{m} ## you can simply get T out of it, using the known values for the Boltzmann constant and the mass.
     
  4. Mar 16, 2015 #3

    haruspex

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    2016 Award

    You mean ##a=\frac{k_B T}{m}##, right?
    I'm not sure what your question is. The least squares method will give you a value for a, which you can then multiply by ##\frac m{k_B}## to get T. What else would you do?
     
  5. Mar 16, 2015 #4
    Ok. I see that. THank you for answer.
    What bothers me is how to know when that solution is good? I.e. i get a=0.01785
    How do i recognize it is acceptable, and it fits the formulae.
     
  6. Mar 16, 2015 #5
    Try plotting the values (in Excel, Matlab or whatever) and see if the slope of the line agrees with what you got.
     
  7. Mar 16, 2015 #6

    haruspex

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    2016 Award

    That I can't help with. Does it give a reasonable T?
     
  8. Mar 16, 2015 #7
    OK, I will do it in excel now.
    Reason why I'm asking you this is because i have midterm where i must know least square method, and i want to know if i do it right there.
    Because using only calculator and milimeter paper..
    THanks for reply guys. I really appreciate it.
     
  9. Mar 16, 2015 #8
    If you have the millimeter paper you can still draw your line and see how much it "fits" the existing points. It wont pass over every one of them, because there's always a certain error, but the point of this method is that this error (or rather, its square) will be minimal (hence "least squares")
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Least squares method for cloud of atom
  1. Least-squares problem (Replies: 0)

  2. Least Squares Method (Replies: 3)

Loading...