Least squares method for cloud of atom

AI Thread Summary
The discussion focuses on applying the least squares method to analyze the expansion of a cold cloud of 87 Rb atoms after turning off a magnetic-optic pit. The user seeks clarification on transforming the given formula into a linear regression format and how to handle the Boltzmann constant relative to the mass of the atom. Participants confirm that the least squares method will yield a value for 'a', which can be used to calculate temperature 'T' by rearranging the equation. They suggest plotting the results to visually assess the fit of the data and ensure the solution is reasonable. The conversation emphasizes the importance of understanding the method for an upcoming midterm exam.
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 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)

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 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?
 
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.
 
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?
 
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")
 

Similar threads

Replies
3
Views
3K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
2
Views
2K
Replies
9
Views
2K
Replies
10
Views
2K
Back
Top