Least squares method for cloud of atom

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
7 replies · 2K views
diracdelta
Messages
55
Reaction score
0

Homework Statement


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 Boltzmann 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)

The Attempt at a Solution


I am familiar with least squares method. What I don't 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 Boltzmann 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?
 
Physics news on Phys.org
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.
 
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.
 
Try plotting the values (in Excel, Matlab or whatever) and see if the slope of the line agrees with what you got.
 
diracdelta said:
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.
That I can't help with. Does it give a reasonable T?
 
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.
 
If you have the millimeter paper you can still draw your line and see how much it "fits" the existing points. It won't 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")