Debian Codegraph @

tests/README

raw
1 Here's a checker program that runs libgretl against the NIST reference
2 datasets for linear regression, for details on which see
3
4 http://itl.nist.gov/div898/strd/general/main.html
5
6 The checker validates libgretl and (if available) the gretl multiple
7 precision plugin.
8
9 And there's a sub-dir named nist-nls with a rig for checking gretl's
10 nonlinear regression code against the NIST reference datasets.
11
12 NIST Results with libgretl
13 ==========================
14
15 If all is well there should be no failures on the 11 NIST tests.
16
17 The checker program reads the "certified values" and data out of each
18 NIST file, runs a regression using libgretl, and compares the libgretl
19 estimates with the certified values, starting at a precision of 9
20 significant figures. If there is any disagreement, the comparison is
21 repeated using 8 significant figures, and so on. If the figures do
22 not agree at a precision of at least 6 figures, the test is deemed to
23 have been failed and an error message is printed.
24
25 You can get more details on gretl's performance on the tests by
26 running the 'nistcheck' program in verbose mode (-v flag) or very
27 verbose mode (-vv).
28
29 NIST Results with multiple precision plugin
30 ===========================================
31
32 If the Gnu Multiple Precision library (GMP) was detected when gretl
33 was configured, and gretl's GMP plugin was built, then each NIST test
34 will be repeated using the plugin. All tests should give results
35 that agree with the NIST certified values to at least 12 significant
36 figures.
37
38 Note that the test data sets Wampler1 and Wampler2 give, by
39 construction, an exact polynomial fit. This is difficult to
40 reproduce. If you run the checker program in verbose mode you will
41 see that instead of standard errors of precisely zero, values around
42 10^{-39} are reported. You can, however, drive these to zero by
43 raising the precision used in the calculations. The default for
44 gretl's multiple precision plugin is to assign 256 bits for the
45 representation of each floating point number, which is enough for most
46 purposes. You can increase this value by setting the environment
47 variable GRETL_MP_BITS, for example:
48
49 GRETL_MP_BITS=4096 ./nistcheck -v
50
51 Allin Cottrell
52 last updated April 2011