Uncertanty in a non-linear regression with least squares method

Click For Summary

Homework Help Overview

The discussion revolves around fitting a set of data points to a sine function using the least squares method. The original poster is particularly focused on understanding how to propagate uncertainty in the parameters obtained from this non-linear regression.

Discussion Character

  • Exploratory, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to fit data to a sine function and seeks guidance on error propagation for amplitude and frequency parameters. Some participants suggest exploring literature for insights on uncertainty in non-linear regression, while others inquire about the specifics of the data and methodology used.

Discussion Status

The discussion is ongoing, with participants providing suggestions for resources and asking for more details about the experimental setup and data analysis. There is an acknowledgment of the need for uncertainty quantification in the results, but no consensus has been reached on a specific method for error propagation.

Contextual Notes

The original poster mentions that they have a large dataset (21000 points) and have measured the movement of a vibrating table, with specific frequencies noted. They express a need for guidance suitable for a freshman undergraduate level.

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?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 4 ·
Replies
4
Views
6K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K