Polya Tree Density Estimation
A Polya tree prior builds a random distribution by splitting the real line into halves, quarters and so on at the quantiles of a centring normal distribution and giving each split a random probability. Centred on a normal, it lets the data pull the density away from normality wherever they demand, and comparing it with the normal family gives a Bayesian test of normality.
폴리아 나무 사전분포는 중심이 되는 정규분포의 분위수에서 실수선을 반, 사분의 일 식으로 계속 나누고 각 분할에 확률을 무작위로 주어 무작위 분포를 만듭니다. 정규분포를 중심에 두면 자료가 요구하는 곳에서만 밀도가 정규에서 벗어나게 할 수 있고, 정규분포족과 비교하면 정규성에 대한 베이즈 검정이 됩니다.
What shape does my outcome's distribution have without assuming a parametric family, and do the data favour departures from normality?
모수적 분포족을 가정하지 않을 때 결과 변수의 분포는 어떤 모양이며, 자료는 정규성에서 벗어나는 쪽을 지지할까요?
You get the posterior predictive density on a grid in closed form with pointwise credible bands from posterior draws, and the Bayes factor of the Polya tree against the normal family, in which the normal mean and SD are integrated out under the same reference prior in both models. A Bayes factor above 1 favours departures from normality.
When to use Polya Tree Density Estimation
- You want a nonparametric Bayesian density estimate with uncertainty
- You want a Bayesian alternative to a normality test
- The outcome is continuous with few ties
When to use something else
- You want a clustering of observations: use Pitman-Yor Process Mixture Model
- You only need a smooth descriptive density: use Kernel Density Estimation
- You want a classical normality test with a p-value: use Shapiro-Wilk Test
Assumptions and requirements
- Observations are exchangeable draws from one continuous distribution
- The tree depth and precision control smoothness; results are partition-dependent
- The density is piecewise proportional to the centring normal within the finest sets
What the analysis reports
- Posterior predictive density with pointwise credible band
- Bayes factor of the Polya tree against the normal family with its Monte Carlo SE
- Plug-in Bayes factor for reference
How to report it
A finite Polya tree prior (depth [value]) centred on a normal distribution gave a Bayes factor against the normal family of [value] (log BF = [value]).
Related methods
- Kernel Density Estimation
- Pitman-Yor Process Mixture Model
- Shapiro-Wilk Test
- Bayesian Finite Mixture Model (Gibbs Sampling)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 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 Polya Tree Density Estimation on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- 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.