Notes
1Suppose the number of digits in c is 15, but the computer can store 16 digits. Then c will be padded with a zero in the sixteenth place. Suppose that a package can accurately compute that 16th place, and it is not zero. Then that package’s LRE will not be calculated as 15, even though it should be. Moreover, it may be calculated as less than 15, thus not properly reflecting the package’s accuracy. In most packages, correcting for this is both extremely tedious and unnecessary. Mathematica’s extreme accuracy makes this correction necessary. Fortunately, with Mathematica’s facilities for handling numbers, it is also easy.
2Rationals (e.g., “2”), are less susceptible to rounding error than Reals (e.g., “2.0”). Consider y1 = 1/3 * 3/5 * 5/7 and y2 = 1.0/3.0 * 3.0/5.0 * 5.0/7.0, y1 being Rational and y2 being Real, y1 is automatically reduced to 1/7 before being evaluated, and incurs only one numerical error in the sole division when finally evaluated. By contrast, y2 requires the evaluation of three divisions and two multiplications, and so is contaminated by five errors.
3Numerical analysis has standard definitions of “accuracy” and “precision” (Higham, 1996, p. 7). These definitions are based on a floating point arithmetic for which precision is fixed. However, Mathematica use a significance arithmetic in which precision is not fixed, and so needs alternative definitions for these important concepts. In Mathematica, “Accuracy” is the negative of the scale of the absolute error, and “Precision” is the negative of the scale of the relative error. These are not identical to, but are consistent with standard definitions.
4Since there is more than one definition of the autocorrelation function, it is important to use the same formula as NIST: \(r = \sum\nolimits_{i = 2}^n {({x_i} - \bar x)({x_{i - 1}} - \bar x)/} \sum\nolimits_{i = 1}^n {{{({x_i} - \bar x)}^2}} \).
7Note that the latter computation is N[1-…] and not 1 — N[…] so as to delay computation of the real value to the last possible moment and maximize the opportunity for symbolic calculation; though to no avail, in this case.
8In fact, Least SignificantByteFirst is hardware dependent rather than OS dependent, which is another reason to avoid writing binaries in the present case.
10available at www.wolfram.com/solutions/statistics/palette.html
11This is a very general procedure and can be applied to problems for which standard errors do not exist. Therefore it does not produce standard errors.
References
Acton, F. (1996), Real Computing Made Real: Preventing Errors in Scientific and Engineering Calculations, Princeton, NJ: Princeton U. Press
Altman, M. and M. McDonald (1999), “The Robustness of Statistical Abstractions: A Look ‘Under the Hood’ of Statistical Models and Software,” manuscript, Harvard-MIT Data Center
Anderson, E., Z. Bai, C. Bischof, J. Demmel, J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, S. Ostrouchov, and D. Sorenson (1995), LAPACK User’s Guide, 2e, Philadelphia: SIAM
Brown, B. W. (1998), DCDFLIB v1.1 (Double precision Cumulative Distribution Function LIBrary), at ftp://odin.mdacc.tmc.edu/pub/source
Higham, N. (1996), Accuracy and Stability of Numerical Algorithms, Philadelphia: SIAM Press
Hunka, S. (1997), ANOVA.NB
Hunka, S. (1999), “Assesing the Computational Accuracy in Statistical Packages: A Note on the Use of Mathematica,” mimeo, University of Alberta
Knüsel, L. (1989), Computergestützte Berechnung statisticher Verteilungen. Oldenburg, München-Wien. (English versions of the program and documentation at www.stat.uni-muenchen.de/∼knuesel/elv)
Knüsel, L. (1995), “On the Accuracy of Statistical Distributions in GAUSS,” Computational Statistics and Data Analysis, 20, 699–702
Knüsel, L. (1997a), “On the Accuracy of Statistical Distributions in S-Plus,” manuscript, Department of Statistics, University of Munich, available at www.stat.uni-muenchen.de/∼knuesel
Knüsel, L. (1997b), “Note on the Accuracy of Some Statistical Distributions in SAS,” manuscript, Department of Statistics, University of Munich, at www.stat.uni-muenchen.de/∼knuesel
Knüsel, L. (1998), “On the Accuracy of Statistical Distributions in Microsoft Excel 97,” Computational Statistics and Data Analysis, 26, 375–377
Knuth, D. (1997), The Art of Computer Programming, vol. 2: Seminumerical Algorithms, 3e, Reading, MA: Addison-Wesley
L’Ecuyer, P. (1992), “Testing Random Number Generators” in Proceedings of the 1992 Winter Simulation Conference, J. Swain, D. Goldsmith, R. Crain and J. Wilson, eds., NY: IEEE Press, 305–313
L’Ecuyer, P. (1998), “Random Number Generation,” chapter 4 in Handbook on Simulation, ed. J. Banks, New York: Wiley.
Marsaglia, G. (1996), DIEHARD: A Battery of Tests of Randomness, http://stat.fsu.edu/pub/diehard
Marsaglia, G. and A. Zaman (1991), “A New Class of Random Number Generators,” Annals of Applied Probability 1(3), 462–480
McCullough, B. D. (1998), “Asssessing the Reliability of Statistical Software: Part I,” The American Statistician, 52, 358–366
McCullough, B. D. (1999a), “Asssessing the Reliability of Statistical Software: Part II” The American Statistician, 53, 149–159
McCullough, B. D. (1999b), “The Reliability of Econometric Software: E-Views, LIMDEP, SHAZAM and TSP,” Journal of Applied Econometrics 14, 191–202
McCullough, B. D. (2000), “Experience with the StRD: Application and Interpretation,” in K. Berk and M. Pourahmadi, eds., Proceedings of the 31st Interface Conference, Fairfax, VA: Interface Foundation of North America. 15–21
McCullough, B. D. and H. D. Vinod (1999), “The Numerical Reliability of Econometric Software,” Journal of Economic Literature 37, 633–665
McCullough, B. D. and Berry Wilson (1999), “On The Accuracy of Statistical Procedures in Microsoft Excel 97,” Computational Statistics and Data Analysis 31 (1), 27–37
Ripley, B. D. (1987), Stochastic Simulation, New York: Wiley
Rogers, J., J. Filliben, L. Gill, W. Guthrie and E. Lagergren and M. Vangel (2000), “StRD: Statistical Reference Datasets for Assessing the Numerical Accuracy of Statistical Software,” NIST TN# 1396, National Institute of Standards and Technology, USA
Rose, C. and M. Smith (2000), Mathematical Statistics with Mathematica, New York: Springer-Verlag
Simon, S. D. and J. P. Lesage (1989), “Assessing the Accuracy of ANOVA Calculations in Statistical Software,” Computational Statistics and Data Analysis 8, 325–332
Sofroniou, M. (1996), “Numerics in Mathematica 3.0,” The Mathematica Journal 6(4), 64–73
Tezuka, S., P. L’Ecuyer, and R. Couture (1993), “On the lattice structure of add-with-carry and subtract-with-borrow random number generators”, ACM Trans on Modeling and Computer Simulation 3(4), 315–331
Vinod, H. D. (2000), “Review of GAUSS for Windows, Including Its Numerical Accuracy,” Journal of Applied Econometrics, in press
Wolfram, S. (1986), “Random Sequence Generation by Cellular Automata,” Advances in Applied Mathematics 7, 123–169
Wolfram, S. (1999), The Mathematica Book, 4e, New York: Cambridge University Press
Acknowledgements
The views expressed herein axe those of the author and do not necessarily reflect those of the Commission. Thanks for useful comments and suggestions are due to R. Ostermann and two anonymous referees, as well as D. Belsley, S. Hunka, L. Knüsel, and H. Varian. Thanks are also due to Wolfram Research for its cooperation, and to its employees for assistance, especially Ian Brooks. Any remaining errors are mine.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
McCullough, B.D. The accurary of Mathematica 4 as a statistical package. Computational Statistics 15, 279–299 (2000). https://doi.org/10.1007/PL00022713
Published:
Issue Date:
DOI: https://doi.org/10.1007/PL00022713