Main Content

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 conjuntos de datos de baja dimensión a media dimensión, ajuste un modelo de regresión lineal utilizando .fitlm

Para reducir el tiempo de cálculo en conjuntos de datos de alta dimensión, ajuste un modelo de regresión lineal mediante .fitrlinear

Apps

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

Objetos

LinearModelModelo de regresión lineal
CompactLinearModelCompact linear regression model
RegressionLinearLinear regression model for high-dimensional data
RegressionPartitionedLinearCross-validated linear regression model for high-dimensional data

Funciones

expandir todo

Crear objetoLinearModel

fitlmAjustar modelo de regresión lineal
stepwiselmPerform stepwise regression

Crear objetoCompactLinearModel

compactCompact linear regression model

Agregar o quitar términos del modelo lineal

addTermsAdd terms to linear regression model
removeTermsRemove terms from linear regression model
stepImprove linear regression model by adding or removing terms

Predecir respuestas

fevalPredict responses of linear regression model using one input for each predictor
predictPredict responses of linear regression model
randomSimulate responses with random noise for linear regression model

Evaluar modelo lineal

anovaAnalysis of variance for linear regression model
coefCIConfidence intervals of coefficient estimates of linear regression model
coefTestLinear hypothesis test on linear regression model coefficients
dwtestDurbin-Watson test with linear regression model object

Visualizar estadísticas de resumen y modelo lineal

plotScatter plot or added variable plot of linear regression model
plotAddedAdded variable plot of linear regression model
plotAdjustedResponseAdjusted response plot of linear regression model
plotDiagnosticsPlot observation diagnostics of linear regression model
plotEffectsPlot main effects of predictors in linear regression model
plotInteractionPlot interaction effects of two predictors in linear regression model
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
plotResidualsPlot residuals of linear regression model
plotSlicePlot of slices through fitted linear regression surface

Crear objeto

fitrlinearFit linear regression model to high-dimensional data

Trabajar con objetoRegressionLinear

predictPredict response of linear regression model
lossRegression loss for linear regression models
plotPartialDependenceCreate partial dependence plot (PDP) and individual conditional expectation (ICE) plots
selectModelsSelect fitted regularized linear regression models

Trabajar con objetoRegressionPartitionedLinear

kfoldLossRegression loss for observations not used in training
kfoldPredictPredict responses for observations not used for training

Ajustar y evaluar la regresión lineal

dwtestDurbin-Watson test with residual inputs
invpredInverse prediction
linhyptestLinear hypothesis test
plsregressPartial least-squares regression
regressRegresión lineal múltiple
regstatsRegression diagnostics
relieffRank importance of predictors using ReliefF or RReliefF algorithm
robustfitFit robust linear regression
stepwisefitFit linear regression model using stepwise regression

Preparar datos

x2fxConvert predictor matrix to design matrix
dummyvarCreate dummy variables

Herramientas interactivas

robustdemoInteractive robust regression
rsmdemoInteractive response surface demonstration
rstoolInteractive response surface modeling
stepwiseInteractive stepwise regression

Temas

Introducción a la regresión lineal

What Is a Linear Regression Model?

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

Regresión lineal

Ajuste un modelo de regresión lineal y examine el resultado.

Stepwise Regression

In stepwise regression, predictors are automatically added to or trimmed from a model.

Reduce Outlier Effects Using Robust Regression

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

Choose a Regression Function

Choose a regression function depending on the type of regression problem, and update legacy code using new fitting functions.

Summary of Output and Diagnostic Statistics

Evaluate a fitted model by using model properties and object functions.

Wilkinson Notation

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

Flujos de trabajo de regresión lineal

Linear Regression Workflow

Import and prepare data, fit a linear regression model, test and improve its quality, and share the model.

Interpretar resultados de regresión lineal

Mostrar e interpretar estadísticas de salida de regresión lineal.

Linear Regression with Interaction Effects

Construct and analyze a linear regression model with interaction effects and interpret the results.

Linear Regression Using Tables

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

Linear Regression with Categorical Covariates

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

Train Linear Regression Model

Train linear regression model using fitlm to analyze in-memory data and out-of-memory data.

Regresión parcial de mínimos cuadrados

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.

Regresión parcial de mínimos cuadrados y regresión de componentes principales

Este ejemplo muestra cómo aplicar la regresión parcial de mínimos cuadrados (PLSR) y la regresión de componentes principales (PCR), y describe la eficacia de los dos métodos.