Next Article in Journal
Shared Sensor Networks Fundamentals, Challenges, Opportunities, Virtualization Techniques, Comparative Analysis, Novel Architecture and Taxonomy
Previous Article in Journal
Moving Towards Body-to-Body Sensor Networks for Ubiquitous Applications: A Survey
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Statistical Properties of Energy Detection for Spectrum Sensing by Using Estimated Noise Variance

1
Nanfang College, Sun Yat-Sen Univeristy, Guangzhou 510900, China
2
College of Computer Science and Software Engineering, Shenzhen University, Shenzhen 518060, China
3
Department of Electrical and Computer Engineering, University of Waterloo, Waterloo, ON N2L3G1, Canada
4
School of Computer Science and Engineering, Kyungpook National University, Daegu 41566, Korea
*
Author to whom correspondence should be addressed.
J. Sens. Actuator Netw. 2019, 8(2), 28; https://doi.org/10.3390/jsan8020028
Submission received: 27 February 2019 / Revised: 6 May 2019 / Accepted: 7 May 2019 / Published: 13 May 2019

Abstract

:
In energy detection for cognitive radio spectrum sensing, the noise variance is usually assumed given, by which a threshold is set to guarantee a desired constant false alarm rate (CFAR) or a constant detection rate (CDR). However, in practical situations, the exact information of noise variance is generally unavailable to a certain extent due to the fact that the total noise consists of time-varying thermal noise, receiver noise, and environmental noise, etc. Hence, setting the thresholds by using an estimated noise variance may result in different false alarm probabilities from the desired ones. In this paper, we analyze the basic statistical properties of the false alarm probability by using estimated noise variance, and propose a method to obtain more suitable CFAR thresholds for energy detection. Specifically, we first come up with explicit descriptions on the expectations of the resultant probability, and then analyze the upper bounds of their variance. Based on these theoretical preparations, a new method for precisely obtaining the CFAR thresholds is proposed in order to assure that the expected false alarm probability can be as close to the predetermined as possible. All analytical results derived in this paper are testified by corresponding numerical experiments.

1. Introduction

Cognitive radio [1,2,3,4] is a potential technology to realize flexible and efficient usage of frequency spectrum, and is a promising approach in dealing with the spectrum scarcity in future wireless communication networks. However, a key step to make it a reality is to effectively address some estimation issues, such as transmitter power estimation [5] and monitoring in wireless networks. Spectrum sensing is among the most important ones, which aims to detect whether licensed spectrum is accessible. Some existing spectrum sensing methods in the literature are by way of matched filtering, waveform-based sensing [6], cyclostationary-based sensing [7,8], and energy detection [9,10,11,12], etc. Clearly, energy detection is the most popular way to perform spectrum sensing.
In this paper, the energy detection scheme is carried out under the framework shown in Figure 1, which is a generation of the detection scheme described in [13]. The similar part is that the input signal x ( t ) is first passing a Band-Pass Filter (BPF) and next the signal is digitized by an analog to digital converter (ADC), then, a simple square and average device is used to estimate the received signal energy. For a real input signal, the estimated energy, u = 1 M k = 1 M x k 2 , is then compared with a threshold, λ , to decide if a signal is present ( H 1 ) or not ( H 0 ). The threshold for energy detection used in [13] is constructed using the information of noise variance and signal-to-noise ratio. In the proposed framework shown by Figure 1, the noise variance is estimated from another available channel, σ ^ n 2 = 1 N k = 1 N n k 2 , and then the estimated noise variance is used to construct the detection threshold. This setting of detection is more applicable, since the real complicated noise is derived from various sources and thus its variance may change from time to time. Though the method using estimated noise variance to construct the threshold has been proposed in the literature, e.g., [14,15,16,17], they did not analyze the effect caused by using the estimation variance. An interesting double threshold detection method is presented in [18] using exact noise variance to separate three cases of detection: spectrum free, spectrum occupied and not certain. In this paper, we will calculate the expectation of the detection event by using the estimated variance and thus a much more accurate threshold may be derived for detection.
The threshold is determined typically based on two principles: constant false alarm rate (CFAR) and constant detection rate (CDR), which will be further explained in Section 2. In both cases, the noise variance (power) is generally supposed to be known to determine the threshold, as shown in [19,20]. However, noise variance may vary significantly in both temporal and spatial dimension due to the fact that the total noise is composed of thermal noise, receiver noise, and environmental noise. Generally, one may take the estimated noise variance, to some certain extent, as the noise variance in the calculation of the threshold in energy detection accordingly. The following two examples are given in [13] for practical performance of energy detection. One example is that a certain channel is reserved for special applications by spectrum regulators. The special channel can only be used to estimate noise variance, and can never be used by a secondary user. For instance, channel 37 (from 608 to 614 MHz) in FCC is used in very few occasions but for radioastronomy. Another example is the detection of DTV pilot signals, in which the noise variance can be estimated from some frequency bin not corresponding to the pilot frequency under the low SNR scenario. In both examples, a threshold is computed from the estimated noise variance based on CFAR or CDR principles. Then, the threshold is used in the subsequent detection to determine whether a signal is present or not by comparing with the detected energy from the channel of interest or from the known pilot frequency bin.
What are the encountered problems for detection using estimated noise variance? For CFAR principle, the resultant false alarm rate P ^ f a may not be guaranteed as the preassigned level P f a . Since the resultant rate P ^ f a is actually a random variable. Indeed, the estimated noise variance σ ^ n 2 is a random variable. Thus the CFAR threshold, denoted by λ ^ f a , using variance σ ^ n 2 is also a random variable, which implies that the resulted probability of false alarm for energy detection, denoted as P ^ f a , is also a random variable. Obviously, it is generally impossible to expect that P ^ f a equals the preassigned P f a . Let us show a simple example here for demonstration of the theoretical results. Let M = 60 , N = 30 , if we want to set a threshold by the standard energy detection method (replacing the noise variance by its estimation) to guarantee E P ^ f a = 0.05 , the preassigned false alarm rate to set the threshold should be cautious and it is found by Theorem 1 that it should be approximately P f a 0 = 0.00033955 , which is much smaller than the desired rate 0.05 . However, if the sample number N increases to 100, the preassigned false alarm rate could be P f a 0 = 0.0129 . As the sample number N increases, the preassigned rate approaches to 0.05 itself.
In this paper we analyze the difference between P f a and E P ^ f a . It is found in [13] that the expectation of P ^ f a , which is actually calculated using an approximated random variable therein, is greater than P f a for some predesigned P f a , say, 0.01 , which is shown in Figure 2 therein. Hence, to make a proper choice of the threshold, it is critical to answer the following questions:
  • What is the expectation of P ^ f a ?
  • What is the variance of P ^ f a ? (equivalently, the second moment of E P ^ f a 2 )
  • What is the limitation of E P ^ f a for a fixed P f a as N, the number of samples used to estimate the noise variance, and M, the number of samples used to perform detection, tend to infinity?
Although a part of these issues, e.g., the first and third for the case of M = N , have been tackled and initially studied in [13]. Yet, the study failed to find an explicit form for E P ^ f a , which leaves a large space for further advance. Motivated by this, we investigate the problems by explicitly describing E P ^ f a and establishing an upper bound for E P ^ f a 2 , which well answers the first issue and the second partly. Moreover, with an approximation of E P ^ f a based on an estimated distribution of the resulted threshold λ ^ f a , the third question is analyzed for some special cases. Nevertheless, some new CFAR thresholds for energy detection are proposed by confirming that E P ^ f a equals to the predesigned false alarm probability P f a .
The rest of this paper is organized as follows. The model setting and hypothesis testing of energy detection by a known noise variance is introduced in Section 2, where the CFAR thresholds are derived in an exact way and an approximating way, respectively, by assuming Gaussian signals. Section 3 numerically investigates the selection of CFAR based on an estimated noise variance to set a CFAR threshold. In Section 4, we analyze some basic statistical properties of the resulted probability of false alarm P ^ f a given by (21) along with P ˜ ^ f a , the estimated case given by (24). Specifically, we come up with explicit descriptions for the expectations of P ^ f a and P ˜ ^ f a by Theorems 1 and 3, respectively, and some discussions on the corresponding properties. In Section 5, upper bounds on E P ^ f a 2 and E P ˜ ^ f a 2 are derived by Theorems 5 and 6, respectively, due to the difficulty in finding the exact explicit forms by any known special functions. In Section 6, new CFAR thresholds are proposed, aiming to assure that E P ^ f a or E P ˜ ^ f a equals to the predetermined false alarm probability P f a . Concluding remarks and future research are listed in Section 7. All analytical results derived in this paper are regarding CFAR thresholds. However, as a matter of fact, similar results also hold for the CDR case.

