for stuff related to statistics  in R and matlab