Papers
Topics
Authors
Recent
Search
2000 character limit reached

Maximum A Posteriori Ratio Test (MAPRT)

Updated 7 July 2026
  • MAPRT is a Bayesian decision rule that compares posterior odds between competing hypotheses, integrating prior information to achieve optimal decision-making.
  • It extends beyond simple binary tests to applications such as model order selection in HAADF STEM, distributed radar detection, and statistical inverse problems.
  • The methodology translates complex Bayesian formulations into practical linear discriminant forms, offering insights into error probabilities, CFAR properties, and networked sensing performance.

Maximum A Posteriori Ratio Test (MAPRT) denotes a Bayesian decision rule that compares posterior support between competing hypotheses or models and selects the alternative whose posterior odds, posterior density ratio, or analogous posterior quantity exceeds a prescribed threshold. In the canonical binary form,

ΛMAP(y)=p(yH1)P(H1)p(yH0)P(H0)H1H0η,\Lambda_{\mathrm{MAP}}(y)=\frac{p(y\mid H_1)\,P(H_1)}{p(y\mid H_0)\,P(H_0)} \underset{H_0}{\overset{H_1}{\gtrless}} \eta,

with η=1\eta=1 for standard MAP under equal priors and costs. The same Bayesian logic reappears in model-order selection through posterior odds between MaM_a and MbM_b, in adaptive radar through EM-estimated posterior responsibilities, and in inverse problems through posterior mass or posterior-density comparisons over constrained parameter sets (Anguluri et al., 2020, Fatermans et al., 2019, Yin et al., 4 Mar 2025, Kretschmann et al., 2024, Abdi et al., 2019).

1. Decision-theoretic formulation

For binary hypotheses, MAPRT is a posterior-odds test. Using Bayes’ rule, the detector multiplies the likelihood ratio by the prior odds and compares the result with a threshold. In this form, MAPRT differs from the pure likelihood ratio test, which compares p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0) alone, and from maximum likelihood, which ignores priors entirely. In the Gaussian case, the log-MAP ratio is the difference of two Gaussian log-likelihoods plus the log prior odds, so the decision boundary is quadratic when the covariances differ and linear when they coincide (Anguluri et al., 2020).

The same structure extends beyond simple binary testing. In model-order selection for HAADF STEM, one compares posterior odds

POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},

and with a uniform prior over model orders the decision reduces to comparing marginal likelihoods. The selected model is

M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).

This makes MAPRT a natural bridge between hypothesis testing and Bayesian evidence maximization (Fatermans et al., 2019).

A distinct but related formulation arises in statistical inverse problems. There, the paper’s primary object is a MAP mass test that compares posterior probabilities of half-spaces,

Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),

where XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\} and XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}. A posterior-density MAPRT can also be defined through

η=1\eta=10

but this is explicitly distinguished from both Bayes factors and the posterior-mass MAP test. A recurrent misconception is to identify all Bayesian tests with Bayes factors; the inverse-problem formulation shows that posterior set comparison, posterior density comparison, and model-evidence comparison are different constructions (Kretschmann et al., 2024).

2. Gaussian discriminants in networked sensing

In networked sensing, MAPRT is instantiated on a discrete-time linear time-invariant network

η=1\eta=11

with measurements

η=1\eta=12

and stacked observation vector η=1\eta=13. Under simple Gaussian input hypotheses

η=1\eta=14

the measurement mean and covariance are

η=1\eta=15

The matrices η=1\eta=16 and η=1\eta=17 encode, respectively, observability and impulse-response structure, so the network filtering induced by η=1\eta=18 is embedded directly into the MAPRT statistic (Anguluri et al., 2020).

For the mean-shift model, η=1\eta=19 and MaM_a0, the MAP detector reduces to a linear discriminant with sufficient statistic

MaM_a1

and a threshold shifted by MaM_a2. For the covariance-shift model, MaM_a3 and MaM_a4, the paper uses a one-dimensional linear discriminant MaM_a5 chosen to maximize the MaM_a6-divergence. The decision rule becomes

MaM_a7