2. Model Setting and Hypothesis Testing with Known Noise Variance

Spectrum sensing is an important task for a secondary user in a cognitive radio network in order to determine whether a licensed band is currently occupied by a primary user or not. This is can be formulated into a binary hypothesis testing problem: [13,20]:
x ( k ) = n ( k ) , H 0 ( vacant ) , s ( k ) + n ( k ) , H 1 ( occupied ) ,
where s ( k ) , n ( k ) , and x ( k ) represents the primary user’s signal, the noise, and the received signal, respectively. The noise is assumed to be Gaussian random process of zero mean and variance σ n 2 , whereas the signal is also assumed to be iid Gaussian random process of zero mean and variance of σ s 2 . The signal to noise ratio is defined as the ratio of signal variance to the noise variance
SNR = σ s 2 / σ n 2 .
The test statistics generated from the energy detector as shown in Figure 1 are
u = 1 M k = 1 M x k 2 .
Under the hypotheses H 0 and H 1 , the test statistic u is a random variable whose probability density function (PDF) is chi-square distributed. Let us denote a chi-square distributed random variable X with M degrees of freedom as X χ M 2 , and recall its PDF as
f χ ( x , M ) = 1 2 M / 2 Γ ( M / 2 ) x M / 2 1 e x / 2 , for   x > 0 , 0 , otherwise ,
where Γ ( · ) denotes Gamma function, given in (15).
Clearly, under hypothesis H 0 , M u / σ n 2 χ M 2 ; and M u / σ t 2 χ M 2 under H 1 with σ t 2 = ( 1 + SNR ) σ n 2 . Thus, the PDF of test statistics u, given by test, is
f u ( x ) σ n 2 M f χ ( x σ n 2 M , M ) , under H 0 ; σ t 2 M f χ ( x σ t 2 M , M ) , under H 1 .
When M is sufficiently large, we can approximate the PDF of u using Gaussian distribution:
f ˜ u ( x ) N ( σ n 2 , 2 σ n 4 / M ) , under H 0 ; N ( σ t 2 , 2 σ t 4 / M ) , under H 1 .
For a given threshold λ , the probability of false alarm is given by
P f a = prob [ u > λ | H 0 ] = Γ M 2 , M λ 2 σ n 2 ,
where Γ ( a , x ) is the upper incomplete gamma function in (16). In addition, its approximating form of P f a corresponding to distribution (6) for large M is
P ˜ f a = Q λ σ n 2 σ n 2 / M / 2 ,
where Q ( · ) is defined in (14).
If the required probability of false alarm rate ( P f a ) is predetermined, the threshold ( λ f a ) can be set accordingly by
λ f a = 2 σ n 2 M Γ 1 M / 2 , P f a ,
where Γ 1 ( a , x ) is the inverse function of Γ ( a , x ) . Furthermore, for the approximation case:
λ ˜ f a = σ n 2 1 + Q 1 ( P f a ) M / 2 ,
where Q 1 ( x ) is the inverse function of Q ( x ) .
Similarly, under hypothesis H 1 , for a given threshold λ , the probability of detection is given by
P d = prob [ u > λ | H 1 ] = Γ M 2 , M λ 2 σ t 2 ,
where Γ ( a , x ) is the upper incomplete gamma function. So, we derive the threshold to achieve a target probability of detection at the required signal level or SNR:
λ d = 2 σ n 2 ( 1 + SNR ) M Γ 1 M / 2 , P d .
Furthermore, the corresponding approximating case is
λ ˜ d = σ n 2 ( 1 + SNR ) 1 + Q 1 ( P d ) M / 2 .
The probability of false alarm is fixed to a small value (e.g., 5%) if it is required to guarantee a reuse probability of the unused spectrum, and meanwhile the detection probability should be maximized as much as possible. This is referred to as constant false alarm rate (CFAR) principle [13,19]. On the other hand, if it is required to guarantee a non-interference probability to the primary users, the probability of detection should be set to a high level (e.g., 95%) and the probability of false alarm should be minimized as much as possible. This is called the constant detection rate (CDR) principle [13,19]. By the similarity of (9) and (12), it is clear that the derivation of the threshold values for CFAR and CDR are similar, so the analytic results derived by assuming CFAR based detection can be applied to CDR based detection with minor modifications and vice versa. From now on, we will mainly focus on the discussion of CFAR threshold, since similar conclusions follow directly by minor changes.
Let us introduce some special functions and related notations for ease of reading. The complement of the standard normal distribution function is often denoted as Q ( x ) , i.e.,
Q ( x ) = x 1 2 π e t 2 2 d t ,
and is simply referred to as Q-function, in the context of engineering. This represents the tail probability of the standard Gaussian distribution. The Gamma function and regularized upper incomplete Gamma function are defined as
Γ ( k ) = 0 t k 1 e t d t ,
Γ ( k , x ) = 1 Γ ( k ) x t k 1 e t d t
for k > 0 , respectively. The more complicated Beta function and Beta distribution function are respectively listed below
B ( a , b ) = 0 1 t a 1 ( 1 t ) b 1 d t ,
B ( x , a , b ) = 1 B ( a , b ) 0 x t a 1 ( 1 t ) b 1 d t .
for a > 0 , b > 0 and x [ 0 , 1 ] . A well-known relation between Beta and Gamma function is
B ( a , b ) = Γ ( a ) Γ ( b ) Γ ( a + b ) .
We simply use Q 1 ( x ) , Γ 1 ( k , x ) and B 1 ( x , a , b ) to present the inverse functions of Q ( x ) , Γ ( k , x ) and B ( x , a , b ) respectively.

3. Energy Detection Performance Using Estimated Noise Variance

As already mentioned in the introduction, the exact noise variance is generally unavailable; even historic records are sometimes out of use, due to timely changes of thermal conditions and environmental conditions, and so on. So, practically the threshold values in (9) and (12), or the approximating cases (10) and (13), are usually calculated from an estimated noise variance σ ^ n 2 to a certain extent. In this section, we numerically study the performance of energy detection by replacing the noise variance in these formulas by an estimated noise variance σ ^ n 2 . Specifically, we investigate the difference E P ^ f a P f a by numerical experiments.
We want to find out the performance of energy detection by simply replacing the exact noise variance σ n 2 in (9) and (12) with the estimated noise variance σ ^ n 2 , i.e., calculate the thresholds as
λ ^ f a = 2 σ ^ n 2 M Γ 1 M / 2 , P f a ,
λ ^ d = 2 σ ^ n 2 ( 1 + SNR ) M Γ 1 M / 2 , P d ,
and then by (7) and (11) respectively the resulted performance probabilities are
P ^ f a = prob [ u > λ ^ f a | H 0 ] = Γ M 2 , M λ ^ f a 2 σ n 2 ,
P ^ d = prob [ u > λ ^ d | H 1 ] = Γ M 2 , M λ ^ d 2 σ t 2 .
Similarly, in the approximating case, the CFAR threshold λ ˜ f a by replacing with the estimated noise variance σ ^ n 2 is
λ ˜ ^ f a = σ ^ n 2 1 + Q 1 ( P f a ) M / 2 ,
which is corresponding to (10). Thus the resulted performance probability is
P ˜ ^ f a = prob [ u > λ ˜ ^ f a ] = Q λ ˜ ^ f a σ n 2 σ n 2 / M / 2 .
Due to the CFAR and CDR principles having an essentially similar structure, we actually investigate the CFAR case only, i.e., by formulas (19) and (21) to check the evolvement of E P ^ f a as the predetermined P f a varying from 0 to 1, or for a fixed P f a as the number of samples tends to infinity. A technical treatment of estimating E P ^ f a in the following experiments is replacing it by the corresponding empirical average P ^ ¯ f a over a class of sample paths.
Example 1.
We first investigate the difference between E P ^ f a and the predesigned P f a as P f a changes along the interval [ 0 , 1 ] with M and N fixed. In model (1), let σ n 2 = 1 and M = 60 . Consider a given false alarm rate P f a , we use N = 30 iid Gaussian noises to estimate the variance σ ^ n 2 , and then substitute σ ^ n 2 in (19) to derive the threshold λ ^ f a . The energy detection performance by the obtained threshold λ ^ f a is evaluated by the corresponding false alarm probability P ^ f a by (21). As aforementioned, it is important to check whether E P ^ f a = P f a . In order to estimate E P ^ f a , repeat independently the aforementioned procedure and calculation for 600 times to calculate the average false alarm probability
P ^ ¯ f a = 1 600 i = 1 600 P ^ f a ( ω i )
to serve as an empirical approximation of E P ^ f a , where P ^ f a ( ω i ) denotes the calculated probability along the i-th sample path ω ( i ) . We let P f a = 0 , 0.05 , , 1 , totally 21 points, to do an experiment. The result is shown in Figure 2a, where P ^ ¯ f a is plotted by ’+’. We see that P ^ ¯ f a > P f a when P f a is close to 0, while P ^ ¯ f a < P f a when P f a is near 1.
Example 2.
This time we investigate the difference between E P ^ f a and the predesigned P f a with a fixed P f a as M = N tends to infinity. Still let σ n 2 = 1 in model (1). With the same procedure of Example 1 to calculate P ^ ¯ f a by 600 independent sample paths. We let P f a = 0.05 and 0.95 respectively, and M = N = 1 , 2 , , 100 to do an experiment. The result is shown in Figure 2b, where P ^ ¯ f a for P f a = 0.05 is plotted by thick line, and P f a = 0.95 by ordinary line. We see that P ^ ¯ f a > P f a when P f a = 0.05 , and P ^ ¯ f a < P f a when P f a = 0.95 . Furthermore, it seems that P ^ ¯ f a , and thus E P ^ f a , for a fixed P f a has a limitation as M = N tends to infinity.
The phenomena discovered by these numerical experiments will be explained in the next two sections by developing an exact formula for E P ^ f a and an upper bound for its variance. Nevertheless, the case for approximating CFAR threshold has also been analyzed meanwhile.

