Patent Publication Number: US-7219038-B2

Title: Automatic peak identification method

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
   The present application claims priority from U.S. Provisional Application Ser. No. 60/664,010, filed Mar. 22, 2005. 

   STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT 
   This invention was made with government support under Grant No. 5R44 CA101479-03 awarded by NIH. The government has certain rights in the invention. 

   BACKGROUND OF THE INVENTION 
   The invention is related to the field of analyzing data which includes multiple peak data and, in particular, pertains to an automatic method for analyzing data which includes multiple peak data resulting in high resolution estimates. 
   Work in chromatography, spectroscopy, engineering, pharmacology, and other fields frequently requires analysis of data sets exhibiting multiple peaks. Analysis of multi-peak data is particularly difficult when peaks overlap, or when data are noisy. Peak finding algorithms of many types are used to identify and interpret peaks and peak positions. 
   Present state-of-the-art peak finders are either based upon 1] simple matched filters, or wavelets, or searches for local maxima in the time series (resulting in less-than-optimal resolution), 2] parameter fitting to peaks using optimization methods, sometimes on the entire time series (such methods are slow), or 3] direct methods which involve significant operator interaction (i.e. by placing cursors over peaks on a computer screen, estimating baselines by eye, etc.). All of these methods have disadvantages. The method described herein runs essentially like a filter, results in much higher resolution estimates of peak positions and amplitudes than the existing state-of-the-art, and is almost completely automatic. 
   SUMMARY OF THE INVENTION 
   The invention described herein details a protocol to improve analysis and peak identification in spectroscopic data. Bayesian methods are used to automatically identify peaks in data sets. After identifying peak shapes, the method tests the hypothesis that a given number of peaks is found within any given data window. If a peak is identified within a given window, then the likelihood function is maximized in order to estimate peak position and amplitude. 
   This process yields a spectrum with high resolution and minimal artifacts. Furthermore, the process is not overly computational intensive, with low delay times required. A method that simply maximizes the likelihood function is likely to generate artifacts, while a method that only tests the hypothesis that a peak is present, without the subsequent maximization of the likelihood function, will yield a spectrum with decreased resolution. 
   The peak identification method described herein is potentially useful in any data set wherein peaks of interest are distinguished. The method described herein is useful for identifying peaks in data sets obtained from spectroscopy, including but not limited to various forms of absorption and emission spectroscopy, including absorption spectroscopy, UV/VIS spectroscopy, IR spectroscopy, X-ray spectroscopy, X-ray crystallography, Nuclear Magnetic Resonance spectroscopy (NMR), and raman spectroscopy. In particular, the methods described herein are useful for applications in mass spectroscopy, including TOF-SIMS and SELDI-MS. For example, the methods described herein are useful for analyzing TOF-SIMS mass spectroscopic data related to proteomics. The methods described herein are not limited to spectroscopic applications; for example, the methods are particularly useful when used for imaging applications. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
       FIG. 1  shows a sample spectrum, in which the number of ions is plotted versus the time required for the ions to reach the detector. 
       FIG. 2  shows four panels from a TOF-SIMS spectrum, with each successive panel corresponding to successive manipulations of the data. 
       FIG. 3  depicts a small portion of a TOF/SIMS spectrum of angiotensin. 
   

   DETAILED DESCRIPTION OF THE INVENTION 
   The following symbols are accorded the following meanings:
     N total number of data points in the window   s j =s(t j ) j=1 . . . N observed signal prior to any processing   x j =x(t j ) ideal wavelet shape   η j =η(t j ) noise   σ η   2 = ηη T    noise co-variance   

   Herein we describe the use of Bayesian methods to automatically identify peaks in data sets. We start with a brief overview of the logic. The first step is to compare the hypotheses that there are a given number of peaks (i.e., 0, 1, 2, . . . n) in the observation window. If a peak is present, we then estimate its position and amplitude via parameter fitting. 
   After this summary of the logic, we develop algebras for two simple cases where Gaussian or Poisson noise is involved. Both of these cases are simple enough that all results can be arrived at in closed form. We first present how to derive a matched filter for a known peak shape that is embedded in additive white (Gaussian) noise of unknown amplitude. We then show the similar procedure can be applied to Poisson noised data. Some preliminary results on SELDI-MS (Surface Enhanced Laser Desorption Ionization Mass Spectrometer) and TOF-SIMS (Time of Flight Secondary Ionization Mass Spectrometer) data are shown. It is easy to add color (finite time correlations) to the noise. Once these simple situations are understood, extending to other types of noise, such combinations of Poisson, Gaussian, and coherent ‘noise’ processes, is logically straightforward, though algebraically more involved. All of the methods described herein require knowledge of the ‘target’ peak shape. 
     FIG. 1  shows a sample mass spectrum, in which the number of ions is was plotted versus the time that ions take to fly to detector. Ideally, ions of a specific m/z would exhibit the same time of flight, resulting in sharp peak line shape like a delta function. However, in reality, they enter the drift region with velocity and time distributions of finite width, which results in a finite peak width for ions of a specific m/z. 
   1.1 Description of the Underlying Assumptions 
   1.1.1 The Relationship Between Peak Signal and Probability Density 
   In counting experiments, ideally only one ion of a given mass arrives, or at most a few ions of the same mass arrive, at the detector during a given temporal sampling interval and are counted individually. The measurement is repeated many times under nominally identical conditions and one gradually builds up a portrait of the probability distribution of arrival times for each ion mass. This means that the final time series s(t) that is to be analyzed after all the data has been gathered, is proportional to the conditional probability distribution
 
 s ( t   k )Δ t∝p ( t   k |ƒ 0 (ν*( m ), t *))Δ t,   (1)
 
wherein s(t)Δt is the signal amplitude at time t k , Δt is the sampling interval, and p(t k |ƒ 0 (ν*(m),t*)) is the probability that an ion of mass m will strike the detector between t k  and t k +Δt given that it entered the drift region at time t* with a velocity close to ν*(m). If only one ion species is present, the initial velocity distribution, ƒ 0 (v*(m),t*) is just a sharply peaked function of ν of the form
 
                       f   0     ⁡     (         v   *     ⁡     (   m   )       ,     t   *       )       =     g   ⁡     (       v   -       v   *     ⁡     (   m   )           σ   ⁡     (   m   )         )         ,       ∫     ⅆ     sg   ⁡     (   s   )           =   1.             (   2   )               
If a variety of different ions is present, ƒ 0  will be a superposition of terms like (2), properly normalized so that ƒ 0  will have unit total area. This assumes that the shape of the velocity spread is universal, up to translation and rescaling. We will assume ν*(m) and σ(m) to be weak functions of the mass, and to scale like 1/√{square root over (m)}. Fixing their functional form is part of the calibration process. In practice, the velocity distributions for each peak will contain information about the dynamics of the ion formation process, which depend upon the ion species. However, if we assume that the ion optics are designed so that it will only pass a narrow range of most possible velocities for any given mass, then maximizing the entropy of the probability distribution ƒ 0  for a single peak, given v* and σ, leads to the choice of a Gaussian for g:
 
                   g   ⁡     (       v   -     v   *       σ     )       =       1         2   ⁢   π       ⁢   σ       ⁢     exp   ⁡     (     -         (     v   -     v   *       )     2       2   ⁢     σ   2           )                 (   3   )               
The choice of the maximum-entropy distribution is founded upon the principle that it maximizes the number of possible outcomes of repeated observations that are consistent with this assignment of the probability. Hence, it is the least biasing assignment of the probability that is consistent with our limited knowledge of the initial distribution. Transforming from the initial velocity distribution g to the temporal peak shape requires solution of a simple Fokker-Planck equation, and is described later.
 
   1.1.2 The Assumption of Independence 
   The observed peaks for a portion of a spectrum show in  FIG. 1  have finite width in time. One of the causes is the finite width of the velocity distribution upon entering free flight. However, it is important to realize that ions that arrive between time t k  and t k +Δt are independent of those that arrive at any other time. This is because, as stated in the previous section, each event/measurement only results in one or at most a few ions of a given m/z. The resulting spectrum is an accumulation of many measurements under the same experiment condition. Therefore, the joint probability of arrival of two ions at two different times satisfies
 
 p ( t   k   ,t   j |ƒ 0 )= p ( t   k |ƒ 0 ) p ( t   j |ƒ 0 ),  j≠k.   (4)
 
even for counts associated with the same mass peak. Any correlations in the signal are assumed to be due to the electronics. If such correlations are present (as they are in MALDI and SELDI spectra) then this must be included in the analysis as part of the model used, as will be discussed later. The assumption of independence, however, underlies the entire analysis that we pursue below in the first few examples.
 
   Because the measurement is repeated many times under ‘identical’ conditions, producing the same ƒ 0  at each repetition (with the ‘clock time’ t reset to zero at the start of each measurement), if a total number of  n  ions are counted over the entire course of the measurement, then the total number of counts between t k  and t k +Δt is very nearly
 
 n   k   ≈p ( t   k |ƒ 0 )   n     (5)
 
   1.2 Model Comparisons (i.e. Counting Peaks in the Window, Comparing Noise Models) 
   We now consider the peak of a particular of mass m. We introduce a window that includes only N points in the time series. The width of the window is chosen to be a slowly varying function of the mass so that it typically will run only from the half-maxima to the left and right of a ‘typical’ peak of mass m. The change in window width is due to the nature of time-of-flight apparatus where heavier ions will arrive later in time and show up with wider peak shape. This is a rough-and-ready compromise between the desire to include as much data as possible in the window to improve the sampling statistics, and the realization that peaks will overlap and that our peak shape model is probably not very good out on the tails of the peak. 
   Focus attention now on a particular window position. We label the window location, t 0  in such a way that if a mass peak appeared in the window with zero width then the likelihood function (defined momentarily) will be maximized at t 0 . Because of the mass-dependent asymmetry in peak line shape, t 0  is certainly not at the leading or trailing edge of the window. It is also not located at the center of the window, nor at the maximum of the ‘target’ temporal peak shape, but lies somewhere between these two points at a position which is weakly dependent upon m. In this way, we correct for systematic errors in the estimation of the peak shape due to its mass-dependent asymmetry. 
   We define the target shape of the temporal peak to be x(t−t 0 ) which is then sampled at discrete time intervals, giving the N-component vector
 
 x =( x   1   , . . . x   N )≡( x ( t   1   −t   0 ), . . .  x ( t   N   −t   0 ))  (6)
 
This ‘slides’ with the window and for convenience is normalized to have unit area:
 
                     ∑     k   =   1     N     ⁢     x   k       =   1           (   7   )               
This will only introduce a constant correction for the peak amplitude computed later. We now assume that the observed signal s(t) within the window is given by
   s   k   =αx   k +ξ k   , k= 1,2,  . . . N   (8) 
where a is an unknown amplitude and ξ=(ξ 1 ,ξ 2 , . . . ξ N ) is a random process of some appropriate type. If more than one peak is present in the window, this complicates the analysis because more parameters must be fit, but the logic is similar to what we describe below. For counting experiments, we do not observe the signal s(t) directly, but instead count how many times it crosses some detection threshold in a time interval Δt. This is because a single ion striking a micro-channel plate, or a channeltron, will initiate a cascade of electron emission that amplifies the original micro-pulse into one that is macroscopically detectable. The noise process will be Poisson with some appropriately chosen rate, while for analog experiments it is probably a combination of Poisson and Gaussian processes. For the moment, we leave the choice of noise model aside and simply assert that choosing a noise model is part of the model selection process, and choosing between them is part of the hypothesis testing we now describe.
 
   Under the assumption that the ion counts at different times are independent, the probability of observing the particular count sequence n=(n 1 ,n 2 ,K n N ) is simply 
                           p   ⁡     (       n   ⁢     ❘     ⁢   a     ,   λ   ,     t   0     ,   M     )       =     p   ⁡     (         {       n   1     ,     n   2     ,     K   ⁢           ⁢     n   N         }     ⁢     ❘     ⁢   a     ,   λ   ,     t   0     ,   M     )                   =       ∏     k   =   1     N     ⁢     p   ⁡     (         n   k     ⁢     ❘     ⁢   a     ,   λ   ,     t   0     ,   M     )                 ⁢                   (   9   )               
By the notation λ we indicate a parameter that characterizes the noise process (e.g. the variance σ for a Gaussian process or the ‘dark’ rate r 0  for a Poisson process). By M we mean to emphasize a particular choice of model class, including a peak shape x(t) and a noise model. The probability (9) is the likelihood function of observing the data in the window labeled t 0 , given the model class M and the parameters.
 
   We first want to decide whether there is a peak in the window or not. This is a comparison between two hypotheses:
         H 0 =There is no peak in the widow t 0 . The data are noise of the assumed type. Let&#39;s call the associated pure-noise model M 0 .   H 1 =There is a single peak in the widow t 0  with the shape x. Deviations from this shape in the data are due to noise of the assumed type. Let&#39;s call the associated peak-plus-noise model M 1 .
 
We wish to compute the probability of which each of these hypotheses was true, given the data, and then take the ratio
       

                     p   ⁡     (       H   1     ⁢     ❘     ⁢   n     )         p   ⁡     (       H   0     ⁢     ❘     ⁢   n     )         =       p   ⁡     (         M   1     ⁢     ❘     ⁢   n     ,     t   0       )         p   ⁡     (         M   0     ⁢     ❘     ⁢   n     ,     t   0       )                 (   10   )               
