Uncertainty Analysis Homework: Vel Calc from Line of Best Fit

In summary: Yes, this works. The average of the square of the velocity deviations averaged over all the time intervals is (\overline{δ_i^2}+\overline{δ_{i+1}^2}-2\overline{δ_iδ_{i+1}})/(Δt)^2. If the deviations of the displacements at successive times are uncorrelated with one another, then the root mean square deviation of the velocity is just √2u_y/Δt. However, the data may indicate otherwise.
  • #1
Mech-Master
13
0

Homework Statement



Hey everyone,

I've data for some oscillatory motion. I used MATLAB to find line of best fit for the data. I got a line of the following form

y = A*sin(2*pi*f*t + ø)

I got the root mean square error between my data and the line of best fit (call it u_y)

Now I want to differentiate the above equation to get the velocity

V = dy/dt.

How do I get the uncertainity for V?

The Attempt at a Solution



I'm really stuck. I'm trying to use Kline Mcclintock error propagation to solve for uncertainty of the Velocity.

V = dy/dt

u_v = √( (dv/dy * u_y)^2 + (dv/dt*u_y)^2 )

Is this the right approach??
 
Physics news on Phys.org
  • #2
Do you mean (dv/dt*u_t)^2 for the second expression?
Do you have a time uncertainty?

V=2 pi f A cos(...), you can do the uncertainty analysis based on that formula (but keep correlations between the individual uncertainties in mind).
Alternatively, you can try to use other parameters such that the velocity is a more direct function of them. Then Matlab can do more of the work.
 
  • #3
mfb said:
Do you mean (dv/dt*u_t)^2 for the second expression?
Do you have a time uncertainty?

V=2 pi f A cos(...), you can do the uncertainty analysis based on that formula (but keep correlations between the individual uncertainties in mind).
Alternatively, you can try to use other parameters such that the velocity is a more direct function of them. Then Matlab can do more of the work.

Yes I mean (dv/dt*u_t)^2.

I do not have time uncertainty. The only thing I have is position (y) uncertainty. For this reason, I could not do the uncertainty analysis based on V=2 pi f A cos(...).
 
  • #4
Let Yi be the data point at time ti, and assume that there is no time uncertainty. Also, let yi represent the value of your fit at time ti. Then your estimate of the average velocity from your data on the interval from ti to ti+1 is V=(Yi+1-Y1)/(ti+1-ti). Similarly, your estimate of the average velocity from you fit to the data on the same interval is v=(yi+1-y1)/(ti+1-ti). So your estimate of the deviation of the average velocity over the interval is
[tex]δv=\frac{Y_{i+1}-Y_i}{t_{i+1}-t_i}-\frac{y_{i+1}-y_i}{t_{i+1}-t_i}=\frac{δ_{i+1}-δ_i}{t_{i+1}-t_i}[/tex]
where δi=Yi-yi
The square of the deviation on velocity is:
[tex](δv)^2=\left(\frac{δ_{i+1}-δ_i}{t_{i+1}-t_i}\right)^2=\frac{δ_{i+1}^2+δ_{i}^2-2δ_{i+1}δ_{i}}{(t_{i+1}-t_i)^2}[/tex]
Just multiply each of these by ti+1-ti, add them up, and divide by the total amount of time T.
 
  • Like
Likes 1 person
  • #5
Thank you,

Does the following work out as well?

V = f(y)

therefore,

u_v = √( (dv/dy * u_y)^2)

where dv/dy = dv/dt * dt/dy

y = Asin(2*pi*t*f + ø)

t = (arcsin(y/A) - ø) / (2*pi*f) (then differentiate to get dt/dy)

?

Also, if this DOES work. I will need to sum up dv/dt and divide it by number of data. is this correct?
 
  • #6
Mech-Master said:
Thank you,

Does the following work out as well?

V = f(y)

therefore,

u_v = √( (dv/dy * u_y)^2)

where dv/dy = dv/dt * dt/dy

y = Asin(2*pi*t*f + ø)

t = (arcsin(y/A) - ø) / (2*pi*f) (then differentiate to get dt/dy)

?

Also, if this DOES work. I will need to sum up dv/dt and divide it by number of data. is this correct?
I'm unable to follow what you did. Maybe someone else can.
Chet
 
  • #7
Chestermiller said:
So your estimate of the deviation of the average velocity over the interval is
[tex]δv=\frac{Y_{i+1}-Y_i}{t_{i+1}-t_i}-\frac{y_{i+1}-y_i}{t_{i+1}-t_i}=\frac{δ_{i+1}-δ_i}{t_{i+1}-t_i}[/tex]
where δi=Yi-yi
The estimates for those δi are not independent of each other. I don't see how this would help.
 
  • #8
mfb said:
The estimates for those δi are not independent of each other. I don't see how this would help.
Are you saying you don't recognize this as the deviation in velocity over the time interval from ti to ti+1?

After this I calculated the square of the deviation in velocity over the interval. If all the time intervals are of equal size, so that ti+1-ti=Δt, then the average of the square of the velocity deviations averaged over all the time intervals is [itex](\overline{δ_i^2}+\overline{δ_{i+1}^2}-2\overline{δ_iδ_{i+1}})/(Δt)^2[/itex]
But, [itex]\overline{δ_i^2}[/itex] and [itex]\overline{δ_{i+1}^2}[/itex] are both equal to (u_y)2. So the square of the velocity deviations averaged over all the time intervals is given by [itex](2u_y^2-2\overline{δ_iδ_{i+1}})/(Δt)^2[/itex]. If the deviations of the displacements at successive times are uncorrelated with one another, then the root mean square deviation of the velocity is just √2u_y/Δt. However, the data may indicate otherwise. In that case, the second term would have to be calculated and included.

