PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Cfm

Compute Random Walk Hitting and Return Probabilities

Last updated: Jun 13, 2026

Quick Overview

This question evaluates understanding of probability theory and stochastic processes, specifically simple symmetric random walks, expected hitting times with absorbing boundaries, and recurrence versus transience (return probabilities) on integer lattices.

  • hard
  • Cfm
  • Machine Learning
  • Data Scientist

Compute Random Walk Hitting and Return Probabilities

Company: Cfm

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Technical Screen

Consider simple symmetric random walks on integer lattices. 1. In one dimension, a particle starts at integer position `x` with absorbing boundaries at integers `a` and `b`, where `a < x < b`. At each step it moves to the left or right by 1 with probability `1/2` each. What is the expected number of steps until it first hits either boundary `a` or boundary `b`? 2. In two dimensions, a particle starts at the origin `(0, 0)` on the integer lattice. At each step it moves one unit up, down, left, or right, each with probability `1/4`. What is the probability that it eventually returns to the origin? 3. Extend the previous question to three dimensions: the particle starts at `(0, 0, 0)` and at each step moves to one of its six neighboring lattice points with probability `1/6` each. What is the probability that it eventually returns to the origin?

Quick Answer: This question evaluates understanding of probability theory and stochastic processes, specifically simple symmetric random walks, expected hitting times with absorbing boundaries, and recurrence versus transience (return probabilities) on integer lattices.

|Home/Machine Learning/Cfm

Compute Random Walk Hitting and Return Probabilities

Cfm logo
Cfm
May 31, 2026, 12:00 AM
hardData ScientistTechnical ScreenMachine Learning
0
0

Consider simple symmetric random walks on integer lattices.

  1. In one dimension, a particle starts at integer position x with absorbing boundaries at integers a and b , where a < x < b . At each step it moves to the left or right by 1 with probability 1/2 each. What is the expected number of steps until it first hits either boundary a or boundary b ?
  2. In two dimensions, a particle starts at the origin (0, 0) on the integer lattice. At each step it moves one unit up, down, left, or right, each with probability 1/4 . What is the probability that it eventually returns to the origin?
  3. Extend the previous question to three dimensions: the particle starts at (0, 0, 0) and at each step moves to one of its six neighboring lattice points with probability 1/6 each. What is the probability that it eventually returns to the origin?
Loading comments...

Browse More Questions

More Machine Learning•More Cfm•More Data Scientist•Cfm Data Scientist•Cfm Machine Learning•Data Scientist Machine Learning

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.