Welcome to STAT 545A!

1 Teaching Team

1.1 Who am I?

Dr. Vincenzo Coia
Core teaching team of MDS
Department of Statistics
UBC

My Background:

  • PhD in Statistics at UBC
  • MSc in Mathematical Statistics at Brock U
  • BSc in Math + Stats at Brock U
  • BSc in Biology w/ Earth Science at Brock U

1.2 Meet your TA’s!

STAT 545 has four TA’s.

Sherrie

(photo missing)

Chad

Chad

Hossam

Hossam

Rashedul

Rashedul

1.3 Meet your classmates

Get to know your neighbour! Choose someone to go first. In 2 minutes, share:

  • Your name
  • Your program
  • Something notable you did over the summer

Then switch for another two minutes.

Afterwards: let’s here from a few of you!

2 Today’s Outline

Here’s our agenda for today.

  1. Go over the course syllabus.
  2. Light exposure to some course tools: GitHub, the command line, markdown: 20 minute periods. Lids down, please!
  3. Do an activity.
    • Didn’t bring a device? Ask your neighbour if you can follow along!

By the end of today’s class, students are expected to be able to:

3 The syllabus

Let’s go over the syllabus and the course assignments.

Other course destinations: defer until after we’re familiar with GitHub.

4 GitHub as a file-sharing and storage solution

Checklist:

Next time: GitHub as a version-control system.

5 Course Destinations: revisited

Checklist:

6 Course Mantras

Here are some philosophies that will get you far in data analytic work. We will be revisiting these over and over again.

Example: markdown -> HTML. This webpage was generated from this markdown source file on GitHub.

7 The Shell

We will avoid this when we can, but we’ll at least need it to install git later. Here is the minimum need-to-know about the shell:

A great introduction to this stuff is in happygitwithr: Appendix A.

8 Activities

8.1 GitHub activity

5 minute timer.

  1. Register for a GitHub.com account. Don’t pay!
  2. Navigate to the Discussion-Internal repository.
  3. Click Watch on the upper-right corner of the repo, so that you get email notifications.
  4. Go to the Issues section of the repository, and comment on the Issue I created called “Introduce yourself!”. In the comment, say who you are, and greet the person above you – be sure to tag them by their username!
    • NOTE: The Discussion-Internal repo will be made private soon (you’ll have access).
  5. Complete this survey.
  6. Please put up a profile photo – it makes the STAT 545 community more personable. You can do this from your profile homepage.
  7. OPTIONAL: Register for the Student Developer Pack with GitHub. It’s free!

8.2 Install your stuff

  1. Install R and RStudio.
  2. Install git. See happygitwithr: Section 7
    • You’ll need to work with the command line.

9 To do

If you haven’t already, please do the following before next class:

LS0tCnRpdGxlOiAiU1RBVCA1NDUgQ2xhc3MgTWVldGluZyAwMTogSW50cm8gdG8gRGF0YSBBbmFseXRpYyBXb3JrIgpvdXRwdXQ6CiAgICBodG1sX25vdGVib29rOgogICAgICAgIHRvYzogdHJ1ZQogICAgICAgIHRoZW1lOiBjZXJ1bGVhbgogICAgICAgIG51bWJlcl9zZWN0aW9uczogdHJ1ZQplZGl0b3Jfb3B0aW9uczogCiAgY2h1bmtfb3V0cHV0X3R5cGU6IGlubGluZQotLS0KCldlbGNvbWUgdG8gU1RBVCA1NDVBIQoKIyBUZWFjaGluZyBUZWFtCgojIyBXaG8gYW0gST8KCiFbXShjbTAwMV9maWxlcy92aW5jZW56by5qcGcpCgpEci4gVmluY2Vuem8gQ29pYSAgIApDb3JlIHRlYWNoaW5nIHRlYW0gb2YgTURTICAgCkRlcGFydG1lbnQgb2YgU3RhdGlzdGljcyAgIApVQkMgICAKCk15IEJhY2tncm91bmQ6CgotIFBoRCBpbiBTdGF0aXN0aWNzIGF0IFVCQwotIE1TYyBpbiBNYXRoZW1hdGljYWwgU3RhdGlzdGljcyBhdCBCcm9jayBVCi0gQlNjIGluIE1hdGggKyBTdGF0cyBhdCBCcm9jayBVCi0gQlNjIGluIEJpb2xvZ3kgdy8gRWFydGggU2NpZW5jZSBhdCBCcm9jayBVCgojIyBNZWV0IHlvdXIgVEEncyEKClNUQVQgNTQ1IGhhcyBmb3VyIFRBJ3MuCgpTaGVycmllCgoocGhvdG8gbWlzc2luZykKCiFbQ2hhZF0oY20wMDFfZmlsZXMvY2hhZC5qcGVnKQoKCiFbSG9zc2FtXShjbTAwMV9maWxlcy9ob3NzYW0uanBlZykKCgohW1Jhc2hlZHVsXShjbTAwMV9maWxlcy9yYXNoZWR1bC5qcGVnKQoKIyMgTWVldCB5b3VyIGNsYXNzbWF0ZXMKCkdldCB0byBrbm93IH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