# The relative strengths and cycle lengths of two rhythms in RR Lyrae stars tend to change together

Astronomers use the time a star takes to pulse to infer its internal structure. Some stars called RR Lyrae stars brighten and fade at two rhythms at once. The ratio of their cycle lengths, or periods, may depend partly on how strongly each rhythm pulses. Comparing different stars makes that hard to tell: the stars can also differ in mass and composition.

We compared each star with itself about seven years apart. When one rhythm gained strength relative to the other, it tended to take slightly longer per cycle relative to the other. The association was small. Using different observing seasons to measure strength and period, we ranked the stars by the change in each ratio. The correlation between the rankings was +0.169 in 788 stars toward the Large Magellanic Cloud and +0.160 in 199 toward the Small Magellanic Cloud, two neighboring galaxies. The link between a rhythm’s own strength and period was stronger for the slower rhythm.

## Two rhythms in one brightness record

In a classical double-mode RR Lyrae star (an RRd star), the star expands and contracts in two patterns called radial modes. The slower mode is the fundamental; the faster one is the first overtone. Both appear in the star's light curve, its record of brightness over time. We measure the strength of each mode by its optical amplitude, the size of the brightness variation at that frequency. [Nonlinear models of stellar pulsation](https://arxiv.org/abs/astro-ph/0406373) predict that a mode with finite amplitude can have a different period from the one calculated for an infinitesimal disturbance.

