STAT 157, Spring 19
Table Of Contents
STAT 157, Spring 19
Table Of Contents


Update on 2/19 Please submit your homeworks through gradescope instead of Github, so you will get the score distribution for each question. Please enroll in the class by the Entry code: MXG5G5

There are weekly assignments. We strongly discourage you from copying solutions of your fellow students since you’re depriving yourself of the experience of learning how to solve the problems on your own. In particular you won’t learn useful things for the exams and projects this way. Or for that matter, from the course. If we see brazen plagiarism we will deal with it. That said, you should discuss the problems and solutions with others. You will likely benefit from that.

Please submit your homeworks through Github:

  1. First create a Github repo, e.g. You may want to make it private (Github now offers unlimited private repos).
  2. Email your repo URL to with your name and SID. And also add Ryan (Github ID rythei) as a collabrator to your repo. You can do it through Setting -> Collabrators & teams -> Collaborators. (Check this screen shot).
  3. Save the homework notebook in your root directory of your repo. Before pushing, please make sure run all cells and save it with outputs, i.e. click Kernel -> Restart & Run All in Jupyter notebook, then save. (Check this screen shot).

Assignments are due by 4pm on the Tuesday. Please upload your homework to Github before that time. You can either use git push or click the “Upload files” on Github.


As we proceed, we’ll be filling in details. In terms of solutions we’ll take the liberty to reuse some of your submissions as reference solutions (unless you tell us otherwise).

Set Due date Problems Solutions
1 1/29/2019 Jupyter, PDF PDF
2 2/5/2019 Jupyter, PDF PDF
3 2/12/2019 Jupyter, PDF PDF
4 2/19/2019 Jupyter, PDF PDF
5 2/26/2019 Jupyter, PDF PDF
6 3/12/2019 Jupyter, PDF PDF
7 4/9/2019 Jupyter, PDF
8 4/16/2019 Jupyter, PDF
9 4/23/2019 Jupyter, PDF
10 4/30/2019


The 9 best out of 10 homeworks count. That is, you can skip one homework or you can simply do them all and we’ll only count the 9 best ones. Beyond that, you can be late once for two days, i.e. you can submit one home work on a Thursday by the end of the class. We will make the homeworks available online the day the previous homework is due, possibly earlier (some finetuning is required since we need to ensure that we’ll cover the content of the homework in the class). The TAs will return the graded homework within 2 weeks of submission. Overall, homeworks are worth 30% of the overall scores.

Table Of Contents