4. Calculations of E P ^ f a and E P ˜ ^ f a

In this section, we will derive explicit formulas for the expectation of P ^ f a given by (19) and (21) with respect to predesigned false alarm probability P f a , and the expectation of P ˜ ^ f a given by (23) and (24). Moreover, some basic properties are deduced analytically and numerically, which further explains some discoveries in the former section.
Denote Y = 1 N k = 1 N Y k 2 as the estimated noise variance from the reference channel (Ch 0 ) known to be vacant, where N is the number of samples used to estimate noise variance. Denote u by (3) as the energy detection test statistics from the channel of interest (Ch 1 ). Here we assume the number of samples, as aforementioned, used to perform spectrum sensing is M.
Notice that the estimated noise variance, Y = 1 N k = 1 N Y k 2 , is a random variable itself, the probability of false alarm or detection is conditioned on one observation of the random variable, e.g., y. Let us consider the case of CFAR. By (7) and (19), the probability of false alarm can be written as
P ^ f a = prob [ u > λ ^ f a ] = Γ M 2 , y σ n 2 Γ 1 M / 2 , P f a ,
where λ ^ f a is the threshold value calculated from (19) by given false alarm probability P f a , and y is a realization of random variable Y.
Since P ^ f a given by (25) is a random variable depending on y, it is natural to consider its expectation with respect to y. Let us summarize a theoretical result regarding E P ^ f a as a theorem below.
Theorem 1.
When using estimated threshold λ ^ f a of CFAR given by (19) for model (1), we have
E P ^ f a = B N N + 2 x , N 2 , M 2 ,
where x = Γ 1 M / 2 , P f a and Beta distribution B ( x , a , b ) is defined by (18).
Proof of Theorem 1.
By integrating (25) over the PDF of Y, the expected probability of false alarm can be derived as
E P ^ f a = E Γ M 2 , y σ n 2 Γ 1 M / 2 , P f a = 0 Γ M 2 , t N Γ 1 M / 2 , P f a f χ t , N d t ,
where we use the fact t = N y / σ n 2 χ N 2 in the second step. Letting x = Γ 1 M / 2 , P f a , we derive
E P ^ f a = 0 Γ M / 2 , t x / N f χ t , N d t = 0 1 Γ ( M / 2 ) t x / N s M / 2 1 e s d s 1 2 N / 2 Γ ( N / 2 ) t N / 2 1 e t / 2 d t .
Differentiating by x, we have
d ( E P ^ f a ) d x = 1 Γ ( M 2 ) Γ ( N 2 ) 2 N / 2 0 t x N M / 2 1 e t x N t N t N / 2 1 e t / 2 d t = x M / 2 1 ( 1 / N ) M / 2 Γ ( M 2 ) Γ ( N 2 ) 2 N / 2 0 t M + N 2 1 e x N + 1 2 t d t .
Introduce transformation u = x N + 1 2 t . By the fact that x > 0 , we proceed as
d ( E P ^ f a ) d x = x M / 2 1 ( 1 / N ) M / 2 Γ ( M 2 ) Γ ( N 2 ) 2 N / 2 · 1 x N + 1 2 M + N 2 0 u M + N 2 1 e u d u = x M / 2 1 ( 1 / N ) M / 2 2 N / 2 x N + 1 2 M + N 2 · Γ ( M + N 2 ) Γ ( M 2 ) Γ ( N 2 ) = x M / 2 1 ( 1 / N ) M / 2 ( 1 / 2 ) N / 2 B ( M 2 , N 2 ) x N + 1 2 M + N 2 ,
where B ( M 2 , N 2 ) is Beta function in (17). Integrating (30) over ( x , ) , by noticing E P ^ f a = 0 for x = in (27), we derive
E P ^ f a = x u M / 2 1 ( 1 / N ) M / 2 ( 1 / 2 ) N / 2 B ( M 2 , N 2 ) u N + 1 2 M + N 2 d u .
Let w = 2 u N . The integral turns to be
E P ^ f a = 1 B ( M 2 , N 2 ) 2 x N w M 2 1 ( w + 1 ) M + N 2 d w = 1 B ( M 2 , N 2 ) 0 N N + 2 x s N 2 1 ( 1 s ) M 2 1 d s = B N N + 2 x , N 2 , M 2 ,
where B ( x , a , b ) is the Beta distribution function in (18). In the second step, we use the transformation w = 1 s 1 .  □
Based on Theorem 1, we conclude a further theoretical discovery as the following theorem, which is actually being pointed out in the numerical experiments of the former section.
Theorem 2.
There exists a p 0 0 , 1 such that
E P ^ f a > P f a f o r   P f a ( 0 , p 0 ) , E P ^ f a < P f a f o r   P f a ( p 0 , 1 ) ,
where E P ^ f a is defined by (27), and can be calculated by (26).
Proof. 
Let P f a = p to be brief. Introduce a function ψ ( p ) = E P ^ f a p . By (26), we have
ψ ( p ) = d B N N + 2 x , N 2 , M 2 d x · d x d p 1 = 1 B ( N 2 , M 2 ) N N + 2 x N 2 1 2 x N + 2 x M 2 1 · 2 N Γ ( M / 2 ) x 1 M 2 e x ( N + 2 x ) 2 1 = C ( M , N ) e x ( N + 2 x ) M + N 2 1 ,
where C ( M , N ) = Γ ( M + N 2 ) Γ ( N 2 ) N N 2 2 M 2 . By the fact x = Γ 1 M / 2 , p , i.e., p = Γ ( M / 2 , x ) , we have used the following calculation
d x d p = 1 d p d x = Γ ( M / 2 ) x M 2 1 e x
in the above second step. Note x = when p = 0 , so ψ ( 0 ) > 0 by (34). Note further x = 0 if p = 1 , by (34) we have ψ ( 1 ) > 0 . Together with the fact that ψ ( 0 ) = ψ ( 1 ) = 0 , we know that ψ is negative somewhere.
To find more information about the sign of ψ ( x ) , we recall the famous Stirling’s approximation formula for Gamma function (see page 400 of [21]):
Γ ( n + 1 ) = 2 π n n e n e λ n
where 1 12 n + 1 < λ n < 1 12 n , and an inequality (see page 88 of [21]):
1 + 1 n n + α e 1 + 1 n n + β ,
where α 1 l n 2 1 = 0.4427 and β 1 2 .
By (35), we get
C ( M , N ) = e θ M + N 2 N 2 ( M + N 2 ) M + N 2 1 N N 2 ( N 2 ) N 2 1 e M 2
with θ 6 M 1 ( 6 ( M + N ) 11 ) ( 6 N 12 ) , 6 M + 1 ( 6 ( M + N ) 12 ) ( 6 N 11 ) . Thus,
ψ ( p ) = e θ M + N 2 N 2 ( M + N 2 ) M + N 2 1 N N 2 ( N + 2 x ) M + N 2 ( N 2 ) N 2 1 e x M 2 1 .
By (36),
N N 2 N 2 1 = 1 + 2 N 2 N 2 2 < e .
Together with the facts that e θ < 1 and
N ( N 2 ) ( M + N 2 ) < 1
for M 6 , we declare that the derivative of ψ ( p ) at p, corresponding x = M 2 1 , i.e., ψ Γ 1 ( M 2 , M 2 1 ) < 0 .
On the other hand, by noticing the increase rates of function e x and ( N + 2 x ) M + N 2 in (34), we know that ψ ( p ) at most has two zeros in ( 0 , 1 ) . Hence, we conclude that ψ ( p ) starts as a positive value ψ ( 0 ) > 0 , then decreases to a negative minimum, and finally increases to a positive value ψ ( 1 ) > 0 . This means that ψ ( p ) starts as 0 increases to a positive maximum, and then decreases to negative minimum, finally increases to 0, which is just the assertion desired.  □
Now let us consider the counterparts for the approximating threshold of CFAR criterion, i.e., the expectation of P ˜ ^ f a given by (23) and (24).
Theorem 3.
When using estimated threshold λ ˜ ^ f a of CFAR given by (23) for model (1), we have
E P ˜ ^ f a = Q x N / 2 A ( x ) Q N 2 ,
where A ( x ) = x 2 + x 2 M + M + N 2 and x = Q 1 P f a .
Remark 1.
Based on Theorem 3, we now consider the limitation of E P ˜ ^ f a as M and N tend to infinity for fixed P f a . By (37), for a fixed x = Q 1 P f a , we have
lim M , N E P ˜ ^ f a = Q x 1 + μ .
if M = μ N . Thus, if M = N tends to infinity, we derive the discovery in [13]:
lim M = N E P ˜ ^ f a = Q x 2 .
These properties also hold for E P ^ f a since the distribution of P ^ f a tends to be the distribution of P ˜ ^ f a .
Proof of Theorem 3.
Integrating (24) with respect to y, and noticing that y N ( σ n 2 , 2 σ n 4 / N ) , we have
E P ˜ ^ f a = R Q y ( 1 + Q 1 ( P f a ) / M / 2 ) σ n 2 σ n 2 / M / 2 1 2 π σ n 2 / N / 2 e ( y σ n 2 ) 2 4 σ n 4 / N d y .
Letting x = Q 1 ( P f a ) and t = ( y σ n 2 ) / σ n 2 . we derive
E P ˜ ^ f a = R Q ( t M / 2 + ( t + 1 ) x ) N / 2 2 π e N t 2 4 d t .
For simplicity, introduce α = M / 2 and β = N / 2 . Differentiating P ˜ ¯ f a over x, we get
d ( E P ˜ ^ f a ) d x = R Q ( α t + t x + x ) x β 2 π e ( β t ) 2 2 d t = R t + 1 2 π e ( α t + t x + x ) 2 2 β 2 π e ( β t ) 2 2 d t = β 2 π R ( 1 + t ) exp 1 2 [ x 2 + 2 x t ( x + α ) + A t 2 ] d t ,
where A ( x ) = ( x + α ) 2 + β 2 and hereafter denote A sometimes for brief. It follows
d ( E P ˜ ^ f a ) d x = β 2 π R ( 1 + t ) exp 1 2 A t + x ( x + α ) A 2 + ( β x ) 2 A d t = β 2 π e ( β x ) 2 2 A R 1 + u x ( x + α ) A e A 2 u 2 d u = β 2 π e ( β x ) 2 2 A 1 x ( x + α ) A R e A 2 u 2 d u = β 2 π e ( β x ) 2 2 A 1 x ( x + α ) A · 2 π A = β 2 π e ( β x ) 2 2 A α x + α 2 + β 2 A A = 1 2 π e ( β x ) 2 2 A · β x A .
In the second step we use the transformation u = t + x ( x + α ) A to simplify the expression.
Now integrating (43) over ( x , ) , and by the fact that E P ˜ ^ f a = 0 for x = in (40), we find
E P ˜ ^ f a = x 1 2 π e ( β v ) 2 2 A ( v ) · β v A ( v ) d v = x 1 2 π e ( β v ) 2 2 A ( v ) d β v A ( v ) .
Let us study the function ϕ ( x ) = β x A ( x ) before introducing a transformation. Clearly,
lim x ϕ ( x ) = β , lim x ϕ ( x ) = β , ϕ ( x ) = 1 A A ( α x + α 2 + β 2 ) .
Note A > 0 and denote x 0 = α 2 + β 2 α , we derive ϕ ( x ) < 0 for x < x 0 , and ϕ ( x ) > 0 for x > x 0 . Thus, ϕ ( x ) has one unique minimum at x 0 . Hence, ϕ ( x ) increases from the minimum to β as x , and increases from the minimum to β as x .
Now introduce a transformation for (44) as w = ϕ ( v ) . Based on the above analysis for function ϕ ( · ) , if the integration region [ x , ) [ x 0 , ) , then the region for w turns to be [ ϕ ( x ) , β ) ; otherwise, the region for v can be divided into two monotonic parts as [ x , x 0 ] and [ x 0 , ) , and thus, the regions for w are [ ϕ ( x ) , ϕ ( x 0 ) ] and [ ϕ ( x 0 ) , β ) . Then, for the case x x 0 , by the fact that P ˜ ¯ f a = 0 for x = in (41), we proceed (44) as
E P ˜ ^ f a = ϕ ( x ) β 1 2 π e w 2 2 d w = Q ( ϕ ( x ) ) Q ( β ) .
For the case x < x 0 , similarly,
E P ˜ ^ f a = ϕ ( x ) ϕ ( x 0 ) + ϕ ( x 0 ) β 1 2 π e w 2 2 d w = Q ( ϕ ( x ) ) Q ( β ) .
These finish the proof.  □
Corresponding to Theorem 2, we also have:
Theorem 4.
There exists a p ˜ 0 0 , 1 2 such that
E P ˜ ^ f a > P f a f o r   P f a ( 0 , p ˜ 0 ) , E P ˜ ^ f a < P f a f o r   P f a ( p ˜ 0 , 1 ) ,
where E P ˜ ^ f a can be calculated by (37). Furthermore, the critical point p ˜ 0 is close to 1 2 for large M , N .
Remark 2.
By Theorem 4, we know that E P ˜ ^ f a = P f a at a point close to p = 1 2 . This property holds for E P ^ f a since the distribution of P ^ f a tends to that of P ˜ ^ f a .
Proof. 
Let P f a = p to be brief. Introduce a function
φ ( p ) = E P ˜ ^ f a p = Q x N / 2 A ( x ) Q N 2 Q ( x ) ,
where x = Q 1 ( p ) . So, we have
d φ d p = 1 2 π e ( β x ) 2 2 A · β x A · d x d p 1 = α x + α 2 + β 2 A A β e x 2 ( x + α ) 2 2 A 1 ,
where x = Q 1 ( p ) , A = ( x + α ) 2 + β 2 , α = M / 2 , and β = N / 2 . Clearly, x = is corresponding to p = 0 , thus, φ ( 0 ) > 0 . Together with the facts that φ ( 0 ) = 0 and φ ( 1 2 ) = Q ( β ) < 0 , we know that there exists a p ˜ 0 ( 0 , 1 2 ) such that φ ( p ˜ 0 ) = 0 . When x < 0 , corresponding to p > 1 2 , clearly,
β A < 1
for x < 0 , we have Q x β / A Q ( β ) < 0 , and thus φ ( p ) < 0 for p > 1 2 , which finishes the proof of the first assertion.
By (38), i.e.,
lim M = μ N E P ˜ ^ f a = Q x 1 + μ ,
we have
lim M = μ N φ ( p ) = Q x 1 + μ Q ( x ) .
Thus, for large M and N, we know that the zero of φ ( p ) , i.e., p ˜ 0 , is close to p = 1 2 , which is corresponding to x = 0 . This finishes the second assertion.  □
Now let us do some numerical experiments to detect the practicality of these theoretical results. Under the same setting of Example 1, we plot P ^ ¯ f a by ’+’, and E P ^ f a and E P ˜ ^ f a as the predesigned P f a [ 0 , 1 ] in Figure 3a. We see that E P ^ f a serves better as the mean value of P ^ ¯ f a than E P ˜ ^ f a , which coincides with the fact that the latter is an approximating case. If M , N is sufficiently large, E P ˜ ^ f a approximates E P ^ f a close as desired. Let us analyze more deeply the graphs in Figure 3a by the discovery in Remark 1. Let M = μ N , the approximation of E P ^ f a and E P ˜ ^ f a is Q ( Q 1 ( P f a ) / 1 + μ ) when M = μ N is large. Clearly, Q ( Q 1 ( 1 2 ) / 1 + μ ) = 1 2 by noticing Q 1 ( 1 2 ) = 0 . Graphically, this means the curves of E P ^ f a and E P ˜ ^ f a with respect to P f a [ 0 , 1 ] pass across the diagonal line in Figure 4 around P f a = 1 2 for sufficiently large M , N . If M > > N , i.e., μ close to 0, then Q ( Q 1 ( P f a ) / 1 + μ ) P f a . In this case, the graphs of E P ^ f a and E P ˜ ^ f a with respect to P f a [ 0 , 1 ] is close to the diagonal line.
On the other hand, in Figure 3b we plot P ^ ¯ f a , E P ^ f a and E P ˜ ^ f a under the same setting of Example 2 for P f a = 0.05 . Again, we see that E P ^ f a serves better as the mean value of P ^ ¯ f a than the approximation E P ˜ ^ f a . As M = N changes from 1 to 100, E P ^ f a and E P ˜ ^ f a seem tend to the value of the upper straight line in Figure 3b, i.e., Q ( Q 1 ( 0.05 ) / 2 ) = 0.1124 , which justifies the observation in Remark 1.
In conclusion, the theoretical discoveries in the above four theorems and two remarks have been verified in these numerical experiments.

5. Upper Bounds of E P ^ fa 2 and E P ˜ ^ fa 2

After the calculations of E P ^ f a and E P ˜ ^ f a , it is meaningful to have some information about the average deviations of P ^ f a and P ˜ ^ f a from their expectations. Technically, it is found very difficult to find explicit forms for E P ^ f a 2 and E P ˜ ^ f a 2 by existing special functions. We have to try to find some upper bounds instead. By the facts that P ^ f a [ 0 , 1 ] and P ˜ ^ f a [ 0 , 1 ] , we have obvious upper bounds as
E P ^ f a 2 E P ^ f a 1 and E P ˜ ^ f a 2 E P ˜ ^ f a 1 .
Thus, the more sharp upper bounds of E P ^ f a 2 and E P ˜ ^ f a 2 should be less than E P ^ f a and E P ˜ ^ f a respectively. For this target, let us list two propositions and two lemmas for technical preparation.
From the proofs of Theorems 1 and 3, we actually have the following two general results respectively.
Proposition 1.
For a real differentiable function ψ : [ 0 , ) [ 0 , ) ,
d d x 0 Γ ( m , t ψ ( x ) ) 1 Γ ( n ) t n 1 e t d t = 1 B ( n , m ) ψ m 1 ( x ) ψ ( x ) ( 1 + ψ ( x ) ) m + n = 1 B ( n , m ) 1 ϕ ( x ) m 1 ϕ ( x ) n 1 ϕ ( x ) ,
where ϕ ( x ) = 1 1 + ψ ( x ) and m > 0 , n > 0 .
Proposition 2.
For two real differentiable functions ψ ( x ) and φ ( x ) ,
d d x R Q ( t ψ ( x ) + φ ( x ) ) e t 2 2 d t = exp φ 2 ( x ) 2 ( 1 + ψ 2 ( x ) ) φ ( x ) 1 + ψ 2 ( x ) .
We need two more inequalities regarding Gaussian and Gamma distributions respectively as follows. The proofs have been listed in Appendix A.
Lemma 1.
For k 1 and x > 0 ,
Γ 2 ( k , x ) Γ ( k , 2 1 k x ) .
Lemma 2.
For x ( , + ) ,
Q 2 ( x ) < Q ( 2 x ) .
By Proposition 1 and Lemma 1, we develop an upper bound for E P ^ f a 2 in the following.
Theorem 5.
Let x = Γ 1 M / 2 , P f a , then an upper bound for E P ^ f a 2 is
B ( P ^ f a 2 ) = Δ B N N + 2 1 + 2 / M x , N 2 , M 2 .
Remark 3.
Note that
0 < N N + 2 1 + 2 / M x < N N + 2 x
for x > 0 , we know that the upper bound in (51) for E P ^ f a 2 is really lower than E P ^ f a .
Proof of Theorem 5.
By (25), we find an upper bound for the the expectation of squared probability of false alarm as
E P ^ f a 2 = E Γ 2 M 2 , y σ n 2 Γ 1 M / 2 , P f a = 0 Γ 2 M / 2 , t x / N f χ t , N d t ,
where we use the notations: t = N y / σ n 2 and x = Γ 1 M / 2 , P f a . By Lemma 1, for a ( 0 , 1 ) we derive
E P ^ f a 2 = 0 Γ 2 M / 2 , t x / N f χ t , N d t 0 Γ ( M / 2 , 2 2 / M t x / N ) t N / 2 1 e t / 2 2 N / 2 Γ ( N / 2 ) d t = Δ B ( P ^ f a 2 ) .
In order to use Proposition 1, introduce a transformation u = t / 2 . Then, we proceed (53) as
B ( P ^ f a 2 ) = 0 Γ M / 2 , 2 1 + 2 / M t x / N u N / 2 1 e u Γ ( N / 2 ) d u .
Clearly, corresponding to Proposition 1, ψ ( x ) = 2 1 + 2 / M x N in (54). Thus, by Proposition 1, we derive
B ( P ^ f a 2 ) = B N N + 2 1 + 2 / M x , N 2 , M 2 .
  □
By Proposition 2 and Lemma 2, we develop an upper bound for E P ˜ ^ f a 2 in the following.
Theorem 6.
Let x = Q 1 P f a , then an upper bound for E P ˜ ^ f a 2 is
B ( P ˜ ^ f a 2 ) = Δ Q 2 β x β 2 + 2 ( x + α ) 2 Q ( β ) ,
where α = M / 2 and β = N / 2 .
Remark 4.
Note that
2 β x β 2 + 2 ( x + α ) 2 > β x β 2 + ( x + α ) 2 > 0
for x > 0 , we know that the upper bound in (55) for E P ˜ ^ f a 2 is really lower than E P ˜ ^ f a for P f a [ 0 , 1 2 ] .
Proof of Theorem 6.
Letting x = Q 1 ( P f a ) , t = ( y σ n 2 ) / σ n 2 , and recalling the notations α = M / 2 and β = N / 2 . By (24), we derive
E P ˜ ^ f a 2 = R Q 2 ( α t + x t + x ) β 2 π e β 2 t 2 2 d t .
By Lemma 2, we proceed as
E P ˜ ^ f a 2 R Q 2 ( α t + x t + x ) β 2 π e β 2 t 2 2 d t = Δ B ( P ˜ ^ f a 2 ) .
Introduce transformation u = β t , and thus t = u β . Hence, we derive
B ( P ˜ ^ f a 2 ) = R Q 2 ( α + x ) u β + x e u 2 2 2 π d u .
Clearly, corresponding to Proposition 2, ψ ( x ) = 2 ( α + x ) / β and φ ( x ) = 2 x . By the fact
lim x + φ ( x ) 1 + ψ 2 ( x ) = lim x + 2 β x β 2 + 2 ( x + α ) 2 = β
and Proposition 2, we have the formula (55).  □
Now let us do two numerical experiments corresponding to examples in Section 3 to check how the two upper bounds work. The average squared false alarm probability is calculated over 600 sample paths by
P ^ 2 ¯ f a = 1 600 i = 1 600 P ^ f a 2 ( ω i )
to serve as an empirical approximation of E P ^ f a 2 , where P ^ f a ( ω i ) denotes the calculated probability along the i-th sample path ω ( i ) . Under the same setting of Example 1, we plot P ^ 2 ¯ f a by ’+’, B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) as P f a changes from 0 to 1 in Figure 4a. It seems that B ( P ^ f a 2 ) is the better one, especially in the case P f a > 1 2 . Under the same setting of Example 2, by letting P f a = 0.05 we plot P ^ 2 ¯ f a , B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) for M = N = 1 , , 100 in Figure 4b. The two upper bounds seem not quite satisfied since both of them do not tend to P ^ 2 ¯ f a as M (or N) tends to infinity.