If this ratio is large compared to one, we can be confident that there is probably a peak in the window, while if it is approximately one we interpret that as saying there is only weak evidence of a peak in the window (because α=0 is a possible estimate of the peak amplitude, which we interpret as ‘no peak’). Therefore, one may set an appreciable threshold for peak detection. In order to derive (10) from (9), we first invoke Bayes&#39; theorem which states:
 
                     p   ⁡     (     A   ⁢     ❘     ⁢   B     )       ⁢     p   ⁡     (   B   )         =           p   ⁡     (     B   ⁢     ❘     ⁢   A     )       ⁢     p   ⁡     (   A   )         ⇒     p   ⁡     (     A   ⁢     ❘     ⁢   B     )         =         p   ⁡     (     B   ⁢     ❘     ⁢   A     )       ⁢     p   ⁡     (   A   )           p   ⁡     (   B   )                   (   11   )               
Therefore, identifying A as the model class M k , and B as the observed data in the time window t 0 :
 
                   p   ⁡     (         M   k     ⁢     ❘     ⁢   n     ,     t   0       )       =         p   ⁡     (       n   ⁢     ❘     ⁢     M   k       ,     t   0       )       ⁢     p   ⁡     (       M   k     ⁢     ❘     ⁢     t   0       )           p   ⁡     (     n   ⁢     ❘     ⁢     t   0       )                 (   12   )               
Since we are given that we observed the data n in the window t 0 , the denominator is unity. If we have no reason to prefer one model class over another, we should assign them all equal prior probabilities. For example, if we are comparing two types of models (a single peak vs. no peak), then p(M 0 |t 0 )=p(M 1 |t 0 )=½. Therefore, we have the simple result that
 
                   p   ⁡     (         M   k     ⁢     ❘     ⁢   n     ,     t   0       )       =       1   2     ⁢     p   ⁡     (       n   ⁢     ❘     ⁢     M   k       ,     t   0       )                 (   13   )               
Hence, we need to calculate the likelihood that we observed the data given the model class, p(n|M k ,t 0 ), a quantity called the evidence. We get this by integrating the likelihood function (9) over the model parameters using an appropriate prior for the parameters:
   p ( n|M   k   ,t   0 )=∫ dadλp ( n|α,λ,M   k   ,t   0 ) p (α,λ| M   k   ,t   0 )  (14) 
where p(α,λ|M k ,t 0 ) is prior distributions of parameters (α,λ). For each model class, there will be a prior probability distribution for the parameters. For example, when no peak is present we choose as the prior:
 
                   p   ⁡     (     a   ,     λ   ⁢     ❘     ⁢     t   0       ,     M   0       )       =       1   2     ⁢     δ   ⁡     (   a   )       ⁢     p   ⁡     (       λ   ⁢     ❘     ⁢     t   0       ,     M   0       )                 (   15   )               
where the ½ factor appears because the δ-function will be integrated only over the positive values of α. If we know nothing about the values of λ, then we choose a uniform prior, or some other prior that is very broad in λ-space on the grounds that when we integrate against (9) only the neighborhood of the maximum likelihood value of λ will contribute.
 
   The likelihood of the data given the model (14) will be a bit less mysterious when we calculate for specific models momentarily. Before doing so, we summarize that to compare the hypotheses that there is, or is not, a peak in the window, we need to compute the ratio (10), which requires computation of (14) for each model. Setting the threshold for the level of evidence we require for ‘peak detection’ is a separate issue. Given that we have detected that a peak lies within a certain region of the time axis, we then fix the position and amplitude of the peak by maximizing the likelihood over the parameters (α,λ,t 0 ), as discussed in next section. Notice, however, that maximizing over t 0  has a different logical character than the other parameters, because we are comparing different data sets as we slide the window across the peak. The justification is based upon the physical reasonableness of the approach: the width of the window is large compared to the uncertainty in the position of the peak, hence near the maximum of the likelihood, most of the data being compared comes from overlapping windows. 
   1.3 Parameter Fitting 
   As the window sliding across the spectrum one point at a time, the ratio (10) is calculated for each window position. We can then justify in which region in the spectrum we are confident that there is a peak. We then look into particular regions of interest, fit parameters (α, λ) by maximizing equation (9), i.e. solve the following equations, for each window t 0 : 
                       ∂   L       ∂   a       =   0     ⁢     
     ⁢         ∂   L       ∂   λ       =   0             (   16   )               
where L(t 0 ), the natural logarithm of likelihood function (9):
   L ( t   0 )=1 n ( p ( n|α,λ,M   k   ,t   0 )  (17) 
   Solving equations (16) gives the maximum likelihood estimations of parameters (α*,λ*). If the data is very informative, then the likelihood would sharply peak around the point (α*,λ*) in the parameter space. It is natural to Taylor expand (17) around (α*,λ*): 
                         L   ≈       ⁢       L   ⁡     (       a   *     ,     λ   *       )       +       1   2     ⁡     [                       ⁢       ∂   2     ⁢           ⁢   L         ∂           ⁢     a             ⁢   2           ⁢     |             ⁢             ⁢       a   *     ,           ⁢     λ   *             ⁢         (     a   ⁢           -           ⁢     a   *       )     2     +               ⁢       ∂   2     ⁢           ⁢   L           ∂   a     ⁢           ⁢     ∂   λ           ⁢     |             ⁢             ⁢       a   *     ,           ⁢     λ   *                               (     a   -     a   *       )     ⁢     (     λ   -     λ   *       )       +               ⁢       ∂   2     ⁢           ⁢   L         ∂           ⁢     λ             ⁢   2             ⁢     |             ⁢       a   *     ,           ⁢     λ             *             ⁢       (     λ   -     λ   *       )     2             ]                     =       ⁢       L   ⁡     (       a   *     ,     λ   *       )       +       1   2     ⁢       (     X   -     X   *       )     ′     ⁢     ∇     ∇     L   ⁡     (       a   *     ,     λ   *       )           ⁢     (     X   -     X   *       )                 ⁢     
     ⁢         where   ⁢           ⁢   X     =     [         a           λ         ]       ,           ⁢   and             (   18   )               ∇     ∇     L   ⁡     [               ∂   2     ⁢   L       ∂     a   2                   ∂   2     ⁢   L         ∂   a     ⁢     ∂   λ                       ∂   2     ⁢   L         ∂   a     ⁢     ∂   λ                   ∂   2     ⁢   L       ∂     λ   2               ]                 (   19   )               
is the Hessian matrix. It follows from (18) that the likelihood function (9) is approximately:
 
                         p   ⁡     (       n   |   a     ,   λ   ,   M   ,     t   0       )       =       ⁢     exp   ⁡     [     L   ⁡     (     t   0     )       ]                   ≈       ⁢     exp   ⁡     (       L   ⁡     (       a   *     ,     λ   *       )       +       1   2     ⁢       (     X   -     X   *       )     ′     ⁢     ∇     ∇     L   ⁡     (       a   *     ,     λ   *       )           ⁢     (     X   -     X   *       )         )                   =       ⁢       ⅇ     L   ⁡     (       a   *     ,     λ   *       )         ⁢     ⅇ       1   2     ⁢       (     X   -     X   *       )     ′     ⁢     ∇     ∇     L   ⁡     (       a   *     ,     λ   *       )           ⁢     (     X   -     X   *       )                         (   20   )               
This implies that the likelihood function (9) looks like a multivariate normal distribution in parameter space, with uncertainties:
 
   
     
       
         
           
             
               
                 
                   
                     σ 
                     a 
                   
                   = 
                   
                     
                       ( 
                       
                         
                           - 
                           
                             
                               
                                 ∂ 
                                 2 
                               
                               ⁢ 
                               L 
                             
                             
                               ∂ 
                               
                                 a 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           | 
                           
                             
                               a 
                               * 
                             
                             , 
                             
                               λ 
                               * 
                             
                           
                         
                       
                       ) 
                     
                     
                       
                         - 
                         1 
                       
                       / 
                       2 
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     σ 
                     λ 
                   
                   = 
                   
                     
                       ( 
                       
                         
                           - 
                           
                             
                               
                                 ∂ 
                                 2 
                               
                               ⁢ 
                               L 
                             
                             
                               ∂ 
                               
                                 λ 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           | 
                           
                             
                               a 
                               * 
                             
                             , 
                             
                               λ 
                               * 
                             
                           
                         
                       
                       ) 
                     
                     
                       
                         - 
                         1 
                       
                       / 
                       2 
                     
                   
                 
               
             
             
               
                 ( 
                 21 
                 ) 
               
             
           
         
       
     
   
   Moreover, when computing the evidence, i.e. marginalizing the likelihood function (9) over the prior p(α,λ|M k ,t 0 ), as seen in equation (14), if the prior is independent of (α, λ), for example, α and λ are uniformly distributed in some region (α min ,α max ) and (λ min ,λ max ), substituting equation (20) into equation (14) results in the following: 
                         p   ⁡     (       n   |     M             ⁢   k         ,     t             ⁢   0         )       =       ⁢     ∫       ⅆ   a     ⁢     ⅆ   λ     ⁢           ⁢     p   ⁡     (       n   |   a     ,   λ   ,     M             ⁢   k       ,     t             ⁢   0         )       ⁢     p   ⁡     (     a   ,     λ   |     M             ⁢   k         ,     t             ⁢   0         )                       =       ⁢       ∫             ⁢     a             ⁢   min                   ⁢     a             ⁢   max           ⁢       ∫             ⁢     λ             ⁢   min                   ⁢     λ             ⁢   max           ⁢           ⁢       ⅆ   a     ⁢           ⁢     ⅆ     λⅇ             ⁢     L   ⁢     (           ⁢       a   *     ,           ⁢     λ   *       )                                   ⁢     ⅇ             ⁢       1             ⁢   2       ⁢           ⁢       (     X   ⁢           -           ⁢     X   *       )     ′     ⁢           ⁢     ∇     ∇   L       ⁢           ⁢     (           ⁢       a   *     ,           ⁢     λ   *       )     ⁢           ⁢     (     X   ⁢           -           ⁢     X   *       )                           ⁢       1       a   max     -     a   min         ⁢     1       λ   max     -     λ   min                       =       ⁢       1       a   max     -     a   min         ⁢     1       λ   max     -     λ   min         ⁢     ⅇ     L   ⁡     (       a   *     ,     λ   *       )         ⁢         (     2   ⁢   π     )       m   /   2           det   ⁡     [     ∇     ∇     L   ⁡     (       a   *     ,     λ   *       )           ]                           (   22   )               
where m in equation (22) is the dimension of parameter space. In the last step of the integration, the lower and upper boundaries of integration are extended to infinity. This is doable on the basis that (α min ,α max ) and (λ min ,λ max ) are large enough such that contributions from outside these regions are negligible. Note det[∇∇L(α*,λ*)] is the determinant of the Hessian matrix evaluated at (α*,λ*), and 1/det[∇∇L(α*,λ*)] is proportional to the volume within σ α  and σ λ  around (α*,λ*) in parameter space.
 
   2. Finding a Peak in a Time-of-flight Mass Spectrum. 
   We now consider some specific examples, following the discussion above. The first concerns the detection of a peak in white Gaussian noise. We show that the approach described above leads to what is called the ‘matched filter’ in the engineering literature. After that, we move on the applications in ‘counting’ problems, where the noise is due to the discreteness of the underlying process and a Poisson noise model is more appropriate. The later case is of particular interest as it is related to TOF-SIMS (Time of Flight Secondary Ionization Mass Spectrometer). The Gaussian noise case is also important as it may relate to other mass spectrometer, such as SELDI (Surface Enhanced Laser Desorption Ionization). In this section, we do not specify the peak shape for both Gaussian noise case and Poisson noise case, we simply use x i  to denote peak shape in general. In section 3, before we present some preliminary results, we will choose a particular peak shape, motivated by the kinematics of TOF-MS instruments. 
   Before we go to detailed calculations for Gaussian and Poisson noise cases, let us summarize that, in order to compare model M 0  v.s M 1 , we need to evaluate the ratio (10), in which we need to compute (14) by marginalizing (9) over prior distribution p(α,λ|M k ,t 0 )). Parameters are fitted by maximizing the likelihood function (9), via solving equation (16). 
   For convenience, from now on, except for t 0 , when we refer to parameters associated with model M 0 , a subscript 0 will be used, and a subscript 1 will be used for parameters associated with model M 1 . For both models, a superscript of star * will be used for best estimations of parameters. 
   2.1 Some Preliminary Results for Gaussian Noise Models 
   2.1.1 Model Comparison 
   We assume the noise process is Gaussian and white: 
                     〈     η   ⁡     (     t   j     )       〉     =   μ     ,       〈       η   ⁡     (     t   j     )       ⁢     η   ⁡     (     t   k     )         〉     =     δ   jk       ,         p   1     ⁡     (     η   ⁡     (     t   k     )       )       =       1         2   ⁢   π       ⁢     σ   η         ⁢     exp   ⁡     (     -         (       η   ⁡     (     t   k     )       -   μ     )     2       2   ⁢     σ   η   2           )                   (   23   )               
