Equation selection using subset regression: regsubsets

버전 1.0.0.0 (65.2 KB) 작성자: Bill Whiten
Finds multiple linear regression equations relating measurement data to results. See regtest.html
다운로드 수: 107
업데이트 날짜: 2017/9/28

라이선스 보기

Regression takes a matrix of data columns A (independent variables) and using a linear combination of these columns predicts a vector b of dependent values. Each row of A can be test measurement values and the corresponding element of b the result from the test. So the regression equations predicts the result of the test from the measurement values. A column of ones in A provides a constant term in the regression equation.
Formally we calculate x so that the sum of square errors Ax-b is minimised. A small sum of squares means Ax is a good predictor of b.

The back slash operator \ (as x=A\b) or the function linfit ([x,xse]=linfit(A,b)) provides the solution in simple cases. Often many different dependent variables are recorded and it is not known which provide the best regression predictions. Choosing the best prediction equations is not easy and various methods have been proposed (e.g. Subset Selection in Regression, A J Miller, Model Selection, H Linhart & W Zucchini). The functions demonstrated here investigate all possible subsets of the independent variable up to a given size. From these subset equations the best equations, of which there may be several, are selected. An initial investigation can be used to determine which columns of A are important for further analysis.

인용 양식

Bill Whiten (2024). Equation selection using subset regression: regsubsets (https://www.mathworks.com/matlabcentral/fileexchange/64570-equation-selection-using-subset-regression-regsubsets), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2017b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0