Re: interest rates

2007-02-09 Thread Prof J C Nash
The important issue is what conventions are used for time and rate. About 25 years ago I tried to get information on this from Canadian banks. Some were cooperative. As I recall, the three that responded used three DIFFERENT rules. This was for weekly payment mortgages. In Canada, there is a

Re: Median: Oasis and Fast Sorting Algorithm

2007-02-09 Thread Leonard Mada
Well, the OASIS formula has a big problem with situations like the following: data set is: 1,1,1. So the list contains 4 values of 1. So, the median is the middle value, BUT there is really just one value repeated 3 times. Or consider the following list: 1, 2, 2, 2, 3, 4. So the calculation of

Re: Median: Oasis and Fast Sorting Algorithm

2007-02-09 Thread John Machin
On 10/02/2007 10:10 AM, Leonard Mada wrote: Well, the OASIS formula has a big problem with situations like the following: data set is: 1,1,1. So the list contains 4 values of 1. Looks like 3 to me, not 4. One of us has a big problem with the counting algorithm :-) So, the median is the

Re: Median: Oasis and Fast Sorting Algorithm

2007-02-09 Thread Morten Welinder
The finding on the k-largest element in an unordered sequence of n elements is a linear-time and (if memory serves) constant-space problem in terms of n. See Knuth for details. The trouble with the algorithm is that it is rather complicated. More code means more chances of bugs. Unless you are