wherein the subscript on the probability density indicates that this is the PDF for a single time step. We use this single-step PDF to compute the joint probability that we would have observed the N-step noise sequence η(t k ), k=1, 2 . . . N.
 
   We want to compare the models having a peak in the window (M 1 ) to those lacking a peak in the window (M 0 ). Therefore, we need to evaluate (14) for both M 1  and M 0 . 
   We first assume there is no peak present, only noise, and that each time step is independent of the others: 
                     p   N     ⁡     (       η   |     μ   0       ,     σ     η   ⁢           ⁢   0       ,     M   0       )       =       ∏     j   =   1     N     ⁢       1         2   ⁢   π       ⁢     σ     η   ⁢           ⁢   0           ⁢       exp   ⁡     (       -     1     2   ⁢     σ     η   ⁢           ⁢   0     2           ⁢       (       η   ⁡     (     t   j     )       -     μ   0       )     2       )       .                 (   24   )               
The notation η in the argument of the likelihood function represents an N-dimensional vector of noise values. Collecting terms, we find
 
                     p   N     ⁡     (       η   |     μ   0       ,     σ     η   ⁢           ⁢   0       ,     M   0       )       =       1         (     2   ⁢   π     )       N   /   2       ⁢     σ     η   ⁢           ⁢   0     N         ⁢     exp   ⁡     (       -     1     2   ⁢     σ     η   ⁢           ⁢   0     2           ⁢       ∑     j   =   1     N     ⁢       (       η   ⁡     (     t   j     )       -     μ   0       )     2         )                 (   25   )               
The exponent is a quadratic function of μ 0 , therefore we complete the square and write it as
 
                       ∑     j   =   1     N     ⁢       (       η   ⁡     (     t   j     )       -     μ   0       )     2       =         N   ⁡     (       μ   0     -     μ   *       )       2     +     N   ⁢           ⁢     σ   *   2           ⁢     
     ⁢   where           (   26   )                   μ   *     =       1   N     ⁢       ∑     j   =   1     N     ⁢     η   j           ,           ⁢       and   ⁢           ⁢     σ   *   2       =       1   N     ⁢       ∑     j   =   1     N     ⁢       (       η   j     -     μ   *       )     2                   (   27   )               
The likelihood function now becomes:
 
                     p   N     ⁡     (       η   |     μ   0       ,     σ     η   ⁢           ⁢   0       ,     M   0       )       =       1         (     2   ⁢   π     )       N   /   2       ⁢     σ     η   ⁢           ⁢   0     N         ⁢     exp   ⁡     (     -       N   ⁢           ⁢     σ   *   2         2   ⁢     σ     η   ⁢           ⁢   0     2           )       ⁢     exp   ⁡     (     -         N   ⁡     (       μ   0     -     μ   *       )       2       2   ⁢     σ     η   ⁢           ⁢   0     2           )                 (   28   )               
From this form it is clear that the likelihood is maximized if we choose μ 0 *=μ* and σ η0 *=σ*, with maximum:
 
                       p   N   *     ⁡     (   η   )       ≡       p   N   *     ⁡     (       η   |     μ   0   *       ,     σ     η   ⁢           ⁢   0     *     ,     M   0       )         =       1       (     2   ⁢   π   ⁢           ⁢   e   ⁢           ⁢     σ     η   ⁢           ⁢   0       *   2         )       N   /   2         .             (   29   )               
Comparing this value for different window positions can be used to measure the likelihood that the signal in each window is a Gaussian white noise process. Comparing different models using those parameter values in each model that maximizse the likelihood may not the most robust way to proceed. Instead, it may be preferable to marginalize over all possible values of the model parameters (in this case μ 0  and σ η0 ) to get the probability for the model that there is no peak in the window (M 0 ) given the signal observed in the window, which is parameter-free. Doing the same marginalization for the case where a peak is assumed in the window, gives a parameter free probability for model M 1 . These two parameter-free probabilities are directly comparable.
 
   In evaluating equation (14), we now assume that we know nothing about the prior probabilities for the mean and variance of the noise process, aside from the requirement that they be probabilities in the parameters μ 0  and σ η0 . The simplest choice is to assume that they are constant over some range. Marginalizing, we have: 
                     p   N     ⁡     (     η   |     M   0       )       =       ∫   0   ∞     ⁢           ⁢         ⅆ     σ     η   ⁢           ⁢   0           σ     η   ⁢           ⁢     0   max           ⁢       ∫     -   ∞     ∞     ⁢           ⁢         ⅆ     μ   0         μ     0   max         ⁢       p   N     ⁡     (       η   |     μ   0       ,     σ     η   ⁢           ⁢   0       ,     M   0       )                       (   30   )               
Performing the integral over the parameter μ 0  first we are left with
 
                     p   N     ⁡     (     η   |     M   0       )       =       1       σ     η   ⁢           ⁢     0   max         ⁢     μ     0   max           ⁢     1         (     2   ⁢   π     )         (     N   -   1     )     /   2       ⁢     N         ⁢       ∫   0   ∞     ⁢           ⁢         ⅆ     σ     η   ⁢           ⁢   0           σ     η   ⁢           ⁢   0       N   -   1         ⁢     exp   ⁡     (     -       N   ⁢           ⁢     σ     η   ⁢           ⁢   0       *   2           2   ⁢     σ   η0   2           )                     (   31   )               
Changing variables to
 
                 t   =       N   ⁢           ⁢     σ     η   ⁢           ⁢   0       *   2           2   ⁢     σ     η   ⁢           ⁢   0     2                 (   32   )               
we find
 
                     p   N     ⁡     (     η   |     M   0       )       =       1     2   ⁢     2     ⁢     π       (     N   -   1     )     /   2           ⁢       Γ   ⁡     (       N   2     -   1     )           N       N   -   1     2       ⁢     σ     η   ⁢           ⁢   0         *   N     -   2           ⁢     1       σ     η   ⁢           ⁢     0   max         ⁢     μ     0   max                     (   33   )               
Using Stirling&#39;s asymptotic series for the Γ-function (Γ(x+1)≈√{square root over (2πx)}x x e −x (1+ . . . ))
 
                         Γ   ⁡     (       N   2     -   1     )       ≈       ⁢           ⅇ       -     N   2       +   1       ⁡     (       N   2     -   1     )           N   2     -   1   -     1   2         ⁢       2   ⁢   π                     ≈       ⁢           ⅇ       -     N   2       +   1       ⁡     (     N   2     )           N   -   3     2       ⁢       2   ⁢   π                       (   34   )               
we find:
 
                     p   N     ⁡     (     η   |     M   0       )       =         1       (     2   ⁢   πⅇ   ⁢           ⁢     σ     η   ⁢           ⁢   0       *   2         )       N   /   2         ⁢       π   ⁢     2     ⁢     σ     η   ⁢           ⁢   0       *   2         N       =       p   N   *     ⁢       π   ⁢     2     ⁢     σ     η   ⁢           ⁢   0       *   2         N     ⁢     ⅇ       σ   max     ⁢     μ   max                     (   35   )               
Notice that this still depends upon the window position. This result could have been anticipated by the following argument: the integration of the likelihood over μ 0  and σ η0  will be dominated by the region of μ 0 σ η0 -space in the immediate neighborhood of the maximum likelihood values μ 0 * and σ η0 *. Over most of parameter space the likelihood is vanishingly small (if the data is ‘informative’). The volume of space over which the likelihood is not vanishingly small is given by the product of the half-widths of the likelihood function in each direction (which are essentially the uncertainties in the parameter estimates). The uncertainties can be estimated from the second derivative of the ln of the likelihood function, and are of the order of Δμ 0 □σ η0 */√{square root over (N)} and Δσ η0 □σ η0 */√{square root over (2N)}. Therefore, we have the appealing result that (35) is simply
 
                     p   N     ⁡     (     η   |     M   0       )       =     2   ⁢   π   ⁢           ⁢       p   N   *     ⁡     (       Δμ   0       μ     0   max         )       ⁢     (       Δσ     η   ⁢           ⁢   0         σ     η   ⁢           ⁢     0   max           )     ⁢   ⅇ             (   36   )               
The results (35) and (29) depend only upon the noise model and are independent of the rest of the model (e.g. peak shapes and positions, if there are any). Equation (33), (35) and (36) are different expressions for evidence.
 
   The computation for p N (η|M 0 ) is complete. However, we want to point out that there is a way that arrives at (35) and (36) while avoiding above tedious integrals. That is to utilize (22) and (29). The Hessian matrix, as defined in (19), can be easily calculated in case: 
   
     
       
         
           
             
               
                 
                   ∇ 
                   
                     ∇ 
                     
                       L 
                       ⁡ 
                       
                         ( 
                         
                           
                             μ 
                             0 
                             * 
                           
                           , 
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             * 
                           
                         
                         ) 
                       
                     
                   
                 
                 = 
                 
                   [ 
                   
                     
                       
                         
                           N 
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             
                               * 
                               2 
                             
                           
                         
                       
                       
                         0 
                       
                     
                     
                       
                         0 
                       
                       
                         
                           
                             2 
                             ⁢ 
                             N 
                           
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             
                               * 
                               2 
                             
                           
                         
                       
                     
                   
                   ] 
                 
               
             
             
               
                 ( 
                 37 
                 ) 
               
             
           
         
       
     
   
   Substitute (29) and (37) into (22): 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           p 
                           N 
                           ′ 
                         
                         ⁡ 
                         
                           ( 
                           
                             η 
                             | 
                             
                               M 
                               0 
                             
                           
                           ) 
                         
                       
                       ≈ 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             μ 
                             
                               0 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 0 
                                 max 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             
                               πσ 
                               
                                 η 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 0 
                               
                               
                                 * 
                                 2 
                               
                             
                           
                           
                             
                               2 
                             
                             ⁢ 
                             N 
                           
                         
                         ⁢ 
                         
                           1 
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 N 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               
                                 η 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 0 
                               
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             
                               - 
                               N 
                             
                             / 
                             2 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             μ 
                             
                               0 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 0 
                                 max 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             * 
                           
                           
                             N 
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             * 
                           
                           
                             
                               2 
                               ⁢ 
                               N 
                             
                           
                         
                         ⁢ 
                         2 
                         ⁢ 
                         π 
                         ⁢ 
                         
                           1 
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 N 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               
                                 η 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 0 
                               
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             
                               - 
                               N 
                             
                             / 
                             2 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             μ 
                             
                               0 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 0 
                                 max 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             * 
                           
                           
                             N 
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                             * 
                           
                           
                             
                               2 
                               ⁢ 
                               N 
                             
                           
                         
                         ⁢ 
                         2 
                         ⁢ 
                         π 
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             p 
                             N 
                             * 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   μ 
                                   0 
                                   * 
                                 
                               
                               , 
                               
                                 σ 
                                 
                                   η 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   0 
                                 
                                 * 
                               
                               , 
                               
                                 M 
                                 0 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           
                             Δμ 
                             0 
                           
                           
                             μ 
                             
                               0 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             Δσ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               0 
                             
                           
                           
                             σ 
                             
                               η 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 0 
                                 max 
                               
                             
                           
                         
                         ⁢ 
                         2 
                         ⁢ 
                         π 
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             p 
                             N 
                             * 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   μ 
                                   0 
                                   * 
                                 
                               
                               , 
                               
                                 σ 
                                 
                                   η 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   0 
                                 
                                 * 
                               
                               , 
                               
                                 M 
                                 0 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 38 
                 ) 
               
             
           
         
       
     
   
   Comparing (38) with (36), they differ by a factor e which comes from Stirling series expansion of 
           Γ   ⁡     (       N   2     -   1     )           
in (34).
 
   We now consider there is a peak in the window. Suppose the peak has a line shape described by x i , which peaks near the center of the window. The observed data within the window may be written as:
 
 s ( t   j )=α 1   x ( t   j   −t   0 )+η( t   j )  j= 1  . . . N   (39)
 
where the amplitude (α 1 ) and arrival time (t 0 ) of the wavelet, as well as the noise amplitude σ η1  and mean μ 1 , are assumed to be unknown. The marginalization in this case looks like:
 
                         p   ⁡     (     η   |     M   1       )       =       ⁢     ∫     ∫     ∫       ⅆ     a   1       ⁢     ⅆ     μ   1       ⁢     ⅆ     σ     η   ⁢           ⁢   1         ⁢       p   N     ⁡     (       η   |     a   1       ,     μ   1     ,     σ   η1     ,     t   0     ,     M   1       )                               ⁢       1     a     1   max         ⁢     1     μ     1   max         ⁢     1     σ     η1   max                         (   40   )               
where:
 
                           p   N     ⁡     (       η   |     a   1       ,     μ   1     ,     σ   η1     ,     t   0     ,     M   1       )       =       ⁢       1       (         2   ⁢   π       ⁢     σ   η1       )     N       ⁢   exp                     ⁢     (       -     1     2   ⁢     σ   η1   2           ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     u   1       )     2         )                   (   41   )               
is the realization of likelihood function (9). As in the case of no peak, complete the square, let:
 
             u   *     =       1   N     ⁢     ∑     (       s   i     -       a   1     ⁢     x   i         )                       σ     η   *     2     =       1   N     ⁢     ∑       (       s   i     -       a   1     ⁢     x   i       -     u   *       )     2               
