# Patent

## Title
Method to evaluate whether a time delay is better than a time limit

## Abstract

A method for testing the time delay error ratio ER of a device against a maximal allowable time delay error ratio ERlimit with an early pass and/or early fail criterion, whereby the early pass and/or early fail criterion is allowed to be wrong only by a small probability D. ns time delays TD of the device are measured, thereby ne bad time delays of these ns time delays TD are detected. PDhigh and/or PDlow are obtained, whereby PDhigh is the worst possible likelihood distribution and PDlow is the best possible likelihood distribution containing the measured ne bad time delays with the probability D. The average numbers of erroneous bits NEhigh and NElow for PDhigh and PDlow are obtained. NEhigh and NElow are compared with NElimit=ERlimit ns. If NElimit is higher than NEhigh or NElimit is lower than NElow the test is stopped.

## Background
The invention concerns a method to evaluate whether a time delay as an implementation dependent parameter is better than a statistically defined soft time limit. The invention is especially applied to a class of measurements measuring the delay time from a cell quality swap, generated by a system simulator, to the registration message, generated by the user equipment, a mobile station for example. In a mobile communication system the mobile station (user equipment) should make a cell reselection or handover to another base station of another communication cell if the quality of communication with the current base station of the current cell (cell quality) decreases and the communication quality with an other base station of an other cell increases over the quality of the current base station.
Such a soft handover handled by a mobile station in a communication system with several base stations for a mobile system of the third generation using Code Division Multiple Access (CDMA) is known from U.S. Pat. No. 5,267,261 for example.
The communication standard defines a maximum delay time from the swap cell quality until the time where the user equipment issues a registration message in order to register to the other base station. However, this time delay TD is not defined as a hard limit, i. e. the user equipment would not fail the test if the delay time exceeds the time limit only a single time, but is defined as a soft time limit, i. e. the user equipment shall fulfil the test requirement for a certain percentage (for example 90%) of the cases in repeated measurements. The pass fail decision of the test-equipment shall be done with a certain quality, for example 3% wrong decision risk.
From the present state of the art it is not known how to deal with such statistically defined soft time limits for repeated tests.
Such a test is time consuming. This is illustrated by the following example: The success ratio SR in this example is 90%. The time limit in this example is 8 s. Due to statistical significance it is not enough to observe 9 successes in 10 measurements. For statistical significance it is usual to observe 200*9 successes in 200*10 measurements. This test lasts 4.5 hours.
It is the object of the present invention to provide an effective method to make a pass fail decision, especially on repeated time delay measurements, against a statistically defined soft time limit.
It is further the object of the present invention to provide an effective method to make the pass fail decision in the minimum possible test time preserving the statistical significance.
The object is solved alternatively by the features of claim 1, 2, 7 or 8.
The depended claims concern further developments of the invention. Claims 20 to 23 cover the respective digital storage mediums computer program and computer program product.



The invention is further described with respect to the drawings. In the drawings
FIG. 1 shows the scenario of cell swap and measurement of delay time;
FIG. 2 shows a block diagram of the measurement set up;
FIG. 3 shows a diagram to illustrate the inventive method,
FIG. 4 shows the referenced Error Ratio ernorm as a function of the measured errors ne,
FIG. 5 shows a diagram to illustrate a measurement using a first embodiment of the inventive method,
FIG. 6 shows a diagram to illustrate a measurement using a second embodiment of the inventive method and
FIG. 7 shows a diagram illustrating the position at the end of the test using the first embodiment of the inventive method as a function of probability.



