Skip to main content
Data in Brief logoLink to Data in Brief
. 2021 Jan 8;34:106714. doi: 10.1016/j.dib.2020.106714

Supplemental data for the paper “low-complexity detection of small frequency deviations by the generalized LMPU test”

Eyal Levy 1, Tirza Routtenberg 1,
PMCID: PMC7829148  PMID: 33532522

Abstract

This document contains supplemental material for the paper [2]. The notations in this document are the same as in [2]. In particular, we first present here the proof of Theorem 1 in [2]. This theorem expresses the locally most powerful unbiased (LMPU) test, which is a general method for local detection, in the presence of known nuisance parameters. Second, we present here the Matlab code of the LMPU and the generalized LMPU for the special case of detection of a small deviation in the frequency of sinusoidal signals, which arises in various signal processing applications.

Keywords: Locally most powerful, Unbiased test, Nuisance parameters, Low-complexity methods, Frequency deviation

Specifications Table

Subject Data Mining and Statistical Analysis
Specific subject area Detection Theory
Type of data Mathematical derivations, MATLAB code
How data were acquired All source codes written in Matlab software.
Data format Raw
Parameters for data collection All the codes were implemented in MATLAB-R2019a on a system with Intel Core(TM) i7-10TH GEN CPU computer,2.80 GHz.
Description of data collection The MATLAB code was configured as a function. The experiments were conducted by generating Monte-Carlo simulations of the model from (1) in [2], where the noise is generated by the Matlab function: wgn(N,’complex’), in which N is the number of measurements.
Data source location All relevant data is contained in this paper
Data accessibility With the article
Related research article E. Levy and T. Routtenberg, “Low-complexity detection of small frequency deviations by the generalized LMPU test,” Signal Processing, https://doi.org/10.1016/j.sigpro.2020.107851.

Value of the Data

  • This document contains the proof of Theorem 1 in [2], which expresses the LMPU test that is a function of a known parameter vector, θn. This is used in [2] to develop the GLMPU. This proof is important for the sake of completeness and since the LMPU it is less widely used than other detectors.

  • This proof can be used in the future for developing new tests for various scenarios.

  • The provided codes can be used for the detection of frequency deviations with low complexity.

1. Data Description

This article contains supplementary material for the paper in [2]. Specifically, it contains the proof of Theorem 1 in [2] and the code files in Matlab that were used to generate the graphs in [2]. Theorem 1 in [2] presents the locally most powerful unbiased (LMPU) test, which is a general test that maximizes the probability of detection under the α-size and unbiasedness constraints. This theorem presents the explicit test as a function of the likelihood function and as a function of the unknown nuisance parameters. The Matlab code contains the functions of the LMPU and generalized LMPU (GLMPU) tests that were used to generate Figs. 1–7 in [2], and is attached to this paper.

2. Experimental Design, Materials and Methods

3. Proof of Theorem 1 in [2]

A general non-random test, based on the observation vector, x, can be defined as

