Save this video free

UUtah Data Mining | Fall 2026 | L14: Distinct Counting

UofU Data Science · 1:21:33 · Watch on YouTube

Part of University of Utah CS 5140/6140 Data Mining. 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

The lecture develops approximate distinct counting for data streams, moving from Bloom filters to a hash-minimum estimator and HyperLogLog’s compact leading-zero representation. It then generalizes streaming sketches into mergeable summaries, showing how shared hash functions and compatible data structures support distributed aggregation and time-window queries without losing their space and error guarantees.

Key takeaways

Chapters

0:00 Course Updates: Midterm, End-Term Test, and Poster Final
3:28 Intermediate Project Report and Peer Feedback on November 3
7:38 Streaming Homework and the Next Dimensionality Reduction Unit
9:50 Streaming Constraints and the Distinct-Count Statistic F₀
16:41 Bloom Filter Setup: One Bit Array and Multiple Hash Functions
19:17 Bloom Filter Membership Queries and False Positives
26:43 Bloom Filter Saturation Limits for Large Streams
30:33 Estimating F₀ from the Minimum Uniform Hash Value
38:24 Averaging Independent Hash Estimates to Reduce Error
44:40 Median Trick: Lower Failure Probability with Repetition
52:25 HyperLogLog’s Leading-Zero Compression Idea
1:00:20 Distinct Counting Recap: Accuracy Through Sketch Compression
1:01:32 Mergeable Summaries Preserve Streaming Space and Error
1:08:23 Distributed Routers and Cloud Machines Merge Local Sketches
1:11:38 Recent Time-Window Queries from Hierarchical Summaries
1:17:13 Merging Samples and Count-Min Sketches with Shared Hashes

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

Transcript excerpt

0:15 Uh welcome back everyone. Uh so let's get started. So today we're going to be continuing on the streaming part of uh so the class and we'll talk about a new problem called the distinct counting problem. Um So this is kind of a classic uh uh um uh um it's kind of approach that's got some um so some very cool ideas in it. So um um so I hope it's interesting. And then we'll also talk about mergeable summaries and this way to think about why the streaming paradigm is not just useful in this one setting which we'll review at the the start of the lecture, but can be applied

1:04 to many other settings where you want to kind of come up with some sort of compressed summarized representation of the data, but you and you want to do it efficiently at large scale. And so this kind of mergeable summary framework will give us some insight into why this is like a very useful and powerful idea. Um just beyond just the specific streaming setting. Um before we get started just kind of let's review where we are in the class. We had the midterm test on Thursday last week. Um So we worked pretty hard to grade it over break. Um so I posted grades on Monday. I'd say on average it

1:54 was about where I wanted the average to be. So, there So, lots of people did great. That's great. Congratulations. So, kind of everyone did as well. So, hopefully what you missed is is all clear and you can kind of focus on what you need to study for in the final. Um So, um So, are there any questions about the midterm and the return on that? Um There Yeah. Uh no, it's not going to be. It's going

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, UofU Data Science.

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.