FIG. 1 shows the scenario of the swap and measurement of time delay. FIG. 2 shows the respective measurement set up.
A system simulator SS simulates the two cells cell 1 and cell 2 of a cellular mobile communication system. A User Equipment UE (mobile station) is registered to one of the cells of the cellular mobile communication system. The system simulator SS swaps the cell quality at specific cyclic time points T1 and T2. From time T1 until time T2 cell 1 has the better cell quality compared to cell 2. For example the field strength received by the User Equipment UE from cell 1 is 3 dB higher than received from cell 2. From T2 to T1 the cell quality of cell 2 is better as the cell quality of cell 1. The User Equipment UE should recognise the cell swap CS and should react to the cell swap CS by issuing a registration message RM. With the registration message RM the User Equipment UE registers to the cell serving with better cell quality. The User Equipment UE needs a specific time delay TD to evaluate and recognise the cell swap CS and to react thereon with the registration message RM. This time delay TD is measured for a specific number of tests by the system simulator SS and the result is transferred to the controller CO, as shown in FIG. 2. According to the inventive method the time delays TD are measured. Each time delay TD is hard decided, if it is worse or better than the time limit. Then it is evaluated whether the delays are better than the time-limit in 90% of the cases. After sufficient repetitions an overall pass fail decision with a wrong decision risk of e.g. 3% is done in a minimum possible test time.
The following realisation is exploited:
The occurrence of the bad delay in all delays, measured, is statistically independent, or can easily made statistically independent, by inserting sufficient recovery time after a registration event. Statistically independent events are determined by the binomial distribution for any error ratio. (Error Ratio ER=1−SR Success Ratio)
For small error ratios the binomial distribution is approximated by the Poisson distribution. The use of both distributions give meaningful results: The Poisson distribution give optimal results in terms of test time and statistical significance for small error ratios, and the Poisson distribution is well supported in mathematical software tools.
For high error ratios the Poisson distribution give sub-optimal results. The results are conservative in the sense: Test time is longer (worse) than optimal. Wrong decision risk is lower (better) than predefined.
The binomial distribution is optimal in terms of test time and statistical significance for any error ratio. However the binomial distribution is not so well supported in standard mathematical software tools. Both derivations are described in the following.
According to the present invention, the worst possible likelihood distribution PDhigh and/or the best possible likelihood distribution PDlow are obtained by the formulas given in claim 1 or 2 and 7 or 8, respectively. From these likelihood distributions, the average number NEhigh or NElow is obtained and compared with NElimit, respectively. If NElimit is higher than the average number NEhigh or smaller than the average number NElow, the test is stopped and it is decided that the device has early passed or early failed, respectively. During the test a single step wrong decision probability for a preliminary ER stage can be used, which is smaller than the probability for the entire test.
The Poisson distribution preferably used for the present invention, is best adapted to a small number of “bad delay times”. A “bad delay time” is defined as a delay time, exceeding the time limit. For example a measured time delay exceeding the time limit of 8 s would be a “bad time delay”, also referred to as an “error”. A measured time delay TD below the time limit, of for example 8 s, would be a “good time delay”.
In the following, a test procedure together with the early fail condition and the early pass condition is derived with mathematical methods.
The ER test procedure is an iterative process: The number ns of delays TD and the number of errors ne are accumulated from the beginning of the test to calculate a preliminary ER (Error Ratio). Time delays TD up to the next error are used together with the past time delays TD to calculate the next preliminary ER. Every preliminary ER is tested against an early pass or early fail bound. The formulas to derive an early pass or early fail condition contain a single step wrong decision probability D. This is valid only for one specific preliminary ER stage. However, it is meaningful to have a wrong decision probability F for the entire test (F>D). The application proposes to use a single step wrong decision probability D, which is smaller than the probability for the entire test and proposes a method to derive D from a given F.
Due to the nature of the test, namely discrete error events, the early stop conditions are declared not valid, when a fractional number of bad time delays<1 are used to calculate the early stop limits. The application contains proposals, how to conduct the test at this undefined areas. The proposals are conservative (not risky). A DUT on the ER-limit does not achieve any early stop condition. The application proposes to stop the test unconditioned at a specific number K (for example 200) bad time delays. As this proposal contains different measurement qualities, an additional proposal is made to overcome this drawback.
Based on a measurement at a preliminary ER stage pERs, a confidence range CR around this measurement is derived. It has the property that with high probability the real result can be found in this range.
The confidence range CR is compared with the specified ER limit. From the result a diagram is derived containing the early fail and the early pass condition.
With a finite number of delays ns, the final Error Ratio ER cannot be determined exactly. Applying a finite number of delays ns, a number of bad time delays ne is measured. ne/ns=er is the preliminary Error Ratio.
In a test at a preliminary ER stage pERs a finite number ns of measured time delays TD is applied, and a number of bad time delays ne is measured. ne is connected with a certain differential probability in the Poisson distribution. The probability and the position in the distribution conducting just one test at a preliminary ER stage pERs is not known.
Repeating this test infinite times, applying repeatedly the same ns, the complete Poisson distribution is obtained. The average number (mean value) of bad time delays is NE. NE/ns is the real ER at the DUT. The Poisson distribution has the variable ne and is characterised by the parameter NE, the average or mean value. Real probabilities to find ne between two limits are calculated by integrating between such limits. The width of the Poisson distribution increases proportional to SQR(NE), that means, it increases absolutely, but decreases relatively.
In a test at a preliminary ER stage pERs ns time delays TD are applied and ne bad time delays are measured. The result can be a member of different Poisson distributions each characterized by another parameter NE. Two of them are given as follows:
The worst possible distribution NEhigh, containing the measured ne with the probability D1, is given by the inverse cumulative operation




  
    
      
        
          D
          1
        
        =
        
          
            ∫
            0
            ne
          
          ⁢
          
            
              
                PD
                high
              
              ⁡
              
                (
                
                  ni
                  ,
                  
                    NE
                    high
                  
                
                )
              
            
            ⁢
            
              
            
            ⁢
            
              d
              ni
            
          
        
      
    
    
      
        (
        1
        )
      
    
  




