Resampling_techniques R codes of final assignment for the course of Resampling Techniques, Spring 2021