Need help i'm japanese


(Miryuu315315) #1

Hi,i’m japanese.i can’t wrtting English but i can reading!
I want to least-squares.
how to use my created model function?


(Miryuu315315) #2

↓Example Python Code↓
def func(x, a, b, c):
return a + bx + cx*x
paramater_optimal, covariance = scipy.optimize.curve_fit(func, xdata, ydata, p0=parameter_initial)


(Peter Vanderwaart) #3

There is a discussion of least squares and multiple regression here.

The documentation of the MathNet functions is here. The least squares functions are in Mathnet.Numerics.LinearRegression. Many of the statistical functions you are interested in, e.g. covariance, are in MathNet.Numerics,Statistics.ArrayStatistics and MathNet.Numerics.GoodnessOfFit.