one may get:
 
                         p   ⁡     (     η   |     M   1       )       =       ⁢     ∫     ∫       ⅆ     a   1       ⁢     ⅆ     μ   1       ⁢     ⅆ     σ   η1       ⁢     1       (         2   ⁢   π       ⁢     σ   η1       )     N                             ⁢       ⅇ       -     1     2   ⁢     σ   η1   2           ⁢       N   ⁡     (       μ   1     -     μ   *       )       2         ⁢     ⅇ       -     1     2   ⁢           ⁢     σ   η1             ⁢   2             ⁢   N   ⁢           ⁢     σ     η   *     2                           ⁢       1     a     1   max         ⁢     1     μ     1   max         ⁢     1     σ     η1   max                       =       ⁢       1         (       2   ⁢   π       )       N   -   1       ⁢     N         ⁢     ∫       ⅆ     a   1       ⁢     ⅆ     σ   η1       ⁢     1     σ   η1     N   -   1         ⁢     ⅇ       -     1     2   ⁢     σ   η1   2           ⁢   N   ⁢           ⁢     σ     η   *     2                               ⁢       1     a     1   max         ⁢     1     μ     1   max         ⁢     1     σ     η1   max                       =       ⁢     ∫       ⅆ     a   1       ⁢     1     2   ⁢     2     ⁢       (     N   ⁢           ⁢   π     )         N   -   1     2       ⁢     σ     η   *       N   -   2           ⁢     Γ   ⁡     (       N   2     -   1     )                           ⁢       1     a     1   max         ⁢     1     σ     η1   max         ⁢     1     μ     1   max                         (   42   )               
Note, if we let (α 1 *,μ 1 *,σ η1 *) be the point where the likelihood is maximized, the derivation of (α 1 *,μ 1 *,σ η1 *) will be given momentarily, then
 
                         σ     η   *     2     =       ⁢       1   N     ⁢     ∑       (       s   i     -       a   1     ⁢     x   i       -     u   *       )     2                     =       ⁢       1   N     ⁢     ∑       (       s   i     -       a   1   *     ⁢     x   i       -     u   1   *     -       (       a   1     -     a   1   *       )     ⁢     x   i       -     (       u   *     -     u   1   *       )       )     2                     =       ⁢       σ   η1   *     +         σ   x   2     ⁡     [       a   1     -     a   1   *     -       ∑           ⁢       (       s   i     -       a   1   *     ⁢     x   i       -     u   1   *       )     ⁢     (       x   i     -     x   _       )             σ   x   2     ⁢   N         ]       2     -                     ⁢         [     ∑           ⁢       (       s   i     -       a   1   *     ⁢     x   i       -     u   1   *       )     ⁢     (       x   i     -     x   _       )         ]     2         σ   x   2     ⁢     N   2                     =       ⁢         A   ⁡     (     a   -     a   1   ′       )       2     +   B                   (   43   )               
where
 
                     x   _     =       ∑     x   i       N       ⁢     
     ⁢       σ   x   2     =       1   N     ⁢     ∑       (       x   i     -     x   _       )     2           ⁢     
     ⁢     A   =     σ   x   2       ⁢     
     ⁢     B   =       σ   η1     *   2       -         [     ∑           ⁢       (       s   i     -       a   1   *     ⁢     x   i       -     u   1   *       )     ⁢     (       x   i     -     x   _       )         ]     2         σ   x   2     ⁢     N   2             ⁢     
     ⁢       a   1   ′     =       a   1   *     +       ∑           ⁢       (       s   i     -       a   1   *     ⁢     x   i       -     u   1   *       )     ⁢     (       x   i     -     x   _       )             σ   x   2     ⁢   N                   (   44   )               
then marginalization may be written as:
 
                         p   ⁡     (     η   |     M   1       )       =       ⁢     ∫       ⅆ   a     ⁢     1     2   ⁢     2     ⁢           (     N   ⁢           ⁢   π     )         N   -   1     2       ⁡     [         A   ⁡     (     a   -     a   1   ′       )       2     +   B     ]           N   -   2     2                               ⁢       Γ   ⁡     (       N   2     -   1     )       ⁢     1     a   max       ⁢     1     σ     η   max         ⁢     1     μ   max                       (   45   )               
Changing variable t=(α 1 −α 1 ′) 2  gives:
 
                   p   ⁡     (     η   |     M   1       )       =       1     4   ⁢     2     ⁢     π       N   2     -   1       ⁢     N       N   -   1     2           ⁢       B       -     N   2       +     3   2           A       ⁢     Γ   ⁡     (       N   2     -     3   2       )                 (   46   )               
Now, having p(η|M 0 ) and p(η|M 1 ) computed, one may substitute them into (10) to see which model is more preferable.
 
   Up to this point, the model comparison is complete, as we derived in equations (33) and (46), and equation (10) can be used to compare two hypotheses. Yet, as in parallel with what we did in the M 0  case, we can also arrive at an equation similar to equation (46) by computing the Hessian matrix, but this is going to need (α 1 *,μ 1 *,σ η1 *), the best estimation of (α 1 ,μ 1 ,σ η1 ). 
   2.1.2 Parameter Fitting for Gaussian Noise 
   Once it is determined which model is more appealing, parameters may be fitted via maximizing appropriate likelihood. 
   For the case where there is no peak in the window, the likelihood (9) is simply: 
                           p   N     ⁡     (       η   |     μ   0       ,     σ   η0     ,     M   0       )       =       ⁢         1   ⁢                   (     2   ⁢           ⁢   π     )       N   /   2       ⁢           ⁢     σ   η0   N         ⁢           ⁢   exp                     ⁢     (       -     1     2   ⁢           ⁢     σ   η0   2           ⁢           ⁢       ∑     j   =   1     N     ⁢       (       η   ⁡     (     t   j     )       -     μ   0       )     2         )                   (   47   )               
where
 η( t   j )= s ( t   j )  (48) 
as only noise is assumed in presence. As it is pointed out in previous section, (47) is maximized at
 
   
     
       
         
           
             
               
                 
                   
                     μ 
                     0 
                     * 
                   
                   = 
                   
                     
                       1 
                       N 
                     
                     ⁢ 
                     
                       ∑ 
                       
                         s 
                         i 
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     σ 
                     η0 
                     * 
                   
                   = 
                   
                     
                       1 
                       N 
                     
                     ⁢ 
                     
                       ∑ 
                       
                         
                           ( 
                           
                             
                               s 
                               i 
                             
                             - 
                             
                               μ 
                               0 
                             
                           
                           ) 
                         
                         2 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 49 
                 ) 
               
             
           
         
       
     
   
   The uncertainties are, as one can see from the Hessian matrix (37): 
   
     
       
         
           
             
               
                 
                   
                     Δμ 
                     0 
                   
                   = 
                   
                     
                       σ 
                       η0 
                       * 
                     
                     
                       N 
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     Δσ 
                     η0 
                   
                   = 
                   
                     
                       σ 
                       η0 
                       * 
                     
                     
                       
                         2 
                         ⁢ 
                         N 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 50 
                 ) 
               
             
           
         
       
     
   
   If it is preferred that there is a peak in the window, then the likelihood function (9) looks like: 
                           p   N     ⁡     (       η   |     a   1       ,     μ   1     ,     σ   η1     ,     M   1       )       =       ⁢       1       (         2   ⁢   π       ⁢     σ   η1       )     N       ⁢     exp   ⁡     (       -     1     2   ⁢     σ   η1   2           ⁢       ∑     i   =   1     N     ⁢     η   i   2         )                     =       ⁢       1       (         2   ⁢   π       ⁢     σ   η1       )     N       ⁢   exp                     ⁢     (       -     1     2   ⁢     σ   η1   2           ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     u   1       )     2         )                   (   51   )               
the natural logarithm of the likelihood is:
 
                       L   =     log   ⁢           [       p   N     ⁡     (       η   |     a   1       ,     μ   1     ,     σ   η1     ,     M   1       )       ]                 =         -     N   2       ⁢   log   ⁢           ⁢     (     2   ⁢   π     )       -     N   ⁢           ⁢     log   ⁡     (     σ   η1     )         -       1     2   ⁢     σ   η1   2         ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     μ   1       )     2                         (   52   )               
In order to maximize this value, let:
 
                       ∂   L       ∂     a   1         =         -     1     σ   η1   2         ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     μ   1       )     ⁢     (     -     x   i       )           =   0       ⁢     
     ⁢         ∂   L       ∂     μ   1         =         -     1     σ   η1   2         ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     μ   1       )     ⁢     (     -   1     )           =   0       ⁢     
     ⁢         ∂   L       ∂     σ   η1         =         -     N     σ   η1         +       1     σ   η1   3       ⁢       ∑     i   =   1     N     ⁢       (       s   i     -       a   1     ⁢     x   i       -     μ   1       )     2           =   0               (   53   )               