Φ(x)={1,xS10,xS1, (3.1)

where S1Ωx is the rejection region, which includes the values of x that lead to rejection of H0 (acceptance of H1).

In (6) in [2] we describe the general two-sided composite hypothesis testing problem, in which θl=θ0 under the null hypothesis and θlθ0 under the alternative hypothesis, and θn is a nuisance parameter vector that appears under both hypotheses.

The power function of a general test (3.1), Φ, for this hypothesis testing is defined by (p. 69 in [1]):

βΦ(θl,θn)=ΩxΦ(x)f(x;θl,θn)dx,θlθ0. (3.2)

The pdf of x under both hypotheses, f(x;θl,θn), is assumed to be a continuous and twice differentiable function w.r.t. the local parameter, θlR, for any unknown nuisance parameter vector, θnCK. Therefore, the power function βΦ(θl,θn) is also a continuous function w.r.t. the local parameter, θlR, especially at θl=θ0.

A level-α, unbiased test, Φ, is said to be the LMPU test (p. 340 in [1]) if, for any other given level-α, unbiased test Φ˜, there exists δ such that

βΦ(θl,θn)βΦ˜(θl,θn),θlΩδ, (3.3)

where Ωδ is the two-sided local neighborhood around θl, as defined in (7) in [2]. Thus, the LMPU test is obtained by maximizing the power function, βΦ(θl,θn), among all locally unbiased tests under the α-size and unbiasedness constraints from (10) and (11) in [2], respectively, in the neighborhood of Ωδ. The constraints from (10) and (11) in [2] can be rewritten by using (3.2) as follows:

PFA(θ0,θn)=βΦ(θl,θn)|θl=θ0=α, (3.4)
PD(θl,θn)=βΦ(θl,θn)|θlθ0α,θlΩδ. (3.5)

Together, these constraints indicate that βΦ(θl,θn) has a minimum point at θl=θ0 on the set Ωδ. Since we assume that the common pdf, f(x;θl,θn), is twice differentiable in the local neighborhood of θl for any θnCK, the constraint in (3.5) can be replaced by the stationary condition

βΦ(θl,θn)θl|θl=θ0=0, (3.6)

together with the condition

2βΦ(θl,θn)θl2|θl=θ0>0. (3.7)

Therefore, by concluding the constraints in (3.4), (3.6), and (3.7), the LMPU test can be obtained from the solution of the following constrained optimization problem:

maxΦ(x)βΦ(θl,θn)s.t.{βΦ(θ0,θn)=αβΦ(θl,θn)θl|θl=θ0=02βΦ(θl,θn)θl2|θl=θ0>0,θlΩδ. (3.8)

Under the assumptions of differentiability, the Taylor series expansion of the power function, βΦ(θl,θn), around θl=θ0 is given by:

βΦ(θl,θn)=βΦ(θ0,θn)+(θlθ0)βΦ(θl,θn)θl|θl=θ0+12(θlθ0)22βΦ(θl,θn)θl2|θl=θ0+O(δ2)=α+(θlθ0)22βΦ(θl,θn)θl2|θl=θ0+O(δ2), (3.9)

where the last equality is obtained by substituting the constraint on the false alarm probability from (3.4) and the unbiasedness constraint from (3.6). Thus, according to (3.9), in order to obtain the highest power, βΦ(θl,θn), for a given α and θn, we need to maximize the second order term, 2βΦ(θl,θn)θl2|θl=θ0, for both θl>θ0 and θl<θ0, and this leads to the LMPU test. In addition, under the constraint βΦ(θ0,θn)=α, (3.9) implies that the constraint in (3.7) is redundant for the maximization of βΦ(θl,θn) (which is always equal to or larger than α). Thus, the maximization in (3.8) is equivalent to the following optimization:

maxΦ(x)2βΦ(θl,θn)θl2|θl=θ0s.t.{βΦ(θ0,θn)=αβΦ(θl,θn)θl|θl=θ0=0. (3.10)

By using (3.2), it can be verified that

βΦ(θl,θn)θl|θl=θ0=θl(ΩxΦ(x)f(x;θl,θn)dx)|θl=θ0. (3.11)

Under the assumption that the test, Φ(x), is independent of the parameter θl, the integration and derivatives in (3.11) can be reordered to obtain

βΦ(θl,θn)θl|θl=θ0=ΩxΦ(x)(f(x;θl,θn)θl|θl=θ0)dx. (3.12)

Similarly,

2βΦ(θl,θn)θl2|θl=θ0=ΩxΦ(x)(2f(x;θl,θn)θl2|θl=θ0)dx. (3.13)

Therefore, by substituting (3.12) and (3.13) in (3.10), the integral form of (3.10) is

maxΦ(x)ΩxΦ(x)(2f(x;θl,θn)θl2|θl=θ0)dxs.t.{ΩxΦ(x)f(x;θ0,θn)dx=αΩxΦ(x)(f(x;θl,θn)θl|θl=θ0)dx=0. (3.14)

By using the auxiliary lemma of the Generalized Neyman-Pearson lemma (p. 77 in [1]) with m=2, f1=f(x;θ0,θn), f2=f(x;θl,θn)θl|θl=θ0, f3=2f(x;θl,θn)θl2|θl=θ0, c1=α, and c2=0, the LMPU test that solved (3.14) rejects the null hypothesis when

2f(x;θl,θn)θl2|θl=θ0>κ˜1f(x;θl,θn)θl|θl=θ0+κ˜2f(x;θ0,θn), (3.15)

where the constants κ˜1 and κ˜1 are chosen such that the constraints in (3.14) (or, equivalently, the constraints in (3.10)) are satisfied. That is, κ˜1 and κ˜1 are chosen such that βΦ(θ0,θn)=α and βΦ(θl,θn)θl|θl=θ0=0 are satisfied for the test Φ defined by (3.15). In addition, it can be verified that

f(x;θl,θn)θl|θl=θ0=logf(x;θl,θn)θl|θl=θ0f(x;θl,θn)|θl=θ0 (3.16)

and

2f(x;θl,θn)θl2|θl=θ0=(2logf(x;θl,θn)θl2)|θl=θ0f(x;θl,θn)|θl=θ0+f(x;θl,θn)θl|θl=θ0logf(x;θl,θn)θl|θl=θ0. (3.17)

By substituting (3.16) into (3.17), one obtains

2f(x;θl,θn)θl2|θl=θ0=(2logf(x;θl,θn)θl2)|θl=θ0f(x;θl,θn)|θl=θ0+(logf(x;θl,θn)θl|θl=θ0)2f(x;θl,θn)|θl=θ0. (3.18)

Then, by substituting (3.16) and (3.18) in (3.15), we get that the LMPU test that solved (3.14) is the LMPU test for a known parameter vector, θn, given in (12) in [2].

4. Code Files

The source code for the LMPU and GLMPU functions for the special case of testing frequency deviations is given below. The MATLAB scripts are used to generate the simulations in [2], as follows:

  • LMPU_FUN.m - calculates the LMPU test from (21) in [2] for the detection of a small deviation in the frequency of sinusoidal signals, where the amplitudes and noise variance are unknown.

  • GLMPU_FUN.m- calculates the GLMPU test from (23) in [2] for the detection of a small deviation in the frequency of sinusoidal signals, where the amplitudes and noise variance are unknown.

Image 1Image 2

Ethics Statement

The authors declare that this work has been done according to the ethical requirements for publication in Data in Brief.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships which have, or could be perceived to have, influenced the work reported in this article.

Acknowledgments

This research was partially supported by The Israel Science Foundation (grant no. 1173/16) and by the Israeli Ministry of National Infrastructure, Energy and Water Resources.

References

  • 1.Lehmann E.L., Romano J.P. Springer Science & Business Media; 2006. Testing Statistical Hypotheses. [Google Scholar]
  • 2.Levy E., Routtenberg T. Low-complexity detection of small frequency deviations by the generalized LMPU test. Signal Process. 2021;180 doi: 10.1016/j.sigpro.2020.107851. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Data in Brief are provided here courtesy of Elsevier

RESOURCES