Intersection Algorithm - Method

Method

Given M intervals of the form c ± r (which means ), the algorithm seeks to find an interval with Mf sources. The value f is referred to as the number of falsetickers, those sources which are in error (the actual value is outside the confidence band). The best estimate is that which assumes the least number of falsetickers, f. The results will be considered valid if f < M/2, otherwise the algorithm will return failure instead of an interval.

The intersection algorithm begins by creating a table of tuples . For each interval there are three entries: the lower endpoint, the midpoint and the upper endpoint, labelled with types −1, 0 and +1 respectively. Thus the interval c ± r results in the entries <cr,−1>, <c,0> and <c+r,+1>. These entries are then sorted by offset.

Variables: This algorithm uses f as number of false tickers, endcount and midcount are integers. Lower and upper are values of offsets.

0) Start with f=0, assuming all input intervals are valid. Each time no interval is found f will be incremented until either an interval is found or fM/2.

1) endcount=0 and midcount=0.

2) Start at beginning of the list (lowest offset) consider each tuple in order. endcount = endcounttype. If endcountMf then lower = offset and goto step 3 because the (possible) lower endpoint has been found. If the type = 0 then midcount = midcount+1. Repeat with next tuple. If reach end of list then goto step 6.

3) set endcount=0.

4) Start from end of list and work towards lower offsets. endcount = endcount+type. If endcountMf then upper = offset, goto step 5. If type = 0 then midcount = midcount+1. Repeat for next tuple. If reach end of list then goto step 6.

5) if lowerupper and midcountf then return interval as resulting confidence interval.

6) f = f+1. If fM/2 then terminate and return FAILED, otherwise goto step 1.

Read more about this topic:  Intersection Algorithm

Famous quotes containing the word method:

    There is assuredly no more effectual method of clearing up one’s own mind on any subject than by talking it over, so to speak, with men of real power and grasp, who have considered it from a totally different point of view.
    Thomas Henry Huxley (1825–95)

    Methinks the human method of expression by sound of tongue is very elementary, & ought to be substituted for some ingenious invention which should be able to give vent to at least six coherent sentences at once.
    Virginia Woolf (1882–1941)

    Government by average opinion is merely a circuitous method of going to the devil; those who profess to lead but in fact slavishly follow this average opinion are simply the fastest runners and the loudest squeakers of the herd which is rushing blindly down to its destruction.
    Thomas Henry Huxley (1825–95)