Chet
 
  • #9
Chestermiller said:
Are you saying you don't recognize this as the deviation in velocity over the time interval from ti to ti+1?
Then I have no idea how this is related to the uncertainty on v. Remember, we know t exactly, the only uncertain things are the parameters in the equation for y, and based on those parameters we have to calculate our uncertainty on dy/dt (not the spread of the source values).
 
  • #10
mfb said:
Then I have no idea how this is related to the uncertainty on v. Remember, we know t exactly, the only uncertain things are the parameters in the equation for y, and based on those parameters we have to calculate our uncertainty on dy/dt (not the spread of the source values).
I've been looking at it from a different perspective. From the fitted equation for y, we can calculate dy/dt. The question is, "what is the uncertainty on this calculated velocity dy/dt?" According to the OP, the root mean square error on y (interpreted by me to be the "uncertainty" on y) is u_y. My focus was on getting an estimate of the rms error on the velocity dy/dt, which I'm interpreting as the "uncertainty" on dy/dt. My method of doing this is by estimating the local deviation between the "fitted" velocity, and the velocity that would be obtained by differentiating the displacement data with respect to time. Assuming that the deviations in the displacements at the various times are uncorrelated with each other, I came up with the result that u_v=√2u_y/Δt.
Do you have a different approach to estimating the rms error on the velocity? If so, can you provide some details? It sounds interesting.
I had thought of what you may be alluding to, but I couldn't figure out a way of estimating the uncertainties on the parameters A, f, and ø in the displacement fit.

Chet
 
  • #11
mfb said:
Then I have no idea how this is related to the uncertainty on v. Remember, we know t exactly, the only uncertain things are the parameters in the equation for y, and based on those parameters we have to calculate our uncertainty on dy/dt (not the spread of the source values).
I think I'm beginning to see what you are driving at. If I read you correctly, you are saying that essentially the only uncertainty on displacement is the uncertainty on the amplitude parameter A. So this should determine the uncertainty on the velocity dy/dt. Is this a correct interpretation of your point? If this is the case, then my estimate of the uncertainty on the velocity is a huge overestimate of the actual uncertainty.

Chet
 
  • #12
Chestermiller said:
I think I'm beginning to see what you are driving at. If I read you correctly, you are saying that essentially the only uncertainty on displacement is the uncertainty on the amplitude parameter A.
The other parameters have an uncertainty, too.

My method of doing this is by estimating the local deviation between the "fitted" velocity, and the velocity that would be obtained by differentiating the displacement data with respect to time.
That is indeed a huge overestimate of the uncertainty.

Do you have a different approach to estimating the rms error on the velocity? If so, can you provide some details? It sounds interesting.
See my previous posts.
 

Related to Uncertainty Analysis Homework: Vel Calc from Line of Best Fit

What is uncertainty analysis in the context of calculating velocity from a line of best fit?

Uncertainty analysis is a method used to determine the range of possible values for a calculated quantity, taking into account the uncertainties in the measurements used to obtain that quantity. In the case of calculating velocity from a line of best fit, uncertainty analysis can help determine the range of possible velocities that could result from the data, accounting for the uncertainties in the data points.

What are the steps involved in performing an uncertainty analysis for velocity calculations from a line of best fit?

The steps involved in performing an uncertainty analysis for velocity calculations from a line of best fit include:

  • 1. Determine the uncertainties in the data points used to create the line of best fit
  • 2. Propagate these uncertainties through the slope and intercept calculations to obtain uncertainties in these values
  • 3. Use these uncertainties to determine the range of possible values for the slope and intercept, and therefore the velocity
  • 4. Consider any additional sources of uncertainty, such as instrument precision, and incorporate them into the final uncertainty estimate

Why is it important to perform an uncertainty analysis when calculating velocity from a line of best fit?

Performing an uncertainty analysis is important because it provides a measure of the reliability and accuracy of the calculated velocity. By taking into account the uncertainties in the data, the final velocity value can be reported with a corresponding uncertainty, giving a more complete understanding of the measurement.

What are some common sources of uncertainty when calculating velocity from a line of best fit?

Some common sources of uncertainty when calculating velocity from a line of best fit include:

  • 1. Uncertainties in the measurements themselves, such as the precision of the instrument used to collect the data
  • 2. Variations in the data points, which can lead to different lines of best fit and therefore different velocity values
  • 3. Assumptions made in the calculation, such as assuming a linear relationship between the variables
  • 4. Human error in recording or analyzing the data

How can uncertainty analysis be used to improve the accuracy of velocity calculations from a line of best fit?

Uncertainty analysis can be used to improve the accuracy of velocity calculations from a line of best fit by identifying and accounting for potential sources of error. By propagating the uncertainties through the calculations, a more realistic and accurate range of possible velocity values can be determined, providing a more complete picture of the measurement. Additionally, the uncertainty analysis can help identify areas where improvements can be made, such as reducing measurement uncertainties or using a more appropriate model for the data.

Similar threads

  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
15
Views
315
  • Introductory Physics Homework Help
Replies
20
Views
3K
  • Introductory Physics Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
8
Views
3K
  • Introductory Physics Homework Help
Replies
8
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
30
Views
2K
  • Introductory Physics Homework Help
Replies
6
Views
947
  • Introductory Physics Homework Help
Replies
1
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
2K
Back
Top