Stationary Distribution of a Random Surfer on a Four Page Web

Last updated: November 29, 2026

Quick Overview

Four pages link as follows: A links to B and C, B links to C, C links to A, and D links to C. Find the random surfer's long-run share of time on each page with and without a 0.85 damping factor, and explain why damping is needed.

Google
Statistics & Math
Software Engineer
Google
November 29, 2026
Software Engineer
Onsite
Statistics & Math
Medium

0

0

0 solved


Four pages link as follows: A links to B and C, B links to C, C links to A, and D links to C. Find the random surfer's long-run share of time on each page with and without a 0.85 damping factor, and explain why damping is needed.

PageRank is Google's founding idea, and interviewers use it to test Markov chain fundamentals: stationary distributions, irreducibility, and why the teleport step exists. Expect to solve a small chain by hand and implement power iteration.

What the Interviewer Expects
  • Write the transition matrix from the link structure
  • Solve for the stationary distribution without damping
  • Explain why page D gets zero without teleportation
  • Add damping and compute ranks by power iteration
  • Discuss dangling pages and convergence
Key Topics to Cover
Markov chains
stationary distribution
PageRank
power iteration
irreducibility
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What happens to the undamped chain if A also linked only to itself?
  • How fast does power iteration converge, and what controls it?
  • How would you compute this on billions of pages?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

The surfer follows a uniformly random outlink at each step. With damping dd, they follow a link with probability dd and jump to a uniformly random page with probability 1−d1 - d. We want the stationa...

Approach

Without damping, solve the balance equations directly. Note that nothing links to D, so once the surfer leaves D they never return: D is transient. With damping, every page is reachable from every pag...


Submit Your Answer
Markdown supported