Curve fitting with more than 3 variables
Show older comments
Good morning,
I'm trying to find an equating to corelate four variables.
So i've done a set of simulations and i obtained the following results.

where x, y and z are the inputs and w the output.
What i wanted to do is to have an equation that giving x, y and w i can calculate the Z.
Is this possible in matlab? I've tried to use curve fitting tool and get 3 different polynomial equations but the results are not ok...
Thank you in advance
Accepted Answer
More Answers (1)
Do you really think that there is a causal correlation between the housenumber and the energy from the grid ? So if the house number were 500, the energy from the grid were the tenfold of housenumber 50, e.g ?
Take a look here:
Or do you mean "number of houses" instead of "house number" ?
In any case, you will have to assume how w is related with x, y and z. E.g. if you think a linear approach is sufficient, you can try
w = a0 + a1*x + a2*y + a3*z
and estimate a0,..,a3 using linear regression.
1 Comment
Adriana Mar de Jesus
on 3 Oct 2023
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





