Constrained and Non-Negative Least Squares
Constrained least squares estimates regression coefficients that satisfy linear equality restrictions and bounds, such as non-negativity, and tests whether the equality restrictions are consistent with the data.
제약 최소제곱법은 비음수 조건 같은 범위 제약과 선형 등식 제약을 만족하는 회귀계수를 추정하고, 등식 제약이 자료와 맞는지 검정합니다.
Theory says my coefficients must be non-negative and two of them must sum to one; how do I estimate the regression under those restrictions?
이론상 계수가 음수일 수 없고 두 계수의 합이 1이어야 하는데, 이 제약을 걸고 회귀를 어떻게 추정하나요?
Minimise the residual sum of squares subject to the stated equalities and bounds, using bounded-variable least squares, the closed-form restricted estimator or a quadratic programme as needed. Report which bounds are active, an F test of the equality restrictions against the unrestricted fit, and pairs-bootstrap standard errors and percentile intervals.
When to use Constrained and Non-Negative Least Squares
- Coefficients have known signs or ranges, such as mixing weights or shares.
- Theory imposes linear restrictions like constant returns to scale.
- You want to test whether such restrictions fit the data.
When to use something else
- You want to shrink coefficients for prediction rather than impose known limits; use ridge or lasso regression.
- The restrictions are nonlinear in the coefficients; use nonlinear least squares with constraints.
Assumptions and requirements
- Constraints are linear and mutually consistent.
- When a bound is active, coefficient distributions are not normal; bootstrap intervals are used.
- The F test of equalities is exact only under normal errors and without active bounds.
What the analysis reports
- Constrained coefficients alongside OLS estimates
- Active bounds
- Restricted F test of the equality constraints
- Bootstrap standard errors and percentile confidence intervals
How to report it
Under the restriction [constraint], the constrained estimates were [values]; the restriction was not rejected, F([value], [value]) = [value], p = [value], and [value] non-negativity bounds were active.
Related methods
- Multiple Linear Regression
- Ridge Regression
- Isotonic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy, statsmodels and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Constrained and Non-Negative Least Squares on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.