[Observations from NASA's K2 space mission](https://doi.org/10.1093/mnras/stae424) show how amplitudes vary with period *across* classical RRd stars. Observations of two dense groups of stars, the globular clusters M15 and M3, illustrate what can change *within* a star. [Long records in M15](https://real.mtak.hu/235924/1/16_szbcikkek_.pdf) have traced period changes in both modes, and [stars switching modes in M3](https://doi.org/10.1088/0067-0049/219/2/25) have changed in both amplitude and period. Here we follow stars in which both modes remained measurable years apart.

## Changes between observing eras

The Optical Gravitational Lensing Experiment (OGLE), a survey that repeatedly measures stellar brightness, observed these stars with different cameras in its third and fourth phases (OGLE-III and OGLE-IV). For each star in each era we divided the overtone amplitude by the fundamental amplitude and the overtone period by the fundamental period. A rise in the period ratio can mean that the overtone slowed down, the fundamental sped up, or both. We measured each change by subtracting the earlier natural logarithm from the later one, so that the change reflects the size of the shift relative to the starting value.

For each Cloud we ranked the stars by the change in amplitude ratio and then by the change in period ratio. The Spearman rank correlation measures how closely these orderings agree: positive values mean that stars ranking higher on one change tend to rank higher on the other. Using all eligible seasons of each era to fit both quantities, the correlations were +0.245 in 906 stars toward the Large Magellanic Cloud (LMC) and +0.246 in 247 toward the Small Magellanic Cloud (SMC). The median absolute change in period ratio was just 11 parts per million (ppm) in each Cloud. This association was one of 54 exploratory comparisons of period and amplitude changes that included both Clouds and 1,650 matched two-mode variable stars, some of them members of another pulsating class called Cepheids.

Timing can affect the estimated amplitude. If peaks arrive early in some seasons and late in others, averaging cycles at a single fitted period blurs the peaks and reduces their apparent height. To separate the measurements, we estimated periods from the first two and last two observing seasons of each era. We measured amplitudes in the intervening seasons, allowing the timing of the peaks to vary from season to season.

The correlations were smaller with separate seasons but remained positive (Table 1). The difference held when we restricted the full-era fits to the 787 LMC and 199 SMC stars also in the separate-season analysis: their full-era correlations were +0.304 and +0.251. With separate seasons, the two ratios changed in the same direction for 56% of LMC stars and 54% of SMC stars. The SMC correlation depended more on stars with large period changes. Removing the tenth of stars with the largest absolute fundamental-period changes reduced the correlation to +0.071 in the SMC, compared with +0.166 in the LMC.

## Period changes in the two modes

In an exploratory comparison, we used the separate-season measurements to ask which mode's period tracked its own amplitude more closely. We sorted the LMC stars by change in fundamental amplitude and divided them into quarters. From the lowest to the highest quarter, the median fundamental-period changes were −2.1, +0.4, +2.5 and +4.2 ppm (Figure 1). The SMC medians also rose across all four groups. Sorting by overtone amplitude change gave no such ordering for overtone period change. In both Clouds, the fundamental amplitude–period correlation exceeded the overtone correlation even when we resampled whole sky fields, keeping stars observed in the same patch of sky together (Table 1).

![Fundamental period changes rise across quartiles of fundamental amplitude change in both Clouds; overtone period changes show no such ordering.](results/mode_changes.png)

*Figure 1. Each point summarizes one quarter of the stars, grouped separately for each mode by the change in that mode's optical amplitude. Coordinates are the median amplitude change and median log period change in the group. Bars are 95% intervals from 1,500 resamples of stars within each fixed group. A change of 1 ppm corresponds to 0.043 seconds for a half-day period.*

*Table 1. Rank correlations of changes between OGLE-III and OGLE-IV, using separate seasons for periods and amplitudes. Brackets give descriptive 95% intervals from resampling sky fields. The last row compares the two modes on the same stars in each resample.*

| Quantities compared | LMC (788 stars) | SMC (199 stars) |
|---|---:|---:|
| Overtone/fundamental amplitude ratio and period ratio | +0.169 [0.104, 0.220] | +0.160 [0.032, 0.284] |
| Fundamental amplitude and fundamental period | +0.168 [0.104, 0.229] | +0.183 [0.070, 0.291] |
| Overtone amplitude and overtone period | −0.006 [−0.070, 0.059] | −0.026 [−0.180, 0.125] |
| Fundamental minus overtone correlation | +0.174 [0.077, 0.270] | +0.209 [0.034, 0.389] |

As the overtone gained amplitude relative to the fundamental, the fundamental period tended to shorten. Its correlation with the change in amplitude ratio was −0.151 in the LMC and −0.229 in the SMC. The corresponding overtone-period correlations were +0.078 and +0.019. These are difficult to interpret separately because the two fitted periods tended to change in opposite directions (correlations of −0.095 and −0.232). Stellar timing changes or errors from fitting the periods together could contribute.

The near-zero correlation between the overtone's own amplitude and period changes can conceal differences among stars. In an exploratory comparison, this correlation was +0.084 for LMC stars below the median fundamental amplitude and −0.103 for those above it. The two SMC groups showed little contrast (−0.015 and −0.040).

## Stars with a single rhythm

We also measured amplitude and period changes in separate seasons for stars in the same fields classified as pulsating in the fundamental mode alone (RRab stars) or the overtone alone (RRc stars). Among fundamental-only stars, the correlation was +0.011 in the LMC and +0.046 in the SMC, smaller in both Clouds than for the fundamental in double-mode stars. Overtone correlations were close to zero in both single- and double-mode stars (Table 2).

*Table 2. Correlations of each mode's own amplitude and period changes in single-mode stars. The last column subtracts the single-mode correlation from the corresponding RRd correlation in Table 1. Brackets give 95% intervals from resampling the same sky fields for both classes.*

| Cloud | Single-mode class | Usable / drawn | Single-mode correlation | RRd minus single-mode correlation |
|---|---|---:|---:|---:|
| LMC | Fundamental | 916 / 1,000 | +0.011 [−0.056, 0.083] | +0.157 [0.050, 0.257] |
| SMC | Fundamental | 918 / 1,000 | +0.046 [−0.029, 0.121] | +0.138 [0.022, 0.260] |
| LMC | Overtone | 871 / 1,000 | −0.007 [−0.073, 0.053] | +0.001 [−0.089, 0.094] |
| SMC | Overtone | 161 / 170 | +0.025 [−0.181, 0.223] | −0.051 [−0.327, 0.217] |

Harmonics, oscillations at whole-number multiples of a mode's frequency, let the fitted brightness cycle depart from a simple sine wave. Allowing a more detailed shape for fundamental-only stars by fitting six harmonics instead of three gave correlations of +0.009 in the LMC and +0.016 in the SMC.

## Tests of timing and sampling

To test whether timing drift alone could produce the association, we simulated brightness records at the actual observation dates using each star's measured seasonal timing variations but holding both mode amplitudes constant. A second simulation allowed the measured seasonal amplitude variations but held the periods constant. We then remeasured amplitudes and periods. Across eight versions of each model with different noise, the highest fundamental amplitude–period correlation in the LMC was +0.035, compared with at least +0.164 in observations of the same stars. The timing-only model nevertheless captured much of the variation in period ratio: simulated changes correlated with observed changes at +0.74 to +0.77. In the smaller SMC sample the test was less decisive. One timing-only simulation gave a correlation of +0.143 between changes in the two ratios, comparable to the observed value for those stars. Adjusting the observed rankings for sky field, stellar properties and sampling gave ratio correlations of +0.168 in the LMC and +0.170 in the SMC.

Over shorter intervals observed with a single camera, the ratio changes did not consistently track each other. Within each era we compared two nonoverlapping stretches of three consecutive seasons. In each stretch we estimated the period from the shift in the timing of the cycle (its phase) between the flanking seasons and measured the amplitude in the middle season. The ratio correlations in OGLE-III and OGLE-IV respectively were −0.015 and −0.012 in the LMC and +0.092 and +0.106 in the SMC.

Some stars had measurements from an earlier survey phase, OGLE-II. For each star we used full-era fits and drew a straight line in time between its OGLE-II and OGLE-IV values for each log ratio. In OGLE-III the departures of the two ratios from those lines correlated at +0.226 (218 LMC stars) and +0.205 (73 SMC stars). A straight-line drift in each ratio therefore cannot by itself explain the pattern in those stars.

## Stars toward the center of the Milky Way

We specified the ratio comparison before fitting stars toward the Galactic bulge, the dense central region of the Milky Way. Of 67 classical RRd stars whose positions and identifiers matched between releases, 63 had light curves from both. The full-era ratio correlation was +0.221 in 60 usable pairs of records (95% interval from resampling stars, −0.053 to +0.465). With separate seasons it was +0.219 in 38 pairs (−0.128 to +0.546). Both estimates had the same sign as in the Clouds, but their ranges include zero, leaving the trend uncertain in the bulge.

The full-era correlations between each mode's own amplitude and period changes were +0.186 for the fundamental and +0.038 for the overtone. With separate seasons the order reversed (+0.255 and +0.333). The fundamental-minus-overtone difference was −0.078 (95% interval from resampling stars, −0.556 to +0.410), too uncertain to distinguish the modes.

## Interpretation

Comparing each star with itself removes fixed differences in mass and composition. Across the two Magellanic observing eras, the rhythm that gained relative strength tended to gain in relative period. The fundamental period tracked its own amplitude more closely than the overtone period did, and more closely than the fundamental period did in stars with only one mode.

The change of camera between eras may contribute to the association. The single-mode comparison also leaves the role of the second mode open: median fundamental amplitudes in the LMC were 0.188 magnitudes (units of stellar brightness) in RRab stars and 0.082 in RRd stars, and the RRd periods must be fitted together. Interference between nearby frequencies could shift both the heights and times of brightness peaks. Individual amplitude changes were noisy: when we split the brightness measurements into disjoint sets of nights, the resulting rankings by amplitude-ratio change correlated at only +0.09 to +0.13. The correlations therefore cannot tell us how much the period responds to a given change in pulsation energy or how much of the period sequence across different stars amplitude can explain.

## Methods and data

### Stars and observing eras

We used public brightness measurements in the red optical I band from the OGLE-III catalogs for the [LMC](https://arxiv.org/abs/0903.2482) and [SMC](https://arxiv.org/abs/1009.0528) and the [OGLE-IV Magellanic collection](https://arxiv.org/abs/1606.02727). Stars had to have the same identifier in both releases, positions within one arcsecond, classical RRd classifications in both and nonoverlapping observations. This excluded stars classified separately as anomalous RRd stars. Some OGLE-III files include OGLE-II measurements. We separated the two at the break between cameras at heliocentric Julian date 2452000 (a count of days corrected to the Sun's center) and used OGLE-IV data after 2455000. The median gap between the mean OGLE-III and OGLE-IV observation dates for each star was 7.5 years in the LMC and 7.2 years in the SMC. For the Galactic bulge we used the [OGLE-III bulge catalog](https://arxiv.org/abs/1105.6126) and the [updated OGLE-IV catalog](https://arxiv.org/abs/2001.00025).

### Measuring periods and amplitudes

Starting from each release's catalog periods, we fitted the two frequencies together. The model included a constant brightness, sine and cosine terms at each mode frequency, and terms at harmonics and at sums and differences of frequencies through third order. For each mode we measured the semi-amplitude in magnitudes, half the peak-to-trough variation at that mode's frequency before adding harmonics. We weighted measurements by the inverse of their variance, with a lower bound on individual uncertainties of half the median reported error. We clipped outlying residuals after dividing them by their uncertainties.

The initial fits required at least 75 observations spanning 730 days per release. We assessed corrections to each fitted frequency by the number of cycles they would add or subtract over the observing span. The final fitting step had to change that count by less than 0.001 cycles, and the total shift from each catalog frequency had to amount to less than 0.45 cycles. Each period's absolute change between releases had to be below 3,000 ppm. We applied the same sampling and convergence criteria, including the allowed range around each catalog frequency, when refitting the full eras. We required no minimum change in period or amplitude.

For the separate-season fits we divided each era of the accepted release matches into seasons of 365.25 days. Annual boundaries began at heliocentric Julian date 2450000 plus 255 days for the LMC, 168 days for the SMC and 65 days for the bulge. The first two and last two seasons with data had to supply at least 75 observations in total and yield a converged period fit in the allowed range around the catalog frequencies.

In each intervening season with at least 20 points we fitted amplitudes at the catalog frequencies, allowing both the phases and the mean brightness to vary freely. We downweighted large residuals. A quadratic penalty with a scale of 0.025 magnitudes discouraged large coefficients only on harmonics and combinations of frequencies. For each mode, the amplitude had to exceed three times the square root of the sum of the squared errors on its sine and cosine coefficients. Each era needed at least one usable interior season. For each mode we took the median natural log amplitude over those seasons.

### Single-mode comparison

We selected single-mode stars with matching identifiers and classes in both releases, positions within one arcsecond and an OGLE-III field represented in the separate-season RRd sample. We drew 1,000 stars at random without replacement per class per Cloud, or all eligible stars if fewer. We applied the same release and season criteria, fitting one frequency and its second and third harmonics and testing only that mode's amplitude. To estimate the uncertainty in the difference between single- and double-mode correlations, we resampled the same fields for both classes within each Cloud 1,000 times.

### Changes, correlations and simulations

All changes are later minus earlier on a natural log scale. Multiplying a log period change by one million gives approximately the fractional change in ppm. For Table 1 we resampled whole OGLE-III fields with replacement within each Cloud 1,000 times (113 LMC fields and 40 SMC fields). We recalculated the correlations each time and used their 2.5th and 97.5th percentiles as interval endpoints. These intervals describe the selected comparisons without correcting for the exploratory search. To adjust the correlations for stellar properties and sampling, we removed field means from each ranked change and accounted for linear and quadratic terms in the ranks of mean fundamental period, amplitude ratio, brightness, light-curve scatter and outer-season observation count. We then correlated the residuals.

For the simulations we retained the fitted harmonic shape of each era's brightness cycle and interpolated seasonal phase offsets or amplitudes to the observation dates. In the timing-only model we fixed each mode's amplitude at the geometric mean of its amplitudes across releases; in the amplitude-only model we fixed its period in the same way. We added residuals shuffled within each light curve after scaling by measurement uncertainty. We repeated the separate-season measurements, comparing each simulation with observations of the stars that passed the same fit. These models represent variations that the seasonal measurements can resolve. The eight noise realizations show how the measurement behaves under those conditions rather than estimating the probability of an extreme result.
