UUtah Data Mining | Fall 2026 | L25: PageRank
Overview
The lecture traces web search from 1990s keyword matching, cosine and Jaccard similarity, crawlers, and inverted indexes to Google’s PageRank model of the web as a directed graph. It explains how a 15% random teleport makes the random-surfer Markov chain ergodic, then derives a scalable power-method computation that uses sparse matrix-vector multiplication rather than storing a dense PageRank matrix.
Key takeaways
- Keyword matching alone is vulnerable to manipulation: repeating terms or copying top-ranked page content can inflate apparent relevance and make results repetitive.
- An inverted index makes search fast by precomputing ranked page lists for frequent queries, which can account for roughly 95% to 99% of searches.
- PageRank’s recursive definition scores pages through the links they receive from other pages, modeling link structure as a directed graph and importance as random-surfer visitation frequency.
- Adding a 15% random teleport probability helps the web-walk Markov chain escape disconnected regions, cycles, and link traps so it has a useful limiting distribution.
- The power method scales PageRank by repeatedly multiplying a vector by the sparse web transition matrix and adding teleportation, avoiding storage of a dense N-by-N matrix.
- The teleportation vector is a ranking policy choice: uniform values provide a neutral default, while personalized or trust-based weights can favor selected pages and introduce subjective control.
Chapters
- PageRank continues the course’s Markov chain material, with emphasis on computing a chain’s limiting state.
- The final project report is due Tuesday at the end of the day and accounts for a substantial share of the project grade.
- The lecture connects graph modeling, web search history, and scalable computation.
- Before search engines, users needed a URL or discovered pages by following links.
- AltaVista and other 1990s search engines returned a ranked list of pages for a keyword such as “Apple.”
- Early ranking required pages to contain the query term, but search engines still needed to decide which matching pages belonged near the top.
- A simple ranking method counted keyword occurrences, but pages could mention a term many times without being the best result.
- Search engines represented pages and queries as bag-of-words vectors and ranked pages by cosine similarity.
- Locality-sensitive hashing, or LSH, helped retrieve similar page vectors without comparing every page.
- Queries such as “Apple computers” needed to match combinations of terms rather than isolated words.
- Shingles represent short sequences of words, and Jaccard similarity can compare sets of shingles.
- LSH and MinHash supported faster similarity search, with additional choices such as stemming plural words or removing stop words like “the.”
- Web publishers learned to manipulate keyword ranking by repeating terms, sometimes in tiny or background-colored text.
- Search engines responded with spam filters, while spammers copied content from highly ranked pages to imitate their relevance.
- These tactics could make results repetitive, creating a need for diverse rankings and a continuing cat-and-mouse contest.
- A relatively small set of frequent queries could account for roughly 95% to 99% of searches.
- An inverted index stored pre-ranked page lists for common queries, allowing fast serving without running LSH for every request.
- Search engines refreshed these lists in the background, often every few days, as pages changed.
- A crawler visits a page, records its URL and text-derived representation, and updates the search index.
- It parses HTML to find outgoing links, follows links to other pages, and repeats the process across the web.
- Running many crawlers and revisiting pages helps maintain an updated record of web content and links.
- Yahoo began as a manually curated collection of links assembled by two Stanford graduate students.
- The directory organized websites into categories and could sell more prominent listings while retaining editorial control.
- In the 1990s, curated directories competed with keyword search engines such as AltaVista as a way to navigate the web.
- The class’s discussion of a 2026 traffic ranking named Google, YouTube, and Facebook among the highest-visited sites, with ChatGPT also in the top five.
- The discussion contrasted today’s prominent platforms with Yahoo’s earlier role as a central directory of links.
- Google’s PageRank research, developed at Stanford in 1998, offered a new way to rank pages beyond matching query text.
- PageRank treats each web page as a node and each hyperlink as a directed edge.
- A page’s importance depends on links from other important pages, creating a recursive definition of relevance.
- The random-surfer interpretation estimates which pages a person following links is likely to visit over time.
- New pages may have no incoming links, some pages or language communities may be disconnected, and link structures can contain traps.
- A web graph with disconnected components or absorbing regions does not guarantee a single useful limiting distribution for a random walk.
- Comment spam and link farms can create artificial paths intended to funnel traffic or ranking value to selected pages.
- The random-surfer model teleports to a randomly selected page with probability 0.15, rather than following a link.
- With teleportation, every page can be reached from every other page, helping make the chain ergodic.
- Teleportation is useful beyond dead ends because it also lets a walker escape cycles and small regions of the graph.
- The directed web graph is represented by an adjacency matrix and normalized into a transition matrix P.
- The PageRank transition matrix combines link-following and teleportation: R = (1 − β)P + βQ, with β = 0.15 and Q representing uniform jumps.
- The limiting PageRank vector assigns each page a score proportional to its long-run visitation frequency, which can help rank pages with similar keyword relevance.
- The link matrix P is sparse, but explicitly forming the teleportation-adjusted matrix R would make it dense and require infeasible storage at web scale.
- Simulating a random walk and counting visits gives an approximation, while explicitly forming high matrix powers also creates dense intermediates.
- General eigenvector solvers can be precise, but operating on a dense matrix is impractical for a very large web graph.
- The power method repeatedly applies the transition operator to a vector, converging toward its top eigenvector, the PageRank vector.
- Each iteration computes a sparse multiplication with P and adds the teleportation contribution, avoiding construction of dense R.
- The lecture’s pseudocode uses β = 0.15 and an all-ones teleportation vector scaled by 1/N, then returns the iterate after a chosen number of steps.
- Initializing a new computation with the previous day’s PageRank vector can reduce the iterations needed after the web graph changes.
- Changing the teleportation vector can personalize rankings or favor selected domains, provided every page retains positive teleportation probability.
- A uniform teleportation vector is a neutral default; nonuniform choices raise questions about who defines trust or determines which pages receive boosts.
- The lecture closes by noting that Metropolis methods are another Markov chain tool, but defers them because of time.
Transcript excerpt
0:15 Scripts, let's get started. Today we're going to talk about PageRank. This is a continuation of the Markov chain lecture. So I didn't quite get to everything I wanted to in the lecture on Tuesday. So but so but a lot of the stuff we're planning to to some extent recover today. So I will make sure at least the last 20 minutes of the lecture we talk about the computation of the limiting state of the Markov chain, which is the most important part that we didn't get to last lecture or we got to very briefly
1:03 at the end. And this will be related to computing the PageRank vector. So I was planning to cover some aspects of it already. So PageRank is the algorithm, the model that really launched Google. So Google is one of the most kind of largest important companies in the world. This was the algorithm that that so allowed it to kind of like rule the web. So so that was what we'll be talking about today and we'll be modeling the web as a graph and so that's how it fits in the graph section. I don't want to spend too much time on logistics because I want to make sure I I
1:50 I cover everything including the stuff I didn't so I didn't get to last lecture. But just reminder, the final report is due on Tuesday next week, okay? So that's a big thing. Overall, it's like 20 I don't know, it's like something like 20% of your overall grade because the project's worth a large amount and that's that's half the points in the project. It's due at the end of the day Tuesday. The other thing I want to say about it, I don't think I said on
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.