Probability and Statistics examples in R