Docsity

STAT606: Computing in Data Science & Statistics, Lecture notes of Programming Languages

Toggle sidebar
bg1
Syllabus
STAT 606: Computing in Data Science & Statistics
Spring 2023, 3 Credits
Description
A survey of some of the tools and frameworks that are currently popular among data scientists and statis-
ticians working in both academia and industry. The focus will be on complementing the tools that are
already familiar from previous courses on R. The course will begin with an accelerated introduction to the
Python programming language and brief introductions to object-oriented and functional programming. We
will then cover some of the scientific computing platforms available in Python, including numpy, scipy
and scikit-learn, as well as visualization using matplotlib. We will then turn to discussing collecting data
from the web both by scraping and using APIs. The course will conclude with a brief survey of distributed
computing platforms, focusing on Hadoop and Google Cloud Platform.
Prerequisites
Declared in Statistics MS. There are no strict course prerequisites, but I assume your background is equiv-
alent to STAT605 or similar. In practice, that means being comfortable using R, familiarity with the
UNIX/Linux command line, and prior experience with distributed computing resources (e.g., using a sched-
uler on a cluster). Students with no prior programming experience are discouraged from enrolling.
Instructor
Keith Levin, [email protected]
Office: Medical Sciences Center 6170 Office hours: Mondays and Wednesdays 11am to noon or by ap-
pointment.
Meetings and Key Dates
Lecture: Mondays and Wednesdays, 9:30am-10:45am in Educational Sciences 212
•First lecture: Wednesday, January 25th, 2023
•Last lecture: Wednesday, May 3rd, 2023
•Last homework due: May 10th by 11:59 p.m.
Course Learning Outcomes
By the end of this course, you will be able to:
•Understand and apply the basics of the Python programming language and basic programming pat-
terns in both the object-oriented and functional programming frameworks.
•Collect and clean data from a variety of data sources including markup languages from the web,
databases, and APIs
•Analyze and summarize data using matplotlib,numpy,scipy and scikit-learn.
•Use Google Cloud Platform and similar cloud computing resources to run large-scale computations
in a distributed environment using Hadoop,mrjob and PySpark.
•Build and fit statistical models on large datasets in the Google TensorFlow and Keras frameworks.
Course Topics
•Introduction to Python. Variables and data types. Programming patterns. Classes and objects.
Functional programming.
•Visualization with matplotlib. Basic plotting.
•Scientific computing in Python. Introduction to numpy,scipy and scikit-learn.
1
pf3

Partial preview of the text

Download STAT606: Computing in Data Science & Statistics and more Lecture notes Programming Languages in PDF only on Docsity!

Syllabus

STAT 606: Computing in Data Science & Statistics

Spring 2023, 3 Credits

Description A survey of some of the tools and frameworks that are currently popular among data scientists and statis- ticians working in both academia and industry. The focus will be on complementing the tools that are already familiar from previous courses on R. The course will begin with an accelerated introduction to the Python programming language and brief introductions to object-oriented and functional programming. We will then cover some of the scientific computing platforms available in Python, including numpy, scipy and scikit-learn, as well as visualization using matplotlib. We will then turn to discussing collecting data from the web both by scraping and using APIs. The course will conclude with a brief survey of distributed computing platforms, focusing on Hadoop and Google Cloud Platform.

Prerequisites Declared in Statistics MS. There are no strict course prerequisites, but I assume your background is equiv- alent to STAT605 or similar. In practice, that means being comfortable using R, familiarity with the UNIX/Linux command line, and prior experience with distributed computing resources (e.g., using a sched- uler on a cluster). Students with no prior programming experience are discouraged from enrolling.

Instructor Keith Levin, [email protected] Office: Medical Sciences Center 6170 Office hours: Mondays and Wednesdays 11am to noon or by ap- pointment.

Meetings and Key Dates Lecture: Mondays and Wednesdays, 9:30am-10:45am in Educational Sciences 212

  • First lecture: Wednesday, January 25th, 2023
  • Last lecture: Wednesday, May 3rd, 2023
  • Last homework due: May 10th by 11:59 p.m.

