Thu 05 June 2014

Filed under R

Tags statistics R

I love R. But it does has some things that are a bit irksome. For example, I have found it somewhat difficult to remember which prefix corresponds to which function, when working with distributions.

Here is a quick quiz:

Given a binomial distribution:
dbinom ---> ?
pbinom ---> ?

  1. probability mass function
    cumulative distribution function

  2. cumulative distribution function
    probability mass function

Answer: 1

I am temped to choose 2, since pbinom feels like it should correspond with pdf. After all, ‘p’ is the first initial of the first word in the phrase “probability mass function.” However, that is not the case.


Wed 05 March 2014

Filed under R

Tags simulation R

Can the digits of Pi be used as a pesudorandom number generator?

Read More

Matt O'Brien (dot) Me © Matt O'Brien Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More