Analytical estimation of the signal to noise ratio efficiency in axion dark matter searches using a Savitzky-Golay filter
Abstract
The signal to noise ratio efficiency in axion dark matter searches has been estimated using large-statistic simulation data reflecting the background information and the expected axion signal power obtained from a real experiment. This usually requires a lot of computing time even with the assistance of powerful computing resources. Employing a Savitzky-Golay filter for background subtraction, in this work, we estimated a fully analytical without relying on large-statistic simulation data, but only with an arbitrary axion mass and the relevant signal shape information. Hence, our work can provide using minimal computing time and resources prior to the acquisition of experimental data, without the detailed information that has to be obtained from real experiments. Axion haloscope searches have been observing the coincidence that the frequency independent scale factor is approximately consistent with the . This was confirmed analytically in this work, when the window length of the Savitzky-Golay filter is reasonably wide enough, i.e., at least 5 times the signal window.
Keywords:
Dark Matter, Axions and ALPs, Beyond Standard Model1 Introduction
According to cosmological measurements and the standard model of Big Bang cosmology PLANCK , cold dark matter (CDM) is responsible for about 85% of the total matter in our Universe. CDM does not belong to the Standard Model of particle physics (SM), and as of today the nature of CDM is unknown in spite of the strong evidence of its existence CDM-EVIDENCE . The axion AXION is one of the iconic CDM candidates and originally stems from a breakdown of a new symmetry proposed by Peccei and Quinn PQ , as a very natural solution to the strong problem in the SM strongCP . In light of the current galaxy formation dark matter has to be massive, stable, and nonrelativistic, and the axion is predicted to meet all of these conditions. The axion haloscope search proposed by Sikivie utilizes axion-photon coupling and a microwave resonant cavity, which results in the resonant conversion of axions to photons sikivie . This enhances the detected axion signal power drastically. Making the axion haloscope the most promising method for axion dark matter searches in the microwave region. Recent experimental efforts have reached the Dine-Fischler-Srednicki-Zhitnitskii (DFSZ) axion sensitivity ADMX-DFSZ ; 12TB-PRL , where the DFSZ axion can be implemented in grand unified theories (GUT) GUT . If DFSZ cold axion dark matter turns out to constitute 100% of the local dark matter density, that would not only explain the total matter in our Universe, but also support GUT.
Since the resonated axion signal power is only sensitive to the resonant frequency region, and information about axion mass is absent, the most significant and practical figure of merit in axion haloscope searches is the scanning rate scanrate . One of the experimental parameters determining the scanning rate is the signal to noise ratio (SNR) efficiency squared JINST , where the according to the radiometer equation DICKE and we define later in equation (2). In the SNR equation, is the expected axion signal power for an axion-photon coupling strength sikivie ; scanrate and is the fluctuation in the noise power . Estimates of the have relied on large-statistic simulation data that usually require a lot of computation time and storage resources ADMX ; HAYSTAC ; JHEP . With hints reported in refs. HAYSTAC ; JHEP , in this study we have developed an analytical method to estimate the for axion dark matter searches. The for axion haloscope searches is frequency-independent or, equivalently, background-independent with the relevant scale factor , as demonstrated by refs. HAYSTAC ; JHEP , where is necessary and affected by the combination of power excess bins that are correlated with each other due to background subtraction. In addition, one of our previous works showed that is practically the signal power efficiency due to background subtraction JHEP . In another one of our recent works 12TB-PRD , however, we found a subtle effect to the background fluctuation due to background subtraction with a specific condition, which was considered as well.
Inspired by that information, we calculated the signal power efficiency whose effects can first be seen in Fig. 1 and independently using only an arbitrary axion mass and the relevant signal shape information. They showed good agreement with those obtained from large-statistic simulation data. In the end, axion haloscope searches have been observing the coincidence that the frequency independent scale factor is approximately consistent with the . This was confirmed analytically in this work, if the window length of our background estimator is reasonably wide enough, i.e., at least 5 times the signal window.
2 Obtaining the SNR efficiency analytically
The general data analysis procedure for axion haloscope searches studied in this work aims to maximize the significance of an axion signal by weighting and combining data points HAYSTAC . Raw data is acquired through power spectra in the frequency domain. The digitized power spectrum data will have the background noise power stored in frequency bins that are spaced at intervals of the resolution bandwidth (RBW) . The background will feature a baseline characterized by the system noise and its fluctuations. If an axion signal exists amidst the background, it will appear as a lineshape which is distributed to multiple frequency bins. In the case of the standard halo model, the lineshape is a boosted Maxwellian TURNER
(1) |
This lineshape depends on the axion frequency , , and , where is the velocity of Earth with respect to the galaxy halos, is the local circular velocity of the galaxy, and is the speed of light. In the analysis stage an axion signal window is used where the integral of from to nears unity. The axion signal power is weak; for instance in the CAPP-12TB experiment it was on the order of tens of yoctowatts 12TB-PRL , making it difficult to distinguish from noise fluctuations. Therefore the data is further processed in a way that increases the SNR of an expected signal.
Following the conventional methods of haloscope data analysis, an axion signal, should it exist, will appear as a sharp peak on the background as shown in Fig. 1. This is also replicable by inserting a software-injected axion signal into an experiment’s background. Then the SNR of an input signal, which will have its background perfectly removed, can be compared with the SNR of signal which has its background removed by a fit. Examples of a fit estimator are a fit such as in refs. 12TB-PRL ; CAPP-8TB-PRL or a Savitzky-Golay (SG) filter SGFILTER as seen in refs. 12TB-PRD ; HAYSTAC . In this work we will be focusing on the latter as it does not require a functional form of the background structure, can handle zero-fluctuation data like the axion signal power considered in axion dark matter searches, and its estimates are fully predictable.