Course Learning Outcomes By the end of this course, you will be able to:

  • Understand and apply the basics of the Python programming language and basic programming pat- terns in both the object-oriented and functional programming frameworks.
  • Collect and clean data from a variety of data sources including markup languages from the web, databases, and APIs
  • Analyze and summarize data using matplotlib, numpy, scipy and scikit-learn.
  • Use Google Cloud Platform and similar cloud computing resources to run large-scale computations in a distributed environment using Hadoop, mrjob and PySpark.
  • Build and fit statistical models on large datasets in the Google TensorFlow and Keras frameworks.

Course Topics

  • Introduction to Python. Variables and data types. Programming patterns. Classes and objects. Functional programming.
  • Visualization with matplotlib. Basic plotting.
  • Scientific computing in Python. Introduction to numpy, scipy and scikit-learn. 1
  • Processing Structured Data. Regular expressions. Markup languages. Databases and SQL.
  • Retrieving Data with APIs. HTTP request methods. Installing and using APIs.
  • Big data and distributed processing. Basics of parallel/cloud computing. The MapReduce frame- work. Hadoop and Spark.
  • Specifying and training models with TensorFlow. Basics of Google TensorFlow. Function graphs. Symbolic differentiation.

Textbook, Readings & Online Resources There is no physical textbook required for this course. In the first half of the course, we will make fre- quent reference to Allen B. Downey’s Think Python, available at https://greenteapress.com/ wp/think-python-2e/ and to Charles Severance’s Python for Informatics, available at https:// www.py4e.com/book. Other required readings will be made available as we cover relevant material, and supplemental readings will be suggested for those who are interested in learning more.

All resources will be made available on the course web page, https://pages.stat.wisc.edu/

˜kdlevin/teaching/Spring2023/STAT606/index.html. and on the course Canvas page. Please contact the instructor if any resources are missing from either of these websites. The instructor will make an effort to post slides and demo code a few days ahead of time so that they are available before lecture. It is recommended, though not required, that students complete assigned readings before lecture.

Homeworks & Late Days Homework assignments will be submitted via Canvas, as .zip files, with the name NetID hwX.zip, where NetID is your NetID and X is your homework number. Detailed instructions on homework submis- sion can be found at https://pages.stat.wisc.edu/˜kdlevin/teaching/Spring2023/ STAT606/hw_instructions.html Student collaboration. Students are permitted to discuss homeworks with one another, but students must complete assignments on their own, and must disclose in their homework the names of those with whom they collaborated. Details are available in the instructions linked above. Late days. Homework due dates are strict, and you may turn in work late only with the use of “late days”, of which you have seven (7) to use over the course of the semester. For each late day you spend, you may extend the deadline of a homework by up to 24 hours. You may spend multiple late days per homework. Once you have turned in your homework you may not spend more late days to turn in your homework again after the deadline (you may, of course, turn in multiple versions of your homework assignment through Canvas prior to the deadline). There is no need to notify the instructor that you wish to use a late day. Simply turn in your homework late, and your late days will be deducted upon grading. Please note that once you have run out of late days, homeworks turned in late will not receive credit. The purpose of this late day policy is to give you a way to deal with unexpected circumstances (e.g., illness, family emergencies, job interviews) without having to contact the instructor. Of course, if dire circumstances arise (e.g., long-term illness that causes you to miss multiple weeks of lecture), please speak with me as promptly as possible. Note: owing to the university grading schedule, you may not use late days to extend any deadline beyond the scheduled day of the final. Contesting scores. Students may contest a score on an assignment up to two (2) weeks from when scores are released, after which scores may not be changed. To comply with the registrar’s grading schedule, students may not contest any grade more than one (1) week past the scoring of the final homework.

Grading There are no exams in this course. Final grades will be based on cumulative performance on a set of approximately thirteen homeworks, though the exact number of homework assignments is subject to change depending factors such as lecture cancellations and the speed with which we cover material. Each homework assignment is worth a given number of points, and final grades will be based on a percentage out of the total possible points. Assignments later in the semester will be worth more points, on average, than those earlier