so the statistic is the centered energy MaM_a8, with MaM_a9 selected through a generalized eigenproblem or, equivalently, as a principal eigenvector of MbM_b0 (Anguluri et al., 2020).

The central asymptotic characterization is expressed through the transfer function

MbM_b1

For mean shifts, the asymptotic signal-to-noise ratio is

MbM_b2

with MbM_b3. For covariance shifts, the key quantity is

MbM_b4

The paper proves that the corresponding error probabilities decrease monotonically with MbM_b5 or MbM_b6, respectively. This yields a network-theoretic interpretation of detection performance in terms of input-output gain rather than only graph distance (Anguluri et al., 2020).

Sensor-placement consequences are formulated through node cutsets and downstream partitions. In the noiseless case, measuring the cutset is always at least as good as measuring the downstream partition. In the noisy case, however, the subnetwork transfer

MbM_b7

controls whether cutset or downstream sensors perform better. If the gain from cutset to partition is at most one, cutset sensing is superior; if it exceeds one, downstream sensing can outperform cutset sensing because the downstream subnetwork can amplify the signal relative to noise. The numerical examples make this reversal explicit: in a 10-node synthetic network with MbM_b8, partition nodes achieved lower error probabilities than the cutset node when the “row sums MbM_b9” condition held, while in a 50-node random network the cutset uniformly outperformed every other 3-node subset when p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)0 (Anguluri et al., 2020).

3. Distributed hypothesis testing over graphs

In distributed detection over a pairwise Markov random field, MAPRT appears as a per-node posterior-odds test derived from max-product beliefs. The posterior factorization is

p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)1

with p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)2 and p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)3. At node p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)4, the log-ratio of max-product beliefs is

p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)5

which is the nodewise MAPRT in log form. The local observation contribution is

p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)6

and for coherent Gaussian detection

p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)7

The paper’s key result is that the max-product decision variable is a linear combination of local log-likelihood ratios: p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)8 after enough iterations (Abdi et al., 2019).

This linearity is established by showing that the maximizers inside the message updates are affine functions of neighboring states, which yields linear message-LLR recursions. A one-hop approximation gives

p(yH1)/p(yH0)p(y\mid H_1)/p(y\mid H_0)9

Thus, in the binary-Gaussian setting studied, max-product behaves as linear data fusion rather than as an intrinsically nonlinear detector. The paper reaches the same conclusion for a linearized sum-product recursion, where the coefficients become POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},0, and reports very similar behavior of max-product and sum-product under the distributed hypothesis test (Abdi et al., 2019).

Performance analysis follows because, conditioned on a fixed network state, each POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},1 is Gaussian or approximately Gaussian, so any linear fusion POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},2 is Gaussian as well. This permits explicit false-alarm and detection probabilities

POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},3

with thresholds selected either by Bayesian tuning or, as in the paper, by Neyman–Pearson constraints. A convergence condition is given for the sum-product linearization,

POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},4

which ensures contraction. Simulations on a five-node network with POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},5 samples per node and a training window POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},6 show that the optimal centralized linear fusion (“linOpt”) achieves the best POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},7, the decentralized one-hop optimization (“linProp” and “linPropB”) is close to it, and max-product and sum-product exhibit similar performance while remaining sensitive to the coupling-learning factor POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},8 (Abdi et al., 2019).

4. Evidence-based MAPRT in HAADF STEM

In HAADF STEM, MAPRT is used for atom-column detection and model-order selection. Competing hypotheses POa,b=p(May)p(Mby)=p(yMa)p(Ma)p(yMb)p(Mb),PO_{a,b}=\frac{p(M_a\mid y)}{p(M_b\mid y)} =\frac{p(y\mid M_a)\,p(M_a)}{p(y\mid M_b)\,p(M_b)},9 represent images containing M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).0 projected atom columns. With a uniform prior over M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).1, the posterior satisfies

M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).2

so selection reduces to maximizing the marginal likelihood M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).3. Pairwise MAPRT between two model orders is therefore a posterior-odds test, with threshold M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).4 for pure MAP selection (Fatermans et al., 2019).

