Different results with Polyfit?
Ältere Kommentare anzeigen
I'm using polyfit to get a simple lineal regression of degree 1
howver the coefficients from the lineal equation varies slightly. Is not a big variation but each time I run polyfit the coeficients are slightly different than the run before.
Indeed if I run polyfit in a loop or using a bootstrap I obtained several similar values but slightly different.
I know the results is ok and is probably related with the uncertainty of polyfit estimation, but I dont understand the mathematics behind this slight variation.
Does anyone have an idea why this happens?
Cheers
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Resampling Techniques finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!