Abstract
Here, we present an open source python-based Bayesian orbit retrieval code (Nii) that implements an automatic parallel tempering Markov chain Monte Carlo (APT-MCMC) strategy. Nii provides a module to simulate the observations of a space-based astrometry mission in the search for exoplanets, a signal extraction process for differential astrometric measurements using multiple reference stars, and an orbital parameter retrieval framework using APT-MCMC. We further verify the orbit retrieval ability of the code through two examples corresponding to a single-planet system and a dual-planet system. In both cases, efficient convergence on the posterior probability distribution can be achieved. Although this code specifically focuses on the orbital parameter retrieval problem of differential astrometry, Nii can also be widely used in other Bayesian analysis applications.
Introduction
The search for exoplanets has largely been dominated by the radial velocity and transit methods. However, radial velocity measurements are limited by an inclination degeneracy, making it difficult to determine a planet's true mass, and are less sensitive to long-period orbits. Astrometry—the precise measurement of a star's position on the sky—offers a solution by directly measuring the gravitational "wobble" of a host star. To detect terrestrial planets, astrometric precision must reach the micro-arcsecond ($\mu$as) level.
Proposed missions like the Closeby Habitable Exoplanet Survey (CHES) aim to achieve this through differential astrometry, measuring a target star's position relative to several stable reference stars. However, the resulting data presents a complex, high-dimensional likelihood surface prone to local minima. The Nii framework was developed to provide a robust, automated Bayesian approach to retrieving orbital parameters from these challenging signals.
Methods and Data
The Nii framework integrates three core modules:
- Forward Modeling: Simulates stellar motion based on planetary mass and orbital elements using Thiele–Innes elements.
- Differential Signal Extraction: Accounts for multiple reference stars to determine measurement error standard deviations and cross-validate fits through a "voting" process among reference pairs.
- APT-MCMC Engine: Employs Parallel Tempering (PT) to navigate complex posterior landscapes. Higher-temperature chains explore the global parameter space, while colder chains refine local optima. An automated control system dynamically adjusts step sizes to maintain an optimal acceptance rate of approximately 23.4%.
The code was validated using simulated datasets based on CHES mission parameters: a solar-mass star at 3 parsecs observed 300 times over 5 years with 1 $\mu$as Gaussian noise, utilizing 8 reference stars.
Key Insights and Results
A critical challenge in astrometric fitting is the degeneracy between the argument of periapsis ($\omega$) and the longitude of the ascending node ($\Omega$) for low-eccentricity orbits. Nii addresses this by fitting their summation ($\omega + \Omega$), which shows much tighter convergence in posterior distributions.
In single-planet tests, Nii retrieved planetary mass with a relative error of ~4.8% and the orbital period within 1.5 days for a 541-day orbit. For dual-planet systems, a "top-down" approach—fitting the most massive planet first and then analyzing the residuals—successfully recovered parameters for both planets.
Conclusion
Nii demonstrates high efficiency, reaching convergence within 500,000 to 1,000,000 iterations for high-dimensional problems. While currently limited by the computational complexity of simultaneous multi-planet fits, future iterations will incorporate N-body integration and C-language optimizations to handle more complex planetary architectures.
Summary updated