Skip to content

Methods · Bayesian statistics · Hierarchical models

Bayes Empirical Bayes (Normal Hierarchical Model)

Bayes empirical Bayes estimates many unit effects by shrinking each toward a common mean, but instead of plugging in estimated hyperparameters it places a prior on them and integrates them out, so the unit intervals carry the uncertainty about how much to shrink.

베이즈 경험적 베이즈는 여러 단위의 효과를 공통 평균 쪽으로 축소해 추정하되, 추정한 초모수를 그대로 꽂아 넣지 않고 초모수에 사전분포를 두어 적분해 없애므로 얼마나 축소할지에 대한 불확실성까지 단위별 구간에 반영합니다.

I have estimates and standard errors for many schools, hospitals or studies; how do I shrink them toward each other without understating uncertainty when the between-unit variance is poorly estimated?

여러 학교나 병원의 추정치와 표준오차가 있는데, 단위 간 분산이 잘 추정되지 않을 때 불확실성을 과소평가하지 않으면서 서로 쪽으로 축소 추정하려면 어떻게 하나요?

Give one estimate and its sampling variance per unit. The normal-normal model is solved exactly: the mean is integrated analytically and the between-unit SD by adaptive quadrature under a uniform or half-Cauchy prior. Each unit gets a posterior mean, SD and credible interval, shown next to the plug-in empirical Bayes values and their ratio.

When to use Bayes Empirical Bayes (Normal Hierarchical Model)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

A Bayes empirical Bayes analysis of [value] units estimated the population mean at [value], 95% CrI [[value], [value]], and the between-unit SD at [value] [[value], [value]]; unit posterior SDs were [value] times the empirical Bayes SDs.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-6).

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 Bayes Empirical Bayes (Normal Hierarchical Model) on Quorant

Data you need
a table (CSV or Excel) with effect and variance
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 Q15027 · Reviewed 2026-10-25