Monthly Archives: December 2010

Finding roots of functions in actuarial science

December 7, 2010
By
Finding roots of functions in actuarial science

The following simple code can be used to find roots of functions (based on the secant algorithm), secant=function(fun, x0, x1, tolerence=1e-07, niter=500){for ( i in 1:niter ) { x2 <- x1-fun(x1)*(x1-x0)/(fun(x1)-fun(x0)) if (abs(fun(x2)) < to...

Read more »

Kendall Rank Coefficient by GPU

December 7, 2010
By
Kendall Rank Coefficient by GPU

The correlation coefficient is a measurement of correlation between two random variables. While its computation is straightforward, it is not readily applicable to non-parametric statistics. read more

Read more »

Webinar: Revolution R is 100% R and More

December 7, 2010
By

I'll be hosting a webinar tomorrow (Wednesday) aimed at R users who want to know more about how Revolution R Enterprise extends open source R for big data, Web services, multi-core processing, debugging and more. For R users at schools and universities, I'll also explain how you can download and use Revolution R Enterprise free of charge. The full...

Read more »

Webinar: Revolution R is 100% R and More

December 7, 2010
By

I'll be hosting a webinar tomorrow (Wednesday) aimed at R users who want to know more about how Revolution R Enterprise extends open source R for big data, Web services, multi-core processing, debugging and more. For R users at schools and universities, I'll also explain how you can download and use Revolution R Enterprise free of charge. The full...

Read more »

Sequential Line Plots in R

December 7, 2010
By
Sequential Line Plots in R

I was trying to create some sequential plots today in R to analyse some MCMC simulations. I found the par(ask=TRUE) command very useful for looking at iterations of individual parameter values. Setting the ask graphical parameter to TRUE (before a … Continue reading →

Read more »

Webinar on Revolution R Enterprise

December 7, 2010
By

R evangelist David Smith, marketing VP at Revolution R, will be giving a webinar showing off some of the finer features of Revolution R Enterprise - an integrated development environment (IDE) for R that has an enhanced script editor with syntax highli...

Read more »

Statistique de l’assurance STT6705V, partie 12 bis

December 7, 2010
By
Statistique de l’assurance STT6705V, partie 12 bis

In the previous post (here) discussing forecasts of actuarial quantities, I did not mention much how to forecast the temporal component in the Lee-Carter model. Actually, many things can be done. Consider here some exponential smoothing techniques ...

Read more »

Le Monde puzzle [49]

December 7, 2010
By
Le Monde puzzle [49]

Here is a quick-and-dirty solution to Le Monde puzzle posted a few days ago: the R code counts the number of winning tickets between 1 and N, and stops when there is a proportion of 10% of winning tickets. #winning ticket win=function(n){ #decimal digits decomposition x=rep(0,4) x=n%%10 m=(n-x)/10 x=m%%10 m=(m-x)/10 x=m%%10 m=(m-x)/10 x=m%%10 tic=0 for

Read more »

highlight 0.2-5

December 7, 2010
By

I pushed highlight 0.2-5 on CRAN. This release improves the latex renderer and the sweave driver so that multiple lines character strings are properly rendered. This example vignette shows it: \documentclass{report} \begin{document} <<echo=FALSE,results=hide>>= old.op <- options( prompt = " ", continue = " " ) @ <<>>= require( inline ) require( Rcpp ) convolve <- cxxfunction( signature( a = "numeric", b...

Read more »

R 2.12.1 scheduled for December 16

December 6, 2010
By

The next update to R will be a patch release: R 2.12.1 will be released on December 16, as announced today by the R Core Team. As is typical for a patch release, this version will include some minor bug fixes plus a few new features (from the current build's NEWS file): The DVI/PDF reference manual now includes the...

Read more »