Conditional Predictive Ordinate (CPO) and LPML
The conditional predictive ordinate of an observation is its predictive density when the model is fitted to all other observations; summing their logarithms gives the log pseudo-marginal likelihood (LPML).
조건부 예측 세로좌표(CPO)는 한 관측값을 뺀 나머지 자료로 모형을 적합했을 때 그 관측값이 가지는 예측 밀도이며, 그 로그를 모두 더한 값이 로그 유사 주변우도(LPML)입니다.
Which observations does my Bayesian regression predict poorly, and does adding predictors improve out-of-sample prediction?
베이지안 회귀모형이 잘 예측하지 못하는 관측값은 무엇이며, 예측변수를 더하면 표본 밖 예측이 좋아질까요?
For the normal linear model with the usual noninformative prior each CPO is an exact Student-t leave-one-out density, so no refitting or sampling is needed. Very small CPOs flag poorly predicted observations, LPML summarises predictive fit, and the ratio of two models' pseudo-marginal likelihoods (pseudo-Bayes factor) compares them. The harmonic-mean estimate from posterior draws is shown so you can see when that generic estimator is unreliable.
When to use Conditional Predictive Ordinate (CPO) and LPML
- You want leave-one-out predictive diagnostics for a Bayesian linear regression.
- You want to find observations that are surprising under the model.
- You want to compare nested regression models by predictive performance rather than by a marginal likelihood.
When to use something else
- You already have pointwise log-likelihood draws from any model and want WAIC or PSIS-LOO: use Information Criteria from Pointwise Log-Likelihood (WAIC, PSIS-LOO, DIC)
- You need classical influence measures such as Cook's distance: use Leave-One-Out Influence Measures and PRESS for Linear Regression
Assumptions and requirements
- Normal errors with constant variance
- Independent observations
- Noninformative prior p(beta, sigma^2) proportional to 1/sigma^2
What the analysis reports
- Exact and Monte Carlo CPO for each observation
- LPML and -2 LPML
- Observations with very low CPO
- Pseudo-Bayes factor against a reduced model
How to report it
Leave-one-out predictive checking of the Bayesian regression (N = [value]) gave LPML = [value]; [value] observations had a CPO more than 40 times below the median, and the pseudo-Bayes factor against the model without [predictor] was [value].
Related methods
- Bayesian Linear Regression
- Information Criteria from Pointwise Log-Likelihood (WAIC, PSIS-LOO, DIC)
- Leave-One-Out Influence Measures and PRESS for Linear Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 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 Conditional Predictive Ordinate (CPO) and LPML on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and 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.