In the example D1 is 0.002=0.2% PDhigh is the wanted Poisson distribution with the variable ni. ne is the measured number of bad time delays.

The best possible distributions NElow, containing the measured ne with the probability D2 is given by the inverse cumulative operation




  
    
      
        
          D
          2
        
        =
        
          
            ∫
            ne
            ∞
          
          ⁢
          
            
              
                PD
                low
              
              ⁡
              
                (
                
                  ni
                  ,
                  
                    NE
                    low
                  
                
                )
              
            
            ⁢
            
              
            
            ⁢
            
              d
              ni
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




In the example D2 is equal D1 and it is D=D1=D2=0.002=0.2%.

To illustrate the meaning of the range between NElow and NEhigh refer to FIG. 3. FIG. 3 shows the likelihood density PD as a function of the measured number of bad time delays ne. In the example, the actual detected number of bad time delays ne within the measured number ns of time delays TD is 10. The likelihood distribution of the bad time delays is not known. The worst possible likelihood distribution PDhigh under all possible likelihood distributions as well as the best possible likelihood distribution PDlow under all possible likelihood distributions are shown. The worst possible likelihood distribution PDhigh is characterized in that the integral from 0 to ne=10 gives a total probability of D1=0.002. The best possible likelihood distribution PDlow is characterized in that the integral from ne=10 to ∞ gives a total probability of D2=0.002. In the preferred embodiment D1 is equal to D2, i.e. D1=D2=0.002=0.2%. After having obtained the likelihood distribution PDhigh and PDlow from formulas (1) and (2), the average values or mean values NEhigh for the likelihood distribution PDhigh and NElow for the likelihood distribution PDlow can be obtained. The range between the mean values NElow and NEhigh is the confidence range CR indicated in FIG. 3.
In the case the measured value ne is a rather untypical result (in the example just 0.2% probability) nevertheless the real result NE can still be found in this range, called confidence range CR.
The probabilities D1 and D2 in (1) and (2) can be independent, but preferable they are dependent and equal (D=D1=D2).
For the Poisson distribution NElow and NEhigh are the result of the inverse cumulative operations above and are shown in formulas (3) and (4) respectively. The inputs are the number of bad time delays ne, measured in this test, and the probabilities D and C=1−D. The Output is NE, the parameter describing the average of the Poisson distribution.
The following example is illustrated in FIG. 3 (D=D1=D2):




  
    
      
        
          NE
          low
        
        =
        
          
            qchisq
            ⁡
            
              (
              
                D
                ,
                
                  2
                  ·
                  ne
                
              
              )
            
          
          2
        
      
    
    
      
        (
        3
        )
      
    
  
  
    
      
        
          NE
          high
        
        =
        
          
            qchisq
            ⁡
            
              (
              
                C
                ,
                
                  2
                  ·
                  ne
                
              
              )
            
          
          2
        
      
    
    
      
        (
        4
        )
      
    
  




Example:

    
    
        Number of bad time delays: ne=10
        Probability: D=0.002 C=0.998

Result:

        NElow=3.26
        NEhigh=22.98

Interpretation:

    
    


Having measured ne=10 bad time delays in a test with preliminary ER stage pERs, then at a low probability D=0.002 the average number of bad time delays NE in this test is outside the range from 3.26 to 22.98 or with a high probability C=0.998 inside this range from 3.26 to 22.98.
Such as the width of the Poisson distribution, the confidence range CR increases proportional to SQR(ne), that means, it increases absolutely, but decreases relatively.
If the entire confidence range CR, calculated from a single result ne, is found on the good side (NElimit>NEhigh) of the specified NElimit we can state: With high probability C, the final result NE is better than NElimit. Whereby NElimit is given by

NElimit=ERlimit·ns  (5)

and ERlimit is the Error Ratio allowable for the device and obtained by an ideal long test with an infinite high number ns of time delays TD.

