Publications by xi'an

R-ecap [-16]

26.03.2011

This morning, I noticed that none of my R related posts had appeared on R-bloggers for the past fortnight… After investigating, this was caused by…cut-and-paste! Indeed, when advertising about the special issue of TOMACS Arnaud Doucet and I edit about Monte Carlo methods in Statistics, I copied the main parts from the pdf announcement, straig...

1331 sym 18 img

R [re-]exam

27.03.2011

In what seems like an endless cuRse, I found this week I had to re-grade a dozen R exams a TA’s did not grade properly! The grades I (X) got are plotted below against those of my TA (Y). There is little connection between both gradings… As if this was not enough trouble, I also found exactly duplicated R codes in another R project around Intr...

1263 sym 20 img

Time series

28.03.2011

(This post got published on The Statistics Forum yesterday.) The short book review section of the International Statistical Review sent me Raquel Prado’s and Mike West’s book, Time Series (Modeling, Computation, and Inference) to review. The current post is not about this specific book, but rather on why I am unsatisfied with the textbooks in...

3378 sym 22 img

Le Monde puzzle [#8]

29.03.2011

Another mathematical puzzle from Le Monde that relates to a broken calculator (skipping the useless tale): Given a pair of arbitrary positive integers (x,y) a calculator can either substract the same integer [lesser than min(x,y)] from both x and y or multiply either x or y by 2. Is it always possible to obtain equal entries by iterating calls t...

1341 sym R (775 sym/2 pcs) 16 img

When Buffon meets Bertrand

06.04.2011

When Peter Diggle gave his “short history” of spatial statistics this morning (I typed this in the taxi from Charles de Gaulle airport, after waiting one hour for my bag!), he started with a nice slide about Buffon’s needle (and Buffon’s portrait), since Julian Besag was often prone to give this problem as a final exam to Durham students ...

2546 sym 20 img

Buffon versus Bertrand in R

07.04.2011

Following my earlier post on Buffon’s needle and Bertrand’s paradox, above are four outcomes corresponding to four different generations (among many) of the needle locations. The upper right-hand side makes a difference in the number of hits (out of 1000). The R code corresponding to this generation was made in the métro, so do not expect su...

957 sym Python (1928 sym/2 pcs) 18 img

Mixtures in Madrid

10.04.2011

As I already did two years ago, in connection with the double degree between UAM and Dauphine, I will give a short graduate course at the Universidad Autonoma de Madrid (UAM). It will be part of the regular fourth year statistics course and will focus on mixtures, as given in of Bayesian Core. It will take place on the afternoons of April 12 and ...

963 sym 18 img

Le Monde puzzle #13

13.04.2011

This week, Le Monde offers not one but three related puzzles: Is it possible to label the twelve edges of a cube by consecutive numbers such that the sum of the edge numbers at any of the eight nodes is constant? Is it possible to label the eight nodes of a cube by consecutive numbers such that the sums of the node numbers over the edges are all...

2009 sym R (754 sym/3 pcs) 16 img

Mixtures in Madrid (3)

14.04.2011

For my second lecture today, I need to plot a likelihood surface for a basic two-component mixture with only the means unknown: here is the R code to speed up things llsurf=function(trumyn=2.,wayt=.3,var2=1.,ssiz=500){ # draws the log-likelihood surface and a random sample sd2=sqrt(var2) parti=(runif(ssiz)>wayt) sampl=(1-parti)*rnorm(ssiz)+parti*...

704 sym R (670 sym/1 pcs) 18 img

Thomas Bayes, 250 years later

21.04.2011

A link on R-bloggers signaled a series of blogs and videos by IBM Netezza about Thomas Bayes and the consequences of his theorem. Which made me realise this was indeed the 250th anniversary of his death, and that maybe we (as a collective, incl. ISBA) should have done something on April 17th… Before the Revolution Analytics announcement, only t...

1308 sym 18 img