Admission requirements
Some of the topics covered in this course require knowledge of calculus, probability theory and inferential statistic. Students are assumed to be following / have previously followed / have been exempted from the courses "Mathematics for Statisticians" and "Statistics & Probability" from the MSc in Statistics and Data Science.
Description
Since its inception in 2000, R has grown to be one of the most versatile and widely used programming languages for statistics and data science. In Statistical Computing with R you will be introduced to programming, data analysis and statistical computing with R.
In the first half of the course we will cover the basics of R, including object types, functions, conditional statements, different types of loops, R scripts, R Markdown, R packages and documentation, and data visualization with base R.
In the second part of the course we will explore more advanced topics, such as warning and error messages, data visualization with ggplot2, functions for probability theory, numeric optimization and maximum likelihood estimation, strategies to make R code faster and more efficient, data handling methods, the dplyr package, and mixture models and the EM algorithm.
Course objectives
By the end of the course, students should be able to use R and RStudio to:
1. import and manipulate data;
2. perform basic statistical analyses and produce data visualizations;
3. write and debug simple R programs and functions;
4. solve estimation problems that require numeric optimization;
5. write neat and annotated code;
6. generate reproducible reports (R Markdown).
Timetable
In MyTimetable, you can find all course and programme schedules, allowing you to create your personal timetable. Activities for which you have enrolled via MyStudyMap will automatically appear in your timetable.
Additionally, you can easily link MyTimetable to a calendar app on your phone, and schedule changes will be automatically updated in your calendar. You can also choose to receive email notifications about schedule changes. You can enable notifications in Settings after logging in.
Questions? Watch the video, read the instructions, or contact the ISSC helpdesk.
Note: Joint Degree students from Leiden/Delft need to combine information from both the Leiden and Delft MyTimetables to see a complete schedule. This video explains how to do it.
Mode of Instruction
A combination of lectures and computer practicals. To fully benefit from the practicals, it is recommended that you bring your own laptop with R and RStudio installed.
Assessment method
A written exam at the end of the course. Notice that the homework given during the course is meant to help you practice your skills, it is not graded and it does not contribute to the final grade.
Reading list
Braun, W. J., & Murdoch, D. J. (2021). A First Course in Statistical Programming with R. Cambridge University Press.
Rizzo, M. L. (2019). Statistical Computing with R. CRC Press.
Registration
As a student, you are responsible for enrolling on time through MyStudyMap.
In this short video, you can see step-by-step how to enrol for courses in MyStudyMap.
Extensive information about the operation of MyStudyMap can be found here.
There are two enrolment periods per year:
Enrolment for the fall opens in July
Enrolment for the spring opens in December
See this page for more information about deadlines and enrolling for courses and exams.
Note:
It is mandatory to enrol for all activities of a course that you are going to follow.
Your enrolment is only complete when you submit your course planning in the ‘Ready for enrolment’ tab by clicking ‘Send’.
Not being enrolled for an exam/resit means that you are not allowed to participate in the exam/resit.
Contact
statcompr [at] gmail [dot] com
Remarks
Software
Starting from the 2024/2025 academic year, the Faculty of Science will use the software distribution platform Academic Software. Through this platform, you can access the software needed for specific courses in your studies. For some software, your laptop must meet certain system requirements, which will be specified with the software. It is important to install the software before the start of the course. More information about the laptop requirements can be found on the student website.