sefffal / Octofitter.jl

Octofitter is a Julia package for performing Bayesian inference against direct images of exoplanets, relative astrometry, and astrometric acceleration of the host star.
https://sefffal.github.io/Octofitter.jl/dev
MIT License
33 stars 2 forks source link

Implement higher fidelity Gaia modelling #36

Open sefffal opened 3 months ago

sefffal commented 3 months ago

This issue outlines my plan for higher fidelity modelling of Gaia data, either as part of the HGCA modelling or by itself.

Currently our HGCA likelihood models the Gaia and Hipparcos catalog measurements by averaging the instantaneous proper motion and position of the star 25 times during each of the Hipparcos and Gaia missions.

Recently, I merged full Hipparcos IAD modelling. I'd like to develop higher fidelity Gaia modelling to match.

After reviewing Orvara and Orbitize, I see that they model the Gaia catalog values by:

These choices are certainly defensible and are better than what we currently do with Octofitter. Still, I find the approach a little bit unsatisfying and think we could implement an even-further improved version in the following ways:

A few open questions remain:

Other thoughts:

sefffal commented 2 months ago

Okay so this plan is showing surprisingly promising results.

Procedure:

Right now to compare the Gaia simple fit + uncertainties to the catalog means and uncertainties, I'm using the KL-divergence and just treating it like a likelihood. I don't know if that's valid! I thought we'd need to calibrate the score against simulated data or something. But it seems to work to a crazy good degree?

                        plx             ra              dec              pmra           pmdec           unc_mas
Catalog values:         29.145325       158.30708       40.425554       -136.29064      1.7735165       1.0
Posterior values:       29.134312       158.30198       40.442729       -136.29526      1.7646462       3.0593668e-5
Catalog uncertainties:  0.14073011      0.080025345     0.10712508      0.11222193      0.13798834
Posterior uncertainties:0.13947858      0.079581708     0.10309836      0.11191418      0.13681167      0.16279464

edit: it's a bit odd that the RA and Dec are ~0.005 or so degrees off, and yet their uncertainties and even covariances are basically spot on. Maybe something to do with reference epochs. Edit 2: never mind, fixed.

sefffal commented 2 months ago

I realized something pretty funny. Including the parameter means, uncertainties, and correlations, each target with a five parameter solution has 19 reported variables. (+1 more for excess astrometric noise).

For many targets, that’s about number of degrees of freedom the as the total number of scans!

That the system of equations should be fairly well-determined and we should almost be able to back out each individual scan measurement(?).

sefffal commented 2 months ago

Moderate success fitting DR2 and DR3 to back out IAD. It seems to work best when there are fewer visibility windows than reported parameters, so that everything is well constrained.

The next issue is accounting for missed / skipped / extra scans. GHOST isn't matching the actual reported number of visibility windows very well for either DR2 or DR3.

image