Skip to content

Methods · Regression · Linear models

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

When to use something else

Assumptions and requirements

What the analysis reports

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

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.

Method ID Q21071 · Reviewed 2026-10-25