HW4 - Loan Safety with Decision Trees (44 points)

Due Monday 05/02 at 6:00pm.

You may submit any part of the assignment as many times as you want before the cutoff. Everything must be submitted on Gradescope. Please make sure you are familiar with the collaboration policy on the syllabus.

Note that as mentioned on Ed there will be no late days allowed for this assignment. Therefore, the hard deadlines for the homework are:

  • Written: Sunday 11:59pm (5/1)
  • Programming + Quiz: Monday 6:00pm (5/2)

These deadlines are non-negotiable to allow feedback to be given back in time for the midterm. If you have specific circumstances that make it difficult to submit by these dates, please reach out to Pemi.

Assignment Structure

For each homework assignment, there will usually be three things to submit:

  • A Conceptual portion that asks you to solve conceptual questions about that week’s materials

    • Quiz: You must take it on Gradescope. You have unlimited attempts. The quiz will be autograded but results won’t be released until after the deadline.
    • Written questions: You must submit a typeset PDF on Gradescope and attach the correct pages on Gradescope.
  • A Programming portion that asks you to answer questions or do an analysis involving programming. This counts towards your Programming portion of your final grade. You can write the code locally on EdStem and verify the correctness with an autograder, but you must submit the code with a .py file on Gradescope to finalize your grade.



Please find the written assignment questions here: hw4.pdf

Submit the written questions directly on Gradescope: Written submission


Submit the quiz directly on Gradescope: Quiz submission


Find the Jupyter notebook of the programming assignment here: Jupyter notebook

This and other Programming portions will be using EdStem as your tool to edit your solutions. We will use a programming format known as a “Jupyter Notebook” this quarter, as they are a common tool amongst data scientists to develop and communicate their results. EdStem supports hosting and running of Jupyter Notebooks, as well as providing us means for autograding them.

When you first visit the assignment, you will get a copy of the starter code (called a “Scaffold”). You will then be freely able to edit your starter code with whatever work you want. You can always reset your code back to the Scaffold by clicking the “…” on the top-right and then “Reset to Scaffold”. But be careful! That will erase all of your current work.

After you have passed the EdStem tests, please copy the answer to as indicated in the instruction on EdStem and submit it on Gradescope.

Programming submission [Homework 4: Programming]