Solving these equations gives:
 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           
                             a 
                             1 
                             * 
                           
                           = 
                           
                             
                               
                                 
                                   ( 
                                   sx 
                                   ) 
                                 
                                 _ 
                               
                               - 
                               
                                 
                                   s 
                                   _ 
                                 
                                 ⁢ 
                                 
                                   x 
                                   _ 
                                 
                               
                             
                             
                               
                                 x 
                                 2 
                               
                               - 
                               
                                 
                                   x 
                                   _ 
                                 
                                 2 
                               
                             
                           
                         
                       
                     
                     
                       
                         
                           = 
                           
                             
                               
                                 
                                   ( 
                                   
                                     s 
                                     - 
                                     
                                       s 
                                       _ 
                                     
                                   
                                   ) 
                                 
                                 ⁢ 
                                 
                                   ( 
                                   
                                     x 
                                     - 
                                     
                                       x 
                                       _ 
                                     
                                   
                                   ) 
                                 
                               
                               _ 
                             
                             
                               
                                 
                                   ( 
                                   
                                     x 
                                     - 
                                     
                                       x 
                                       _ 
                                     
                                   
                                   ) 
                                 
                                 2 
                               
                               _ 
                             
                           
                         
                       
                     
                     
                       
                         
                           = 
                           
                             
                               
                                 
                                   ( 
                                   
                                     s 
                                     - 
                                     
                                       s 
                                       _ 
                                     
                                   
                                   ) 
                                 
                                 ⁢ 
                                 
                                   ( 
                                   
                                     x 
                                     - 
                                     
                                       x 
                                       _ 
                                     
                                   
                                   ) 
                                 
                               
                               _ 
                             
                             
                               σ 
                               x 
                               2 
                             
                           
                         
                       
                     
                   
                   ⁢ 
                   
                     
 
                   
                   ⁢ 
                   
                     μ 
                     1 
                     * 
                   
                   = 
                   
                     
                       s 
                       _ 
                     
                     - 
                     
                       
                         a 
                         1 
                         * 
                       
                       ⁢ 
                       
                         x 
                         _ 
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     σ 
                     η1 
                     * 
                   
                   = 
                   
                     
                       
                         
                           ( 
                           
                             
                               s 
                               i 
                             
                             - 
                             
                               s 
                               _ 
                             
                             - 
                             
                               
                                 a 
                                 1 
                               
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     x 
                                     i 
                                   
                                   - 
                                   
                                     x 
                                     _ 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       _ 
                     
                     = 
                     
                       
                         σ 
                         s 
                         2 
                       
                       - 
                       
                         
                           a 
                           1 
                           2 
                         
                         ⁢ 
                         
                           σ 
                           x 
                           2 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 54 
                 ) 
               
             
           
         
       
     
   
   The log of the likelihood function at (α 1 *,μ 1 *,σ η1 *) is simply: 
   
     
       
         
           
             
               
                 
                   L 
                   ⁡ 
                   
                     ( 
                     
                       
                         a 
                         1 
                         * 
                       
                       , 
                       
                         μ 
                         1 
                         * 
                       
                       , 
                       
                         σ 
                         η1 
                         * 
                       
                     
                     ) 
                   
                 
                 = 
                 
                   
                     
                       - 
                       N 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       log 
                       ⁡ 
                       
                         ( 
                         
                           σ 
                           η1 
                           * 
                         
                         ) 
                       
                     
                   
                   - 
                   
                     
                       N 
                       2 
                     
                     ⁢ 
                     
                       log 
                       ⁡ 
                       
                         ( 
                         
                           2 
                           ⁢ 
                           π 
                         
                         ) 
                       
                     
                   
                   - 
                   
                     N 
                     2 
                   
                 
               
             
             
               
                 ( 
                 55 
                 ) 
               
             
           
         
       
     
   
   The elements in Hessian matrix ∇∇L(α 1 ,μ 1 ,σ η1 ) evaluated at (α 1 *,μ 1 *,σ η1 *) are: 
   
     
       
         
           
             
               
                 
                   
                     
                       - 
                       
                         
                           
                             ∂ 
                             2 
                           
                           ⁢ 
                           L 
                         
                         
                           ∂ 
                           
                             a 
                             1 
                             2 
                           
                         
                       
                     
                     ⁢ 
                     
                       | 
                       
                         ( 
                         
                           
                             a 
                             1 
                             * 
                           
                           , 
                           
                             μ 
                             1 
                             * 
                           
                           , 
                           
                             σ 
                             η1 
                             * 
                           
                         
                         ) 
                       
                     
                   
                   = 
                   
                     
                       
                         1 
                         
                           σ 
                           η1 
                           
                             * 
                             2 
                           
                         
                       
                       ⁢ 
                       
                         
                           ∑ 
                           
                             i 
                             = 
                             1 
                           
                           N 
                         
                         ⁢ 
                         
                           x 
                           i 
                           2 
                         
                       
                     
                     = 
                     
                       
                         
                           
                             
                               N 
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     σ 
                                     x 
                                     2 
                                   
                                   + 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     2 
                                   
                                 
                                 ) 
                               
                             
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                           ⁢ 
                           
                             
 
                           
                           - 
                           
                             
                               
                                 ∂ 
                                 2 
                               
                               ⁢ 
                               L 
                             
                             
                               ∂ 
                               
                                 μ 
                                 1 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           | 
                           
                             ( 
                             
                               
                                 a 
                                 1 
                                 * 
                               
                               , 
                               
                                 μ 
                                 1 
                                 * 
                               
                               , 
                               
                                 σ 
                                 η1 
                                 * 
                               
                             
                             ) 
                           
                         
                       
                       = 
                       
                         
                           
                             1 
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                           ⁢ 
                           
                             
                               ∑ 
                               
                                 i 
                                 = 
                                 1 
                               
                               N 
                             
                             ⁢ 
                             
                               ( 
                               1 
                               ) 
                             
                           
                         
                         = 
                         
                           N 
                           
                             σ 
                             η1 
                             
                               * 
                               2 
                             
                           
                         
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     
                       
                         
                           
                             
                               
                                 
                                   - 
                                   
                                     
                                       
                                         ∂ 
                                         2 
                                       
                                       ⁢ 
                                       L 
                                     
                                     
                                       ∂ 
                                       
                                         σ 
                                         η1 
                                         2 
                                       
                                     
                                   
                                 
                                 ⁢ 
                                 
                                   | 
                                   
                                     ( 
                                     
                                       
                                         a 
                                         1 
                                         * 
                                       
                                       , 
                                       
                                         μ 
                                         1 
                                         * 
                                       
                                       , 
                                       
                                         σ 
                                         η1 
                                         * 
                                       
                                     
                                     ) 
                                   
                                 
                               
                               = 
                               
                                 
                                   - 
                                   
                                     N 
                                     
                                       σ 
                                       η1 
                                       
                                         * 
                                         2 
                                       
                                     
                                   
                                 
                                 + 
                                 
                                   
                                     3 
                                     
                                       σ 
                                       η1 
                                       
                                         * 
                                         4 
                                       
                                     
                                   
                                   ⁢ 
                                   
                                     
                                       ∑ 
                                       
                                         i 
                                         = 
                                         1 
                                       
                                       N 
                                     
                                     ⁢ 
                                     
                                       
                                         ( 
                                         
                                           
                                             s 
                                             i 
                                           
                                           - 
                                           
                                             
                                               a 
                                               1 
                                               * 
                                             
                                             ⁢ 
                                             
                                               x 
                                               i 
                                             
                                           
                                           - 
                                           
                                             μ 
                                             1 
                                             * 
                                           
                                         
                                         ) 
                                       
                                       2 
                                     
                                   
                                 
                               
                             
                           
                         
                         
                           
                             
                               = 
                               
                                 
                                   2 
                                   ⁢ 
                                   N 
                                 
                                 
                                   σ 
                                   η1 
                                   
                                     * 
                                     2 
                                   
                                 
                               
                             
                           
                         
                       
                       ⁢ 
                       
                         
 
                       
                       - 
                       
                         
                           
                             ∂ 
                             2 
                           
                           ⁢ 
                           L 
                         
                         
                           
                             ∂ 
                             
                               a 
                               1 
                             
                           
                           ⁢ 
                           
                             ∂ 
                             
                               μ 
                               1 
                             
                           
                         
                       
                     
                     ⁢ 
                     
                       | 
                       
                         ( 
                         
                           
                             a 
                             1 
                             * 
                           
                           , 
                           
                             μ 
                             1 
                             * 
                           
                           , 
                           
                             σ 
                             η1 
                             * 
                           
                         
                         ) 
                       
                     
                   
                   = 
                   
                     
                       
                         
                           
                             
                               ∑ 
                               
                                 i 
                                 = 
                                 1 
                               
                               N 
                             
                             ⁢ 
                             
                               x 
                               i 
                             
                           
                           
                             σ 
                             η1 
                             
                               * 
                               2 
                             
                           
                         
                         ⁢ 
                         
                           
 
                         
                         - 
                         
                           
                             
                               ∂ 
                               2 
                             
                             ⁢ 
                             L 
                           
                           
                             
                               ∂ 
                               
                                 μ 
                                 1 
                               
                             
                             ⁢ 
                             
                               ∂ 
                               
                                 σ 
                                 η1 
                               
                             
                           
                         
                       
                       ⁢ 
                       
                         | 
                         
                           ( 
                           
                             
                               a 
                               1 
                               * 
                             
                             , 
                             
                               μ 
                               1 
                               * 
                             
                             , 
                             
                               σ 
                               η1 
                               * 
                             
                           
                           ) 
                         
                       
                     
                     = 
                     
                       
                         
                           2 
                           
                             σ 
                             η1 
                             
                               * 
                               3 
                             
                           
                         
                         ⁢ 
                         
                           
                             ∑ 
                             
                               i 
                               = 
                               1 
                             
                             N 
                           
                           ⁢ 
                           
                             ( 
                             
                               
                                 s 
                                 i 
                               
                               - 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 ⁢ 
                                 
                                   x 
                                   i 
                                 
                               
                               - 
                               
                                 μ 
                                 1 
                                 * 
                               
                             
                             ) 
                           
                         
                       
                       = 
                       
                         
                           
                             0 
                             ⁢ 
                             
                               
 
                             
                             - 
                             
                               
                                 
                                   ∂ 
                                   2 
                                 
                                 ⁢ 
                                 L 
                               
                               
                                 
                                   ∂ 
                                   
                                     a 
                                     1 
                                   
                                 
                                 ⁢ 
                                 
                                   ∂ 
                                   
                                     σ 
                                     η1 
                                   
                                 
                               
                             
                           
                           ⁢ 
                           
                             | 
                             
                               ( 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 , 
                                 
                                   μ 
                                   1 
                                   * 
                                 
                                 , 
                                 
                                   σ 
                                   η1 
                                   * 
                                 
                               
                               ) 
                             
                           
                         
                         = 
                         
                           
                             
                               2 
                               
                                 σ 
                                 η1 
                                 
                                   * 
                                   3 
                                 
                               
                             
                             ⁢ 
                             
                               
                                 ∑ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                               ⁢ 
                               
                                 
                                   ( 
                                   
                                     
                                       s 
                                       i 
                                     
                                     - 
                                     
                                       
                                         a 
                                         1 
                                         * 
                                       
                                       ⁢ 
                                       
                                         x 
                                         i 
                                       
                                     
                                     - 
                                     
                                       μ 
                                       1 
                                       * 
                                     
                                   
                                   ) 
                                 
                                 ⁢ 
                                 
                                   x 
                                   i 
                                 
                               
                             
                           
                           = 
                           0 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 56 
                 ) 
               
             
           
         
       
     
   
   The last 2 nd  term is zero obviously because μ 1 *=  s −α 1 *  x . The last term is also zero because it is proportional to the correlation between the residue, which is presumably white noise with zero mean, and the target x i , which is zero. Nevertheless, it can be shown by following: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           ∑ 
                           
                             i 
                             = 
                             1 
                           
                           N 
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               
                                 s 
                                 i 
                               
                               - 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 ⁢ 
                                 
                                   x 
                                   i 
                                 
                               
                               - 
                               
                                 μ 
                                 1 
                                 * 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             x 
                             i 
                           
                         
                       
                       = 
                         
                       ⁢ 
                       
                         
                           ∑ 
                           
                             i 
                             = 
                             1 
                           
                           N 
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               
                                 s 
                                 i 
                               
                               - 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 ⁢ 
                                 
                                   x 
                                   i 
                                 
                               
                               - 
                               
                                 s 
                                 _ 
                               
                               + 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 ⁢ 
                                 
                                   x 
                                   _ 
                                 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             x 
                             i 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           
                             ∑ 
                             
                               i 
                               = 
                               1 
                             
                             N 
                           
                           ⁢ 
                           
                             
                               s 
                               i 
                             
                             ⁢ 
                             
                               x 
                               i 
                             
                           
                         
                         - 
                         
                           
                             a 
                             1 
                             * 
                           
                           ⁢ 
                           
                             
                               ∑ 
                               
                                 i 
                                 = 
                                 1 
                               
                               N 
                             
                             ⁢ 
                             
                               x 
                               i 
                               2 
                             
                           
                         
                         - 
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             s 
                             _ 
                           
                           ⁢ 
                           
                             
                               ∑ 
                               
                                 i 
                                 = 
                                 1 
                               
                               N 
                             
                             ⁢ 
                             
                               x 
                               i 
                             
                           
                         
                         + 
                         
                           
                             a 
                             1 
                             * 
                           
                           ⁢ 
                           
                             x 
                             _ 
                           
                           ⁢ 
                           
                             
                               ∑ 
                               
                                 i 
                                 = 
                                 1 
                               
                               N 
                             
                             ⁢ 
                             
                               x 
                               i 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         N 
                         ⁡ 
                         
                           ( 
                           
                             
                               sx 
                               _ 
                             
                             - 
                             
                               
                                 a 
                                 1 
                                 * 
                               
                               ⁢ 
                               
                                 
                                   x 
                                   2 
                                 
                                 _ 
                               
                             
                             - 
                             
                               
                                 s 
                                 _ 
                               
                               ⁢ 
                               
                                 x 
                                 _ 
                               
                             
                             + 
                             
                               
                                 a 
                                 1 
                                 * 
                               
                               ⁢ 
                               
                                 
                                   x 
                                   _ 
                                 
                                 2 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         N 
                         ⁡ 
                         
                           ( 
                           
                             
                               sx 
                               _ 
                             
                             - 
                             
                               
                                 s 
                                 _ 
                               
                               ⁢ 
                               
                                 x 
                                 _ 
                               
                             
                             - 
                             
                               
                                 a 
                                 1 
                                 * 
                               
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     
                                       x 
                                       2 
                                     
                                     _ 
                                   
                                   - 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     2 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         N 
                         ⁡ 
                         
                           ( 
                           
                             
                               
                                 
                                   ( 
                                   
                                     s 
                                     - 
                                     
                                       s 
                                       _ 
                                     
                                   
                                   ) 
                                 
                                 ⁢ 
                                 
                                   ( 
                                   
                                     x 
                                     - 
                                     
                                       x 
                                       _ 
                                     
                                   
                                   ) 
                                 
                               
                               _ 
                             
                             - 
                             
                               
                                 a 
                                 1 
                                 * 
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                                 2 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       0 
                     
                   
                 
               
             
             
               
                 ( 
                 57 
                 ) 
               
             
           
         
       
     
   
   With all elements of Hessian matrix computed, we can now write out the Hessian matrix ∇∇L(α 1 *,μ 1 *,σ η1 *): 
   
     
       
         
           
             
               
                 
                   ∇ 
                   
                     ∇ 
                     
                       L 
                       ⁡ 
                       
                         ( 
                         
                           
                             a 
                             1 
                             * 
                           
                           , 
                           
                             μ 
                             1 
                             * 
                           
                           , 
                           
                             σ 
                             η1 
                             * 
                           
                         
                         ) 
                       
                     
                   
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           
                             
                               N 
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     σ 
                                     x 
                                     2 
                                   
                                   + 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     2 
                                   
                                 
                                 ) 
                               
                             
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                         
                         
                           
                             
                               
                                 ∑ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                               ⁢ 
                               
                                 x 
                                 i 
                               
                             
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                         
                         
                           0 
                         
                       
                       
                         
                           
                             
                               
                                 ∑ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                               ⁢ 
                               
                                 x 
                                 i 
                               
                             
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                         
                         
                           
                             N 
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                         
                         
                           0 
                         
                       
                       
                         
                           0 
                         
                         
                           0 
                         
                         
                           
                             
                               2 
                               ⁢ 
                               N 
                             
                             
                               σ 
                               η1 
                               
                                 * 
                                 2 
                               
                             
                           
                         
                       
                     
                     ] 
                   
                   . 
                 
               
             
             
               
                 ( 
                 58 
                 ) 
               
             
           
         
       
     
   
   From which, one can get the uncertainties: 
   
     
       
         
           
             
               
                 
                   
                     Δ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       a 
                       1 
                     
                   
                   = 
                   
                     
                       σ 
                       
                         
                             
                         
                         ⁢ 
                         η1 
                       
                       * 
                     
                     
                       
                         N 
                         ⁡ 
                         
                           ( 
                           
                             
                               σ 
                               x 
                               2 
                             
                             + 
                             
                               
                                 x 
                                 _ 
                               
                               2 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     Δ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       μ 
                       1 
                     
                   
                   = 
                   
                     
                       σ 
                       η1 
                       * 
                     
                     
                       N 
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     
                       Δ 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         σ 
                         η1 
                       
                     
                     = 
                     
                       
                         σ 
                         η1 
                         * 
                       
                       
                         
                           2 
                           ⁢ 
                           N 
                         
                       
                     
                   
                   , 
                 
               
             
             
               
                 ( 
                 59 
                 ) 
               
             
           
         
       
     
   
   From (22), we have: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           p 
                           ′ 
                         
                         ⁡ 
                         
                           ( 
                           
                             η 
                             | 
                             
                               M 
                               1 
                             
                           
                           ) 
                         
                       
                       ≈ 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             
                               ( 
                               
                                 2 
                                 ⁢ 
                                 π 
                               
                               ) 
                             
                             
                               3 
                               / 
                               2 
                             
                           
                           
                             
                               
                                 det 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ( 
                                 
                                   ∇ 
                                   
                                     ∇ 
                                     
                                       L 
                                       ⁡ 
                                       
                                         ( 
                                         
                                           
                                             a 
                                             1 
                                             * 
                                           
                                           , 
                                           
                                             μ 
                                             1 
                                             * 
                                           
                                           , 
                                           
                                             σ 
                                             
                                               η 
                                               ⁢ 
                                               
                                                   
                                               
                                               ⁢ 
                                               1 
                                             
                                             * 
                                           
                                         
                                         ) 
                                       
                                     
                                   
                                 
                                 ) 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             L 
                             ⁡ 
                             
                               ( 
                               
                                 
                                   a 
                                   1 
                                   * 
                                 
                                 , 
                                 
                                   μ 
                                   1 
                                   * 
                                 
                                 , 
                                 
                                   σ 
                                   
                                     η 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     1 
                                   
                                   * 
                                 
                               
                               ) 
                             
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 60 
                 ) 
               
             
           
         
       
     
   
   in which 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         det 
                         ⁡ 
                         
                           [ 
                           
                             ∇ 
                             
                               ∇ 
                               
                                 L 
                                 ⁡ 
                                 
                                   ( 
                                   
                                     
                                       a 
                                       1 
                                       * 
                                     
                                     , 
                                     
                                       μ 
                                       1 
                                       * 
                                     
                                     , 
                                     
                                       σ 
                                       
                                         η 
                                         ⁢ 
                                         
                                             
                                         
                                         ⁢ 
                                         1 
                                       
                                       * 
                                     
                                   
                                   ) 
                                 
                               
                             
                           
                           ] 
                         
                       
                       = 
                       
                         
                           
                             2 
                             ⁢ 
                             
                               
                                 N 
                                 3 
                               
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     σ 
                                     x 
                                     2 
                                   
                                   + 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     2 
                                   
                                 
                                 ) 
                               
                             
                           
                           
                             σ 
                             η1 
                             
                               * 
                               6 
                             
                           
                         
                         - 
                         
                           
                             2 
                             ⁢ 
                             
                               
                                 N 
                                 ⁡ 
                                 
                                   ( 
                                   
                                     
                                       ∑ 
                                       
                                         i 
                                         = 
                                         1 
                                       
                                       N 
                                     
                                     ⁢ 
                                     
                                       x 
                                       i 
                                     
                                   
                                   ) 
                                 
                               
                               2 
                             
                           
                           
                             σ 
                             η1 
                             
                               * 
                               6 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                       
                         
                           
                             2 
                             ⁢ 
                             
                               
                                 N 
                                 3 
                               
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     σ 
                                     x 
                                     2 
                                   
                                   + 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     2 
                                   
                                 
                                 ) 
                               
                             
                           
                           - 
                           
                             2 
                             ⁢ 
                             
                               N 
                               3 
                             
                             ⁢ 
                             
                               
                                 x 
                                 _ 
                               
                               2 
                             
                           
                         
                         
                           σ 
                           η1 
                           
                             * 
                             6 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                       
                         
                           2 
                           ⁢ 
                           
                             N 
                             3 
                           
                           ⁢ 
                           
                             σ 
                             x 
                             2 
                           
                         
                         
                           σ 
                           η1 
                           
                             * 
                             6 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 61 
                 ) 
               
             
           
         
       
     
   
   and: 
   
     
       
         
           
             
               
                 
                   1 
                   
                     
                       det 
                       ⁡ 
                       
                         [ 
                         
                           ∇ 
                           
                             ∇ 
                             
                               L 
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     a 
                                     1 
                                     * 
                                   
                                   , 
                                   
                                     μ 
                                     1 
                                     * 
                                   
                                   , 
                                   
                                     σ 
                                     
                                       η 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       1 
                                     
                                     * 
                                   
                                 
                                 ) 
                               
                             
                           
                         
                         ] 
                       
                     
                   
                 
                 ⁢ 
                 
                   
                     
                       
                         = 
                           
                         ⁢ 
                         
                           
                             
                               σ 
                               η1 
                               * 
                             
                             
                               
                                 N 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   σ 
                                   x 
                                   2 
                                 
                               
                             
                           
                           ⁢ 
                           
                             
                               σ 
                               η1 
                               * 
                             
                             
                               
                                 N 
                                 ⁢ 
                                 
                                     
                                 
                               
                             
                           
                           ⁢ 
                           
                             
                               σ 
                               η1 
                               * 
                             
                             
                               
                                 
                                   2 
                                   ⁢ 
                                   N 
                                 
                                 ⁢ 
                                 
                                     
                                 
                               
                             
                           
                         
                       
                     
                   
                   
                     
                       
                         ∝ 
                           
                         ⁢ 
                         
                           Δ 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             a 
                             1 
                           
                           ⁢ 
                           
                             Δμ 
                             1 
                           
                           ⁢ 
                           
                             Δσ 
                             η1 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 62 
                 ) 
               
             
           
         
       
     
   
   Substitute (62) into (60): 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           p 
                           ′ 
                         
                         ⁡ 
                         
                           ( 
                           
                             η 
                             | 
                             
                               M 
                               1 
                             
                           
                           ) 
                         
                       
                       ≈ 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 3 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 3 
                               
                             
                           
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   
                                     N 
                                     3 
                                   
                                 
                                 ) 
                               
                               
                                 1 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               x 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 N 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             
                               - 
                               N 
                             
                             / 
                             2 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               
                                 2 
                                 ⁢ 
                                 N 
                               
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             ( 
                             
                               2 
                               ⁢ 
                               π 
                             
                             ) 
                           
                           
                             3 
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           1 
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 N 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             
                               - 
                               N 
                             
                             / 
                             2 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               
                                 2 
                                 ⁢ 
                                 N 
                               
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             ( 
                             
                               2 
                               ⁢ 
                               π 
                             
                             ) 
                           
                           
                             3 
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             p 
                             * 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   a 
                                   1 
                                   * 
                                 
                               
                               , 
                               
                                 μ 
                                 1 
                                 * 
                               
                               , 
                               
                                 σ 
                                 η1 
                                 * 
                               
                               , 
                               
                                 M 
                                 1 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       ∝ 
                         
                       ⁢ 
                       
                         
                           
                             Δ 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               a 
                               1 
                             
                           
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             Δμ 
                             1 
                           
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             Δσ 
                             η1 
                           
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               2 
                               ⁢ 
                               π 
                             
                             ) 
                           
                           
                             3 
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             p 
                             * 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   a 
                                   1 
                                   * 
                                 
                               
                               , 
                               
                                 μ 
                                 1 
                                 * 
                               
                               , 
                               
                                 σ 
                                 η1 
                                 * 
                               
                               , 
                               
                                 M 
                                 1 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 63 
                 ) 
               
             
           
         
       
     
   
   To compare with (46), first, we noticed that the 2 nd  part in B in (46) is actually zero, i.e. B=σ η1 * 2 , thus: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         p 
                         ⁡ 
                         
                           ( 
                           
                             η 
                             | 
                             
                               M 
                               1 
                             
                           
                           ) 
                         
                       
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           1 
                           
                             4 
                             ⁢ 
                             
                               2 
                             
                             ⁢ 
                             
                               π 
                               
                                 
                                   N 
                                   2 
                                 
                                 - 
                                 1 
                               
                             
                             ⁢ 
                             
                               N 
                               
                                 
                                   N 
                                   - 
                                   1 
                                 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             
                               * 
                               3 
                             
                           
                           
                             
                               σ 
                               x 
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           Γ 
                           ⁡ 
                           
                             ( 
                             
                               
                                 N 
                                 2 
                               
                               - 
                               
                                 3 
                                 2 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 64 
                 ) 
               
             
           
         
       
     
   
   Use the Stirling series again, 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         Γ 
                         ⁡ 
                         
                           ( 
                           
                             
                               N 
                               2 
                             
                             - 
                             
                               3 
                               2 
                             
                           
                           ) 
                         
                       
                       ≈ 
                         
                       ⁢ 
                       
                         
                           
                             
                               ⅇ 
                               
                                 
                                   - 
                                   
                                     N 
                                     2 
                                   
                                 
                                 + 
                                 
                                   3 
                                   2 
                                 
                               
                             
                             ⁡ 
                             
                               ( 
                               
                                 
                                   N 
                                   2 
                                 
                                 - 
                                 
                                   3 
                                   2 
                                 
                               
                               ) 
                             
                           
                           
                             
                               N 
                               2 
                             
                             - 
                             
                               3 
                               2 
                             
                             - 
                             
                               1 
                               2 
                             
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             π 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       ≈ 
                         
                       ⁢ 
                       
                         
                           
                             
                               ⅇ 
                               
                                 
                                   - 
                                   
                                     N 
                                     2 
                                   
                                 
                                 + 
                                 
                                   3 
                                   2 
                                 
                               
                             
                             ⁡ 
                             
                               ( 
                               
                                 N 
                                 2 
                               
                               ) 
                             
                           
                           
                             
                               N 
                               2 
                             
                             - 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             π 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 65 
                 ) 
               
             
           
         
       
     
   
   this makes (64) looks like: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         p 
                         ⁡ 
                         
                           ( 
                           
                             η 
                             | 
                             
                               M 
                               1 
                             
                           
                           ) 
                         
                       
                       ≈ 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           1 
                           
                             4 
                             ⁢ 
                             
                               2 
                             
                             ⁢ 
                             
                               π 
                               
                                 
                                   N 
                                   2 
                                 
                                 - 
                                 1 
                               
                             
                             ⁢ 
                             
                               N 
                               
                                 
                                   N 
                                   - 
                                   1 
                                 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             
                               * 
                               3 
                             
                           
                           
                             
                               σ 
                               x 
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             
                               ⅇ 
                               
                                 
                                   - 
                                   
                                     N 
                                     2 
                                   
                                 
                                 + 
                                 
                                   3 
                                   2 
                                 
                               
                             
                             ⁡ 
                             
                               ( 
                               
                                 N 
                                 2 
                               
                               ) 
                             
                           
                           
                             
                               N 
                               2 
                             
                             - 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             π 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           1 
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               
                                 2 
                                 ⁢ 
                                 N 
                               
                               ⁢ 
                               
                                   
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             ( 
                             
                               2 
                               ⁢ 
                               π 
                             
                             ) 
                           
                           
                             3 
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           1 
                           
                             
                               
                                 ( 
                                 
                                   2 
                                   ⁢ 
                                   π 
                                 
                                 ) 
                               
                               
                                 N 
                                 / 
                                 2 
                               
                             
                             ⁢ 
                             
                               σ 
                               η1 
                               
                                 * 
                                 N 
                               
                             
                           
                         
                         ⁢ 
                         
                           ⅇ 
                           
                             
                               - 
                               N 
                             
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             ⅇ 
                             
                               3 
                               / 
                               2 
                             
                           
                           2 
                         
                       
                     
                   
                 
                 
                   
                     
                       ∝ 
                         
                       ⁢ 
                       
                         
                           
                             Δ 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               a 
                               1 
                             
                           
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             Δμ 
                             1 
                           
                           
                             μ 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             Δσ 
                             η1 
                           
                           
                             σ 
                             
                               η1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               2 
                               ⁢ 
                               π 
                             
                             ) 
                           
                           
                             3 
                             / 
                             2 
                           
                         
                         ⁢ 
                         
                           
                             p 
                             * 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   a 
                                   1 
                                   * 
                                 
                               
                               , 
                               
                                 μ 
                                 1 
                                 * 
                               
                               , 
                               
                                 σ 
                                 η1 
                                 * 
                               
                               , 
                               
                                 M 
                                 1 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           ⅇ 
                           
                             3 
                             / 
                             2 
                           
                         
                         2 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 66 
                 ) 
               
             
           
         
       
     
   
   This is just like (63) except for the factor 
               ⅇ     3   /   2       2     ,         