If the entire confidence range CR, calculated from a single result ne, is found on the bad side (NElimit<NElow) of the specified NElimit we can state: With high probability C, the final result NE is worse than the ER-limit.
With each new time delay TD a new test is considered, reusing all former results. With each new test the preliminary data for ns, ne and er is updated. For each new test the confidence range CR is calculated and checked against NElimit.
Once the entire confidence range CR is found on the good side of the specified limit (NElimit>NEhigh), an early pass is allowed. Once the entire confidence range CR is found on the bad side of the specified limit (NElimit<NElow) an early fail is allowed. If the confidence range CR is found on both sides of the specified limit (NElow<NElimit<NEhigh), it is evident neither to pass nor to fail the DUT early.
FIG. 3 illustrates the above conditions. Of course, NElimit is a fixed value not altering during the test, but NElow and NEhigh as well as the confidence range CR are altering during the test. For reasons of illustration, however, the three possibilities of the possible positions of the confidence range CR with respect to the constant NElimit are drawn for the same example in FIG. 3.
The above can be described by the following formulas:
The current number ns of time delays TD is calculated from the preliminary Error Ratio er and the preliminary number of bad time delays ne

er=ne/ns  (6)

The specified ER expressed with number of time delays ns and number of bad time delays NE is

ERlimit=NElimit/ns  (7)

for abbreviation in the formula:

ernorm=er/ERlimit=ne/NElimit(normalised er)  (8)

Early pass stipulates:

NEhigh<NElimit  (9)

Early fail stipulates:

NElow>NElimit  (10)

Formula for the early pass limit:




  
    
      
        
          er
          norm
        
        =
        
          ne
          
            NE
            high
          
        
      
    
    
      
        (
        11
        )
      
    
  




This is the lower curve (ernormpass (ne, C)) in FIG. 4, which shows ernorm as a function of ne.
Formula for the early fail limit:




  
    
      
        
          er
          norm
        
        =
        
          
            ne
            
              NE
              low
            
          
          .
        
      
    
    
      
        (
        12
        )
      
    
  




This is the upper curve (ernormfail (ne, D)) in FIG. 4.

As the early pass limit is not defined for ne=0 (normally the case at the very beginning of the test for a good DUT), an artificial bad time delay event with the first measured time delay TD can be introduced. When the first real bad time delay event occurs, the artificial bad time delay is replaced by this real one. This gives the shortest possible measurement time for an ideal good DUT. For example ns=50 for ERlimit=0.1 and probability D=D1=D2=0.2%. (6 minutes 20 s)
As the early fail limit uses NElow<1 for small ne<k (in the example below k=5) due to a decision problem at a fractional error, the early fail limit at ne=k is extended with a vertical line upwards. This ensures that a very bad DUT hits the early fail limit in any case after a few delays, approx. 10 in the example (1 minute 20 s). In other words, the test is not stopped as long as ne is smaller than k.
With each new time delay TD a new test is considered, reusing all former results. With each new test the preliminary data for ns, ne and er and ernorm are updated and a ernorm/ne coordinate is entered into the ernorm-diagram. This is shown in FIG. 5. Once the trajectory crosses the early fail limit (ernorm (ne,D)) or the early pass limit (ernorm (ne,C)) the test may be stopped and the conclusion of early fail or early pass may be drawn based on this instant.
FIG. 5 shows the curves for early fail and early pass. ernorm is shown as a function of the number of bad time delays ne. For the simple example demonstrated in FIG. 5, it is ERlimit=0.2=1/5 and the final Error Ratio ER=0.25 (1/4). The test starts with the first time delay TD, for which no error (bad time delay) is detected. For the second time delay TD, a first error (bad time delay) is detected and the preliminary Error Ratio er=ne/ns=1/2 and ernorm=er/ERlimit becomes 1/2:1/5=5/2. ernorm after the second time delay TD is marked with a cross a in FIG. 5. For the third, fourth and fifth time delay TD, no further error (bad time delay) occurs and ernorm subsequently becomes 5/3, 5/4 and 5/5, respectively, which is marked with the crosses b, c and d in FIG. 5, respectively. The sixth time delay TD brings a new error (bad time delay) and ne becomes 2. Consequently, er=ne/ns becomes 2/6 and ernorm becomes 10/6. This situation is marked with cross e in FIG. 5. For the seventh, eighth and ninth delay TD, no further error (bad time delay) occurs and the situation after the seventh, eighth and ninth delay TD is marked with crosses f, g, h in FIG. 5, respectively. The tenth time delay TD brings a third error (bad time delay). Consequently, er becomes 3/10 and ernorm becomes 15/10. This situation is marked with cross i in FIG. 5. As can be seen from FIG. 5, the trajectory is between the early fail curve and the early pass curve at the beginning of the test, but converges to a line Z, which crosses the early fail curve after about forty errors. After forty errors, it can thus be decided that the tested DUT early fails the test.
The calculations above give optimal results in terms of test-time for small error ratios/high success ratios. If this is not the case, the approach with the Poisson distribution can be used nevertheless. For any error ratio/success ratio the binomial distribution is valid. The Poisson distribution is wider than the equivalent binomial distribution, hence the confidence range is wider, hence the space between the early pass and the early fail limit is wider, hence the result is not optimal in terms of test-time, but conservative is the following sense: the test-time is longer than optimal and the wrong decision risk is lower than predefined.
To get optimal results also for higher error ratios/lower success ratios the binomial distribution must be applied as follows:
The binomial distribution has the following form:

    dbinom (ne, ns, ER)

