New HP 39gII programs on my web site


Hi All,

I have posted four articles about statistical regression calculations for the HP 39gII on my web site.




Very nice. Printed and to be studied in due course.

Should the 43S do statistics in a similar way -- i.e. storing the data as a matrix and doing matrix operations to interpolate etc? Or should we stick with the older fixed accumulation methods?

- Pauli


I think list based statistics are advantageous over summation as long as memory permits. We should consider a mechanism like in the high end pioneers (17b, 27s). Whether we use named lists or matrices is just a matter of taste. BTW, this would free another key location because entering sample data wouldn't need an extra key.


The advantage depends on the data editing features. OTOH, I'm quite content with the way the HP-42S or WP 34S handle this topic.



These really are excellent. Thank you!

I suspect we'll be using them in testing scripts for the system as they cover a lot of areas quite nicely.


The HP39gII programs that I posted show that the machine has a lot teeth to do powerful regression calculations.


I definitely agree. I'm toying with using the Eigen library for the 43S matrix support which provides lots of very easy to use options and includes least square solving, eigen vectors, SVD, decompositions etc. Writing robust and solid matrix code is very difficult.

- Pauli


Aside from function LSQ on the HP 39gII, I found Excel's LINEST function to be very powerful. I have also posted Excel VBA routines, on my web site, that perform calculations for best regression models using Excel's LINEST function. The function returns the regression coefficients, their standard errors, Rsqr, F statistic, and degrees of freedom. If you can mimic LINEST you have a real winner!!



I'm a little skeptical about performance and code size of C++ template based linear algebra code. Templates certainly have their place; I'm just not sure that this is it.

Is Eigen better than other open-source linear algebra libraries?


I too was very skeptical about performance and code size until I used Eigen for real problems. Its code size and speed aren't bad if it is applied sensibly and its ease of use is unparalleled in my experience. Compilation times do increase however -- but these can be mitigated by carefully selecting where the template library is actually compiled and linked against.

Time till tell I guess.

- Pauli


Thanks Namir. :) Much appreciation.

Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime: Lists in programs Alberto Candel 7 3,561 12-04-2013, 02:16 AM
Last Post: Alberto Candel
  Gathering USB dumps for Connectivity Kit <-> 39gII communication... debrouxl 2 1,673 12-01-2013, 12:59 PM
Last Post: Marcus von Cube, Germany
  New firmware for HP 39gII Mic 6 2,844 11-26-2013, 06:23 PM
Last Post: DeboT
  HP Prime: matrices in programs, in need of help Alberto Candel 9 3,273 11-26-2013, 01:33 AM
Last Post: cyrille de Brébisson
  Grouping programs on the HP Prime Michael de Estrada 11 3,801 11-04-2013, 01:38 PM
Last Post: Damien
  Transfering HP-85A Programs Gerry Schultz 5 2,612 10-17-2013, 12:30 PM
Last Post: Philip Reagan (Texas)
  HP Prime vs. 39gII Connectivity Kit Marcus von Cube, Germany 3 1,746 10-09-2013, 05:44 PM
Last Post: Marcus von Cube, Germany
  OT: a math competition site Pier Aiello 0 1,060 09-16-2013, 06:03 AM
Last Post: Pier Aiello
  WP-34S on German Auction Site Joerg Woerner 3 1,846 09-08-2013, 04:36 PM
Last Post: Maximilian Hohmann
  [HP 39Gii] - Bug report Jean-Michel 1 1,634 08-28-2013, 10:53 AM
Last Post: Tim Wessman

Forum Jump: