Skip to content

Methods · Bayesian statistics · Bayesian nonparametric inference

Jeffreys Substitution Posterior for the Median

The method gives a posterior distribution for the median, or any other quantile, without assuming a distribution for the data. It uses only how many observations fall below a candidate value: the probability that exactly i of n observations lie below the p-quantile is binomial, and Jeffreys used this as the probability that the quantile lies between the i-th and (i+1)-th ordered observations. A flat prior over a stated range can be used instead. Posterior medians, credible intervals and the probability that the quantile exceeds a reference value follow directly.

자료의 분포를 가정하지 않고 중앙값이나 다른 분위수의 사후분포를 구합니다. 후보 값보다 작은 관측값의 개수만 사용합니다. n개 중 정확히 i개가 p 분위수보다 작을 확률은 이항확률이며, 제프리스는 이것을 분위수가 i번째와 i+1번째 순서통계량 사이에 있을 확률로 보았습니다. 대신 정해진 범위의 평평한 사전분포를 쓸 수도 있습니다. 이로부터 사후 중앙값, 신용구간, 분위수가 기준값을 넘을 확률을 바로 얻습니다.

Given my sample, where is the population median (or another quantile) likely to be, and how sure can I be that it exceeds a given value, without assuming normality?

정규성을 가정하지 않을 때, 표본으로 보아 모집단 중앙값(또는 다른 분위수)은 어디에 있을 가능성이 높으며 그것이 주어진 값을 넘는다고 얼마나 확신할 수 있습니까?

The method returns the posterior median of the quantile, an equal-tailed credible interval, the order-statistic interval with its exact posterior probability, the posterior mass of each interval between ordered observations, and optionally the probability that the quantile exceeds a reference value.

When to use Jeffreys Substitution Posterior for the Median

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Using the Jeffreys substitution likelihood (N = [value]), the posterior median of the median was [value], 95% credible interval [[value], [value]]; the posterior probability that the median exceeds [value] was [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 3 reference tests compare the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-4.

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

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 Jeffreys Substitution Posterior for the Median on Quorant

Data you need
a table (CSV or Excel) with an outcome variable
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 Q15157 · Reviewed 2026-10-25