OT: Tutorials for R statistical language


Hi All,

During the HHC2009 the subject of the open source statistical language R came up. I was surprised that a few attendees were as gong ho about R as I was.

I have posted several tutorials for R on my website (namirshammas[[[dot]]]com). Click on the bottom most link in the main page and you will see the R Master Page with the list of tutorials. All but one link will let you download pdf files.

One of the tutorial deals with automatic best linearized regression model selection for two variables and multiple variables. In the tutorial I mention that the concept of best-model search is inspired by vintage programmable HP calculators. If you tinker in R, I recommend that you check that one and of course the other tutorials too.


Edited: 23 Oct 2009, 4:11 p.m.


You are a gentleman and a scholar, Sir!

I'm a moderate R user and have been having some problems with plotting, so I'll be starting straight away with your R 102 Plotting Tutorial.

Thanks for the link!


--- Les



You are most welcome Les!



I also posted a short PDF file on my web site that has new approximations I was able to obtain for the inverse Normal, Student-t, Chi-square, and F probability distributions. You can find the pdf file when you click here to get to the New Algorithms page and then click on the related link.

The approximations for the inverse probability distributions are shorter than the legacy ones you find in the Handbook of Mathematical Functions and can easily be programmed on your calculators.



Thanks for this. Very interesting. No error estimate though :-( I only recently did the 20b scientific probability distributions and the inverses were a major pain. I ended up using the solver code and the cumulative distributions for all the hard cases. Since these functions are relatively well behaved, convergence seems to be fairly quick but I might look into your estimates as better starters...

- Pauli


I remember I was demanding on these equations. I would be very curious as to what your test comes up with.




You don't happen to have any good, simple approximations for binomial and Poisson cumulative do you? I am aware of the incomplete beta method, which is actually the method used to calculate most of the stat distros and inverses in the 20b, but nothing that is really simple and quick for general usage. I've seen several that do a good job over specific ranges, but I haven't seen one the works decently over the whole range.



For Binomial and Poisson you could also sum the individual probabilities directly.

However, I'd go with the regularised incomplete beta and gamma functions for most of the common probability distributions. There are relatively short and quickly converging iterative methods for both.

The inverses aren't so nice :-(

- Pauli


Yeah, summing directly works great until you start getting large Ns. Of course you can just use an approximated normal at that point. . .


Possibly Related Threads...
Thread Author Replies Views Last Post
  Tutorials #5 (STARTAPP, RGB) and #6 (Subroutines) Are Up Eddie W. Shore 0 619 11-17-2013, 04:23 PM
Last Post: Eddie W. Shore
  Best statistical fit Richard Berler 8 1,811 10-30-2013, 11:25 PM
Last Post: Walter B
  HP Prime Tutorials Paul D. Fox 6 1,507 10-06-2013, 02:17 PM
Last Post: Tim Wessman
  HP 39gii Tutorials Parts 1 and 2 up Eddie W. Shore 3 1,137 03-11-2013, 07:43 AM
Last Post: Herman T
  Statistical Question Namir 3 962 12-22-2012, 03:39 AM
Last Post: Bruce Larrabee
  HP 75 Assembly Language Michael Fehlhammer 7 1,646 10-01-2012, 08:32 AM
Last Post: Michael Fehlhammer
  Survey: Best programming language for next-gen HP? Oliver Unter Ecker 32 5,700 06-06-2012, 03:22 PM
Last Post: David Hayden
  HP-17B Language selection disappeared. Kees van der Sanden 10 1,943 02-13-2012, 10:51 PM
Last Post: bill platt
  Calculator natural language user interface Donald Williams 12 2,294 01-07-2012, 09:45 AM
Last Post: Vince (Italy)
  Second Installment of RPL Tutorials (beginners) Eddie W. Shore 2 885 10-15-2011, 12:38 AM
Last Post: Eddie W. Shore

Forum Jump: