Spring 2020 - STAT 341 D100

Introduction to Statistical Computing and Exploratory Data Analysis - R (2)

Class Number: 3998

Delivery Method: In Person


  • Course Times + Location:

    Th 12:30 PM – 2:20 PM
    SSCC 9002, Burnaby

  • Prerequisites:

    STAT 285 or STAT 302 or STAT 305 or BUEC 333 or equivalent.



Introduces the R statistical package. Data management; reading, editing and storing statistical data; data exploration and representation; summarizing data with tables, graphs and other statistical tools; and data simulation. Students with credit for STAT 340 may not take STAT 341 for further credit.


Course Outline:

R component

1. What is the R programming environment
          - Downloading and installing
          - Basics of writing R functions
          - Basics of loops/if/while and other control-flow constructs
  2. Data management in R
          - Reading and writing data: plain text files and spreadsheets, other file formats
          - Using R to query databases with SQL
          - Merging and re-shaping data
  3. Data exploration and representation in R
          - Graphical displays. Customizing and extending these displays for your own research purposes.
          - Cross-tabulations and tests of association.
  4. Data simulation and resampling in R
          a. Generating data from parametric distributions: uses in evaluating statistical procedures and in understanding classical large-sample results.
          b. Generating data by resampling: introduction to permutation, bootstrapping, cross-validation and their uses.


  • Quizzes 10%
  • Homework Assignments 10%
  • Term Test 30%
  • Final Exam 50%


Above grading is subject to change.



Advanced R, Author: Hadley Wickham, Publisher: CRC Press 2015

ggplot2 Elegant Graphics for Data Analysis, 2nd ed., Author: Hadley Wickham, Publisher: Springer 2016

Department Undergraduate Notes:

Students with Disabilites:
Students requiring accommodations as a result of disability must contact the Centre for Accessible Learning 778-782-3112 or csdo@sfu.ca

Tutor Requests:
Students looking for a Tutor should visit http://www.stat.sfu.ca/teaching/need-a-tutor-.html. We accept no responsibility for the consequences of any actions taken related to tutors.

Registrar Notes:

SFU’s Academic Integrity web site http://www.sfu.ca/students/academicintegrity.html is filled with information on what is meant by academic dishonesty, where you can find resources to help with your studies and the consequences of cheating.  Check out the site for more information and videos that help explain the issues in plain English.

Each student is responsible for his or her conduct as it affects the University community.  Academic dishonesty, in whatever form, is ultimately destructive of the values of the University. Furthermore, it is unfair and discouraging to the majority of students who pursue their studies honestly. Scholarly integrity is required of all members of the University. http://www.sfu.ca/policies/gazette/student/s10-01.html