Introduction to Probabilistic and Statistical Methods with Examples in R