다중 선형 회귀
다중 예측 변수를 사용하는 선형 회귀
다중 선형 회귀 모델에서 응답 변수는 둘 이상의 예측 변수에 종속됩니다. LinearModel 객체를 사용하거나 사용하지 않고 다중 선형 회귀를 수행할 수 있습니다. 또는 회귀 학습기 앱을 사용하여 수행할 수도 있습니다.
저차원에서 중간 차원까지의 데이터 세트에 대한 정확도를 높이려면 fitlm을 사용하여 선형 회귀 모델을 피팅하십시오.
고차원 데이터 세트에 대한 계산 시간을 단축하려면 fitrlinear를 사용하여 선형 회귀 모델을 피팅하십시오.
앱
| 회귀 학습기 | 머신러닝 지도 학습을 사용하여 데이터를 예측하도록 회귀 모델 훈련시키기 |
블록
| RegressionLinear Predict | 선형 회귀 모델을 사용하여 응답 예측 (R2023a 이후) |
| IncrementalRegressionLinear Predict | Predict responses using incremental linear regression model (R2023b 이후) |
| IncrementalRegressionLinear Fit | Fit incremental linear regression model (R2023b 이후) |
| Detect Drift | Update drift detector states and drift status with new data (R2024b 이후) |
| Per Observation Loss | Per observation regression or classification error of incremental model (R2025a 이후) |
| Update Metrics | Update performance metrics in incremental learning model given new data (R2023b 이후) |
함수
객체
LinearModel | 선형 회귀 모델 |
CompactLinearModel | 간소 선형 회귀 모델 |
CensoredLinearModel | Censored linear regression model (R2025a 이후) |
CompactCensoredLinearModel | Compact censored linear regression model (R2025a 이후) |
RegressionLinear | Linear regression model for high-dimensional data |
RegressionPartitionedLinear | Cross-validated linear regression model for high-dimensional data |
RegressionQuantileLinear | Quantile linear regression model (R2024b 이후) |
CompactRegressionQuantileLinear | Compact quantile linear regression model (R2025a 이후) |
RegressionPartitionedQuantileModel | Cross-validated quantile model for regression (R2025a 이후) |
도움말 항목
선형 회귀 소개
- 선형 회귀 모델이란?
회귀 모델은 종속 변수와 하나 이상의 독립 변수 간의 관계를 설명합니다. - 선형 회귀
선형 회귀 모델을 피팅하고 결과를 검토합니다. - 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.
선형 회귀 워크플로
- Linear Regression Workflow
Import and prepare data, fit a linear regression model, test and improve its quality, and share the model. - 선형 회귀 결과 해석하기
선형 회귀 결과 출력되는 통계량을 표시하고 해석합니다. - 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 andfitlm. - Working with Quantile Regression Models
Estimate prediction intervals and create models that are robust to outliers by using quantile regression models. - Regularize Quantile Regression Model to Prevent Quantile Crossing
Use regularization to prevent quantile crossing in quantile regression models. - Analyze Time Series Data
This example shows how to visualize and analyze time series data using atimeseriesobject and theregressfunction. - Train Linear Regression Model
Train a linear regression model usingfitlmto analyze in-memory data and out-of-memory data. - Predict Responses Using RegressionLinear Predict Block
This example shows how to use the RegressionLinear Predict block for response prediction in Simulink®. (R2023a 이후) - Accelerate Linear Model Fitting on GPU
This example shows how you can accelerate regression model fitting by running functions on a graphical processing unit (GPU). - Statistics and Machine Learning with Big Data Using Tall Arrays
This example shows how to perform statistical analysis and machine learning on out-of-memory data with MATLAB® and Statistics and Machine Learning Toolbox™.
부분 최소제곱 회귀
- 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. - 부분 최소제곱 회귀 및 주성분 회귀
부분 최소제곱 회귀(PLSR) 및 주성분 회귀(PCR)를 적용하고 이 두 방법의 효과를 살펴봅니다.