Typically any estimate of the background will be affected by a signal such as the one shown in Fig. 1 and due to this the output SNR will not recover 100% of the input. The difference in the input and output SNR can be expressed through an efficiency term
(2) |
where we define for input and output signal powers and . is approximately equal to as for input and output are practically equal JHEP . The frequency-independent scale factor is used to offset the bin-to-bin correlations that are introduced from background subtraction HAYSTAC ; JHEP . This value is set to the width of the Gaussian fit for the normalized power excess of the output. In terms of input, the normalized power excess’ Gaussian width should be equal to one.
We will first proceed to discuss how to obtain the value of . Using an SG filter as a background estimate, it is possible to construct a signal following equation (1) on a flat background that does not include any noise fluctuations. The input signal in units of arbitrary power excess will be distributed into frequency bins that have a resolution bandwidth , assuming that the first bin’s frequency is equal to . The input signal power in the th bin is
(3) |
where is a multiplicative constant that represents and are the fractions of axion signal power stored into the th bin. While our SG filter is designed to describe the background only, it will be applied to the set of (the red line in the left panel of Fig. 2) to parametrize the spectrum containing the signal as well as the flat background. As also seen in the left panel of Fig. 2, the smoothing from the filter, shown as orange dashed lines, does not fit the background properly around the signal region when one is present. The exact response of the SG filter is
(4) |
with . is the SG filter’s estimate of the background for the cases considered in this work. What is considered to be the signal power after background subtraction will be (the blue line in the left panel of Fig. 2). The coefficients only depend on the SG filter parameters, window length and polynomial order . As , an estimation done with the SG filter acts like a weighted average. The same values are applied to the coefficients when obtaining each separate with different . A few examples of SG filter coefficients depending on the parameters can be seen in the right panel of Fig. 2. The coefficients can be obtained from its definition in the original paper SGFILTER , and it can be fit using a th-order polynomial (for even ). It is also easy to obtain in SG filter packages in programming languages PYTHON .


and are combined according to the analysis procedure HAYSTAC . Following this all further combination processes use inverse-variance weighting. For any stage of combination, this means that a combined power and its error will follow
(5) | ||||
for all relevant powers and their errors used for the combination. In the presence of , the weights , except during the coadding process to obtain the grand spectrum. In this case .
Now we will obtain the SNR ratio through the axion signal power ratio: . As the SG filter response of each is up to the multiplicative constant , its effects cancel out in the value of . Therefore the value of will not change when signal power is added in a way that changes by the same ratio for both input and output, such as vertical combination. This was confirmed to be in agreement with large-statistic simulations which do include vertical combination and will be further discussed in Sec. 4. Rebinning, or equivalently RBW reduction, however, does affect the results and will be discussed in Sec. 3. If this process is not used, the only leftover contribution to the analysis process is coadding bins. We can now use equation (5) with or and . For the particular bin that coincides with the axion frequency, the signal power after coadding bins is
(6) |
and
(7) |
resulting in
(8) |
where if , . As does not take any noise fluctuations into account it does not carry any error. Hence, this can be used as an exact value instead of an estimate. The value of depending on is shown in the right panel of Fig. 3.


