This project has moved. For the latest updates, please go here.

multiple linear regression

Jan 21, 2013 at 9:01 AM

hello there,

I am using MultivariateSample to multiple linear regression.

x are temprature and humidity. Y is electricity.

data like{electricity, temperature,humidity}

here is the code

FitResult regression = people.Columns(new List<int>(new int[]{1,2})).LinearRegression(0);



but the result is not correct?!

Feb 11, 2013 at 10:35 AM
To diagnose the problem, I would need to know the actual content of the columns 1 and 2, is there are way for you to share that?

A multi-linear regression on just two columns is really just a normal linear regression, so you should also be able to do this as:
FitResult regression = people.TwoColumns(2,1).LinearRegression();
Does this give the same result?