Uncertanty in a non-linear regression with least squares method

AI Thread Summary
The discussion revolves around fitting a large dataset of 21,000 points to a sine function using the least squares method with NumPy. The user successfully obtained parameters for amplitude and frequency but is struggling with how to propagate uncertainties for these non-linear parameters. They seek recommendations for literature or resources that address error propagation in non-linear regression, particularly at an undergraduate level. The user provides context about their experiment, measuring the movement of a vibrating table, and notes that while the fit appears good, the lack of uncertainty information is a significant concern. The conversation highlights the need for guidance on error propagation techniques specific to non-linear models.
VictorH
Messages
5
Reaction score
0

Homework Statement



Ok, so I'm trying to fit a set of data (21000 points to be exact) to a sine function.

Homework Equations



Y = A*sin(ωt)

The Attempt at a Solution



I used NumPy to get the parameters A and ω with the least squares method. So far, so good. However, i appear to have reached an impass, this values don't have an uncertainty that accompanies them.

My question is: how do i propagate the error in the amplitude and the frecuency? In a quick web search I have not found any helpful inside in anything different of uncertainty of slopes in linear regressions. Can you recommend literature or websites that cover this topic? Bear in mind a freshman undergrad level of computer expertise and experimentation skill.

Thanks in advance
 
Physics news on Phys.org
Don't give a list of 21000 points, but:
Tell us a bit more about what was measured, and how.
Approximate frequency, sampling frequency,
Then write out what you did with numpy.
Did you get a ##\chi^2## out?
 
Alright. So, i measured the movement of a vibrating table with a LVDT sensor, the approximate frecuency is around 30 Hz and a sampling frecuency of 1000 samples per second. Hopefully i can show it behaves like a harmonic oscillator. I looked at tha data, the graph is pretty nice and definitive to a sine function, so \chi^2 is a given, plus Python says so. I did least squares with Numpy (don't have the exact code at hand) and got some values for amplitude and frecuency.
Now, this numbers come very close of what i can see and measured in the lab. But, as in any experiment, this numbers mean nothing without uncertanties. My question is: how do i do error propagation in a non-linear regression using least squares?
 
Thread 'Collision of a bullet on a rod-string system: query'
In this question, I have a question. I am NOT trying to solve it, but it is just a conceptual question. Consider the point on the rod, which connects the string and the rod. My question: just before and after the collision, is ANGULAR momentum CONSERVED about this point? Lets call the point which connects the string and rod as P. Why am I asking this? : it is clear from the scenario that the point of concern, which connects the string and the rod, moves in a circular path due to the string...
Back
Top