6. New Thresholds Based on E P ^ f a and E P ˜ ^ f a

In this section we derive new thresholds to guarantee the expectation E P ^ f a = P f a or in the approximation formula version, E P ˜ ^ f a = P f a , by the help of Theorems 1 and 3, respectively.
The threshold λ ^ f a given by (19) constructed by using estimated noise variance is actually a random variable itself. This leads to the fact that the resulted false alarm probability P ^ f a given by (21) is generally different from the predesigned probability P f a . It is found in Theorem 1 that the expected value of P ^ f a is probably different from the predesigned probability P f a . For instance, let P f a = 0.05 and M = 60 , N = 30 as in Example 1, by Theorem 1,
E P ^ f a = B 30 30 + 2 Γ 1 30 , 0.05 , 15 , 30 = 0.2065
for the threshold given by (19), i.e., λ ^ f a = 2 σ ^ n 2 M Γ 1 30 , 0.05 , where σ ^ n 2 is estimated by N = 30 independent observations. Obviously, the resulted expectation E P ^ f a = 0.2065 is much bigger than the predesigned false alarm probability P f a = 0.05 . This means the threshold is selected too low to guarantee the predesigned false probability P f a = 0.05 in an average sense. If we want the expectation E P ^ f a = 0.05 , the preassigned probability P f a 0 for energy detection should be suitably smaller. Next we analyze how small the preassigned probability P f a 0 should be and then derive a new threshold to guarantee E P ^ f a = P f a .
For a given alarm level P f a , say 0.05 , in order to derive a threshold to guarantee E P ^ f a = P f a , it is found that the x in (26) should be
x = N 2 1 B 1 ( P f a , N / 2 , M / 2 ) 1
by solve the target equation. Then by x = Γ 1 M / 2 , P f a 0 described in Theorem 1, the preassigned initial threshold for energy detection should be P f a 0 = Γ M / 2 , x . In other words, due to the fact that the noise variance is estimated by finite samples of noise, if we still want the false alarm rate less than P f a , we may need to be more cautious to select the threshold for energy detection. For the simple example discussed above, i.e., M = 60 , N = 30 , if we want E P ^ f a = 0.05 , the preassigned false alarm rate should be approximately P f a 0 = 0.00033955 , which is much smaller than the desired rate 0.05 . However, if the sample number N increases to 100, the preassigned false alarm rate could be P f a 0 = 0.0129 . As the sample number N increases, the preassigned rate approaches to 0.05 itself.
It is plotted in Figure 5a how the cautious preassigned false alarm rate P f a 0 should be under the setting M = 60 and N = 30 , 100 , for the sequence P f a = 0 , 0.05 , , 1 . It is clearly shown in the figure that the preassigned false alarm rate P f a 0 should be much smaller than the value P f a is designed to be. As the sample number N for estimation increases, the preassigned false alarm rate P f a 0 approaches to the value of P f a .
Consequently, by the value of x the derived new threshold is given by
λ ^ f a n e w = 2 σ ^ n 2 M x = N σ ^ n 2 M 1 B 1 ( P f a , N / 2 , M / 2 ) 1 ,
where B 1 ( x , a , b ) denotes the inverse function of B ( x , a , b ) . By formula (26), we have
E ( prob [ u > λ ^ f a n e w ] ) = P f a .
This means by this new threshold the expected false alarm probability is just the predesigned false alarm probability P f a . Hence, this new threshold is more accurate to serve as CFAR threshold for energy detection when using estimated noise variance.
Similarly, for a given alarm level P f a , say 0.05 , we derive a threshold to guarantee E P ˜ ^ f a = P f a . Denote γ = Q 1 ( Q ( β ) + P f a ) . It can be solved by (26) that
x n e w = α γ 2 + β γ Δ β 2 γ 2
with γ = Q 1 ( Q ( β ) + P f a ) , Δ = α 2 + β 2 γ 2 , α = M / 2 and β = N / 2 . Observe that Q ( γ ) = Q ( β ) + P f a > Q ( β ) , it follows that γ < β . Then by x = Q 1 P f a 0 stated in Theorem 3, it is clear that the preassigned false alarm rate should be P f a 0 = Q ( x n e w ) . It is plotted in Figure 5b how the cautious preassigned false alarm rate P f a 0 should be under the setting M = 60 and N = 30 , 100 , for the sequence P f a = 0.05 , 0.10 , , 0.95 . It is clearly shown in the figure that the preassigned false alarm rate P f a 0 should be much smaller than the value P f a is designed to be. As the sample number N for estimation increases, the preassigned false alarm rate P f a 0 approaches to the value of P f a .
Consequently, by the value of x n e w the derived new threshold is given by
λ ˜ ^ f a n e w = σ ^ n 2 1 + x n e w M / 2 .
Then, by Theorem 3, we have
E ( prob [ u > λ ˜ ^ f a n e w ] ) = P f a .
Hence, this new threshold is much more accurate in an average sense than the empirical threshold simple replacement for energy detection when using estimated noise variance.

7. Conclusions

When using noise variance to set a CFAR threshold of energy detection for spectrum sensing, the derived threshold itself is a random variable. Thus, the resulted probability of false alarm is probably different from the predetermined false alarm probability P f a . In this paper, we analyze some basic statistical properties of the resulted probability of false alarm P ^ f a given by (21) and its approximating case P ˜ ^ f a given by (24), and then some more suitable CFAR thresholds of energy detection are proposed. Specifically, we first deduce explicit descriptions for the expectations of P ^ f a and P ˜ ^ f a by Theorems 1 and 3 respectively in Section 4, and then some straightforward properties are established. These actually answer the first question we proposed in the introduction. Second, two upper bounds of E P ^ f a 2 and E P ˜ ^ f a 2 are derived by Theorems 5 and 6 respectively in Section 5, due to the difficulty to find exact explicit forms by known special functions. These answer the second question proposed in the introduction partially as well. Third, with the help of Theorem 3, the limitation of E P ^ f a or E P ˜ ^ f a for M = μ N as M or N tends to infinity is analyzed in Remark 1, which answers partly the third question in the introduction. Finally, new CFAR thresholds are proposed by assuring that E P ^ f a or E P ˜ ^ f a equals the predetermined false alarm probability P f a in Section 6. All analytical results derived in this paper are regarding the CFAR threshold. However, as a matter of fact, similar results hold for the CDR case.
For further consideration, it is of interest to describe explicitly E P ^ f a 2 and E P ˜ ^ f a 2 . This means that a more cautious thresholds setting is possible. Observe that the CFAR and CDR thresholds are considered separately in this paper, it is crucial to consider CFAR and CDR thresholds synchronously in energy detection to achieve low false alarm probability and high detection probability simultaneously.

Author Contributions

X.-L.H. contributed to most of the formulations and simulations, and prepared the original proposed framework under the supervision of P.-H.H. and L.P. gave advices on the overall work of the paper and helped revise the paper.

Funding

