Skip to content

Methods · Machine learning · Density estimation

Noise-Contrastive Estimation of an Unnormalised Density

Noise-contrastive estimation fits a density model whose normalising constant is unknown. It turns density estimation into classification: a logistic regression learns to tell the data apart from samples of a known noise distribution, and the log normalising constant is estimated as one more parameter.

잡음 대조 추정은 정규화 상수를 모르는 밀도 모형을 적합합니다. 밀도 추정을 분류 문제로 바꾸어, 로지스틱 회귀가 자료와 알려진 잡음 분포의 표본을 구별하도록 배우고 로그 정규화 상수도 모수 하나로 함께 추정합니다.

Can I estimate a flexible density, including its normalising constant, without computing the constant by integration?

정규화 상수를 적분으로 계산하지 않고도 그 상수를 포함한 유연한 밀도를 추정할 수 있는지 알고 싶습니다.

The method standardises the data, draws Gaussian noise with the data's mean and covariance, and fits the unnormalised log-density, a polynomial exponential family for one column or a Gaussian for several, by logistic regression of data against noise with the noise log-density as offset. Estimates come with sandwich standard errors, and a self-normalisation check compares the estimated constant with the exact one.

When to use Noise-Contrastive Estimation of an Unnormalised Density

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Noise-contrastive estimation with [value] noise samples estimated the log normalising constant as c = [value]; c + log Z = [value] by numerical integration.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 3 reference tests compare the results with statsmodels and direct computations (formulas, enumeration or simulation).

    독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 3건 통과.

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 Noise-Contrastive Estimation of an Unnormalised Density on Quorant

Data you need
a table (CSV or Excel) with predictor (feature) columns
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 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 Q71125 · Reviewed 2026-10-25