Save this video free

Lecture 15: Zipf's Law

Professor Rosen · 1:04:12 · Watch on YouTube

Part of Temple University CIS 1051. See all 23 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Professor Rosen uses an English word-frequency dataset of 5,000 words to teach file parsing, lists, slicing, logarithms, and graphing while investigating Zipf's law: word frequency falls roughly in inverse proportion to rank, producing a log-log slope near -1. The examples connect frequency patterns to SETI signal detection and show how Python tools such as `sum`, `math.log`, and Altair can reveal patterns that are difficult to see on a linear graph.

Key takeaways

Chapters

0:00 Course Logistics, Grade Updates, and Week Eight Deadlines
11:00 Zipf's Law, Language Patterns, and SETI Signals
14:36 Inspecting the 5,000-Word CSV and Its Dispersion Column
18:42 Parsing CSV Rows into Parallel Python Lists
26:21 Converting CSV Fields and Introducing Zipf's Rank-Frequency Pattern
30:02 Calculating the Share of Words Used by the Top and Bottom Ten
36:18 Comparing Rare Words, Common Words, and Genre Dispersion
39:26 Understanding Logarithms as Repeated Splitting
47:38 Building a Word-Rank Chart with Altair
53:23 Log-Log Graphs Reveal Zipf's Law's Near -1 Slope
57:13 Finding Reversed Words with Python Slicing
1:02:49 Closing Reminders on Labs, Demos, and Grades

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, let's go ahead and get this lecture started. One sec. There we go. Okay. So, next what I need to do I should have gone into Canvas. Yes, we did. Canvas introduction to problem solving modules week eight. So, the goal is I'm going to meet So, some of our TAs have reported sick. So, I'm going to meet with them over Zoom either tonight or tomorrow in order to get your exam graded. Uh, your TA what's going to happen is because of again because some of them are sick, I'd rather not get into a room together uh like I normally do. Um, so I'm just going to meet them over Zoom and give

0:47 them directions on how to grade a lot of the material even though a lot of the material a lot of the questions are fairly simple to grade because they were multiple choice, right? Um, so let's see. I need to just change the link for today for module 8. We're still going to be working on um file reading today. On Thursday, we're going to start on dictionaries. Okay. So, and then with that will continue on next week until we get and then next and then the Thursday after that we'll start using dictionaries on our um on on something I really appreciate called Monte Carlo approximations. They're

1:36 um part of my effort for this class being accessible to everybody. um which is that I I know that math is not necessarily what you want to do with your life and so why do the hard math when you can make the computer do the math for you right uh with the runstone stuff I've gone through and I've started re uh running the grader to make sure that I can import it uh tonight into your um

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Professor Rosen.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.