Finding uncertainty of a slope

16 visualizaciones (últimos 30 días)
Bugrahan Guner
Bugrahan Guner el 28 de Ag. de 2023
Respondida: Star Strider el 28 de Ag. de 2023
I have 5 data sets. After I average each one of them within themselves, I fit a line to the resultant 5 data points. I would love to receive some suggestions toward how to find the +- uncertainty for the slope of this line and how to achieve it through MATLAB.
Thanks in advance!

Respuestas (1)

Star Strider
Star Strider el 28 de Ag. de 2023
This is straightforward if you have the Statistics and Machine Learning Toolbox. Use regress to get the confidence intervals. The fitlm function provides probability values (that the slope and other parameters individually are different from zero) however not the confidence intervals.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by