with

    ne: number of errors (bad time delays) detected,
    ns, number of time delays TD, measured, (ne/ns=preliminary error ratio er)
    ER: the mean value of the distribution is the error ratio


The worst possible distribution with respect to a measured er=ne/ns is defined by the inverse cumulative operation:




  
    
      
        D
        =
        
          
            ∫
            0
            ne
          
          ⁢
          
            
              dbinom
              (
              
                ni
                ,
                
                  n
                  ⁢
                  
                    
                  
                  ⁢
                  s
                
                ,
                
                  ER
                  high
                
              
              ⁢
              
                
              
              )
            
            ⁢
            
              d
              ni
            
          
        
      
    
    
      
        (
        13
        )
      
    
  




with

    D: wrong decision risk
    ni: integration variable
    ne: number of errors (bad time delays) currently detected, simultaneously integration limit
    ns: number of time delays TD, currently measured
    ERhigh: The parameter to be tuned, to make the integral consistent. This is the wanted value.


The result has the form: ERhigh=qbinom (C, ne, ns)
With C=1−D, the complementary wrong decision risk is equal to the confidence level.
The best possible distribution is defined by the inverse cumulative operation:




  
    
      
        D
        =
        
          
            ∫
            ne
            
              n
              ⁢
              
                
              
              ⁢
              s
            
          
          ⁢
          
            
              dbinom
              (
              
                ni
                ,
                
                  n
                  ⁢
                  
                    
                  
                  ⁢
                  s
                
                ,
                
                  ER
                  low
                
              
              ⁢
              
                
              
              )
            
            ⁢
            
              d
              ni
            
          
        
      
    
    
      
        (
        14
        )
      
    
  




with

    ne: number of errors (bad time delays) currently detected, simultaneously integration limit
    ns: number of time delays TD, currently measured, simultaneously integration limit
    ERlow: The parameter to be tuned, to make the integral consistent. This is the wanted value.


The result has the form: ERlow=qbinom (D,ne,ns)
Another inverse cumulative inversion, than the one above, is frequently offered with standard mathematical software tools. The form is similar: qbinom (D, at least one other parameters than above).
The confidence range is the range between ERhigh and ERlow. The normalized ernorm is the measured (preliminary) er=ne/ns divided by ERlimit 
Early pass stipulates:

ERhigh<ERlimit 

Early fail stipulates:

ERlow>ERlimit 

In analogy to the Poisson approach, the early fail limit is

ernorm fail=er/ERlow  (15)

The early pass limit is

ernorm pass=er/ERhigh  (16)

The following consideration is valid for both, the Poisson and the binomial approach:
If no early stop occurs the ER test may be stopped, after the following condition is valid:

ne>=K  (17)

and the DUT shall be passed, if ns is sufficiently high. K is a maximum number of errors (bad time delays). For example K can be 200.

