Skip to main content
QUICK REVIEW

[Paper Review] A Toolbox for the Radial and Angular Marginalization of Bivariate Normal Distributions

Emily A. Cooper, Hany Farid|arXiv (Cornell University)|May 19, 2020
Spectroscopy and Chemometric AnalysesChemistry5 citations
TL;DR

This paper presents the RAMBiNo Toolbox, a comprehensive MATLAB and R resource for computing radial and angular marginalizations of bivariate normal distributions under general conditions—non-zero mean, anisotropic variance, and non-diagonal covariance. It provides closed-form and numeric solutions derived from analytic integrals over polar coordinates, enabling efficient computation of marginal distributions for radius and angle.

ABSTRACT

Bivariate normal distributions are often used to describe the joint probability density of a pair of random variables. These distributions arise across many domains, from telecommunications, to meteorology, ballistics, and computational neuroscience. In these applications, it is often useful to radially and angularly marginalize (i.e.,~under a polar transformation) the joint probability distribution relative to the coordinate system's origin. This marginalization is trivial for a zero-mean, isotropic distribution, but is non-trivial for the most general case of a non-zero-mean, anisotropic distribution with a non-diagonal covariance matrix. Across domains, a range of solutions with varying degrees of generality have been derived. Here, we provide a concise summary of analytic solutions for the polar marginalization of bivariate normal distributions. This report accompanies a Matlab (Mathworks, Inc.) and R toolbox that provides closed-form and numeric implementations for the marginalizations described herein.

Motivation & Objective

  • To consolidate scattered analytic solutions for polar marginalization of bivariate normal distributions into a unified, accessible resource.
  • To address the lack of a centralized, well-documented implementation for computing marginal distributions over radius and angle in general bivariate normal cases.
  • To provide both closed-form and numeric implementations for researchers across domains such as neuroscience, meteorology, and telecommunications.
  • To enable efficient and accurate computation of angular and radial marginalizations under non-trivial conditions: non-zero mean, anisotropy, and non-diagonal covariance.
  • To support reproducible research by releasing a fully documented toolbox with code examples and derivations for all cases.

Proposed method

  • Derives analytic solutions for angular marginalization (distribution over radius) using modified Bessel functions, particularly the Rician distribution for non-zero mean, isotropic cases.
  • Applies coordinate rotation and transformation techniques to diagonalize the covariance matrix and reduce general anisotropic cases to standard forms.
  • Employs series expansions involving modified Bessel functions of the first kind to handle non-zero mean and non-diagonal covariance cases.
  • Implements numeric marginalization via numerical integration over circular contours using a discrete sampling of angles or radii.
  • Uses a parametric approach to compute the joint density at radial and angular points, then integrates along circular paths to obtain marginal densities.
  • Provides modular code in MATLAB and R, with functions for both analytic and numeric marginalization, including support for truncated series approximations.

Experimental results

Research questions

  • RQ1What are the closed-form solutions for the radial and angular marginalization of a bivariate normal distribution with non-zero mean and non-diagonal covariance?
  • RQ2How can the marginal distribution over radius be efficiently computed for a general bivariate normal distribution using analytic and numeric methods?
  • RQ3What is the most accurate and computationally efficient way to approximate the marginal distribution over angle in the presence of anisotropy and offset mean?
  • RQ4How do existing solutions from disparate fields (e.g., telecommunications, meteorology) compare in terms of mathematical formulation and computational feasibility?
  • RQ5Can a unified, open-source toolbox be developed to standardize and simplify the computation of polar marginalizations across scientific domains?

Key findings

  • The paper derives and implements closed-form solutions for angular marginalization in all standard cases, including the Rician distribution for non-zero mean, isotropic bivariate normals.
  • For non-zero mean, anisotropic, and non-diagonal covariance cases, the solution relies on a series expansion involving modified Bessel functions, truncated at 100 terms for numerical stability and accuracy.
  • The numeric implementation achieves high accuracy by sampling circular contours and numerically integrating the joint density, with results normalized to ensure unit integral.
  • The toolbox supports all combinations of mean (zero/non-zero), variance (isotropic/anisotropic), and covariance (diagonal/non-diagonal), covering the full generality of bivariate normal distributions.
  • The analytic solutions are shown to be computationally efficient and numerically stable, especially when using optimized Bessel function evaluations available in modern scientific computing environments.
  • The toolbox is released on GitHub and includes code examples for all cases, enabling immediate use and reproducibility across research applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.