Articles by arthur charpentier

Non-observable vs. observable heterogeneity factor

September 11, 2013 | arthur charpentier

This morning, in the ACT2040 class (on non-life insurance), we’ve discussed the difference between observable and non-observable heterogeneity in ratemaking (from an economic perspective). To illustrate that point (we will spend more time, later on, discussing observable and non-observable risk factors), we looked at the following simple example. Let  ... [Read more...]

Linear regression from a contingency table

September 7, 2013 | arthur charpentier

This morning, Benoit sent me an email, about an exercise he found in an econometric textbook, about linear regression. Consider the following dataset, Here, variable X denotes the income, and Y the expenses. The goal was to fit a linear regression (actually, in the email, it was mentioned that we ... [Read more...]

R, Twitter and URLs

August 26, 2013 | arthur charpentier

Yesterday evening, I wanted to play with Twitter, and see which websites I was using as references in my tweets, to get a Top 4 list. The first problem I got was because installing twitteR on Ubuntu is not that simple ! You have to install properly RCurl… But you before install ... [Read more...]

Residuals from a logistic regression

August 23, 2013 | arthur charpentier

I always claim that graphs are important in econometrics and statistics ! Of course, it is usually not that simple. Let me come back to a recent experience. A got an email from Sami yesterday, sending me a graph of residuals, and asking me what could be done with a graph ... [Read more...]

Visualizing densities of spatial processes

June 11, 2013 | arthur charpentier

We recently uploaded on http://hal.archives-ouvertes.fr/hal-00725090 a revised version of our work, with Ewen Gallic (a.k.a. @3wen) on Visualizing spatial processes using Ripley’s correction: an application to bodily-injury car accident location In this paper, we investigate (and extend) Ripley’s circumference method to correct ...
[Read more...]

How old is the oldest person you know?

June 4, 2013 | arthur charpentier

Last week, we had a discussion with some colleagues about the fact that – in order to prepare for the SOA exams – we did not have time (so far) to mention results on extreme values in our actuarial program. I did gave an introduction in my nonlife actuarial models class, but ... [Read more...]

Are parallel computations worth it ?

May 31, 2013 | arthur charpentier

Yesterday, Daniel Marcelino published an interesting post on his blog, untitled Parallel Processing: When does it worth ? I was asking myself the same question for a chapter I am currently writing. And I did like his approach, so I tried, on my computer to do the same. I did use ... [Read more...]

Playing cards in Vegas?

May 19, 2013 | arthur charpentier

In a previous post, a few weeks ago, I mentioned that I will be in Las Vegas by the end of July. And I took the opportunity to write a post on roulette(s). Since some colleagues told me I should take some time to play poker there, I guess ... [Read more...]

From a random generator to a sample function

May 14, 2013 | arthur charpentier

This week-end, I wrote a post since I had some trouble to generate a sample random sample with R, to reproduce one obtained by a co-author, with SAS (generated using Fishman and Moore (1982) used in function RANUNI). I was lucky since another contributor for that book, Christrophe Dutang, got the ... [Read more...]

Playing cards, with R

May 11, 2013 | arthur charpentier

In my courses on R, I usually show how to insert a picture as a background for a graph. But it is also to see the picture as an object, and to insert it in a graph everywhere we like to see it, as explained on the awesome blog http://... [Read more...]

Reproducibility and randomness

May 11, 2013 | arthur charpentier

With Stéphane Tufféry, we were working this week on a chapter of a book, entitled Statistical Learning in Actuarial Science. The chapter should be based on R functions, and we wanted to reproduce some outputs he previously obtained with SAS. The good thing is that even complex functions (... [Read more...]

Poisson regression on non-integers

May 7, 2013 | arthur charpentier

In the course on claims reserving techniques, I did mention the use of Poisson regression, even if incremental payments were not integers. For instance, we did consider incremental triangles __ source("http://perso.univ-rennes1.fr/arthur.charpentier/bases.R") __ INC=PAID __ INC[,2:6]=PAID[,2:6]-PAID[,1:5] __ INC [,1] [,2] [,3] [,4] [,5] [,6] [1,] 3209 1163 39 17 7 21 [2,] 3367 1292 37 24 10 NA [3,] 3871 1474 53 22 NA NA [4,] 4239 1678 103 NA NA NA [5,] 4929 1865 ... [Read more...]

LaTeX in R graphs

May 3, 2013 | arthur charpentier

A nice post was recently published on the rsnippets blog, about the tikzDevice R package. This package is – indeed – awesome. Even if it has been removed from the CRAN website. Of course, it can be download from the archive folder, on http://cran.r-project.org/…, but also (for a more ... [Read more...]

Animation, from R to LaTeX

May 3, 2013 | arthur charpentier

Just a short post, to share some codes used to generate animated graphs, with R. Assume that we would like to illustrate the law of large number, and the convergence of the average value from binomial sample. We can generate samples  using __ n=200 __ k=1000 __ set.seed(1) __ X=matrix(sample(0:1,size=... [Read more...]

Easter

March 31, 2013 | arthur charpentier

This morning, there was an interesting post entitled “why does Easter move around so much?” online on http://economist.com/blogs/economist-explains/… In my time series classes, I keep saying that sometimes, series can exhibit seasonlity, but the seasonal effect can be quite irregular. It is the cas for river ... [Read more...]

Benford law and lognormal distributions

March 28, 2013 | arthur charpentier

Benford’s law is nowadays extremely popular (see e.g. http://en.wikipedia.org/…). It is usually claimed that, for a given set data set, changing units does not affect the distribution of the first digit. Thus, it should be related to scale invariant distributions. Heuristically, scale (or unit) invariance ... [Read more...]
1 10 11 12 13 14 19

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)