Fitting a non-linear model to my data
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jan Hegi
am 1 Dez. 2019
Beantwortet: Jeff Miller
am 1 Dez. 2019
Hello,
I need to fit a function to my data. I tried it with multiple regression, but it didn't work.
Since the result needs to be 0, if one of the variables is 0, my idea is to do a multiplication of them and find the ideal exponents.
So it would look like this: y = x1^a * x2^b * x3^c * x4^d
Is there any way to find the ideal a, b, c and d if i have the xi and y?
Thanks in advance
0 Kommentare
Akzeptierte Antwort
Jeff Miller
am 1 Dez. 2019
Take logs and use multiple regression. That is, fit the model
log(y) = a log(x1) + b log(x2) etc
This will give you the best a, b, c, and d values for a least-squares fit in this log representation
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!