The image model represents M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).5 columns by Gaussian peaks on a constant background: M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).6 with reduced-parameter variants for equal widths or equal widths and equal heights. The observation noise is physically Poisson, but the implementation adopts a normal approximation to Poisson with plug-in variance M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).7, which yields

M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).8

Maximum likelihood estimation therefore becomes weighted least squares, and the marginal likelihood is evaluated with a Laplace approximation around the ML estimate M=argmaxkp(Mky).M^*=\arg\max_k p(M_k\mid y).9 (Fatermans et al., 2019).

For the general unequal-width model, the practical posterior expression is

Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),0

with analogous forms for the equal-width and equal-width/equal-height cases. The factors Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),1, the Hessian determinant, and the prior-volume terms are the characteristic finite-sample corrections of this MAPRT. In “information criterion” form,

Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),2

and the paper shows that as Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),3, the leading terms reduce to Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),4, so the MAP rule is asymptotically equivalent to BIC while retaining curvature, labeling, and prior-volume penalties in finite samples (Fatermans et al., 2019).

Algorithmically, the method performs forward selection from Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),5 to Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),6, adds peaks incrementally, tests many initial positions for each added peak, minimizes Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),7 under prior-range constraints, computes the Hessian determinant, and then evaluates Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),8. In simulations of 1000 images of size Π(XKY=y)versusΠ(XHY=y),\Pi(X_K\mid Y=y)\quad \text{versus}\quad \Pi(X_H\mid Y=y),9 with pixel size XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}0, 1–5 randomly positioned Au atoms, dose uniformly XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}1–XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}2, and a Gaussian model with equal widths and equal heights, the MAP rule detected the correct number most frequently at XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}3; AIC, GIC, and HQC tended to overfit, whereas BIC tended to underfit. At XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}4 and XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}5, all criteria improved and the differences narrowed (Fatermans et al., 2019).

A major by-product of this work is the integrated CNR,

XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}6

defined from the integrated signal and integrated background over a footprint of radius XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}7, containing XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}8 of the Gaussian volume. The paper reports that ICNR correlates with atom detectability better than conventional SNR and CNR, and that columns with ICNR less than around XH={x:ϕ,x0}X_H=\{x:\langle \phi,x\rangle\le 0\}9 become challenging, with detection rate rapidly dropping below this value. This distinguishes the MAPRT from a purely formal model-selection device: it also supports quantitative detectability analysis in low-dose imaging (Fatermans et al., 2019).

5. EM-based adaptive radar detection

In adaptive radar, MAPRT is instantiated through a hybrid ML-Bayesian detector for a cell under test XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}0 and secondary target-free data XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}1. The hypotheses are

XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}2

where XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}3, XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}4 is a known steering vector, XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}5 is an unknown target amplitude, and XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}6 is an unknown Hermitian positive definite covariance matrix. Defining

XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}7

the joint likelihoods are

XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}8

XK={x:ϕ,x>0}X_K=\{x:\langle \phi,x\rangle>0\}9

A binary latent variable η=1\eta=100 indexes the hypothesis, with priors η=1\eta=101 estimated inside the EM procedure rather than fixed externally (Yin et al., 4 Mar 2025).

The MAPRT statistic is the posterior ratio

η=1\eta=102

Because EM computes the posterior responsibilities

η=1\eta=103

the same detector can be written as

η=1\eta=104

Its log form is

η=1\eta=105

or equivalently

η=1\eta=106

This makes the radar detector a MAPRT whose posterior terms are estimated jointly with nuisance parameters (Yin et al., 4 Mar 2025).

The EM iteration alternates between an E-step, which computes η=1\eta=107 and η=1\eta=108, and an M-step, which updates

η=1\eta=109

η=1\eta=110

η=1\eta=111

The detector is named EM-BML-D in the paper and is explicitly described as a “generalized MAP” rule because it compares posterior probabilities with ML-estimated nuisance parameters. Initialization with η=1\eta=112, η=1\eta=113, and the generalized matched-filter estimate for η=1\eta=114 yields a CFAR statistic with respect to the unknown η=1\eta=115 (Yin et al., 4 Mar 2025).