If the trajectory neither crosses the early fail curve nor the early pass curve after K (for example 200) errors (bad time delays) have occurred, the DUT can be finally passed. If the DUT, however, is rather good or rather bad, the tests can be stopped much earlier, long before the K=200 errors (bad time delays) have occurred. This significantly shortens the total test time.
In the above embodiment early fail means: a DUT, which survived to certain preliminary ER stage, is failed and a probability of 0.2% that it is actually better than the ER-limit is accepted. Further early pass means: the DUT, which survived to certain preliminary ER stage, is passed and a probability of 0.2% that it is actually worse than the ER-limit is accepted. If the test is stopped at 200 errors (bad time delays) the DUT is passed without any early fail or early pass condition arbitrarily. It can cross the vertical 200 error line in FIG. 4 at different heights.
Each height is connected with a certain statistical interpretation: The probability to have a DUT better (worse) than the ER-limit is indicated in FIG. 7. The vertical in FIG. 7 shows the position in FIG. 4 at the end of the test. The horizontal line in FIG. 7 shows the respective probability. Hence such a test has different qualities, a better one at the early pass fail limits, and a worse and variable one at the unconditioned stop at 200 errors
The following embodiment overcomes this drawback and additionally accelerates the test. This is done by a meaningful redefinition of the early pass limit maintaining the early fail limit. Early pass means now: A DUT, which survived to certain preliminary ER stage, is passed and a probability of 0.2% that it is actually worse than M times the specified ER-limit (M>1) is accepted. This is a bad DUT ER-limit. This shifts the early pass limit upwards in FIG. 4 as shown in FIG. 6. ernorm pass (ne, C) in FIG. 4 becomes ernormbad pass (ne, C) in FIG. 6. ernorm fail (ne, D) remains unchanged. Now it is

NElimit,M=ERlimit·M·ns for Poisson

ERlimit,M=ERlimit·M for Binomial

and an early pass is allowed, if

NElimit·M=NElimit,M>NEhigh. (Poisson)

ERlimit·M=ERlimit,M>ERhigh (binomial)  (18)

There are three high level input parameters for the test:

    
    
        Specified error limit e.g. 10%
        Probability to make a wrong decision in the entire test (proposal: F=3%)
        Definition of a bad DUT (ERlimit·M)
    
    


From this the working parameters are derived:
D, the wrong decision risk for a single test step, is derived from F, the wrong decision risk for the entire test. The method to do this is described below.
With D the early pass and fail limits can be calculated according to formula 11, 12, 15, 16.
The intersection co-ordinates of the early pass and the early fail limit are the maximum number of errors (bad time delay) and the error ratio test limit TL (specified error limit<TL<M*specified error limit).
There are infinite possibilities to overcome the above mentioned drawback with different test qualities.
In the example above the open end between the pass fail-limits was originally declared pass, and time was saved by multiplying the early pass limit with M (M>1), shifting it upwards such that the early fail and the early pass curve intersect at 200 errors (200 bad time delays: example from above). Thus only a DUT, bad with high probability, is failed (customer risk).
The complementary method is: The open end between the early pass fail limits is declared fail, and time is saved by multiplying the early fail limit with m (0<m<1), shifting it downwards, such that the early fail and the early pass curve intersect at 200 errors (200 bad time delays: example from above). Thus only a DUT, good with high probability, is passed (manufacturer risk).
The compromise method is: The open end between the early pass fail limits is partitioned in any ratio: the upper part is declared fail and the lower part is declared pass. Time is saved by multiplying the early fail limit with m (0<m<1) and such shifting it downwards and by multiplying the early pass limit with M (M>1) and such shifting it upwards. So the early fail and the early pass curve intersect at 200 errors (200 bad time delays: example from above).
With given D1 and D2 the early fail curve and the early pass curves in FIG. 5 and FIG. 4 or FIG. 6 can be calculated before the test is started. During the test only ernorm=ne/NElimit (for binomial: ernorm=er/ERlimit) has to be calculated and to be compared with the early pass limit and the early fail limit as explained with respect to FIG. 5 and FIG. 6. Thus, no intensive calculation has to be done during the test.
D1 and D2 above describe the single step wrong decision probability for a DUT, which survived without early stop to a certain preliminary ER stage. For a real test it is desirable to define in advance a wrong decision probability F for the entire test. For every step a fraction of DUTs leave the statistical totality due to single step wrong decision probability D. This accumulates to an amount F>D.
It is proposed to derive D from F by the following method:
Based on statistical independence, a large ensemble of DUTs with ER on the ER-limit (limit-DUT) and with M*ER (bad DUT) is simulated and the entire test for the limit-DUT ensemble and the bad DUT ensemble is run by simulation against the early pass and early fail bound, with a free D-parameter (D1 and D2). The simulation will show, that a certain fraction F (D<F<1) of the large ensemble falsely fails (limit-DUT) or falsely passes (bad DUT). This represents the wrong decision probability F for the entire test. D is tuned such that F corresponds to the predefined wrong decision probability.
The initially mentioned wrong decision risk 3% corresponds, as a result of the simulation, the single step wrong decision risk of 0.2% applied in the formulas and figures.
In retrospect the distributions are not any more exact applying this simulation: Once a DUT leaves the statistical totality due to early fail or early pass, the subsequent distribution is changed. In so far the initially selected distribution has its intended validity only at the beginning of the test. Due to early passes and early fails the distribution is truncated more and more towards the end of the test. These truncated distributions cannot be handled anymore analytically, and so it is impossible to derive D from F analytically. It is possible to derive each subsequent distribution by numerical methods. Then it is possible to derive D from F numerically. In the above proposed process, just a unique, the initial distribution is applied as approximation instead of a set of correct distributions. With a set of correct distributions it is possible to calculate D from F by:

