Calculating Error in Y-Intercept for Fixed Slope Linest in Excel

  • Thread starter Thread starter Lorna
  • Start date Start date
  • Tags Tags
    Excel Slope
AI Thread Summary
To use fit data with a fixed slope in Excel, the LINEST function is not suitable for this purpose. Instead, the slope (m) can be set manually, and the y-intercept (b) can be calculated using the formula b = avg(y) - m*avg(x). This approach allows for the adjustment of the slope while determining the intercept based on the data. A question arose regarding the calculation of the error in the y-intercept, which remains unanswered in the discussion.
Lorna
Messages
44
Reaction score
0
Hello,

Does anyone have an idea about how to use fit data with a line while fixing the slope in MS. Excel? Does linest by anyway capable of doing that?

Thank you

Lorna
 
Physics news on Phys.org
I doubt that linest has the ability to fix the slope, but you don't need it anyway. If you look at the equations for least squares line fit (i.e. y = mx + b), the intercept is calculated by:

b = avg(y) - m*avg(x)
 
Oh yes! Thank you a lot!

How would we calculate the error in the y-intercept? would it be zero?

Thank you!
 

Similar threads

Back
Top