The remaining factor in , , will be obtained next. For this calculation there will be no axion signal, and only the background is considered. This time the inputs will be multiple independent random variables that follow a Gaussian distribution . The normalized power is
(9) |
making one. The estimated background using the SG filter for is
(10) |
The power excess is . Ideally the estimate is equal to as follows an distribution. It was observed 12TB-PRD and is known that the standard deviation of depends on and is reduced by
(11) |
where for and for if is large enough SGFILTER-PROPERTIES . Therefore must be further divided by to make it follow an distribution with . The normalized power excess for SG filter estimated data is
(12) |
The use of normalized power excess to obtain is valid as it is independent of the background HAYSTAC ; JHEP and so are the coefficients . The exception to this would be when background subtraction is done poorly or is biased, which will be explored in Sec. 4. Here we will continue with the assumption that is an unbiased estimate of . Similar to the discussion from before, a vertical combination combines different raw spectra, so the random variables that are combined must be independent, and therefore it does not affect the distribution of nor .
Now equation (5) is used again with or and with or . The normalized input noise at the axion frequency corresponding to after coadding is
(13) |
which has a standard deviation of one as expected from independent random variables. Coadding the set of we have
(14) |
are no longer independent to each other since each can include overlapping terms that can range from to according to equation (12). Therefore this equation is used to decouple into independent random variables . The coefficient value in front of is
(15) |
with the constraints for or , for or . The standard deviation of , which corresponds to the frequency independent scale factor , is
(16) |
The value of for an SG filter with varying can be seen in Fig. 4.

It can be observed that both and become closer to unity as increases. This can be understood intuitively since the SG filter is an estimate for a background in the context of this raw spectrum. As becomes larger, the SG filter will tend to “ignore” the signal and therefore retain more of its power, without being too biased. On the other hand, for noise fluctuations when more points are taken into consideration, the bin-to-bin correlations are smaller as increases since the sum of all is one, meaning that the contribution of each bin is smaller, as seen from the right panel of Fig. 2. This also tends to average out to .
3 Considering the effects of rebinning spectra
By merging bins and increasing the RBW value to , the power spectrum undergoes a process called rebinning. This process combines the bins according to equation (5). For the calculation of , the signal powers after rebinning with and are
(17) | |||
which are the averages of the signal powers over bins.
A coadded bin after rebinning will coadd bins, with the weights used for coadding following
(18) |
Obtaining is straightforward in the sense that the rebinning is applied to each , then the rebinned bins are coadded.
(19) | ||||
and . For both signal input and output the resulting SNR values have been shown to decrease, as seen in ref. 12TB-PRL . While this is a drawback of rebinning, the number of rescan candidates is also reduced, which is an advantage that could be considered as a tradeoff 12TB-PRL ; 12TB-PRD .
Now the rebinned counterpart for noise, and , will yield a modified . Using equation (16) and the fact and are combined in a linear fashion, the only part of the equation that needs modification is , which must be expressed in terms of . For any bins merged, and are as follows
(20) | ||||
where the total number of is . The same applies for . All merged bins will now be coadded with the same value instead of the different values (e.g., , , , ) from before. The coadded and normalized values are
(21) | ||||
where the floor function returns the largest integer smaller or equal to . has a standard deviation of one as expected. For , the standard deviation, or equivalently, the frequency independent scale factor after rebinning is obtained as
(22) |
and the relevant results are shown in table 1. is also different from since it also includes as
(23) |
As shown in equation (21), the rebinned set of in equation (21) is separable into using equation (20) and ultimately via equation (12). By unpacking the merged variables fully into independent random variables, the calculation of in equation (22) becomes as straightforward as in equation (16).
Putting the effects of rebinning from both sides together, the SNR efficiency is smaller than , which is a separate effect from the aforementioned SNR decrease reported in ref. 12TB-PRL . This is later shown in table 1 ( and ) and Fig. 6 (blue and orange lines), although the difference is smaller for large . While and , the difference between and its rebinned counterpart is larger than the change in , leading to a decrease in SNR efficiency after rebinning.
4 Comparison with large-statistic simulations
So far the value of has been obtained given , , and . In order to see if this agrees with previously used large-statistic simulations, an axion signal was inserted by software using realistic CAPP-12TB background data. The input CAPP-12TB background shapes use the function and its parameters that were obtained from the fit in the original data analysis 12TB-PRL . Another background was constructed for comparison as well, which used the same parameters except for one that described the cavity bandwidth, which was multiplied by 20. This ensured that the structure of the cavity was not seen in this background, and instead was a “smooth” one. Both backgrounds are compared in Fig. 5. Each simulation was done 10000 times with pseudo-random-generated noise to obtain a sufficient amount of statistics, with an axion signal injected near 1.096 GHz. We will denote the results for the two types of backgrounds as “12TB” and “smooth,” respectively, e.g., or . Since the simulations follow the CAPP-12TB analysis parameters, there is rebinning. Hence the relevant values should be compared with and .