The CFAR proof is based on whitening: η=1\eta=116 Under η=1\eta=117, the distribution of η=1\eta=118 depends only on whitened invariants and is therefore independent of η=1\eta=119. By induction over EM iterations, this invariance propagates to the final statistic, so a threshold η=1\eta=120 can be calibrated for a desired η=1\eta=121 without knowing the interference covariance. The paper contrasts this detector with the GLRT and Kelly’s detector, emphasizing that MAPRT incorporates hypothesis priors and fuses information from both hypotheses through the responsibilities, whereas the GLRT remains purely ML-based (Yin et al., 4 Mar 2025).

Numerically, for η=1\eta=122, η=1\eta=123, η=1\eta=124, η=1\eta=125, and η=1\eta=126, the proposed MAPRT achieved η=1\eta=127, versus approximately η=1\eta=128 for GLRT and approximately η=1\eta=129 for AMF. The paper also reports CFAR preservation across η=1\eta=130 from η=1\eta=131 to η=1\eta=132 and correlation η=1\eta=133 from η=1\eta=134 to η=1\eta=135, improved performance on MIT Lincoln Laboratory Phase One data, and robustness under mismatch similar to AMF. Empirically, about five EM iterations suffice, with average execution times for η=1\eta=136 over 1000 trials of approximately η=1\eta=137 for GLRT, η=1\eta=138 for AMF, η=1\eta=139 for EM-BML-D5, and η=1\eta=140 for EM-BML-D7 (Yin et al., 4 Mar 2025).

6. MAPRT and MAP testing in statistical inverse problems

For linear-Gaussian inverse problems on separable Hilbert spaces,

η=1\eta=141

with Gaussian prior η=1\eta=142, the posterior is Gaussian η=1\eta=143 with

η=1\eta=144

η=1\eta=145

The tested feature is η=1\eta=146, with hypotheses

η=1\eta=147

Since

η=1\eta=148

the paper’s MAP mass test rejects η=1\eta=149 iff η=1\eta=150, equivalently iff η=1\eta=151 (Kretschmann et al., 2024).

This mass test admits a linear-statistic representation. Defining

η=1\eta=152

the decision rule becomes

η=1\eta=153

The paper proves an exact Gaussian power formula,

η=1\eta=154

which yields both level and power once η=1\eta=155 or the threshold is calibrated. It also shows that, without a priori restrictions, the level is typically η=1\eta=156; under commuting assumptions and when η=1\eta=157 is an eigenvector of η=1\eta=158, one can obtain exact level η=1\eta=159, and the resulting test coincides with the uniformly most powerful unregularized test (Kretschmann et al., 2024).

A posterior-density MAPRT can also be defined in this setting. Let

η=1\eta=160

Because the posterior is Gaussian and the constrained maximizers are projections of η=1\eta=161 onto the half-space boundaries in the η=1\eta=162-norm, the ratio has the closed form

η=1\eta=163

Hence rejection of η=1\eta=164 at threshold η=1\eta=165 is equivalent to

η=1\eta=166

The paper stresses that this posterior-density MAPRT is distinct from the MAP mass test that forms the main object of the frequentist analysis (Kretschmann et al., 2024).

The regularization viewpoint is central. Under Assumption 2.1, the MAP mass test is a regularized test of the form

η=1\eta=167

with η=1\eta=168 and

η=1\eta=169

Moreover, η=1\eta=170 is the Tikhonov–Phillips regularized solution of η=1\eta=171, or equivalently the solution of

η=1\eta=172

Under the spectral source condition η=1\eta=173, η=1\eta=174, and priors η=1\eta=175 with η=1\eta=176, the paper derives explicit lower bounds on power and shows that for scalings η=1\eta=177, η=1\eta=178, the power tends to η=1\eta=179 as η=1\eta=180. Numerical experiments in deconvolution, numerical differentiation, and the backward heat equation show conservative level control and strong power even in severely ill-posed settings, where unregularized testing becomes numerically infeasible (Kretschmann et al., 2024).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Maximum A Posteriori Ratio Test (MAPRT).