Error Calculations: Calculating the Gradient & Error Propagation

Click For Summary
SUMMARY

This discussion focuses on calculating the gradient of a line of best fit using the formula M = (n∑xy - ∑x∑y) / (n∑x² - (∑x)²). Additionally, it addresses the calculation of the error on this gradient, represented by σM = √[∑((y - Y) - M(x - X))²] / (n∑x² - (∑x)²). The error calculation is linked to the standard deviation of a normal distribution, indicating that random effects contribute to the observed errors. The discussion highlights the need for a deeper understanding of error propagation rules to derive the gradient error formula.

PREREQUISITES
  • Understanding of linear regression and the method of least squares
  • Familiarity with statistical concepts such as mean and standard deviation
  • Knowledge of error propagation principles in statistics
  • Basic proficiency in LaTeX for mathematical notation
NEXT STEPS
  • Study the derivation of the least squares method in linear regression
  • Learn about error propagation techniques in statistics
  • Explore the properties of normal distributions and their applications
  • Practice using LaTeX for formatting mathematical equations
USEFUL FOR

Students in statistics or data analysis, researchers working with experimental data, and anyone interested in understanding error calculations in regression analysis.

BOAS
Messages
546
Reaction score
19
There isn't a problem question really, but I think this section is most appropriate since this is a question born out of my lab module.

To calculate the gradient of a line of best fit for a set of data you can use the equation


M = n [itex]\sum[/itex]xy - [itex]\sum[/itex]x[itex]\sum[/itex]y / n[itex]\sum[/itex]x2 - ([itex]\sum[/itex]x)2

Where [itex]\sum[/itex]xy = x1y1 + x2y2... and so on.

I'm told that you can calculate the eroor on this gradient to be

σM = [itex]\sqrt{\sum}[(y-Y)[/itex]-M(x-X)]2 / n[itex]\sum[/itex]x2 - ([itex]\sum[/itex]x)2



Capital letters are supposed represent mean values of x and y (don't know how to get xbar in latex) and the square root should encompass the entire equation.

My question is this, from what rule of error propagation do we arrive at this equation? I can't see how i'd arrive at this using what I already know, so I'm thinking there's some stuff here that I'm missing.

Again, this is not homework, but for peace of mind.

Thanks!
 
Physics news on Phys.org
The function you've given for the error is an estimate of the standard deviation of a normal, or Gaussian error distribution. Errors that are caused by random effects follow this distribution. See the Wiki article for more info

http://en.wikipedia.org/wiki/Normal_distribution
 

Similar threads

Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
9K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K