- #1

- 1

- 0

Hi all,

This is my first post here. As a bit of background I have a keen interest in mathematics, but I'm not necessarily strong in it...

Today I was working with a dataset that models difference in elevation values (dH) over time (x). I have approximately 20 samples, of which each dH value has a different uncertainty (time is considered error free). The model is quite clearly non-linear, so I performed a quadratic regression using a weighted ordinary Least Squares routine to solve for the highlighted coefficients below, weighting the observations to account for their uncertainty.

The coefficients were derived successfully and the model fits well, as confirmed through statistical tests. Check.

As part of the Least Squares routine, I also calculated the standard deviation for each of the parameters (i.e. quadratic coefficients), as this is important to my analysis. This was done by calculating the variance factor (VF), then quality matrix (Qx), then taking √(diagonal(Qx)) = standard deviation. So the net result is three coefficients,

Here comes the part where I'm stuck (and the basis for my question). I need to calculate the derivative of the resulting quadratic function, i.e. the rate of change of dH, and evaluate it at a particular point in time. Calculating the derivative itself is straightforward:

What I'm confused about is how I calculate the standard deviation of the derivative solution at a particular point in time? I'm assuming this requires some form of propagation of variances from the quadratic coefficent standard deviations, but I'm unsure how that works when a derivative is involved...

To clarify, let's say that coefficient

But how do I calculate the standard deviation of the answer? Is it as simple as substituting the respective coefficient standard deviations into the equation? I.e.:

I have tried searching for an explanation across the web without success. Can someone please shed some light on this, or point me in the right direction?

Many thanks,

Jack

This is my first post here. As a bit of background I have a keen interest in mathematics, but I'm not necessarily strong in it...

Today I was working with a dataset that models difference in elevation values (dH) over time (x). I have approximately 20 samples, of which each dH value has a different uncertainty (time is considered error free). The model is quite clearly non-linear, so I performed a quadratic regression using a weighted ordinary Least Squares routine to solve for the highlighted coefficients below, weighting the observations to account for their uncertainty.

**dH = ax**^{2}+bx+cThe coefficients were derived successfully and the model fits well, as confirmed through statistical tests. Check.

As part of the Least Squares routine, I also calculated the standard deviation for each of the parameters (i.e. quadratic coefficients), as this is important to my analysis. This was done by calculating the variance factor (VF), then quality matrix (Qx), then taking √(diagonal(Qx)) = standard deviation. So the net result is three coefficients,

**a**,**b**and**c**, each with their own standard deviation. Check.Here comes the part where I'm stuck (and the basis for my question). I need to calculate the derivative of the resulting quadratic function, i.e. the rate of change of dH, and evaluate it at a particular point in time. Calculating the derivative itself is straightforward:

**Derivative(dH) = 2ax + b**What I'm confused about is how I calculate the standard deviation of the derivative solution at a particular point in time? I'm assuming this requires some form of propagation of variances from the quadratic coefficent standard deviations, but I'm unsure how that works when a derivative is involved...

To clarify, let's say that coefficient

**a = 3 (std dev = 0.3)**,**b = 7 (std dev = 0.45)**and**c = 2 (std dev = 0.15)**, and I want to evaluate the rate of change of dH (i.e. Derivative(dH)) at**x = 4**.**2*3*4 + 7 = 31**But how do I calculate the standard deviation of the answer? Is it as simple as substituting the respective coefficient standard deviations into the equation? I.e.:

**2*0.3*4 + 0.45 = 2.85**I have tried searching for an explanation across the web without success. Can someone please shed some light on this, or point me in the right direction?

Many thanks,

Jack

Last edited: