1 Week 1

  • Dates: 08/23/2021 - 08/29/2021

1.1 Lectures

  • The installation tutorial videos were recorded for STAT 107 - Spring 2021 (also taught by me), but the steps are exactly the same for our course so I’m reusing them for us.
  • Most of the videos in this course are videos from previous semesters. This allows me to hold more office hours, which I think is more helpful to you when you learn how to code.
Topic Video Mirror Notes
1.1 Welcome to STAT 430! [ClassTranscribe] [YouTube] [Syllabus]
1.2 Installing Python & git [Mac OS X] [Windows] [Mac OS X] [Windows] [Notes]
1.3 Basics of Programming [ClassTranscribe] [YouTube] [1.3]
1.4 Data Types [ClassTranscribe] [YouTube] [1.4]

1.2 Lab

1.3 Homework

  • No homework this week.

1.4 Deadlines

  • No deadline this week.

1.5 Lab 01 Details

1.5.1 Software and Tools for Data Science Installing Software Tools

Follow the instructions in the following setup guide to install all the required software: Creating your STAT 430 git repository

To begin to work on assignments and turn in work, you will need to create a git repository for the course.

Now, you’re ready to clone this repository to your computer:

  • Create a stat430 folder on your Desktop (if you haven’t already).
  • Using your command line prompt, run the following commands to navigate into your stat430 folder:
cd Desktop
cd stat430

NOTE: Some of you with a newer Windows computer might run into problem accessing your Desktop folder as your Desktop folder is inside the OneDrive folder instead of the root directory. If this is the case, you will receive an error when running cd Desktop. To get around with this, run the following commands instead:

cd OneDrive/Desktop
cd stat430
  • Clone a local copy of your git repository with the following command (making sure to replace [YOUR-GIT-REPO-URL] with the URL from above):
  • Navigate into your git directory by going into your NetID-named folder (replace [NETID] with your actual NetID):
  • Set up a connection to the _release repository where code will be released for you:
git remote add release https://github-dev.cs.illinois.edu/stat430-fa21/_release.git
  • Let git know who you are REPLACE YOUR NAME and EMAIL with your name/email:
git config user.name "Your Name"
git config user.email "netid@illinois.edu" Set up your Python notebook

All of our programming will be done in “notebooks.” Your python install will need a few libraries in order to run the notebooks. Using your command line, run the following:

conda install jupyter
conda install pandas

This will take a bit. You will need to press [Enter] to confirm you want to install of of the packages (the option [y]/n shows that y is default when you choose no option).

1.5.2 Complete the lab01 Notebook

Using your command line, navigate to your NetID folder (cd Desktop -> cd stat430 -> cd [NETID] OR cd OneDrive/Desktop -> cd stat430 -> cd [NetID] for some of you) and fetch the notebook from our release repository by running the following two git commands:

git fetch release
git merge release/lab01 -m "Merging initial files"

ONLY IF you get an error related to unrelated histories, use:

git merge release/lab01 --allow-unrelated-histories -m "Merging initial files"

Open the notebook with the command:

jupyter notebook

Inside of the notebook webpage:

  • Navigate into lab01 folder
  • Open up the lab01.ipynb notebook
  • Follow the instructions inside of the notebook

Whenever you are done, you should save the current checkpoint (using File -> Save Checkpoint in the notebook) to save your work. Once your work is saved, you can exit the command line running the notebook with Ctrl + C.

1.5.3 Submitting Your Work

When you have completed working, you should always submit your work (even if you’re not quite finished). We will always grade the latest push you made before the due date (and ignore everything else) — submitting multiple times is okay and encouraged!

Inside of Jupyter:

  • Click File -> Save Checkpoint to ensure your notebook is saved.
  • Click File -> Close and Halt to exit your notebook.
  • Click Quit (in the top-right) to close the directory view.

After exiting Jupyter, your command prompt will return to accept new commands. Using your command prompt, run:

    git add -A
    git commit -m "lab01 submission"
    git push origin master

You can verify your submission was made by visiting the web interface to github: