Class Materials

Handin Instructions

For homework assignments (except for the Collaboration Policy and assigned readings), follow the instructions on the homework pdf and submit on Canvas.

Refer the Canvas guide if you run into any issues or come to hours. Be sure to sign the collaboration policy before the second class. Read the Course Missive for more detailed information about late handins, extensions, and grades.



Date Topic Class Materials Assignment Due Date
0: Introduction to Computation
9/10 Media Bias
[slides]
Missive
Collaboration Policy
HW0-1
HW1-1 [soln]
Tue 9/15
1: Spreadsheets - Assessing the Liberalness of U.S. Senators
9/15 Formulating a Computational Problem & XML [slides] Senate Data
HW1-2
[soln - part 1 2]
Thurs 9/17
9/17 Data Collection
[slides_1] [slides_2]
Worldometer
ACT1-1
9/22 Ranking Senators (1/3)
[slides]
ACT1-1 (contd.)
HW1-3
[soln - part 1 2]
Tue 9/29
9/24 Ranking Senators (2/3)
[slides_1] [slides_2]
ACT1-2
9/29 Ranking Senators (3/3)
[slides] [project_slides]
ACT1-3
Project_Proposal_Sample
Project_Example_1
Project_Example_2
HW1-4 [soln]
Tue 10/06
Project_1
Project_1_rubric
(Proposal) Sat 10/10
(Project) Mon 10/19
2: Textual Analysis in Python: Building a Concordance for a Text
10/1 Textual Analysis and Intro to Python
[slides]
GoogleNgrams
Repl.it
10/6 Intro to Python
[slides]
Example.py
ACT2-1
HW2-1 [Task 1] [Written] 10/13
10/8 Your first Python program
[slides]
Example.py
ACT2-1
10/13 Python Control Flow
[slides]
HW2-2 [soln] 10/20
10/15 Summary Statistics (1/3)
[slides]
ACT2_2
ACT2_2.py
poem.txt
10/20 Summary Statistics (2/3)
[slides]
ACT2_2
MobyDick.txt
HW2-3 authors.csv [soln] 10/27
10/22 Summary Statistics (3/3)
[slides]
10/27 Debugging Code
[slides]
ACT2-3
functionErrors.py
HW2-3B.pdf [soln] [rps] 11/03
10/29 Vocabulary Size of Moby Dick
[slides_1] [slides_2]
ACT2-4
11/5 Project 2
[slides]
Data Import
Text Data Sources
Example Skeleton
Project 2
Project 2 Rubric
HW2-4 [soln]
HW due 11/10

Project Proposal due 11/20

Project due 12/2
11/10 Python Dictionaries
[slides]
ACT2-5 HW2-5 [soln] 11/17
3: Regex and other tools
11/12 Regular Expressions
[slides]
PythonRE

Regex101
11/17 More Regular Expressions
[slides]
poem.txt
ACT3-1
HW2-6 [Part 1 2] 12/1
11/19 Determining Authorship
[slides_1] [slides_2]
ACT3-2
ACT3-2.zip
11/24 Determining Authorship (contd)
11/26 No Class: Thanksgiving!
12/1 Project 3 + Course Recap
[slides_1] [slides_2]
Project 3