Compared to the time and disk space needed for large-statistic simulations, obtaining the values analytically for the same parameters is practically interactive, taking less than a minute while using only computer memory. The results can be compared in table 1 and Fig. 6.
Analytical | Simulation | Analytical | Simulation | |||||
---|---|---|---|---|---|---|---|---|
201 | 0.6948 | 0.6567 | 0.6540 | 0.6537 | 0.7145 | 0.6779 | 0.6823 | 0.6819 |
401 | 0.8510 | 0.8328 | 0.8314 | 0.8315 | 0.8525 | 0.8356 | 0.8388 | 0.8342 |
601 | 0.9028 | 0.8912 | 0.8910 | 0.9019 | 0.9015 | 0.8905 | 0.8919 | 0.8543 |
801 | 0.9286 | 0.9196 | 0.9198 | 0.9849 | 0.9262 | 0.9180 | 0.9193 | 0.7840 |
1001 | 0.9429 | 0.9362 | 0.9371 | 1.1285 | 0.9410 | 0.9346 | 0.9353 | 0.6261 |

As seen from the simulation results, a smooth background matches the rebinned analytical calculations well, but the 12TB background does not. This is expected from ref. SGFILTER-PROPERTIES , i.e., as increases the background estimation begins to show bias for the 12TB background shown in Fig. 5, similar to the SG filter’s tendency to “ignore” the axion signal, as mentioned earlier. Looking at , , and in table 1, this bias propagates to the grand spectrum and becomes evident from . Furthermore, the bias even shows a positive correlation when , which has also been noted in HAYSTAC . In terms of in Fig. 6, which combines the effects of and , we can see the bias become evident from .

