Esta página aún no se ha traducido para esta versión. Puede ver la versión más reciente de esta página en inglés.

Regresión lineal múltiple

Regresión lineal con múltiples variables predictoras

Para una mayor precisión en los conjuntos de datos de bajo a medio dimensional, ajuste un modelo de regresión lineal utilizando fitlm.

Para un tiempo de cómputo reducido en conjuntos de datos de alta dimensión que caben en el espacio de trabajo MATLAB®, ajuste un modelo de regresión lineal utilizando fitrlinear.

Aplicaciones

Estudiante de regresiónTrain regression models to predict data using supervised machine learning

Clases

LinearModelLinear regression model class
CompactLinearModelCompact linear regression model class
RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data

Funciones

fitlmCreate linear regression model
stepwiselm Create linear regression model using stepwise regression
compactCompact linear regression model
dispDisplay linear regression model
fevalEvaluate linear regression model prediction
predictPredict response of linear regression model
randomSimulate responses for linear regression model
plotScatter plot or added variable plot of linear model
plotAdjustedResponseAdjusted response plot for linear regression model
fitrlinearFit linear regression model to high-dimensional data
predictPredict response of linear regression model
dummyvarCreate dummy variables
invpredInverse prediction
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plsregressPartial least-squares regression
relieffRank importance of predictors using ReliefF or RReliefF algorithm
x2fxConvert predictor matrix to design matrix
regressMultiple linear regression
robustdemoInteractive robust regression
robustfitRobust regression
rsmdemoInteractive response surface demonstration
rstoolInteractive response surface modeling

Ejemplos y procedimientos

Linear Regression

Fit a linear regression model and examine the result.

Interpret Linear Regression Results

Display and interpret linear regression output statistics.

Linear Regression Workflow

Import and prepare data, fit a regression, test and improve its quality, and share it.

Regression with Categorical Covariates

Perform a regression with categorical covariates using categorical arrays and fitlm.

Regression Using Tables

This example shows how to perform linear and stepwise regression analyses using tables.

Robust Regression — Reduce Outlier Effects

Fit a robust model that is less sensitive than ordinary least squares to large changes in small parts of the data.

Parametric Regression Analysis

Choose a regression function, and update legacy code using new fitting functions.

Partial Least Squares

Partial least squares (PLS) constructs new predictor variables as linear combinations of the original predictor variables, while considering the observed response values, leading to a parsimonious model with reliable predictive power.

Conceptos

What Are Linear Regression Models?

Regression models describe the relationship between a dependent variable and one or more independent variables.

Wilkinson Notation

Wilkinson notation provides a way to describe regression and repeated measures models without specifying coefficient values.