This research was supported by Kyungpook National University Research Fund, 2018.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Proof of Lemma 1.
Clearly, 2 1 k ( 1 , 2 ) , and we use a instead of 2 1 k below for brief.
Define ϕ ( x ) = Γ 2 ( k , x ) Γ ( k , a x ) . Clearly,
ϕ ( 0 ) = 0 , lim x + ϕ ( x ) = 0 ,
and
ϕ ( x ) = 2 Γ ( k , x ) x k 1 e x Γ ( k ) + a ( a x ) k 1 e a x Γ ( k ) = 2 x k 1 e x Γ ( k ) e ( 1 a ) x Γ ( k , x ) = Δ 2 x k 1 e x Γ ( k ) ϕ 1 ( x ) .
We use the fact a k = 2 in the above second step. Clearly, ϕ 1 ( 0 ) = 0 and lim x ϕ 1 ( x ) = 0 . Let us point out a basic fact: for k > 0 and x > k + 1 ,
Γ ( k , x ) < 1 Γ ( k ) x k e x ,
which can be proved by basic calculus. Thus, for x > k + 1 , we have
ϕ 1 ( x ) > e ( 1 a ) x 1 Γ ( k ) x k e x = e x e ( 2 a ) x 1 Γ ( k ) x k ,
which means ϕ 1 ( x ) > 0 when x > x 0 with a sufficiently large point x 0 . Now let us consider the derivative of ϕ 1 below.
ϕ 1 ( x ) = ( 1 a ) e ( 1 a ) x + x k 1 e x Γ ( k ) = e x x k 1 Γ ( k ) ( a 1 ) e ( 2 a ) x = Δ e x ϕ 2 ( x ) .
We find that ϕ 2 ( 0 ) = ( a 1 ) < 0 and lim x ϕ 2 ( x ) = . Due to the fact that ϕ 1 ( x ) has positive value for x > x 0 , starting at ϕ 1 ( 0 ) = 0 , we know that its derivative ϕ 1 ( x ) must be positive somewhere between 0 and x 0 , and thus for ϕ 2 ( x ) . This assertion holds for the i-th derivative of ϕ 2 ( x ) , denoted as ϕ 2 ( i ) ( x ) , if the order of the first term is positive. This is because the starting points are all ϕ 2 ( i ) ( 0 ) = 0 .
If k is a positive integer, then the ( k 1 ) -th and k-th derivatives are
ϕ 2 ( k 1 ) ( x ) = 1 ( a 1 ) ( 2 a ) k 1 e ( 2 a ) x , ϕ 2 ( k ) ( x ) = ( a 1 ) ( 2 a ) k e ( 2 a ) x < 0 .
Notice further that ϕ 2 ( k 1 ) ( 0 ) = 1 ( a 1 ) ( 2 a ) k 1 > 0 and lim x ϕ 2 ( k 1 ) ( x ) = , we know that ϕ 2 ( k 1 ) ( x ) starts at a positive value and then decreases monotonically to . This further means that ϕ 2 ( k 2 ) ( x ) starts from 0 to a positive local maximum and then decreases monotonically to , and so on until ϕ 2 ( x ) . Thus, ϕ 2 ( x ) increases piecewise monotonically from ϕ 2 ( 0 ) < 0 to a positive maximum and then decreases to . Then ϕ 1 ( x ) changes its sign twice, i.e., from negative to positive and then negative. Hence, ϕ 1 ( x ) decreases from 0 to a negative minimum and then increases to positive maximum and then decreases to 0. This further holds for ϕ ( x ) , which means the sign of ϕ ( x ) changes from negative to positive once. Finally, we know that ϕ ( x ) decreases from ϕ ( 0 ) = 0 to a negative minimum and then increases to 0. This means ϕ ( x ) < 0 as desired.
When k is not an integer, the [ k ] -th and ( [ k ] + 1 ) -th derivatives are
ϕ 2 ( [ k ] ) ( x ) = ( k 1 ) ( k [ k ] ) x k [ k ] 1 Γ ( k ) ( a 1 ) ( 2 a ) [ k ] e ( 2 a ) x , ϕ 2 ( [ k ] + 1 ) ( x ) = ( k 1 ) ( k [ k ] 1 ) x k [ k ] 2 Γ ( k ) ( a 1 ) ( 2 a ) [ k ] e ( 2 a ) x < 0 .
Notice further that ϕ 2 ( [ k ] ) ( 0 ) = + and lim x ϕ 2 ( [ k ] ) ( x ) = , we know that ϕ 2 ( [ k ] ) ( x ) decreases monotonically from + to as x moves from 0 to . The rest of the reasoning is similar to the above case.  □
Proof of Lemma 2.
Define ψ ( x ) = Q 2 ( x ) Q ( 2 x ) . Clearly,
lim x ψ ( x ) = 0 , lim x + ψ ( x ) = 0 ,
and
ψ ( x ) = 2 Q ( x ) 1 2 π e x 2 2 + 2 2 π e x 2 = 1 2 π e x 2 2 2 Q ( x ) e x 2 2 = Δ 1 2 π e x 2 ψ 1 ( x ) .
Let us study ψ 1 ( x ) first. Obviously, ψ 1 ( 0 ) = 2 1 > 0 . By the facts that Q ( ) = 1 and e x 2 2 x + , we have lim x ψ 1 ( x ) = . Notice further the monotonicity of Q ( x ) and e x 2 2 as x , the sign of function ψ 1 ( x ) changes once from negative to positive as x moves from to 0.
It is left to consider the sign of ψ 1 ( x ) when x > 0 . By the following inequality
Q ( x ) < 1 x 2 π e x 2 2
for x > 0 , we derive
Q ( x ) e x 2 2 < 1 x 2 π .
Hence, for ψ 1 ( x ) > 0 , it is sufficient to require
2 2 x 2 π > 0 ,
which is equivalent to x > 1 π . This means ψ 1 ( x ) > 0 for x > 1 π . Now only the case for 0 < x 1 π is left. This can be analyzed directly as following: for 0 < x 1 π ,
ψ 1 ( x ) > 2 e x 2 2 2 e 1 2 π = 1.4142 1.1725 = 0.2417 > 0 .
Here the approximating calculation in the last step is carried out by Matlab.
In conclusion, ψ 1 ( x ) changes its sign once from negative to positive as x moves from to . Thus, by (A7), ψ ( x ) change from negative to positive as x moves from to , and the sign changes only once. This means ψ ( x ) has only one local minimum. Together with (A6), the assertion follows directly.  □

