Maximum A Posteriori Ratio Test (MAPRT)
- 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,
with for standard MAP under equal priors and costs. The same Bayesian logic reappears in model-order selection through posterior odds between and , 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 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
and with a uniform prior over model orders the decision reduces to comparing marginal likelihoods. The selected model is
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,
where and . A posterior-density MAPRT can also be defined through
0
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
with measurements
2
and stacked observation vector 3. Under simple Gaussian input hypotheses
4
the measurement mean and covariance are
5
The matrices 6 and 7 encode, respectively, observability and impulse-response structure, so the network filtering induced by 8 is embedded directly into the MAPRT statistic (Anguluri et al., 2020).
For the mean-shift model, 9 and 0, the MAP detector reduces to a linear discriminant with sufficient statistic
1
and a threshold shifted by 2. For the covariance-shift model, 3 and 4, the paper uses a one-dimensional linear discriminant 5 chosen to maximize the 6-divergence. The decision rule becomes
7
so the statistic is the centered energy 8, with 9 selected through a generalized eigenproblem or, equivalently, as a principal eigenvector of 0 (Anguluri et al., 2020).
The central asymptotic characterization is expressed through the transfer function
1
For mean shifts, the asymptotic signal-to-noise ratio is
2
with 3. For covariance shifts, the key quantity is
4
The paper proves that the corresponding error probabilities decrease monotonically with 5 or 6, 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
7
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 8, partition nodes achieved lower error probabilities than the cutset node when the “row sums 9” condition held, while in a 50-node random network the cutset uniformly outperformed every other 3-node subset when 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
1
with 2 and 3. At node 4, the log-ratio of max-product beliefs is
5
which is the nodewise MAPRT in log form. The local observation contribution is
6
and for coherent Gaussian detection
7
The paper’s key result is that the max-product decision variable is a linear combination of local log-likelihood ratios: 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
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 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 1 is Gaussian or approximately Gaussian, so any linear fusion 2 is Gaussian as well. This permits explicit false-alarm and detection probabilities
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,
4
which ensures contraction. Simulations on a five-node network with 5 samples per node and a training window 6 show that the optimal centralized linear fusion (“linOpt”) achieves the best 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 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 9 represent images containing 0 projected atom columns. With a uniform prior over 1, the posterior satisfies
2
so selection reduces to maximizing the marginal likelihood 3. Pairwise MAPRT between two model orders is therefore a posterior-odds test, with threshold 4 for pure MAP selection (Fatermans et al., 2019).
The image model represents 5 columns by Gaussian peaks on a constant background: 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 7, which yields
8
Maximum likelihood estimation therefore becomes weighted least squares, and the marginal likelihood is evaluated with a Laplace approximation around the ML estimate 9 (Fatermans et al., 2019).
For the general unequal-width model, the practical posterior expression is
0
with analogous forms for the equal-width and equal-width/equal-height cases. The factors 1, the Hessian determinant, and the prior-volume terms are the characteristic finite-sample corrections of this MAPRT. In “information criterion” form,
2
and the paper shows that as 3, the leading terms reduce to 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 5 to 6, adds peaks incrementally, tests many initial positions for each added peak, minimizes 7 under prior-range constraints, computes the Hessian determinant, and then evaluates 8. In simulations of 1000 images of size 9 with pixel size 0, 1–5 randomly positioned Au atoms, dose uniformly 1–2, and a Gaussian model with equal widths and equal heights, the MAP rule detected the correct number most frequently at 3; AIC, GIC, and HQC tended to overfit, whereas BIC tended to underfit. At 4 and 5, all criteria improved and the differences narrowed (Fatermans et al., 2019).
A major by-product of this work is the integrated CNR,
6
defined from the integrated signal and integrated background over a footprint of radius 7, containing 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 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 0 and secondary target-free data 1. The hypotheses are
2
where 3, 4 is a known steering vector, 5 is an unknown target amplitude, and 6 is an unknown Hermitian positive definite covariance matrix. Defining
7
the joint likelihoods are
8
9
A binary latent variable 00 indexes the hypothesis, with priors 01 estimated inside the EM procedure rather than fixed externally (Yin et al., 4 Mar 2025).
The MAPRT statistic is the posterior ratio
02
Because EM computes the posterior responsibilities
03
the same detector can be written as
04
Its log form is
05
or equivalently
06
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 07 and 08, and an M-step, which updates
09
10
11
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 12, 13, and the generalized matched-filter estimate for 14 yields a CFAR statistic with respect to the unknown 15 (Yin et al., 4 Mar 2025).
The CFAR proof is based on whitening: 16 Under 17, the distribution of 18 depends only on whitened invariants and is therefore independent of 19. By induction over EM iterations, this invariance propagates to the final statistic, so a threshold 20 can be calibrated for a desired 21 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 22, 23, 24, 25, and 26, the proposed MAPRT achieved 27, versus approximately 28 for GLRT and approximately 29 for AMF. The paper also reports CFAR preservation across 30 from 31 to 32 and correlation 33 from 34 to 35, 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 36 over 1000 trials of approximately 37 for GLRT, 38 for AMF, 39 for EM-BML-D5, and 40 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,
41
with Gaussian prior 42, the posterior is Gaussian 43 with
44
45
The tested feature is 46, with hypotheses
47
Since
48
the paper’s MAP mass test rejects 49 iff 50, equivalently iff 51 (Kretschmann et al., 2024).
This mass test admits a linear-statistic representation. Defining
52
the decision rule becomes
53
The paper proves an exact Gaussian power formula,
54
which yields both level and power once 55 or the threshold is calibrated. It also shows that, without a priori restrictions, the level is typically 56; under commuting assumptions and when 57 is an eigenvector of 58, one can obtain exact level 59, 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
60
Because the posterior is Gaussian and the constrained maximizers are projections of 61 onto the half-space boundaries in the 62-norm, the ratio has the closed form
63
Hence rejection of 64 at threshold 65 is equivalent to
66
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
67
with 68 and
69
Moreover, 70 is the Tikhonov–Phillips regularized solution of 71, or equivalently the solution of
72
Under the spectral source condition 73, 74, and priors 75 with 76, the paper derives explicit lower bounds on power and shows that for scalings 77, 78, the power tends to 79 as 80. 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).