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
- You want a Bayesian statement about a median or percentile without a distributional model.
- The data are skewed or contain outliers, so a mean-based model is unsuitable.
- You need the probability that the median is above a threshold.
When to use something else
- You want a frequentist confidence interval for a median: use Median and Percentile Confidence Intervals
- You want a Bayesian analysis of a mean under a normal model: use Bayesian t Test (Bayes Factor)
- You want resampling-based uncertainty for any statistic: use Bayesian Bootstrap
Assumptions and requirements
- Independent observations from one population
- A continuous variable; ties are handled as point masses
- Enough observations that the requested credibility does not reach beyond the smallest or largest value
What the analysis reports
- Posterior median and credible interval of the quantile
- Order-statistic interval and its posterior probability
- Posterior mass between consecutive ordered observations
- Probability that the quantile exceeds a reference value
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
- Median and Percentile Confidence Intervals
- Sign Test
- Bayesian Bootstrap
- Harrell-Davis Quantile Estimator with Confidence Interval
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.