The bias shown in the normalized power excess in the CAPP-12TB background suggests that there is a limit to using larger for SG filters and this can affect both and in an undesirable manner. Using the analytical calculations can work as a time-efficient way to obtain the SNR efficiency and a predictor for during data analysis. If the resulting from data analysis is noticeably different compared to its predicted value, this could indicate that there is bias in background subtraction. As seen in Fig. 7, there is a pattern in the bias that comes from the cavity response in the CAPP-12TB background. The bias is not always obvious as even the estimate shows a slight bump near the center of the normalized power excess, but only after one hundred different power spectra have been averaged. While this ultimately did not dramatically affect the results in table 1, there is a certain upper limit in which could be used before it becomes inaccurate. This, however, does not suggest a limitation of this analytical method but rather acts as a confidence check for background subtraction to look out for instances such as the one shown in Fig. 7. The verification of proper background subtraction is necessary in the analysis procedure not only for the correct estimation of SNR but also for obtaining unbiased power excesses.
In table 2, as further validation, two other experiments that used the SG filter for background subtraction and provided the required parameters (, , , , ) have their and values compared with the analytical method.
Experiment | |||||||||
---|---|---|---|---|---|---|---|---|---|
HAYSTAC HAYSTAC | 5.75 GHz | 100 Hz | 500 | 4 | 10 | 0.93 | 0.919 | 0.90 | 0.909 |
CAST-CAPP CAST-CAPP | 5.027 GHz | 50 Hz | 500 | 4 | 28 | 0.74 | 0.765 | 0.717 | 0.716 |
5 Summary
We report a fully analytical estimation of the signal to noise ratio efficiency in axion dark matter searches employing an SG filter for a background estimate. Provided the background estimation is properly done with appropriate SG filter parameters like the blue colored data shown in Fig. 7, this approach provides us with the interactively, using only an arbitrary axion mass and the relevant shape information, without relying on large-statistic simulation data, reflecting the background information and the expected axion signal power obtained from a real experiment. By comparing our or with the width of the normalized grand power spectrum from the experimental data, one can also quickly cross check the reasonableness of the error estimation as well as contamination of non-Gaussian components in the experimental data. Axion haloscope searches have been observing the coincidence that the frequency independent scale factor is approximately consistent with . This was confirmed analytically in this work, when the window length of the SG filter is reasonably wide enough, i.e., at least 5 times the signal window.
Acknowledgements.
This work is supported by the Institute for Basic Science (IBS) under Project Code No. IBS-R017-D1-2023-a00.References
- (1) P. A. R. Ade et al. (Planck Collaboration), Astron. Astrophys. 594 (2016) A13.
- (2) V. Rubin and W. K. Ford Jr., ApJ 159 (1970) 379; Douglas Clowe et al., ApJ 648 (2006) L109.
- (3) S. Weinberg, Phys. Rev. Lett. 40 (1978) 223; F. Wilczek, Phys. Rev. Lett. 40 (1978) 279.
- (4) R. D. Peccei and H. R. Quinn, Phys. Rev. Lett. 38 (1977) 1440.
- (5) G. ’t Hooft, Phys. Rev. Lett, 37 (1976) 8; Phys. Rev. D 14 (1976) 3432; 18 (1978) 2199(E); J. H. Smith, E. M. Purcell, and N. F. Ramsey, Phys. Rev. 108 (1957) 120; W. B. Dress, P. D. Miller, J. M. Pendlebury, P. Perrin, and N. F. Ramsey, Phys. Rev. D 15 (1977) 9; I. S. Altarev et al., Nucl. Phys. A341 (1980) 269.
- (6) P. Sikivie, Phys. Rev. Lett. 51 (1983) 1415; Phys. Rev. D 32 (1985) 2988.
- (7) N. Du et al. (ADMX Collaboration), Phys. Rev. Lett. 120 (2018) 151301; T. Braine et al. (ADMX Collaboration), Phys. Rev. Lett. 124 (2020) 101303; C. Bartram et al. (ADMX Collaboration), Phys. Rev. Lett. 127 (2021) 261803.
- (8) Andrew K. Yi et al., Phys. Rev. Lett. 130 (2023) 071002.
- (9) Howard Georgi and S. L. Glashow, Phys. Rev. Lett. 32 (1974) 438.
- (10) L. Krauss, J. Moody, F. Wilczek, and D. E. Morris, Phys. Rev. Lett. 55 (1985) 1797.
- (11) S. Ahn et al., JINST 17 (2022) P05025.
- (12) R. H. Dicke, Rev. Sci. Instrum. 17 (1946) 268.
- (13) S. J. Asztalos et al., Phys. Rev. D 64 (2001) 092003.
- (14) B. M. Brubaker, L. Zhong, S. K. Lamoreaux, K. W. Lehnert, and K. A. van Bibber, Phys. Rev D 96 (2017) 123008.
- (15) S. Ahn, S. Lee, J. Choi, B. R. Ko, and Y. K. Semertzidis, J. High Energ. Phys. 04 (2021) 297.
- (16) Andrew K. Yi et al., Phys. Rev. D 108 (2023) L021304.
- (17) M. S. Turner, Phys. Rev. D 42 (1990) 3572.
- (18) S. Lee, S. Ahn, J. Choi, B. R. Ko, and Y. K. Semertzidis, Phys. Rev. Lett. 124 (2020) 101802.
- (19) A. Savitzky and M. J. E. Golay, Anal. Chem. 36 (1964) 1627.
- (20) Python Software Foundation, https://www.python.org/.
- (21) M. Buschmann et al., Nat. Commun. 13 1049 (2022).
- (22) H. Zielger, Appl. Spectroscopy, 35 (1981) 1.