Regarding the answer by MRocklin on his own question "Multivariate polynomial regression with numpy", could anyone please explain how to understand the output "beta" in the function multipolyfit(xs, y, deg, full=False, model_out=False, powers_out=False)
of core.py?
For example if xs
has two independent variables a
, b
and y
is the dependent variable, suppose I do
beta = multiplotfit(xs,y,2)
then what should be beta[0], beta[1], ...
? Which is constant term, which is the coefficient of x, and so on? Thank you so much!