which likely arises from the Stirling series.
 
   However, with both (38) and (63) calculated, (10) can be written quite neatly: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 H 
                                 1 
                               
                               | 
                               n 
                             
                             ) 
                           
                         
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 H 
                                 0 
                               
                               | 
                               n 
                             
                             ) 
                           
                         
                       
                       = 
                         
                       ⁢ 
                       
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 
                                   M 
                                   1 
                                 
                                 | 
                                 n 
                               
                               , 
                               
                                 t 
                                 0 
                               
                             
                             ) 
                           
                         
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 
                                   M 
                                   0 
                                 
                                 | 
                                 n 
                               
                               , 
                               
                                 t 
                                 0 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   M 
                                   1 
                                 
                               
                               , 
                               
                                 t 
                                 0 
                               
                             
                             ) 
                           
                         
                         
                           p 
                           ⁡ 
                           
                             ( 
                             
                               
                                 η 
                                 | 
                                 
                                   M 
                                   0 
                                 
                               
                               , 
                               
                                 t 
                                 0 
                               
                             
                             ) 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       ≈ 
                         
                       ⁢ 
                       
                         
                           
                             1 
                             
                               a 
                               
                                 1 
                                 max 
                               
                             
                           
                           ⁢ 
                           
                             1 
                             
                               μ 
                               
                                 1 
                                 max 
                               
                             
                           
                           ⁢ 
                           
                             1 
                             
                               σ 
                               
                                 η1 
                                 max 
                               
                             
                           
                           ⁢ 
                           
                             
                               
                                 
                                   ( 
                                   
                                     2 
                                     ⁢ 
                                     π 
                                   
                                   ) 
                                 
                                 
                                   3 
                                   / 
                                   2 
                                 
                               
                               ⁢ 
                               
                                 σ 
                                 η1 
                                 
                                   * 
                                   3 
                                 
                               
                             
                             
                               
                                 
                                   ( 
                                   
                                     2 
                                     ⁢ 
                                     
                                       N 
                                       3 
                                     
                                   
                                   ) 
                                 
                                 
                                   1 
                                   / 
                                   2 
                                 
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                               
                             
                           
                           ⁢ 
                           
                             1 
                             
                               
                                 
                                   ( 
                                   
                                     2 
                                     ⁢ 
                                     π 
                                   
                                   ) 
                                 
                                 
                                   N 
                                   / 
                                   2 
                                 
                               
                               ⁢ 
                               
                                 σ 
                                 η1 
                                 
                                   * 
                                   N 
                                 
                               
                             
                           
                           ⁢ 
                           
                             ⅇ 
                             
                               
                                 - 
                                 N 
                               
                               / 
                               2 
                             
                           
                         
                         
                           
                             1 
                             
                               μ 
                               
                                 0 
                                 max 
                               
                             
                           
                           ⁢ 
                           
                             1 
                             
                               σ 
                               
                                 η0 
                                 max 
                               
                             
                           
                           ⁢ 
                           
                             
                               2 
                               ⁢ 
                               
                                 πσ 
                                 η0 
                                 
                                   * 
                                   2 
                                 
                               
                             
                             
                               
                                 2 
                               
                               ⁢ 
                               N 
                             
                           
                           ⁢ 
                           
                             1 
                             
                               
                                 
                                   ( 
                                   
                                     2 
                                     ⁢ 
                                     π 
                                   
                                   ) 
                                 
                                 
                                   N 
                                   / 
                                   2 
                                 
                               
                               ⁢ 
                               
                                 σ 
                                 η0 
                                 
                                   * 
                                   N 
                                 
                               
                             
                           
                           ⁢ 
                           
                             ⅇ 
                             
                               
                                 - 
                                 N 
                               
                               / 
                               2 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             σ 
                             η1 
                             * 
                           
                           
                             
                               N 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 σ 
                                 x 
                                 2 
                               
                             
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             π 
                           
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               
                                 σ 
                                 η0 
                                 * 
                               
                               
                                 σ 
                                 η1 
                                 * 
                               
                             
                             ) 
                           
                           
                             N 
                             - 
                             2 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       ∝ 
                         
                       ⁢ 
                       
                         
                           
                             Δ 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               a 
                               1 
                             
                           
                           
                             a 
                             
                               1 
                               max 
                             
                           
                         
                         ⁢ 
                         
                           
                             2 
                             ⁢ 
                             π 
                           
                         
                         ⁢ 
                         
                           
                             ( 
                             
                               
                                 σ 
                                 η0 
                                 
                                   * 
                                   2 
                                 
                               
                               
                                 σ 
                                 η1 
                                 
                                   * 
                                   2 
                                 
                               
                             
                             ) 
                           
                           
                             
                               N 
                               - 
                               2 
                             
                             2 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 67 
                 ) 
               
             
           
         
       
     
   
   It depends on the amplitude of the peak like (α 1 *) N−2  when the window is on top of a peak, where σ η0 * 2 =σ s   2 ˜α 1 * 2 σ x   2 +σ η1 * 2 , while σ η1 * 2  is the best estimation of noise variance. It is important to note that only three calculations must ever be done as the window moves: 
   
     
       
         
           
             
               
                 
                   
                     s 
                     _ 
                   
                   = 
                   
                     
                       1 
                       N 
                     
                     ⁢ 
                     
                       
                         ∑ 
                         
                           i 
                           = 
                           1 
                         
                         N 
                       
                       ⁢ 
                       
                         s 
                         i 
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     σ 
                     s 
                     2 
                   
                   = 
                   
                     
                       1 
                       N 
                     
                     ⁢ 
                     
                       
                         ∑ 
                         
                           i 
                           = 
                           1 
                         
                         N 
                       
                       ⁢ 
                       
                         
                           ( 
                           
                             
                               s 
                               i 
                             
                             - 
                             
                               s 
                               _ 
                             
                           
                           ) 
                         
                         2 
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   
                     
                       
                         ( 
                         
                           s 
                           - 
                           
                             s 
                             _ 
                           
                         
                         ) 
                       
                       ⁢ 
                       
                         ( 
                         
                           x 
                           - 
                           
                             x 
                             _ 
                           
                         
                         ) 
                       
                     
                     _ 
                   
                   = 
                   
                     
                       1 
                       N 
                     
                     ⁢ 
                     
                       
                         ∑ 
                         
                           i 
                           = 
                           1 
                         
                         N 
                       
                       ⁢ 
                       
                         
                           ( 
                           
                             
                               s 
                               i 
                             
                             - 
                             
                               s 
                               _ 
                             
                           
                           ) 
                         
                         ⁢ 
                         
                           ( 
                           
                             
                               x 
                               i 
                             
                             - 
                             
                               x 
                               _ 
                             
                           
                           ) 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 68 
                 ) 
               
             
           
         
       
     
   
   2.2 Preliminary Results for Finding Peaks in Poisson Noise 
   2.2.1 Comparing Models 
   The basic logic is similar to the case of white Gaussian noise. The noise is white because the essence of the Poisson process is that we are counting discrete events that are uncorrelated. The probability that we observe n events in the time interval [t,t+Δt] is given by the single step Poisson distribution: 
                     p   1     ⁡     (     n   |   r     )       =           r   n     ⁢     ⅇ     -   r           n   !       .             (   69   )               
