We provide a fast algorithm to calculate the m-dimensional distance histogram on which Brock, Dechert, and Sheinkman's (1987) BDS-type statistics are based. The algorithm generalizes a fast algorithm due to LeBaron by calculating the histogram for any finite set of distances simultaneously, and also using induction in m. By reordering the calculation appropriately, the algorithm also requires less memory and time. The two algorithms are compared using LeBaron's MS-DOS implementation in C and our Delphi (Windows Pascal) program. The generalized algorithm is faster when more than a few values of m and M (the distance parameter) are required, and is set up to calculate up to 255 values using short-integer arithmetic.
Download Info
To download:
If you experience problems downloading a file, check if you have the
proper application to
view it first. Information about this may be contained
in the File-Format links below. In case of further problems read
the IDEAS help
file. Note that these files are not on the IDEAS
site. Please be patient as the files may be large.
As the access to this document is restricted, you may want to look for a different version under "Related research" (further below) or search for a different version of it.
References listed on IDEAS Please report citation or reference errors to , or , if you are the registered author of the cited work, log in to your RePEc Author Service profile, click on "citations" and make appropriate adjustments.: