<!DOCTYPE html>


<html lang="en" data-content_root="" >

  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

    <title>Course Syllabus: FINM 32900, Winter 2024 &#8212; Data Science Tools for Finance</title>
  
  
  
  <script data-cfasync="false">
    document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
    document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
  </script>
  
  <!-- Loaded before other Sphinx assets -->
  <link href="_static/styles/theme.css?digest=5b4479735964841361fd" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=5b4479735964841361fd" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=5b4479735964841361fd" rel="stylesheet" />

  
  <link href="_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=5b4479735964841361fd" rel="stylesheet" />
  <link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

    <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" href="_static/styles/sphinx-book-theme.css?digest=14f4ca6b54d191a8c7657f6c759bf11a5fb86285" type="text/css" />
    <link rel="stylesheet" type="text/css" href="_static/togglebutton.css" />
    <link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
    <link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
    <link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css" />
    <link rel="stylesheet" type="text/css" href="_static/design-style.4045f2051d55cab465a707391d5b2007.min.css" />
  
  <!-- Pre-loaded scripts that we'll load fully later -->
  <link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=5b4479735964841361fd" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=5b4479735964841361fd" />
  <script src="_static/vendor/fontawesome/6.1.2/js/all.min.js?digest=5b4479735964841361fd"></script>

    <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
    <script src="_static/doctools.js"></script>
    <script src="_static/clipboard.min.js"></script>
    <script src="_static/copybutton.js"></script>
    <script src="_static/scripts/sphinx-book-theme.js?digest=5a5c038af52cf7bc1a1ec88eea08e6366ee68824"></script>
    <script>let toggleHintShow = 'Click to show';</script>
    <script>let toggleHintHide = 'Click to hide';</script>
    <script>let toggleOpenOnPrint = 'true';</script>
    <script src="_static/togglebutton.js"></script>
    <script>var togglebuttonSelector = '.toggle, .admonition.dropdown';</script>
    <script src="_static/design-tabs.js"></script>
    <script>const THEBE_JS_URL = "https://unpkg.com/thebe@0.8.2/lib/index.js"
const thebe_selector = ".thebe,.cell"
const thebe_selector_input = "pre"
const thebe_selector_output = ".output, .cell_output"
</script>
    <script async="async" src="_static/sphinx-thebe.js"></script>
    <script>DOCUMENTATION_OPTIONS.pagename = 'README';</script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Homework 0: Setting up your computing environment" href="lectures/Week1/HW0.html" />
    <link rel="prev" title="Data Science Tools for Finance" href="intro.html" />
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <meta name="docsearch:language" content="en"/>
  </head>
  
  
  <body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode="">

  
  
  <a class="skip-link" href="#main-content">Skip to main content</a>
  
  <div id="pst-scroll-pixel-helper"></div>

  
  <button type="button" class="btn rounded-pill" id="pst-back-to-top">
    <i class="fa-solid fa-arrow-up"></i>
    Back to top
  </button>

  
  <input type="checkbox"
          class="sidebar-toggle"
          name="__primary"
          id="__primary"/>
  <label class="overlay overlay-primary" for="__primary"></label>
  
  <input type="checkbox"
          class="sidebar-toggle"
          name="__secondary"
          id="__secondary"/>
  <label class="overlay overlay-secondary" for="__secondary"></label>
  
  <div class="search-button__wrapper">
    <div class="search-button__overlay"></div>
    <div class="search-button__search-container">
<form class="bd-search d-flex align-items-center"
      action="search.html"
      method="get">
  <i class="fa-solid fa-magnifying-glass"></i>
  <input type="search"
         class="form-control"
         name="q"
         id="search-input"
         placeholder="Search this book..."
         aria-label="Search this book..."
         autocomplete="off"
         autocorrect="off"
         autocapitalize="off"
         spellcheck="false"/>
  <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
  </div>
  
    <nav class="bd-header navbar navbar-expand-lg bd-navbar">
    </nav>
  
  <div class="bd-container">
    <div class="bd-container__inner bd-page-width">
      
      <div class="bd-sidebar-primary bd-sidebar">
        

  
  <div class="sidebar-header-items sidebar-primary__section">
    
    
    
    
  </div>
  
    <div class="sidebar-primary-items__start sidebar-primary__section">
        <div class="sidebar-primary-item">

  

<a class="navbar-brand logo" href="intro.html">
  
  
  
  
  
    
    
      
    
    
    <img src="_static/logo.png" class="logo__image only-light" alt="Data Science Tools for Finance - Home"/>
    <script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="Data Science Tools for Finance - Home"/>`);</script>
  
  
</a></div>
        <div class="sidebar-primary-item"><nav class="bd-links" id="bd-docs-nav" aria-label="Main">
    <div class="bd-toc-item navbar-nav active">
        
        <ul class="nav bd-sidenav bd-sidenav__home-link">
            <li class="toctree-l1">
                <a class="reference internal" href="intro.html">
                    Data Science Tools for Finance
                </a>
            </li>
        </ul>
        <ul class="current nav bd-sidenav">
<li class="toctree-l1 current active"><a class="current reference internal" href="#">Course Syllabus: FINM 32900, Winter 2024</a></li>
<li class="toctree-l1"><a class="reference internal" href="lectures/Week1/HW0.html">Homework 0: Setting up your computing environment</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week1/overview_w1.html">Week 1: Introduction</a><input class="toctree-checkbox" id="toctree-checkbox-1" name="toctree-checkbox-1" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-1"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week1/what_is_this_course_about.html">What is Data Science? Where does this course fit in?</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week1/reproducible_analytical_pipelines.html">What are Reproducible Analytical Pipelines?</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week1/case_study_reproducibility_in_finance.html">Case Study: Is There A Reproducibility Crisis In Finance?</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week1/HW1.html">Homework 1</a><input class="toctree-checkbox" id="toctree-checkbox-2" name="toctree-checkbox-2" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-2"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="output/_01_repo_spikes.html">Rate Spikes in the Market for Repurchase Agreements</a></li>



</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week2/overview_w2.html">Week 2: Build Systems and Task Runners</a><input class="toctree-checkbox" id="toctree-checkbox-3" name="toctree-checkbox-3" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-3"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week2/virtual_environments.html">Virtual Environments</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week2/what_is_a_build_system.html">What is a build system or task runner?</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week2/project_structure.html">Project Structure</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week2/HW2.html">Homework 2</a><input class="toctree-checkbox" id="toctree-checkbox-4" name="toctree-checkbox-4" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-4"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week2/case_study_atlanta_fed_wage_growth_tracker.html">Case Study: Atlanta Fed Wage Growth Tracker</a></li>
<li class="toctree-l2"><a class="reference internal" href="output/_01_wage_growth_during_the_recession.html">HW Guide: Wage Growth During the Recession</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week3/overview_w3.html">Week 3: Env Files, Secrets, Automating Queries, and the Basics of SQL</a><input class="toctree-checkbox" id="toctree-checkbox-5" name="toctree-checkbox-5" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-5"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week3/WRDS_intro_and_web_queries.html">Introduction to WRDS</a></li>
<li class="toctree-l2"><a class="reference internal" href="output/_01_wrds_python_package.html">Example: Connecting to the WRDS Platform With Python</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week3/env_files.html">Env Files and the Separations of Settings from Code</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week3/HW3.html">Homework 3</a><input class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-6"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="output/_02_CRSP_market_index.html">HW Guide Part A: CRSP Market Returns Indices</a></li>
<li class="toctree-l2"><a class="reference internal" href="output/_03_Fama_French_1993.html">HW Guide Part B: Replicate Fama-French 1993</a></li>



</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week4/overview_w4.html">Week 4: Generating Reports, featuring Jupyter Notebooks and LaTeX</a><input class="toctree-checkbox" id="toctree-checkbox-7" name="toctree-checkbox-7" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-7"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week4/reports_with_jupyter_notebooks.html">Reports with Jupyter Notebooks</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week4/intro_to_LaTeX.html">Introduction to LaTeX</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week4/latex_essentials.html">LaTeX Essentials</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week5/overview_w5.html">Week 5: Unit Tests and Documentation with Sphinx</a><input class="toctree-checkbox" id="toctree-checkbox-8" name="toctree-checkbox-8" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-8"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week5/sphinx.html">Sphinx</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week5/unit_tests.html">Unit Tests</a></li>
</ul>
</li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Week6/overview_w6.html">Week 6: Bloomberg and Social Coding with GitHub</a><input class="toctree-checkbox" id="toctree-checkbox-9" name="toctree-checkbox-9" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-9"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week6/bloomberg_terminal.html">The Bloomberg Terminal</a></li>
<li class="toctree-l2"><a class="reference internal" href="lectures/Week6/GitHub_pull_requests.html">GitHub Pull Requests: Enhancing Collaborative Development</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="lectures/Week7/overview_w7.html">Week 7: Reviewing Sphinx and Unit Tests</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="lectures/Misc/final_project.html">Final Project</a><input class="toctree-checkbox" id="toctree-checkbox-10" name="toctree-checkbox-10" type="checkbox"/><label class="toctree-toggle" for="toctree-checkbox-10"><i class="fa-solid fa-chevron-down"></i></label><ul>
<li class="toctree-l2"><a class="reference internal" href="lectures/Misc/potential_final_projects.html">List of Potential Final Projects</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="lectures/Misc/appendix.html">Appendix</a></li>
</ul>

    </div>
</nav></div>
    </div>
  
  
  <div class="sidebar-primary-items__end sidebar-primary__section">
  </div>
  
  <div id="rtd-footer-container"></div>


      </div>
      
      <main id="main-content" class="bd-main">
        
        

<div class="sbt-scroll-pixel-helper"></div>

          <div class="bd-content">
            <div class="bd-article-container">
              
              <div class="bd-header-article">
<div class="header-article-items header-article__inner">
  
    <div class="header-article-items__start">
      
        <div class="header-article-item"><label class="sidebar-toggle primary-toggle btn btn-sm" for="__primary" title="Toggle primary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
  <span class="fa-solid fa-bars"></span>
</label></div>
      
    </div>
  
  
    <div class="header-article-items__end">
      
        <div class="header-article-item">

<div class="article-header-buttons">





<div class="dropdown dropdown-source-buttons">
  <button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Source repositories">
    <i class="fab fa-github"></i>
  </button>
  <ul class="dropdown-menu">
      
      
      
      <li><a href="https://github.com/finm-32900/finm-32900-data-science" target="_blank"
   class="btn btn-sm btn-source-repository-button dropdown-item"
   title="Source repository"
   data-bs-placement="left" data-bs-toggle="tooltip"
>
  

<span class="btn__icon-container">
  <i class="fab fa-github"></i>
  </span>
<span class="btn__text-container">Repository</span>
</a>
</li>
      
      
      
      
      <li><a href="https://github.com/finm-32900/finm-32900-data-science/issues/new?title=Issue%20on%20page%20%2FREADME.html&body=Your%20issue%20content%20here." target="_blank"
   class="btn btn-sm btn-source-issues-button dropdown-item"
   title="Open an issue"
   data-bs-placement="left" data-bs-toggle="tooltip"
>
  

<span class="btn__icon-container">
  <i class="fas fa-lightbulb"></i>
  </span>
<span class="btn__text-container">Open issue</span>
</a>
</li>
      
  </ul>
</div>






<div class="dropdown dropdown-download-buttons">
  <button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Download this page">
    <i class="fas fa-download"></i>
  </button>
  <ul class="dropdown-menu">
      
      
      
      <li><a href="_sources/README.md" target="_blank"
   class="btn btn-sm btn-download-source-button dropdown-item"
   title="Download source file"
   data-bs-placement="left" data-bs-toggle="tooltip"
>
  

<span class="btn__icon-container">
  <i class="fas fa-file"></i>
  </span>
<span class="btn__text-container">.md</span>
</a>
</li>
      
      
      
      
      <li>
<button onclick="window.print()"
  class="btn btn-sm btn-download-pdf-button dropdown-item"
  title="Print to PDF"
  data-bs-placement="left" data-bs-toggle="tooltip"
>
  

<span class="btn__icon-container">
  <i class="fas fa-file-pdf"></i>
  </span>
<span class="btn__text-container">.pdf</span>
</button>
</li>
      
  </ul>
</div>




<button onclick="toggleFullScreen()"
  class="btn btn-sm btn-fullscreen-button"
  title="Fullscreen mode"
  data-bs-placement="bottom" data-bs-toggle="tooltip"
>
  

<span class="btn__icon-container">
  <i class="fas fa-expand"></i>
  </span>

</button>



<script>
document.write(`
  <button class="btn btn-sm navbar-btn theme-switch-button" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
    <span class="theme-switch nav-link" data-mode="light"><i class="fa-solid fa-sun fa-lg"></i></span>
    <span class="theme-switch nav-link" data-mode="dark"><i class="fa-solid fa-moon fa-lg"></i></span>
    <span class="theme-switch nav-link" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg"></i></span>
  </button>
`);
</script>


<script>
document.write(`
  <button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
    <i class="fa-solid fa-magnifying-glass fa-lg"></i>
  </button>
`);
</script>
<label class="sidebar-toggle secondary-toggle btn btn-sm" for="__secondary"title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
    <span class="fa-solid fa-list"></span>
</label>
</div></div>
      
    </div>
  
</div>
</div>
              
              

<div id="jb-print-docs-body" class="onlyprint">
    <h1>Course Syllabus: FINM 32900, Winter 2024</h1>
    <!-- Table of contents -->
    <div id="print-main-content">
        <div id="jb-print-toc">
            
            <div>
                <h2> Contents </h2>
            </div>
            <nav aria-label="Page">
                <ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#summary">Summary</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#assignments">Assignments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#final-project">Final Project</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#assessment">Assessment</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#schedule">Schedule</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#hw-due-dates">HW Due Dates</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#references">References</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#software-to-be-used-in-class">Software to be used in class</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#instructions-to-run-code-in-this-repository">Instructions to Run Code in this Repository</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#dependencies-and-virtual-environments">Dependencies and Virtual Environments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#working-with-pip-requirements">Working with <code class="docutils literal notranslate"><span class="pre">pip</span></code> requirements</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#working-with-conda-environments">Working with <code class="docutils literal notranslate"><span class="pre">conda</span></code> environments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#mamba-and-conda-performance-issues"><code class="docutils literal notranslate"><span class="pre">mamba</span></code> and <code class="docutils literal notranslate"><span class="pre">conda</span></code> performance issues</a></li>
</ul>
</li>
</ul>
            </nav>
        </div>
    </div>
</div>

              
                
<div id="searchbox"></div>
                <article class="bd-article" role="main">
                  
  <section class="tex2jax_ignore mathjax_ignore" id="course-syllabus-finm-32900-winter-2024">
<h1>Course Syllabus: FINM 32900, Winter 2024<a class="headerlink" href="#course-syllabus-finm-32900-winter-2024" title="Permalink to this heading">#</a></h1>
<p><strong>FINM 32900, Data Science Tools for Finance</strong></p>
<section id="summary">
<h2>Summary<a class="headerlink" href="#summary" title="Permalink to this heading">#</a></h2>
<p><strong>Course Description</strong>
“Data Science for Finance” is a hands-on course centered on key data science tools in quantitative finance. Acknowledging the field’s wide scope, the course focuses on a common skill set across various data science subfields. That is, this course examines elements of the analytical pipeline, from data extraction and cleaning to exploratory analysis, visualization, and modeling, and finally, publication and deployment. It does so with the aim of teaching the tools and principles behind creating reproducible and scalable workflows, including build automation, dependency management, unit testing, the command-line environment, shell scripting, Git for version control, and GitHub for team collaboration. These skills are taught through case studies, each of which will additionally give students practical experience with key financial data sets and sources such as CRSP and Compustat for pricing and financials, macroeconomic data from FRED and the BEA, bond transactions from FINRA TRACE, Treasury auction data from TreasuryDirect, textual data from EDGAR, and high-frequency trade and quote data from NYSE. Prior experience at an intermediate level with Python and the PyData stack is assumed.</p>
<ul class="simple">
<li><p><strong>Class:</strong> Mondays, 6 - 9 PM, in-person at the Stevanovich Center building, Room #112. (5727 S. University Ave.)</p></li>
<li><p><strong>Lecturer:</strong> Jeremy Bejarano, <a class="reference external" href="mailto:jbejarano&#37;&#52;&#48;uchicago&#46;edu">jbejarano<span>&#64;</span>uchicago<span>&#46;</span>edu</a></p></li>
<li><p><strong>Instructor Office Hours:</strong> Fridays, 3 - 4 pm, on Zoom only. Link: Zoom link is available in the calendar on Canvas.</p></li>
<li><p><strong>Teaching Assistants:</strong></p>
<ul>
<li><p>Tobias Rodriguez del Pozo, <a class="reference external" href="mailto:tobiasdelpozo&#37;&#52;&#48;uchicago&#46;edu">tobiasdelpozo<span>&#64;</span>uchicago<span>&#46;</span>edu</a></p></li>
<li><p>Younghun Lee, <a class="reference external" href="mailto:hun&#37;&#52;&#48;uchicago&#46;edu">hun<span>&#64;</span>uchicago<span>&#46;</span>edu</a></p></li>
<li><p>Note: Please include both TAs on all emails. However, students are strongly encouraged to post questions on the discussion page of the class GitHub repository here: Zoom link is available in the calendar on Canvas.</p></li>
</ul>
</li>
<li><p><strong>TA Office Hours:</strong> Saturdays, 10-11 am ET, on Zoom only. Zoom link is available in the calendar on Canvas.</p></li>
<li><p><strong>Website:</strong> Canvas will be used for grades and for publishing Zoom links only. Homework and notes will be posted on the course GitHub repo: <a class="github reference external" href="https://github.com/finm-32900/finm-32900-data-science">finm-32900/finm-32900-data-science</a>. Questions and other class-related discussions should be posted here as well.</p></li>
<li><p><strong>Textbook:</strong> The text for the course will be published incrementally here: <a class="reference external" href="https://finm-32900.github.io/">https://finm-32900.github.io/</a></p></li>
</ul>
<p><strong>NOTE:</strong> Due to the holiday on January 15, a makeup class on Zoom with be held on Saturday, Jan 13.</p>
<section id="assignments">
<h3>Assignments<a class="headerlink" href="#assignments" title="Permalink to this heading">#</a></h3>
<ul class="simple">
<li><p>Assignments must be submitted via GitHub before 3 pm on Mondays. Each assignment will be distributed on a Monday, and will be due the following Monday. Assignments are automatically graded via the autograder on GitHub Classroom and solutions will be released shortly after. This means that the due date is strict. Late assignments will not be accepted.</p></li>
<li><p>Each student is to individually submit their assignment (unless otherwise specified). Students may work in groups, but students are not allowed to copy each other’s code. Each student must write their own solutions individually.</p></li>
<li><p>After assignments are graded, solutions will be posted in separate GitHub repos, found here: <a class="github reference external" href="https://github.com/finm-32900">finm-32900</a></p></li>
</ul>
</section>
<section id="final-project">
<h3>Final Project<a class="headerlink" href="#final-project" title="Permalink to this heading">#</a></h3>
<p>In lieu of a final exam, students will be organized into groups of 4 and will each complete a course project. Each group will present their completed project to the instructor at the end of the course. These presentations will be scheduled individually.</p>
</section>
</section>
<section id="assessment">
<h2>Assessment<a class="headerlink" href="#assessment" title="Permalink to this heading">#</a></h2>
<p>Grades will be based on 7 coding assignments (70%), a final group project (25%), and participation (5%).</p>
<ul class="simple">
<li><p>Assignments will be submitted individually and will be graded using GitHub’s automated testing tools.</p></li>
<li><p>The final project will be completed in groups. Students will choose the project from among a few options provided at the beginning of the quarter. The project will be graded not only on how well it accomplishes the assigned data cleaning and analysis task, but will be primarily graded on whether (1) the steps to reproduce it are fully automated and well documented, (2) the code is written in a clean and reusable fashion, and (3) the results are presented clearly and presented in a way that convinces the reader that the results are correct. A more specific rubric will be provided in class.</p></li>
<li><p>The participation grade will depend on the positive impacts that a student has on the class. These include participating in in-class discussions and/or answering questions on the class GitHub page (or on Canvas). Students are in no way penalized for giving wrong answers in these in-class discussions nor is there any penalty for asking for help—asking for help is often the best way to learn!</p></li>
</ul>
</section>
<section id="schedule">
<h2>Schedule<a class="headerlink" href="#schedule" title="Permalink to this heading">#</a></h2>
<p>The schedule will follow the ordering of the chapters listed in the GitHub book found here: <a class="reference external" href="https://finm-32900.github.io/">https://finm-32900.github.io/</a>.
Each week is it’s own chapter and the agenda is listed in the first sub-section of the chapter.</p>
<section id="hw-due-dates">
<h3>HW Due Dates<a class="headerlink" href="#hw-due-dates" title="Permalink to this heading">#</a></h3>
<ul class="simple">
<li><p><a class="reference internal" href="lectures/Week1/HW0.html"><span class="doc std std-doc">HW 0: Ungraded. Due ASAP, preferably before the first class</span></a></p></li>
<li><p><a class="reference internal" href="lectures/Week1/HW1.html"><span class="doc std std-doc">HW 1: Due Thursday, Jan 18 at 11:59 pm</span></a></p></li>
<li><p><a class="reference internal" href="lectures/Week2/HW2.html"><span class="doc std std-doc">HW 2: Due Saturday, Jan 27 at 11:59 pm</span></a></p></li>
<li><p><a class="reference internal" href="lectures/Week3/HW3.html"><span class="doc std std-doc">HW 3: Due Saturday, Feb 9 at 11:59 pm</span></a></p></li>
</ul>
</section>
</section>
<section id="references">
<h2>References<a class="headerlink" href="#references" title="Permalink to this heading">#</a></h2>
<p>I will provide the lecture notes that we will use in class here: <a class="reference external" href="https://finm-32900.github.io/">https://finm-32900.github.io/</a>. As a prerequiste, you should have some prior familiarity with Python and the PyData stack (e.g., Numpy, Scipy, Pandas, Matplotlib). The following references may serve as useful refreshers:</p>
<ul class="simple">
<li><p><a class="reference external" href="https://wesmckinney.com/book/">Python for Data Analysis, 3rd Edition</a>, by Wes McKinney</p></li>
<li><p><a class="reference external" href="https://jakevdp.github.io/PythonDataScienceHandbook/">Python Data Science Handbook</a>, by Jake VanderPlas</p></li>
<li><p><a class="reference external" href="https://python-programming.quantecon.org/intro.html">Python Programming for Economics and Finance</a>, by Thomas J. Sargent and John Stachurski</p></li>
</ul>
<p>A significant portion of this course is inspired by <a class="reference external" href="https://missing.csail.mit.edu/">“The Missing Semester of Your CS Education”</a>, a short course taught in the Computer Science department at MIT. I’ll rely on the material shown there for portions of this course.</p>
</section>
<section id="software-to-be-used-in-class">
<h2>Software to be used in class<a class="headerlink" href="#software-to-be-used-in-class" title="Permalink to this heading">#</a></h2>
<p>Lectures will feature live programming exercises in class, so students should have a WiFi-enabled laptop to bring to class.</p>
<p>Before the first class, please make sure to install the required software and sign up for the required services.
Students will need to install the following software on their laptop. Each of these pieces of software are free:</p>
<ul class="simple">
<li><p><a class="reference external" href="https://www.anaconda.com/download">Anaconda distribution of Python (Individual Edition)</a></p></li>
<li><p><a class="reference external" href="https://code.visualstudio.com/">Visual Studio Code</a> (NOT Visual Studio. Visual Studio Code is different from Visual Studio)</p></li>
<li><p><a class="reference external" href="https://git-scm.com/">Git</a></p></li>
<li><p><a class="reference external" href="https://www.gitkraken.com/">GitKraken</a> You will need to use GitKraken Client Pro, which is available for <a class="reference external" href="https://www.gitkraken.com/github-student-developer-pack">free for students.</a></p></li>
<li><p><a class="reference external" href="https://tug.org/texlive/">TeX Live</a></p></li>
<li><p><a class="reference external" href="https://www.putty.org/">PuTTY</a></p></li>
<li><p><a class="reference external" href="https://winscp.net/eng/download.php">WinSCP</a> For those using a Mac, you may need to find a software alternatives for WinSCP.</p></li>
</ul>
<p>Students should also sign up for an account with the following websites. We will use free versions of each of these services:</p>
<ul class="simple">
<li><p><a class="reference external" href="https://github.com/">GitHub</a></p></li>
<li><p><a class="reference external" href="https://cps.ipums.org/cps/">IPUMS CPS</a></p></li>
<li><p><a class="reference external" href="https://wrds-www.wharton.upenn.edu/">Wharton Research Data Services (WRDS)</a> Apply for access through the University of Chicago, using the registration form <a class="reference external" href="https://wrds-www.wharton.upenn.edu/register/">here.</a> For any issues that may arise, please contact the WRDS representative for UChicago’s Mathematics department, John Zekos, <a class="reference external" href="mailto:zekos&#37;&#52;&#48;math&#46;uchicago&#46;edu">zekos<span>&#64;</span>math<span>&#46;</span>uchicago<span>&#46;</span>edu</a>.</p></li>
</ul>
</section>
<section id="instructions-to-run-code-in-this-repository">
<h2>Instructions to Run Code in this Repository<a class="headerlink" href="#instructions-to-run-code-in-this-repository" title="Permalink to this heading">#</a></h2>
<ul class="simple">
<li><p>To compile the book, run this from the repository’s root directory</p></li>
</ul>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">jupyter</span><span class="o">-</span><span class="n">book</span> <span class="n">build</span> <span class="o">-</span><span class="n">W</span> <span class="o">./</span>
</pre></div>
</div>
<p>The option <code class="docutils literal notranslate"><span class="pre">-W</span></code> will treat warnings as errors.</p>
<section id="dependencies-and-virtual-environments">
<h3>Dependencies and Virtual Environments<a class="headerlink" href="#dependencies-and-virtual-environments" title="Permalink to this heading">#</a></h3>
<p>The following is additional helpful information to run the code used in the lectures.</p>
</section>
<section id="working-with-pip-requirements">
<h3>Working with <code class="docutils literal notranslate"><span class="pre">pip</span></code> requirements<a class="headerlink" href="#working-with-pip-requirements" title="Permalink to this heading">#</a></h3>
<p><code class="docutils literal notranslate"><span class="pre">conda</span></code> allows for a lot of flexibility, but can often be slow. <code class="docutils literal notranslate"><span class="pre">pip</span></code>, however, is fast for what it does.  You can install the requirements for this project using the <code class="docutils literal notranslate"><span class="pre">requirements.txt</span></code> file specified here. Do this with the following command:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">.</span><span class="n">txt</span>
</pre></div>
</div>
</section>
<section id="working-with-conda-environments">
<h3>Working with <code class="docutils literal notranslate"><span class="pre">conda</span></code> environments<a class="headerlink" href="#working-with-conda-environments" title="Permalink to this heading">#</a></h3>
<p>The dependencies used in this environment (along with many other environments commonly used in data science) are stored in the conda environment called <code class="docutils literal notranslate"><span class="pre">blank</span></code> which is saved in the file called <code class="docutils literal notranslate"><span class="pre">environment.yml</span></code>. To create the environment from the file (as a prerequisite to loading the environment), use the following command:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">env</span> <span class="n">create</span> <span class="o">-</span><span class="n">f</span> <span class="n">environment</span><span class="o">.</span><span class="n">yml</span>
</pre></div>
</div>
<p>Now, to load the environment, use</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">activate</span> <span class="n">blank</span>
</pre></div>
</div>
<p>Note that an environment file can be created with the following command:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">env</span> <span class="n">export</span> <span class="o">&gt;</span> <span class="n">environment</span><span class="o">.</span><span class="n">yml</span>
</pre></div>
</div>
<p>However, it’s often preferable to create an environment file manually, as was done with the file in this project.</p>
<p>Also, these dependencies are also saved in <code class="docutils literal notranslate"><span class="pre">requirements.txt</span></code> for those that would rather use pip. Also, GitHub actions work better with pip, so it’s nice to also have the dependencies listed here. This file is created with the following command:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">freeze</span> <span class="o">&gt;</span> <span class="n">requirements</span><span class="o">.</span><span class="n">txt</span>
</pre></div>
</div>
<p><strong>Other helpful <code class="docutils literal notranslate"><span class="pre">conda</span></code> commands</strong></p>
<ul class="simple">
<li><p>Create conda environment from file: <code class="docutils literal notranslate"><span class="pre">mamba</span> <span class="pre">env</span> <span class="pre">create</span> <span class="pre">-f</span> <span class="pre">environment.yml</span></code></p></li>
<li><p>Activate environment for this project: <code class="docutils literal notranslate"><span class="pre">mamba</span> <span class="pre">activate</span> <span class="pre">blank</span></code></p></li>
<li><p>Remove conda environment: <code class="docutils literal notranslate"><span class="pre">mamba</span> <span class="pre">remove</span> <span class="pre">--name</span> <span class="pre">finm</span> <span class="pre">--all</span></code></p></li>
<li><p>Create blank conda environment: <code class="docutils literal notranslate"><span class="pre">mamba</span> <span class="pre">create</span> <span class="pre">--name</span> <span class="pre">myenv</span> <span class="pre">--no-default-packages</span></code></p></li>
<li><p>Create blank conda environment with different version of Python: <code class="docutils literal notranslate"><span class="pre">mamba</span> <span class="pre">create</span> <span class="pre">--name</span> <span class="pre">myenv</span> <span class="pre">--no-default-packages</span> <span class="pre">python</span></code> Note that the addition of “python” will install the most up-to-date version of Python. Without this, it may use the system version of Python, which will likely have some packages installed already.</p></li>
</ul>
</section>
<section id="mamba-and-conda-performance-issues">
<h3><code class="docutils literal notranslate"><span class="pre">mamba</span></code> and <code class="docutils literal notranslate"><span class="pre">conda</span></code> performance issues<a class="headerlink" href="#mamba-and-conda-performance-issues" title="Permalink to this heading">#</a></h3>
<p>Since <code class="docutils literal notranslate"><span class="pre">conda</span></code> has so many performance issues, it’s recommended to use <code class="docutils literal notranslate"><span class="pre">mamba</span></code> instead. I recommend installing the <code class="docutils literal notranslate"><span class="pre">miniforge</span></code> distribution. See here: <a class="github reference external" href="https://github.com/conda-forge/miniforge">conda-forge/miniforge</a></p>
</section>
</section>
</section>

    <script type="text/x-thebe-config">
    {
        requestKernel: true,
        binderOptions: {
            repo: "binder-examples/jupyter-stacks-datascience",
            ref: "master",
        },
        codeMirrorConfig: {
            theme: "abcdef",
            mode: "python"
        },
        kernelOptions: {
            name: "python3",
            path: "./."
        },
        predefinedOutput: true
    }
    </script>
    <script>kernelName = 'python3'</script>

                </article>
              

              
              
              
              
                <footer class="prev-next-footer">
                  
<div class="prev-next-area">
    <a class="left-prev"
       href="intro.html"
       title="previous page">
      <i class="fa-solid fa-angle-left"></i>
      <div class="prev-next-info">
        <p class="prev-next-subtitle">previous</p>
        <p class="prev-next-title">Data Science Tools for Finance</p>
      </div>
    </a>
    <a class="right-next"
       href="lectures/Week1/HW0.html"
       title="next page">
      <div class="prev-next-info">
        <p class="prev-next-subtitle">next</p>
        <p class="prev-next-title">Homework 0: Setting up your computing environment</p>
      </div>
      <i class="fa-solid fa-angle-right"></i>
    </a>
</div>
                </footer>
              
            </div>
            
            
              
                <div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">

  <div class="sidebar-secondary-item">
  <div class="page-toc tocsection onthispage">
    <i class="fa-solid fa-list"></i> Contents
  </div>
  <nav class="bd-toc-nav page-toc">
    <ul class="visible nav section-nav flex-column">
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#summary">Summary</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#assignments">Assignments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#final-project">Final Project</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#assessment">Assessment</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#schedule">Schedule</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#hw-due-dates">HW Due Dates</a></li>
</ul>
</li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#references">References</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#software-to-be-used-in-class">Software to be used in class</a></li>
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#instructions-to-run-code-in-this-repository">Instructions to Run Code in this Repository</a><ul class="nav section-nav flex-column">
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#dependencies-and-virtual-environments">Dependencies and Virtual Environments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#working-with-pip-requirements">Working with <code class="docutils literal notranslate"><span class="pre">pip</span></code> requirements</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#working-with-conda-environments">Working with <code class="docutils literal notranslate"><span class="pre">conda</span></code> environments</a></li>
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#mamba-and-conda-performance-issues"><code class="docutils literal notranslate"><span class="pre">mamba</span></code> and <code class="docutils literal notranslate"><span class="pre">conda</span></code> performance issues</a></li>
</ul>
</li>
</ul>
  </nav></div>

</div></div>
              
            
          </div>
          <footer class="bd-footer-content">
            
<div class="bd-footer-content__inner container">
  
  <div class="footer-item">
    
<p class="component-author">
By Jeremy Bejarano
</p>

  </div>
  
  <div class="footer-item">
    

  <p class="copyright">
    
      © Copyright 2024.
      <br/>
    
  </p>

  </div>
  
  <div class="footer-item">
    
  </div>
  
  <div class="footer-item">
    
  </div>
  
</div>
          </footer>
        

      </main>
    </div>
  </div>
  
  <!-- Scripts loaded after <body> so the DOM is not blocked -->
  <script src="_static/scripts/bootstrap.js?digest=5b4479735964841361fd"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=5b4479735964841361fd"></script>

  <footer class="bd-footer">
  </footer>
  </body>
</html>