meeting 2025 06 24 n57 - JacobPilawa/TriaxSchwarzschild_wiki_6 GitHub Wiki
- Providing executive summaries of where we left off, what diagnostics we were looking at, and where to go from here. I've broken it down by galaxy in the bullets below.
- What we we were doing:
- Polynomials:
- We had been looking a bit at the dependence of the moments on the additive/multiplicative polynomials after noticing that the adeg=-1 seemed to be inflated relative to the adeg=0 case. We had been trying this in the first place since the N315 data were run with adeg=-1 (since we had some issues initially with the spectral fitting, in particular with some of the central bins).
- It seems like adeg=-1 is definitely inflated for N57, and we were looking for a physical reason why this was the case/how we can justify the particular choice of adeg=0/mdeg=3. To that end, I ran some lines of sigma vs. polynomial degree for both cases, and we saw that there seemed to be stability when using adeg=2/3/4 or so (in some cases, adeg=0 still seemed to be a bit high).
- The dependence on the multiplicative polynomial seemed a bit less extreme, requiring something like mdeg>2 or so ot get stability in the moments. Encouragingly, we
- Sigma Clipping:
- We had thought that maybe the sigma clipping routine would find additional features that we were not properly masking from the fits, potentially bringing the adeg=-1 and adeg=0 cases a bit more in agremeent, but this doesn't appear to be the case. In fact, in the diagnostics below, it doesn't seem like the sigma clipping is appreciably changing the fits at all, and we are left with either agreement with the "fiducial" case or a still elevated set of moments when using adeg=-1.
- Library Testing:
- One of the other N57 related questions was why the Barth subset of stars vs. the "trimmed" library from Emily were leading to disagreements in the moments. Prior to the N315 report coming back, we had been trying to further trim away the "trimmed" library using some phsyical reasoning rather than the way I had been doing it (removing top 15 weights iteratively).
- I tried to further trim the library by finding the spectral types for all stars, and limiting the library to only GKM stars and further to only GKM main sequence stars.
- Polynomials:
- Where to go from here:
- I think maybe a bit further testing on the library would be worthwhile to see if there are better approaches to the "trimming." I had expected that limiting our results to only GKM stars would have resulted in better agreement, but because the Barth stars are not present in the "trimmed" library, we might be approaching some limit of agreement between the two libraries (the RMS don't appear to be drastically changing).
- For the polynomial testing -- it's a bit difficult for me to think about what to do next. On one hand, we've run all the models with adeg=0/mdeg=3 which appears to be reasonably well behaved for N57. On the other hand, there does appear to be small shifts in the moments if we further increase the adeg to 1/2/3 or so. If we want to do more work, it might be worth testing a subset of models using the kinematics from adeg=1 for example, but this really might just be opening more cans of worms given how far along we are.
- As we turn to the text/Overleaf, I'd like to go back and check that my list of BH>3e9 cases is complete, since I suspect I might be missing a few recent measurements (for the environment plot).
- First, here's a quick test in which I vary the multiplicative polynomial in a similar way of varying the additive polynomial from last time. I ran this for both N57 and N410 using both adeg=0 and adeg=-1, but the results are quite consistent throughout. It seems like we need a multiplicative order >=3 or so (which we're currently using) for the results to stabilize. Using lower orders seems to cause quite a bit of variability (and the fits themselves were not great as I glanced at them):
Sigma as a function of adeg for the N57 spectra
Plot | Zoomed |
---|---|
![]() |
![]() |
Sigma as a function of mdeg: The plots for this test are a bit large, so they may take a minute to load.
N57 | |
---|---|
adeg=0 | ![]() |
adeg=-1 | ![]() |
- I've also run the sigma clipping routine on the N57 spectra so we can better assess whether or not the mask is causing us any issues. It seems like there is really nice agreement between my original mask from box and the sigma clipping routine for sigma = 2.0, 2.5, 3.0.
- Here's both the spectra fits and the resulting 1-to-1 plots of the kinematics:
Spectral fits using the sigma clipping routine and adeg=0
Original Mask | Sigma = 2.0 | Sigma = 2.5 | Sigma = 3.0 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Spectral fits using the sigma clipping routine and adeg=-1
Original Mask | Sigma = 2.0 | Sigma = 2.5 | Sigma = 3.0 |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- And the corresponding 1-to-1 plots (with the fiducial kinematics using Barth + no sigma clipping + adeg=0 on the x-axis):
Sigma=2.0 | Sigma=2.5 | Sigma=3.0 | |
---|---|---|---|
adeg=0 | ![]() |
![]() |
![]() |
adeg=-1 | ![]() |
![]() |
![]() |
- Last time, I had been trimming away from the "trimmed library" suboptimally -- I had been discarding the highest weight spectra until I had started to see some of the Barth stars appear in the "preferred" templates, but it's probably better to trim away bad stars first, and then assess the fits.
- So to do this, I've taken a closer look at the templates and their reported spectral types, and have some follow ups below.
To set the stage, here are some diagnostics from the 5/12 N410 page which contain the Barth vs. "trimmed" library (passed from Emily) results. Note I also computed the robust_sigma for each moment, and find: [5.948, 10.176, 0.012, 0.022, 0.011, 0.018, 0.012, 0.018]
Adeg=0 Library Comparison |
---|
![]() |
- And here are side-by-sides of the RMS vs spectra number of these cases:
Adeg=0 | |
---|---|
Barth | ![]() |
Trimmed | ![]() |
First, here's a large plot containing all 209 stars from the trimmed library
Trimmed Library Spectra |
---|
![]() |
- And here's what the distribution of spectral types look like for the "trimmed" library:
- Note that there are two categories which appear in the plot which are not actually spectral types. There are 10 stars which are not matched on SIMBAD (I can check these out more carefully but wanted to move forward for now), which get labelled as "N" due to being "Not Found" in the database. Theres another star that is listed as a type "kA9hF2mF2(IV)" star, which is the lowercase "k" entry.
Trimmed Library Spectral Type Distribution |
---|
![]() |
- And for reference, here's the Barth stars along with their spectral types:
Filename | Star | Spectral Type | |
---|---|---|---|
0 | scan399.fits | HD121146 | K2IV |
1 | scan411.fits | HD125560 | K3III |
2 | scan419.fits | HD129312 | G7IIIa |
3 | scan437.fits | HD136028 | K2/3III |
4 | scan574.fits | HD188056 | K3IIICN2 |
5 | scan603.fits | HD199580 | K1IV |
6 | scan612.fits | HD203344 | K0III |
7 | scan669.fits | HD221148 | K3-IIIbFe2 |
8 | scan194.fits | HD12929 | K2-IIIbCa-1 |
9 | scan216.fits | HD19476 | G9.5IIIb |
10 | scan219.fits | HD20893 | K3III |
11 | scan272.fits | HD49293 | K0+III |
12 | scan274.fits | HD51440 | K2III |
13 | scan286.fits | HD58207 | G9IIIb |
14 | scan304.fits | HD69267 | K4IIIBa0.5: |
- My first pass at trimming this library is to select only the G/K/M stars but include all non-main sequence stars:
Here's what the actual spectra look like for this subset:
GKM Spectra |
---|
![]() |
- And here's the spectral type distribution for this case:
GKM Stars Spectral Type Distribution |
---|
![]() |
- And using only these GKM stars for the spectral fitting, here is the resulting 1-to-1 plot:
Barth vs. GKM Stars |
---|
![]() |
- As a second pass, I've excluded non-main sequence stars from the library (which isn't necessarily what we should do, but I wanted to test this anyway):
Here's what the actual spectra look like for this subset:
GKM Main Sequence Spectra |
---|
![]() |
- And here's the spectral type distribution for this case:
GKM Main Sequence Stars Spectral Type Distribution |
---|
![]() |
- And using only these GKM Main Sequence Stars, here's the resulting 1-to-1 plot of the kinematics:
Barth vs. GKM Stars |
---|
![]() |
- What we we were doing:
- In general we were progressing nicely with N410, and it seemed like the spectra were a bit more robust than other galaxies in some of our testing. Specifically it seemed like the additive polynomial degree didn't seem to matter as much, nor the choice of Barth vs. full "trimmed" library.
- Reproducing Irina's Results:
- We had briefly fit the asymmetrically binned spectra (on the first N410 page), but paused briefly so ensure I can reproduce Irina's results (using the symmetric scheme).
- With the symmetric binning scheme, we could quite nicely reproduce Irina's results, and the asymmetric scheme processed with the same settings also appears to agree in the radial moments.
- Polynomial Degree:
- There appeared to be less of a dependence on the moments vs. additive degree for N410. There still seemed to be a slight "inflation" for adeg=0, again settling to "robust" values for adeg=2/3/4, but the effect is definitely slight. I should probably run an equivalent line of mdeg models but haven't tried for N410 just yet.
- Library Testing
- It also appeared that the scatter from the different libraries was far less for N410 than for other galaxies. Again, more of a sign that the spectra here are not suffering from whatever issues (maybe masks?) that other galaxies have suffered from.
- Where to go from here:
- N410 I think is more straightforward to make progress on than N57. Given how reasonable the fits are, their agreement with Irina, and the relatively small dependence on the adeg/mdeg/library used, we can probably continue processing this as normal (switching to the asymmetric binning scheme, MGE fitting, and then moving to models).
-
So given this, I'v fit the symmetric spectra with adeg=0 and adeg=-1, and have some diagnostics below compared to Irina's kinematics:
- Note that Irina's kinematics are not actually on BOX it seems -- again, maybe Emily has this on one of her hard drives -- but I was able to find a version of the kinematics here, in one of the old wikis that I can compare to.
- Note that the two cases below I've been calling Case A sym and Case B sym, where Case A uses adeg=0, and Case B uses adeg=-1.
-
Here's the spectra for Case A and Case B:
Case A
Plot |
---|
![]() |
Case B
Plot |
---|
![]() |
- And the RMS vs. spectrum number:
- Note that the Case B spectra are ever-so-slightly worse fit than the Case A spectra:
Case A | Case B |
---|---|
![]() |
![]() |
- And here are some comparisons of the spectra against one another:
- I don't have access to Irina's preliminary moments it seems; the only data that are on the Github seem to be just before running models, so these are after doing 100 MCs and taking the median:
Case A vs. Irina | Case B vs. Irina | Case A vs. Case B |
---|---|---|
![]() |
![]() |
![]() |
- I've now got a few examples of the radial profiles for Irina's data compared to my Case A and Case C, as well as my Case A sym.
- Again, Case A here has adeg=0, whereas Case C has adeg=-1. In the case where I use identical binning schemes, the radial profiles are in excellent agreement as we would expected from the 1-to-1 plots above.
- When I plot the radial profile for the symmetric binning vs. non-symmetric binning, I seem to have very nice agremeent with Case A (adeg = 0), and we see this offset in the moments for Case C (adeg=-1). Because Irina's data uses adeg=0, and my Case A uses adeg=0 and gets nice agreement (even for different binning schemes), I'm inclined to trust the adeg=0 cases more than the adeg=-1 cases.
- And again as a quick reminder, I can't find a fiducial fit from Irina anywhere so these compare the MC moments (without errors).
Irina + Case A | Irina + Case C | Irina + Case A sym |
---|---|---|
![]() |
![]() |
![]() |
- We had created a few other diagnostics for N410 as we were reprocessing the N57 and N315 data, and I've tried to summarize them here.
N410 |
---|
![]() |
For N410 -- note that this is using the symmetric binning scheme that Irina also used
Plot | Zoomed |
---|---|
![]() |
![]() |
- I've reprocessed N410 (symmetric binned spectrum to match Irina, also using only nGH = 6, also to match Irina). I've fit the data with the adeg=0, medg=3, startingguess=[0,200], bias=0.2. The difference between the two fits are the templates. In one case, I'm using the 15 stars from Barth 20002, and in the other case, I'm using the trimmed set of templates Emily had passed my way.
- Here's 1-to-1 plots for the resulting kinematics:
- Note that I've also computed the "robust sigma" of the residuals, and find: [5.016, 5.659, 0.011, 0.01, 0.011, 0.014] for each moment.
1-to-1 Comparison |
---|
![]() |
And here are the spectral fits themselves using the Barth library vs. Trimmed Library. It might take a minute to load these large plots.
Barth | Trimmed |
---|---|
![]() |
![]() |
- I've also plotted the differences between the spectral fits here, which actually look quite similar across all spectra, but there are some quite significant differences in the moments that are preffered. Currently the sigma difference is included in the title to give a sense of the discrepency, but I don't see the same trends in the center (at least not as obviously) as we saw with N57 below:
- There does look to be a systematic "wiggle" though between the two template libraries. At least to me there seem to be ~5 noticeable peaks in the resdiuals here. Potentially this is a sign that we need a higher order polynomial here?
Here are differences between spectra for the Barth vs. Trimmed Libraries
N410 Spectral Differences (Barth vs. Trimmed) |
---|
![]() |
- We can also look at the template distribution for N410 which is a bit interesting to look at. At least for N410, the templates that are being picked look very, very strange (check the side-by-side plot of the template spectra):
First, here are the template distributions for all the N410 bins
Barth Library | Trimmed Library |
---|---|
![]() |
![]() |
And here are the 15 most common templates between the two cases. Note that the Barth library only has 15 stars in the first place:
Barth Library Sums | Trimmed Library Sums |
---|---|
![]() |
![]() |
- And lastly, here's a side-by side of the 15 most common spectra
Most Common Templates |
---|
![]() |