References

  1. Xue, D.; Ekici, E.; Vuran, M.C. Cooperative spectrum sensing in cognitive radio networks using multidimensional correlations. IEEE Trans. Wirel. Commun. 2014, 13, 1832–1843. [Google Scholar] [CrossRef]
  2. Arjoune, Y.; Kaabouch, N. A Comprehensive Survey on Spectrum Sensing in Cognitive Radio Networks: Recent Advances, New Challenges, and Future Research Directions. Sensors 2019, 19, 126. [Google Scholar] [CrossRef] [PubMed]
  3. Ali, A.; Hamouda, W. Advances on Spectrum Sensing for Cognitive Radio Networks: Theory and Applications. IEEE Commun. Surv. Tutorials 2016, 19, 1277–1304. [Google Scholar] [CrossRef]
  4. Plata, D.M.M.; Reatiga, A.G.A. Evaluation of energy detection for spectrum sensing based on the dynamic selection of detection-threshold. Procedia Eng. 2012, 35, 135–143. [Google Scholar] [CrossRef]
  5. Hu, X.-L.; Ho, P.-H. Performance Analysis of Maximum Likelihood Estimation for Transmit Power Based on Signal Strength Model. J. Sens. Actuator Netw. 2018, 7, 38. [Google Scholar] [CrossRef]
  6. Sahai, A.; Tandra, R.; Mishra, S.M.; Hoven, N. Fundamental design tradeoffs in cognitive radio systems. In Proceedings of the First International Workshop on Technology and Policy for Accessing Spectrum, Boston, MA, USA, 2–5 August 2006. [Google Scholar]
  7. Oner, M.; Jondral, F. Cyclostationarity based air interface recognition for software radio systems. In Proceedings of the IEEE Radio and Wireless Conference, Atlanta, GA, USA, 22 September 2004; pp. 263–266. [Google Scholar]
  8. Gardner, W. Exploitation of spectral redundancy in cyclostationary signals. IEEE Signal Process. Mag. 1991, 8, 14–36. [Google Scholar] [CrossRef]
  9. Urkowitz, H. Energy detection of unknown deterministic signals. Proc. IEEE 1967, 55, 523–531. [Google Scholar] [CrossRef]
  10. Kostylev, V. Energy detection of a signal with random amplitude. In Proceedings of the 2002 IEEE International Conference on Communications. Conference Proceedings, New York, NY, USA, 28 April–2 May 2002; Volume 3, pp. 1606–1610. [Google Scholar]
  11. Digham, F.F.; Alouini, M.; Simon, M.K. On the energy detection of unknown signals over fading channels. IEEE Trans. Commun. 2007, 55, 21–24. [Google Scholar] [CrossRef]
  12. Ghasemi, A.; Sousa, E.S. Collaborative spectrum sensing for opportunistic access in fading environments. In Proceedings of the First IEEE International Symposium on New Frontiers in Dynamic Spectrum Access Networks, MD, USA, USA, 8–11 November 2005; pp. 131–136. [Google Scholar]
  13. Ye, Z.; Memik, G.; Grosspietsch, J. Energy Detection Using Estimated Noise Variance for Spectrum Sensing in Cognitive Radio Networks. In Proceedings of the Wireless Communications and Networking Conference, Las Vegas, NV, USA, 31 March–3 April 2008; pp. 711–716. [Google Scholar]
  14. Arjoune, Y.; Mrabet, Z.E.; Ghazi, H.E.; Tamtaoui, A. Spectrum sensing: Enhanced energy detection technique based on noise measurement. In Proceedings of the 2018 IEEE 8th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA, 8–10 January 2018. [Google Scholar] [CrossRef]
  15. Kustra, M.; Kosmowski, K.; Suchanski, M. Performance of hybrid sensing method in environment with noise uncertainty. J. Telecommun. Inf. Technol. 2018, 1, 51–57. [Google Scholar] [CrossRef]
  16. Yusuf, D.P.; Onwuka, E.; Alenoghena, C.; Agajo, J. Discrete wavelet packet based spectrum sensing in cognitive radio using an improved adaptive threshold. In Proceedings of the International Conference on Industrial Engineering and Operations Management, Bandung, Indonesia, 6–8 March 2018. [Google Scholar]
  17. Joshi, D.R.; Popescu, D.C.; Dobre, O.A. Adaptive spectrum sensing with noise variance estimation for dynamic cognitive radio systems. In Proceedings of the Conference on Information Sciences and Systems (CISS), Princeton, NJ, USA, 17–19 March 2010; pp. 1–5. [Google Scholar]
  18. Wu, J.; Luo, T.; Yue, G. An Energy Detection Algorithm Based on Double-Threshold in Cognitive Radio Systems. In Proceedings of the International Conference on Information Science and Engineering, Nanjing, China, 26–28 Decemner 2009; pp. 493–496. [Google Scholar]
  19. Peh, E.; Liang, Y. Optimization of cooperative sensing in cognitive radio networks. In Proceedings of the WCNC 2007, Kowloon, China, 11–15 March 2007; pp. 27–32. [Google Scholar]
  20. Shellhammer, S.; Shankar, S.; Dandra, R.; Tomcik, J. Performance of power detector sensors of DVT signals in IEEE 802.22 WRANs. In Proceedings of the First International Workshop on Technology and Policy for Accessing Spectrum, Boston, MA, USA, 5 August 2006. [Google Scholar]
  21. Kuang, J. Applied Inequalities, 3rd ed.; Shandong Science and Technology Press: Jinan, China, 2004. (In Chinese) [Google Scholar]
Figure 1. Energy detector using estimated noise variance by available similar channel. The noise variance is estimated by σ ^ n 2 = 1 N k = 1 N n k 2 from the other available similar channel. Then the empirical average energy u = 1 M k = 1 M x k 2 is detected by principle constant false alarm rate (CFAR) or constant detection rate (CDR) with the threshold λ ^ using the estimated noise variance σ ^ n 2 .
Figure 1. Energy detector using estimated noise variance by available similar channel. The noise variance is estimated by σ ^ n 2 = 1 N k = 1 N n k 2 from the other available similar channel. Then the empirical average energy u = 1 M k = 1 M x k 2 is detected by principle constant false alarm rate (CFAR) or constant detection rate (CDR) with the threshold λ ^ using the estimated noise variance σ ^ n 2 .
Jsan 08 00028 g001
Figure 2. Plots of Examples 1 and 2. (a) Average false alarm probability P ^ ¯ f a > P f a vs. Pfa = 0, 0.05, …, 1. (b) P ^ ¯ f a vs. M = N = 1, 2, …, 100
Figure 2. Plots of Examples 1 and 2. (a) Average false alarm probability P ^ ¯ f a > P f a vs. Pfa = 0, 0.05, …, 1. (b) P ^ ¯ f a vs. M = N = 1, 2, …, 100
Jsan 08 00028 g002
Figure 3. The plot of P ^ ¯ f a by ’+’, E P ^ f a and E P ˜ ^ f a under setting of Pfa = 0, 0.05, …, 1 and M = N = 1, 2, …, 100. (a) The plot of P ^ ¯ f a by ’+’, E P ^ f a and E P ˜ ^ f a vs Pfa = 0, 0.05, …, 1. (b) The plot of P ^ ¯ f a , E P ^ f a and E P ˜ ^ f a vs. M = N = 1 , 2 , , 100 , under Pfa = 0.05.
Figure 3. The plot of P ^ ¯ f a by ’+’, E P ^ f a and E P ˜ ^ f a under setting of Pfa = 0, 0.05, …, 1 and M = N = 1, 2, …, 100. (a) The plot of P ^ ¯ f a by ’+’, E P ^ f a and E P ˜ ^ f a vs Pfa = 0, 0.05, …, 1. (b) The plot of P ^ ¯ f a , E P ^ f a and E P ˜ ^ f a vs. M = N = 1 , 2 , , 100 , under Pfa = 0.05.
Jsan 08 00028 g003
Figure 4. The plot of approximation of E P ^ f a 2 and E P ˜ ^ f a 2 and their upper bounds. (a) The plot of P ^ 2 ¯ f a by ’+’, B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) vs. P f a = 0, 0.05, …, 1. (b) The plot of P ^ 2 ¯ f a by ’+’, B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) vs. M = N = 1 , , 100 .
Figure 4. The plot of approximation of E P ^ f a 2 and E P ˜ ^ f a 2 and their upper bounds. (a) The plot of P ^ 2 ¯ f a by ’+’, B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) vs. P f a = 0, 0.05, …, 1. (b) The plot of P ^ 2 ¯ f a by ’+’, B ( P ^ f a 2 ) and B ( P ˜ ^ f a 2 ) vs. M = N = 1 , , 100 .
Jsan 08 00028 g004
Figure 5. The plot of preassigned false alarm rate P f a 0 to guarantee E P ^ f a = P f a and E P ˜ ^ f a = P f a by Theorems 1 and 3 respectively. (a) Preassigned rate derived by Theorem 1 to guarantee E P ^ f a = P f a . (b) Preassigned rate derived by Theorem 1 to guarantee E P ˜ ^ f a = P f a .
Figure 5. The plot of preassigned false alarm rate P f a 0 to guarantee E P ^ f a = P f a and E P ˜ ^ f a = P f a by Theorems 1 and 3 respectively. (a) Preassigned rate derived by Theorem 1 to guarantee E P ^ f a = P f a . (b) Preassigned rate derived by Theorem 1 to guarantee E P ˜ ^ f a = P f a .
Jsan 08 00028 g005

Share and Cite

MDPI and ACS Style

Hu, X.-L.; Ho, P.-H.; Peng, L. Statistical Properties of Energy Detection for Spectrum Sensing by Using Estimated Noise Variance. J. Sens. Actuator Netw. 2019, 8, 28. https://doi.org/10.3390/jsan8020028

AMA Style

Hu X-L, Ho P-H, Peng L. Statistical Properties of Energy Detection for Spectrum Sensing by Using Estimated Noise Variance. Journal of Sensor and Actuator Networks. 2019; 8(2):28. https://doi.org/10.3390/jsan8020028

Chicago/Turabian Style

Hu, Xiao-Li, Pin-Han Ho, and Limei Peng. 2019. "Statistical Properties of Energy Detection for Spectrum Sensing by Using Estimated Noise Variance" Journal of Sensor and Actuator Networks 8, no. 2: 28. https://doi.org/10.3390/jsan8020028

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop