Fit a Linear Regression Model - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Tasks : Statistics : Task/FitLinearRegressionModel

Fit a Linear Regression Model

Description

Fit a linear regression model to a data set.

Define a Matrix containing the values of the independent variable(s). Each column represents the values of a single variable.

Matrix38,91,1,63,23,63,scan=columns

38911632363

(1)

Define a Vector containing the values of the dependent variable.

Vector31,50,80,43,25,94

315080432594

(2)

Specify the component functions, and then fit a linear regression model to the data set.

StatisticsLinearFit1,t, t2,,,t

20.34612714520960.925804839711395t+0.0116487167164782t2

(3)

Commands Used

Matrix, Statistics[LinearFit], Vector

See Also

Statistics, Statistics[PolynomialFit]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam