I'm trying to create a model for a data set that depends on two different variables, and first started by finding models that relate the variable i'm interested in (let's call it z) to the two other variables that z depends on (let's call them x and y).
So say these models were something like:
z = 6x^3 + 2x^2 + 3x + 5
z = 3y^4 + 8y^3 + y^2 + 4y + 1
How would I go about using these to get a function of the form z = f(x, y)?
My first instinct is to just add the two equations together and isolate z, but the resulting model doesn't seem like it works very well, which seemed odd considering both of my individual functions modeled the 2D relationship pretty well.
So say these models were something like:
z = 6x^3 + 2x^2 + 3x + 5
z = 3y^4 + 8y^3 + y^2 + 4y + 1
How would I go about using these to get a function of the form z = f(x, y)?
My first instinct is to just add the two equations together and isolate z, but the resulting model doesn't seem like it works very well, which seemed odd considering both of my individual functions modeled the 2D relationship pretty well.