R-english

MAT8886 the Dirichlet distribution

February 15, 2012 | arthur charpentier

In the course, still introducing some concept of dependent distributions, we will talk about the Dirichlet distribution (which is a distribution over the simplex of ). Let denote the Gamma distribution with density (on ) Let denote independent... [Read more...]

It is "simply" the average value

January 24, 2012 | arthur charpentier

for some obscure reasons, simple things are usually supposed to be simple. Recently, on the internet, I saw a lot of posts on the "average time in which you hold a stock", and two rather different values are mentioned "Take any stock in the United ... [Read more...]

Even odds

January 22, 2012 | arthur charpentier

This evening, I found a nice probabilistic puzzle on http://www.futilitycloset.com/ "A bag contains 16 billiard balls, some white and some black. You draw two balls at the same time. It is equally likely that the two will be the same color as diff... [Read more...]

Gold price and fear

January 18, 2012 | arthur charpentier

Via @theEconomist, I understood that there might be connections between the price of Gold (which is said to be extremely high nowadays) and the VIX SP500 index (the option volatility index, i.e. the so-called "fear index", as discussed - in French-... [Read more...]

Infidelity and econometrics

January 17, 2012 | arthur charpentier

On http://www.bakadesuyo.com, there was recently an interesting discussion about infidelity, the key question being "at what ages are men and women most likely to have affairs?" The discussion is based on some graphs, e.g. The source is a paper b... [Read more...]

Maps with R, and polygon boundaries

December 21, 2011 | arthur charpentier

With R, it is extremely easy to draw maps. Let us start with something simple, like French regions. Baptiste mentioned on his blog that shapefiles can be downloaded from http://ign.fr/ website. Hence, if you extract the zip file, it is possible to ... [Read more...]

Consecutive number and lottery

October 25, 2011 | arthur charpentier

Recently, I have been reading odd things about strategies to win at the lottery. E.g. or I wrote something a long time ago, but maybe it would be better to write another post. First, it is easy to get data on the French lotteries, including dra... [Read more...]

vectorplot in rasterVis

October 2, 2011 | Oscar Perpiñán Lamigueiro

The function slopeAspect from raster provides the vector field (gradient) from a scalar field stored in a RasterLayer object. The magnitude (slope) and direction (aspect) of the vector field is usually displayed with a set of arrows (e.g. quiver in Matlab). rasterVis includes now a method, vectorplot, to calculate ... [Read more...]
1 2 3 4 5 7

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)