F=1−(1−D)ne  (19)

Generally it can be assumed:

F>D≧1−(1−F)1/ne  (20)

This formula can serve as an infimum for D, if the method is based on simulation using the initial distribution.

## Claims

1. A method for testing a time delay error ratio ER of a device against a maximal allowable time delay error ratio ERlimit with an early pass criterion, whereby the early pass criterion is allowed to be wrong only by a first probability D1, comprising the following steps:
measuring ns time delays (TD) of the device, thereby detecting ne bad time delays, which exceed a certain time limit, of these us time delays (TD),
estimating a likelihood distribution giving a distribution of a number ni of bad time delays in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    
      D
      1
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            high
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                high
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with the probability D1,
obtaining the average number NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit=ERlimit·ns,
if NElimit is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit is smaller than NEhigh continuing the test whereby increasing ns.

2. A method according to claim 1, wherein the likelihood distribution PDhigh (ni, NE) is a Poisson distribution.

3. A method according to claim 1, wherein the likelihood distribution PDhigh (ni, NE) is a binomial distribution.

4. A method according to claim 1, wherein, for avoiding an undefined situation for ne=0 starting the test with an artificial bad time delay ne=1, not incrementing ne when a first error occurs.

5. A computer readable medium having stored thereon program code for causing a programmable computer or digital signal processor to perform the method of claim 1.

6. A machine readable data carrier having stored thereon program code for causing a programmable computer or digital signal processor to perform the method of claim 1.

7. A method for testing a time delay error ratio ER of a device against a maximal allowable time delay error ratio ERlimit with an early pass criterion, whereby the early pass criterion is allowed to be wrong only by a first probability F1 for the entire test, comprising the following steps:
measuring ns time delays (TD) of the device, thereby detecting ne bad time delays, which exceed a certain time limit, of these ns time delays (TD),
estimating a likelihood distribution giving a distribution of a number ni of bad time delays in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    
      D
      1
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            high
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                high
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with a single step wrong decision probability D1 for a preliminary error ratio ER stage, whereby using a single step wrong decision probability D1 smaller than the probability F1 for the entire test,
obtaining the average number of NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit=ERlimit·ns,
if NElimit is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit is smaller than NEhigh continuing the test whereby increasing ns.

8. A method according to claim 7 wherein the single step wrong decision probability D1 is in the range of F1>D1≧1−(1−F1)1/ne.

9. A method for testing a time delay error ratio ER of a device against a maximal allowable time delay error ratio ERlimit with an early fail criterion, whereby the early fail criterion is allowed to be wrong only by a first probability D2, comprising the following steps:
measuring ns time delays (TD) of the device, thereby detecting ne bad time delays, which exceed a certain time limit, of these ns time delays (TD),
estimating a likelihood distribution giving a distribution of a number ni of bad time delays in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDlow from





  
    
      D
      2
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            low
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                low
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDlow is the best possible likelihood distribution containing the measured ne bad time delays with the probability D2,
obtaining the average number NElow of bad time delays for the best possible likelihood distribution PDlow,
comparing NElow with NElimit=ERlimit·ns,
if NElimit is smaller than NElow stopping the test and deciding that the device has early passed the test and
if NElimit is higher than NElow continuing the test whereby increasing ns.

10. A method according to claim 9, wherein the likelihood distribution PDlow (ni, NE) is a Poisson distribution.

11. A method according to claim 9, wherein the likelihood distribution PDlow (ni, NE) is a binomial distribution.

12. A method according to claim 9, wherein for avoiding a undefined situation for ne<k, wherein k is a number of bad time delays, not stopping the test as long as ne is smaller than k.

13. A method according to claim 9, characterized by an additional early pass criterion, whereby the early pass criterion is allowed to be wrong only by a first probability D1, further comprising:
estimating a likelihood distribution giving a distribution of a number of bad time delays ni in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    
      D
      1
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            high
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                high
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with the probability D1,
obtaining the average number NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit=ERlimit·ns,
if NElimit is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit is smaller than NEhigh continuing the test, whereby increasing ns.

14. A method according to claim 13, wherein the probability D1 for the wrong early pass criterion and the probability D2 for the wrong early fail criterion are equal (D1=D2).

15. A method according to claim 9, characterized by an additional early pass criterion, whereby the early pass criterion is allowed to be wrong only by first probability D1, further comprising:
estimating a likelihood distribution giving a distribution of the number of bad time delays ni in a fixed number of samples of time delays (TD) is PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    
      D
      1
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            high
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                high
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with the probability D1,
obtaining the average number NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit,M=ER limit·M·ns, where M is a variable with M>1,
if NElimit,M is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit,M is smaller than NEhigh continuing the test, whereby increasing ns.

16. A method according to claim 9, characterized by an additional early pass criterion, whereby the early pass criterion is allowed to be wrong only by a first probability F1 for the entire test, further comprising:
estimating a likelihood distribution giving a distribution of the number of bad time delays ni in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    D
    1
  
  =
  
    
      ∫
      0
      ne
    
    ⁢
    
      
        
          PD
          high
        
        ⁡
        
          (
          
            ni
            ,
            
              NE
              high
            
          
          )
        
      
      ⁢
      
        
      
      ⁢
      
        d
        ni
      
    
  




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with a single step wrong decision probability D1 for a preliminary error ratio ER stage, whereby using a single step wrong decision probability D1 smaller than the probability F1 for the entire test,
obtaining the average number of NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit=ERlimit·ns,
if NElimit is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit is smaller than NEhigh continuing the test, whereby increasing ns.

17. A method according to claim 16, wherein the probability F1 for the wrong early pass criterion and the probability F2 for the wrong early fail criterion are equal (F1=F2).

18. A method according to claim 9, characterized by an additional early pass criterion, whereby the early pass criterion is allowed to be wrong only by a first probability F1 for the entire test, further comprising:
estimating a likelihood distribution giving a distribution of the number of bad time delays ni in a fixed number of samples of time delays (TD) is PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDhigh from





  
    
      D
      1
    
    =
    
      
        ∫
        0
        ne
      
      ⁢
      
        
          
            PD
            high
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                high
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDhigh is the worst possible likelihood distribution containing the measured ne bad time delays with a single step wrong decision probability D1 for a preliminary error ratio ER stage, whereby using a single step wrong decision probability D1 smaller than the probability F1 for the entire test,
obtaining the average number NEhigh of bad time delays for the worst possible likelihood distribution PDhigh,
comparing NEhigh with NElimit,M=ERlimit·M·ns, where M is a variable with M>1,
if NElimit,M is higher than NEhigh stopping the test and deciding that the device has early passed the test and
if NElimit,M is smaller than NEhigh continuing the test, whereby increasing ns.

19. A method according to claim 9, wherein for avoiding a undefined situation for ne=0 starting the test with an artificial bad time delay ne=1 not incrementing ne when a first error occurs.

20. A computer readable medium having stored thereon program code for causing a programmable computer or digital signal processor to perform the method of claim 9.

21. A machine readable data carrier having stored thereon program code for causing a programmable computer or digital signal processor to perform the method of claim 9.

22. A method for testing a time delay error ratio ER of a device against a maximal allowable time delay error ratio ERlimit with an early fail criterion, whereby the early fail criterion is allowed to be wrong only by a first probability F2 for the entire test, comprising the following steps:
measuring ns time delays (TD) of the device, thereby detecting ne bad time delays, which exceed a certain time limit, of these ns time delays (TD),
estimating likelihood distribution giving a distribution of a number ni of bad time delays in a fixed number of samples of time delays (TD) as PD(ni, NE), wherein NE is the average number of bad time delays,
obtaining PDlow from





  
    
      D
      2
    
    =
    
      
        ∫
        ne
        ∞
      
      ⁢
      
        
          
            PD
            low
          
          ⁡
          
            (
            
              ni
              ,
              
                NE
                low
              
            
            )
          
        
        ⁢
        
          
        
        ⁢
        
          d
          ni
        
      
    
  
  ,




wherein PDlow is the best possible likelihood distribution containing the measured ne bad time delays with a single step wrong decision probability D2 for a preliminary error ratio ER stage, whereby using a single step wrong decision probability D2 smaller than the probability F2 for the entire test,
obtaining the average number of NElow of bad time delays for the best possible likelihood distribution PDlow,
comparing NElow with NElimit=ERlimit·ns,
if NElimit is smaller than NElow stopping the test and deciding that the device has early passed the test and
if NElimit is higher than NElow continuing the test whereby increasing ns.

23. A method according to claim 22, wherein the single step wrong decision probability D2 is in the range of F2>D2≧1−(1−F2)1/ne.