where r is the rate. We note that the expectation value of n is &lt;n&gt;=Σnp(n|r)=r. The rate will depend upon the local signal strength. If no signal is present (there is only dark current), then the rate will be denoted r 0 . The signal rides on top of the dark current and it is assumed that the local count rate is directly proportional to the signal:
   r   i   ≡r ( t   i )= r   0   +αx ( t   i )  (70) 
We can try to estimate both r 0  and a from the same data, or we can estimate r 0  from data taken either from a separate time series, or a region of the time series that is far from any peak.
 
   The likelihood function is then: 
                         p   ⁡     (       n   |   a     ,     r   0     ,   M     )       =       ∏     i   =   1     N     ⁢           ⁢         r   i     n   i       ⁢     ⅇ     -     r   i               n   i     !                     =       ∏     i   =   1     N     ⁢           ⁢           (       ax   i     +     r   0       )       n   i       ⁢     ⅇ     -     (       ax   i     +     r   0       )               n   i     !                     =       ⅇ     -     Nr   0         ⁢     ⅇ     -   a       ⁢       ∏     i   =   1     N     ⁢           ⁢         (       ax   i     +     r   0       )       n   i           n   i     !                         (   71   )               
where it is assumed that x i  has unit area:
 
   
     
       
         
           
             
               ∑ 
               
                 i 
                 = 
                 1 
               
               N 
             
             ⁢ 
             
               x 
               1 
             
           
           = 
           1. 
         
       
     
   
   First, let&#39;s consider the case where there is no peak in the window, only the dark current due to electronic fluxion. We may use a prior distribution 
   
     
       
         
           
             
               
                 
                   p 
                   ⁡ 
                   
                     ( 
                     
                       a 
                       , 
                       
                         
                           r 
                           0 
                         
                         | 
                         
                           M 
                           0 
                         
                       
                     
                     ) 
                   
                 
                 = 
                 
                   
                     δ 
                     ⁡ 
                     
                       ( 
                       a 
                       ) 
                     
                   
                   
                     2 
                     ⁢ 
                     
                       r 
                       max 
                     
                   
                 
               
             
             
               
                 ( 
                 72 
                 ) 
               
             
           
         
       
     
   
   Marginalizing the likelihood function over (α,r 0 ) gives: 
                         p   ⁡     (     n   |     M   0       )       =     ∫     ∫       p   ⁡     (       n   |   a     ,     r   0     ,     M   0       )       ⁢     p   ⁡     (     a   ,       r   0     |     M   0         )       ⁢     ⅆ   a     ⁢     ⅆ     r   0                         =     ∫     ∫       ⅇ     -     Nr   0         ⁢     ⅇ     -   a       ⁢       ∏     i   =   1     N     ⁢           ⁢           (       ax   i     +     r   0       )     ni         n   i     !       ⁢       δ   ⁡     (   a   )         2   ⁢     r   max         ⁢     ⅆ   a     ⁢     ⅆ     r   0                             =       1     2   ⁢     r   max     ⁢     ∏           ⁢       n   i     !           ⁢       ∫   0     r   max       ⁢       ⅇ     -     Nr   0         ⁢     r   0       ∑     i   =   t     N     ⁢     n   i         ⁢           ⁢     ⅆ     r   0                           (   73   )               
Change variable:
 
                     Nr   0     =   t     ⁢     
     ⁢       dr   0     =     dt   N       ⁢     
     ⁢       r   0     ∑     n   i         =       (     t   N     )       ∑     n   i                   (   74   )               
then
 
                         p   ⁡     (     n   |     M   0       )       =       1     2   ⁢     r   max     ⁢     ∏           ⁢       n   i     !           ⁢     ∫           ⅇ     -   t       ⁡     (     t   N     )           ∑     i   =   t     N     ⁢     n   i         ⁢       ⅆ   t     N                       =       1     2   ⁢     r   max     ⁢     N     1   +       ∑     i   =   1     N     ⁢     n   i           ⁢     ∏           ⁢       n   i     !           ⁢     ∫       ⅇ     -   t       ⁢     t       ∑     i   =   1     N     ⁢     n   i         ⁢     ⅆ   t                       =         (       ∑     i   =   1     N     ⁢     n   i       )     !       2   ⁢     r   max     ⁢     N     1   +       ∑     i   =   1     N     ⁢     n   i           ⁢     ∏           ⁢       n   i     !                         (   75   )               
Before moving on to compute the evidence assuming a peak is present in the window, we note we can do a parameter fitting on r 0 :
 
   
     
       
         
           
             
               
                 
                   
                     r 
                     ⋒ 
                   
                   0 
                 
                 = 
                 
                   
                     ∑ 
                     
                       n 
                       i 
                     
                   
                   N 
                 
               
             
             
               
                 ( 
                 76 
                 ) 
               
             
           
         
       
     
   
   This can now be used in the parameter fitting for the case there is a peak in the window. 
   We now consider how to detect a peak using a given peak shape. The model M 1  in this case is that, within the window, there is a peak in the presence of dark current: 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         p 
                         ⁡ 
                         
                           ( 
                           
                             n 
                             | 
                             
                               M 
                               1 
                             
                           
                           ) 
                         
                       
                       = 
                         
                       ⁢ 
                       
                         ∫ 
                         
                           ∫ 
                           
                             
                               p 
                               ⁡ 
                               
                                 ( 
                                 
                                   
                                     n 
                                     | 
                                     a 
                                   
                                   , 
                                   
                                     r 
                                     0 
                                   
                                   , 
                                   
                                     M 
                                     1 
                                   
                                 
                                 ) 
                               
                             
                             ⁢ 
                             
                               p 
                               ⁡ 
                               
                                 ( 
                                 
                                   a 
                                   , 
                                   
                                     
                                       r 
                                       0 
                                     
                                     | 
                                     
                                       M 
                                       1 
                                     
                                   
                                 
                                 ) 
                               
                             
                             ⁢ 
                             
                               ⅆ 
                               a 
                             
                             ⁢ 
                             
                               ⅆ 
                               
                                 r 
                                 0 
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         ∫ 
                         
                           ∫ 
                           
                             
                               ⅇ 
                               
                                 - 
                                 
                                   Nr 
                                   0 
                                 
                               
                             
                             ⁢ 
                             
                               ⅇ 
                               
                                 - 
                                 a 
                               
                             
                             ⁢ 
                             
                               
                                 ∏ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 
                                   
                                     
                                       ( 
                                       
                                         
                                           ax 
                                           i 
                                         
                                         + 
                                         
                                           r 
                                           0 
                                         
                                       
                                       ) 
                                     
                                     
                                       n 
                                       i 
                                     
                                   
                                   
                                     
                                       n 
                                       i 
                                     
                                     ! 
                                   
                                 
                                 ⁢ 
                                 
                                   1 
                                   
                                     
                                       r 
                                       max 
                                     
                                     ⁢ 
                                     
                                       a 
                                       max 
                                     
                                   
                                 
                                 ⁢ 
                                 
                                   ⅆ 
                                   a 
                                 
                                 ⁢ 
                                 
                                   ⅆ 
                                   
                                     r 
                                     0 
                                   
                                 
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       = 
                         
                       ⁢ 
                       
                         
                           1 
                           
                             
                               r 
                               max 
                             
                             ⁢ 
                             
                               a 
                               max 
                             
                             ⁢ 
                             
                               
                                 ∏ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 
                                   n 
                                   i 
                                 
                                 ! 
                               
                             
                           
                         
                         ⁢ 
                         
                           ∫ 
                           
                             ∫ 
                             
                               
                                 ⅇ 
                                 
                                   - 
                                   
                                     Nr 
                                     0 
                                   
                                 
                               
                               ⁢ 
                               
                                 ⅇ 
                                 
                                   - 
                                   a 
                                 
                               
                               ⁢ 
                               
                                 ∏ 
                                 
                                   i 
                                   = 
                                   1 
                                 
                                 N 
                               
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           
                             ( 
                             
                               
                                 ax 
                                 i 
                               
                               + 
                               
                                 r 
                                 0 
                               
                             
                             ) 
                           
                           
                             n 
                             i 
                           
                         
                         ⁢ 
                         
                           ⅆ 
                           a 
                         
                         ⁢ 
                         
                           ⅆ 
                           
                             r 
                             0 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 77 
                 ) 
               
             
           
         
       
     
   
   The integral in (77) is over the parameter plane (α, r 0 ), the term 
             ∏     i   =   1     N     ⁢           ⁢       (       ax   i     +     r   0       )       n   i             
is of problematic when the peak is comparable to dark current. However, as we are looking for strong evidences of peaks in the spectrum, and
 
             ∏     i   =   1     N     ⁢           ⁢       (       ax   i     +     r   0       )       n   i             
will be dominated by the peak even αx i  is just slightly larger than r 0  due the power of n i , and vice versa. Thus we can neglect a very narrow region close to the diagonal of ar 0 -plane, thereby approximating (77) as:
 
                       p   (       n   ⁢          M   1     )       ≈     p   (       n   ⁢          M   1   ′     )       =       ⁢       p   ⁢     (     ⁢   n   ⁢          only   ⁢           ⁢   a   ⁢           ⁢   peak   ⁢           ⁢   in   ⁢           ⁢   the   ⁢           ⁢   window     )       +                           ⁢     p   ⁢     (     ⁢   n   ⁢          only   ⁢           ⁢   dark   ⁢           ⁢   current   ⁢           ⁢   in   ⁢           ⁢   the   ⁢           ⁢   window     )                   =       ⁢       p   ⁢     (     ⁢   n   ⁢          only   ⁢           ⁢   a   ⁢           ⁢   peak   ⁢           ⁢   in   ⁢           ⁢   the   ⁢           ⁢   window     )       +                     ⁢     p   (     n   ⁢          M   0     )                       (   78   )               
where model M 1 ′ is an approximation of model M 1 : there is either only dark current or only a peak in the window. Hence the ratio in (10) becomes:
 
                       p   (       H   1     ⁢        n   )           p   (       H   0     ⁢        n   )           ≈       p   (     n   ⁢          M   1   ′     )           p   (     n   ⁢          M   0     )             =     1   +       p   (     n   ⁢          only   ⁢           ⁢   a   ⁢           ⁢   peak   ⁢           ⁢   in   ⁢           ⁢   the   ⁢           ⁢   window     )           p   (     n   ⁢          M   0     )                     (   79   )               
where p(n|only a peak in the window) can be computed with the same fashion as p(n|M 0 ), where only dark current is assumed in the window, but with a different prior:
 
                   p   ⁢     (     ⁢   a     ,         r   0     ⁢          only   ⁢           ⁢   peak     )       =       δ   ⁡     (     r   0     )         2   ⁢     a   max                   (   80   )               
This results in:
 
   
     
       
         
           
             
               
                 
                   p 
                   ⁢ 
                   
                     ( 
                   
                   ⁢ 
                   n 
                   ⁢ 
                   
                      
                     
                       only 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       a 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       peak 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       in 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       the 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       window 
                     
                     ) 
                   
                 
                 = 
                 
                   
                     
                       ( 
                       
                         ∏ 
                         
                           x 
                           i 
                           
                             n 
                             i 
                           
                         
                       
                       ) 
                     
                     ⁢ 
                     
                       
                         ( 
                         
                           ∑ 
                           
                             n 
                             i 
                           
                         
                         ) 
                       
                       ! 
                     
                   
                   
                     2 
                     ⁢ 
                     
                       
                         a 
                         max 
                       
                       ⁡ 
                       
                         ( 
                         
                           ∏ 
                           
                             
                               n 
                               i 
                             
                             ! 
                           
                         
                         ) 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 81 
                 ) 
               
             
           
         
       
     
   
   We are then ready to evaluate the ratio in (79). 
   2.2.2 Parameter Fitting 
   With above ratio (79) computed, if model M 1 ′ is more preferable, the parameter, i.e. the amplitude, can be estimated by maximizing the likelihood function (71), using the dark current estimated from the tail of the spectrum where there is no peak. The natural logarithm of likelihood function (71) is: 
                       L   =     log   ⁢           [     p   (     n   ⁢          a   ,       r   ⋒     0     ,     M   1       )       ]                   =       -     Nr   0       -   a   +     ∑       n   i     ⁢     log   ⁡     (         r   ⋒     0     +     ax   i       )           -     ∑       n   i     ⁢   log   ⁢           ⁢     (       n   i     !     )                         (   82   )               
To maximize it:
 
                     ∂   L       ∂   a       =         -   1     +     ∑       n   i     ⁢       x   i           r   ⋒     0     +     ax   i               =   0             (   83   )               
Note αx i &gt;&gt;{circumflex over (r)} 0  if there is a peak, the {circumflex over (r)} 0  in the denominator is then negligible, which results in:
 
   
     
       
         
           
             
               
                 
                   a 
                   0 
                 
                 ≈ 
                 
                   
                     ∑ 
                     
                       k 
                       = 
                       1 
                     
                     N 
                   
                   ⁢ 
                   
                     n 
                     k 
                   
                 
               
             
             
               
                 ( 
                 84 
                 ) 
               
             
           
         
       
     
   
   This is our best estimate of the amplitude of the peak. It should be noted that this approximation is not good for very small peaks. 
   3. Derivation of the Line Shape for TOF-SIMS Mass Peaks 
   The TOF-SIMS is a counting experiment and it (typically) counts the arrival times of one ion at a time. For any given ionization pulse, there will be only a few ions of a given mass that reach the detector. Hence, the eventual pulse shape will be the accumulation of many independent experiments, with the origin of time t=0 for each experiment being the arrival time of the beam pulse that initiates the ion formation. We consider a single ion of mass M that emerges from a typical beam pulse. After passing through what could be very complicated ion optics that performs charge/mass segregation, at a time t=t 1  (that is mass-dependent) this ion enters free flight with a velocity ν 0 , which is also mass-dependent. We assume the ion enters free flight at z=0 and travels a distance L to the detector along a linear trajectory z(t)=ν 0 (t−t 1 ). We then ask what the PDF of arrival times for this ion would be if the PDF in the particle phase space at time t 1  is
 
ƒ( z,ν*,t=t   1 )=ƒ 0 ( z ,ν)=δ( z ) g (ν).  (85)
 
Here, f(z,ν*,t)dzdν is the probability at time t that the particle lies in an infinitesimal neighborhood of the point (z, ν) in phase space and we allow for an uncertainty in the ions initial velocity, but g(ν) is assumed to be sharply peaked around ν 0 . For f to be a PDF we must have ∫dνg(ν)=1. This PDF evolves according to the Fokker-Planck equation, which in the present situation is simply
 
                         ∂   f       ∂   t       +     v   ⁢       ∂   f       ∂   z           =   0     ,           (   86   )               
implying that
 ƒ( z,ν*,t )=ƒ 0 ( z−νt ,ν)=δ( z −ν( t−t   1 )) g (ν).  (87) 
The PDF of arrival times at the detector placed at z=L is given by the flux of probability crossing this point, which is
 
                     P   ⁡     (   t   )       ⁢     ⅆ   t       =       ∫       ⅆ     v   ⁡     (     v   ⁢     ⅆ   t       )         ⁢     f   ⁡     (       z   =   L     ,     v   ;   t       )           =       L       (     t   -     t   1       )     2       ⁢     g   ⁡     (     L     t   -     t   1         )       ⁢       ⅆ   t     .                 (   88   )               
We suggest the use of a Gaussian for the velocity distribution g(ν) from maximum entropy arguments: when assigning a PDF for the outcome of what will be the single case of a repeated series of identical and independent experiments, one should choose that PDF which maximizes the number of possible outcomes that are consistent with the probability assignment. Thus, the choice of a Gaussian here is based on the desire to minimize bias in the outcome, not on physical arguments requiring ‘thermalization’ in the ionization process or the nature of the ion optics.
 
To summarize, our proposed peak (wavelet) shape is
 
   
     
       
         
           
             
               
                 
                   x 
                   ⁡ 
                   
                     ( 
                     
                       t 
                       ⁢ 
                       
                         ; 
                       
                       ⁢ 
                       M 
                     
                     ) 
                   
                 
                 = 
                 
                   
                     L 
                     
                       
                         ( 
                         
                           t 
                           - 
                           
                             
                               t 
                               1 
                             
                             ⁡ 
                             
                               ( 
                               M 
                               ) 
                             
                           
                         
                         ) 
                       
                       2 
                     
                   
                   ⁢ 
                   
                     
                       exp 
                       [ 
                       
                         - 
                         
                           
                             
                               ( 
                               
                                 
                                   L 
                                   
                                     t 
                                     - 
                                     
                                       
                                         t 
                                         1 
                                       
                                       ⁡ 
                                       
                                         ( 
                                         M 
                                         ) 
                                       
                                     
                                   
                                 
                                 - 
                                 
                                   
                                     v 
                                     0 
                                   
                                   ⁡ 
                                   
                                     ( 
                                     M 
                                     ) 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           
                             2 
                             ⁢ 
                             
                               
                                 σ 
                                 2 
                               
                               ⁡ 
                               
                                 ( 
                                 M 
                                 ) 
                               
                             
                           
                         
                       
                       ] 
                     
                     . 
                   
                 
               
             
             
               
                 ( 
                 89 
                 ) 
               
             
           
         
       
     
   
   4. Results on TOF-SIMS 
   TOF-SIMS is an abbreviation for Time-of-Flight Secondary Ionization Mass Spectrometer. It uses a high energy primary ion beam to probe the sample surface. Poisson noise is associated with this case. 
   Here we illustrate our results for finding peaks in a spectrum.  FIG. 2  shows the work flow for a TOF-SIMS mass spectrum (silver foil, gallium beam). In  FIG. 2   a , a segment of data containing only one peak from a spectrum is plotted. A window is then run through these data point by point with the ratio of two hypotheses (i.e., equation ((79)) being computed for each window, resulting in the curve shown in  FIG. 2   b . Meanwhile, the maximum likelihood estimation of amplitude and the maximized likelihood are also computed. The maximized likelihood is plotted as the curve in  FIG. 2   c . Then, a threshold is set (e.g., athreshold of 20 was used for the illustrated case) for the ratio with the points above this threshold being marked as dots in  FIG. 2   b . Points at corresponding positions are also marked in  FIG. 2   c . Of those dots in the likelihood plot, illustrated in  FIG. 2   c , only a fraction (i.e., the diamonds) are selected to fit locally to a parabola, from which the position of the peak is determined. Then the amplitude of the peak is chosen from the estimated amplitude according to the peak position. The peak so-determined is overlapped with the original data in  FIG. 2   d , but is scaled so that it can be fitted in to the panel. 
     FIG. 3  depicts a segment of a TOF-SIMS spectrum of angiotensin (silver foil, gallium beam), with the y-axis corresponding to counts and the x-axis corresponding to time points. The data segments shows four continuous peaks (corresponding to the raw data) arising from isotopes, along with the peaks identified after applying the methods of the invention. 
   The peak identification method described herein is potentially useful in any data set wherein peaks of interest are distinguished. The method described herein is useful for identifying peaks in data sets obtained from spectroscopy, including but not limited to various forms of absorption and emission spectroscopy, including absorption spectroscopy, UV/VIS spectroscopy, IR spectroscopy, X-ray spectroscopy, X-ray crystallography, Nuclear Magnetic Resonance spectroscopy (NMR), and raman spectroscopy. In particular, the methods described herein are useful for applications in mass spectroscopy, including TOF-SIMS and SELDI-MS. For example, the methods described herein are useful for analyzing TOF-SIMS mass spectroscopic data related to proteomics. The methods described herein are not limited to spectroscopic applications; for example, the methods are useful when used for imaging applications.