SlideShare a Scribd company logo
Random Walks
Shuai Zhang, UNSW
cheungshuai@outlook.com
What is
Random Walk?
A drunk man will find his
way home, but a drunk
bird may get lost forever.
What is Random Walk?
• Random walk is a process, a model or a rule to generate path
sequence of random motion.
• A random walk is a mathematical object, known as a stochastic or
random process, that describes a path that consists of a succession of
random steps on some mathematical space such as the integers.
What is Random Walk?
• Many natural phenomena can be modelled as random walk
• the path traced by a molecule as it travels in a liquid or a gas,
• the search path of a foraging animal,
• the price of a fluctuating stock and
• the financial status of a gambler
• PageRank
• Recommender Systems
• Investment theory of stock market
• Generate fractal images
• Even though they may not be truly random in reality
Simulation of Normally Distributed Random
Walk
• We start with initial location 100 and generate the random walk
based on normal probability distribution.
Simulation on Higher Dimensions
• In higher dimensions, the set of randomly walked points has
interesting geometric properties. In fact, one gets a discrete fractal.
Simulation on
Higher
Dimensions
Simple random walks on graphs
Let G=(V, E) be a connected graph, |V|=n and |E|=m
• Given an initial vertex 𝑣0, select “at random” an adjacent vertex 𝑣1,
and move to this neighbour
• Then select “at random” a neighbour 𝑣2 of 𝑣1, and move to it.
• etc.
Introduction to Random Walk
Introduction to Random Walk
Introduction to Random Walk
Introduction to Random Walk
Introduction to Random Walk
Simple random walks on graphs
The sequence of vertices 𝑣0, 𝑣1, 𝑣2, … , 𝑣 𝑘, … selected in this way is a
simple random walk on G.
At each step 𝑘, we have a random variable 𝑋 𝑘 taking values on 𝑉.
Hence, the random sequence
𝑋0, 𝑋1, 𝑋2, … , 𝑋 𝑘, …
Is a discrete time stochastic process defined on the state space 𝑉.
Simple random walks on graphs
What does “at random” mean?
If at time 𝑘 we are at vertex 𝑖, choose uniformly an adjacent vertex 𝑗 to
move to.
Let d(i) denote the degree of vertex i.
These transition
probabilities do
not depend on
“time” 𝑘
Simple random walks on graphs
Random Walk and Markov chain
Correspondence between terminology of random walks and Markov chains
Random Walk and Markov chain
• The Markov property holds: conditional on the present, the future is
independent of the past
• The random sequence of vertices visited by the walk,
𝑋0, 𝑋1, 𝑋2, … , 𝑋 𝑘, …
• Is a Markov chain with state space V and matrix of transition
probabilities
𝑃 = 𝑝𝑖𝑗 𝑖, 𝑗 ∈ 𝑉
Random Walk and Markov chain
• A Markov chain describes a stochastic process over a set of states
according to a transition probability matrix
• Markov chains are memoryless
• Random walks correspond to Markov chains:
• The set of states is the set of nodes in the graph.
• The elements of the transition probability matrix are the probabilities to
follow and edge from one node to another.
Random Walk and Markov chain
Stochastic matrix
Random Walk and Markov chain
𝑗∈𝑉
𝑝𝑖𝑗 = 1
Let D be the diagonal matrix with 𝐷 𝑖𝑗 = 1/𝑑(𝑖) and A be the
adjacency matrix of G. Then
P = DA
In particular , if G is d-regular,
𝑃 =
1
𝑑
𝐴
Random Walk and Markov chain
Let 𝜌 𝑘 be the row vector giving the probability distribution of 𝑋 𝑘,
𝜌 𝑘 𝑖 = 𝑃 𝑋 𝑘 = 𝑖 , 𝑖 ∈ 𝑉
The rule of the walk is expressed by the simple equation
𝜌 𝑘+1 = 𝜌 𝑘 𝑃
That is, if 𝜌0 is the initial distribution from which the starting vertex 𝑣0
is drawn,
𝜌 𝑘 = 𝜌0 𝑃 𝑘, 𝑘 ≥ 0
Random Walk and Markov chain
• Since G is connected, the random walk on G corresponds to an
irreducible Markov chain.
Irreducible: There is a path from every node to every other node.
• The Perron-Frobenius theorem for nonnegative matrices implies the
existence of a unique probability distribution π, which is a positive
left eigenvector of P associated to its dominant eigenvalue λ = 1
Random Walk and Markov chain
If the initial vertex of the walk is drawn from 𝜋 , then the probability
distribution at time k is
𝜌 𝑘 = 𝜋𝑃 𝑘
= π
Hence, for all time k >=0 ,
𝑃 𝑋 𝑘 = 𝑖 = 𝜋 𝑖 , 𝑖 ∈ 𝑉
The random walk is a stationary stochastic process
𝜋 is the
stationary
distribution
Random Walk and Markov chain
Does a stationary distribution always exist? Is it unique?
Yes, if the graph is “well-behaved”.
Irreducible and Aperiodic, a directed graph is said to be aperiodic if
there is no integer k > 1 that divides the length of every cycle of the
graph
Several concepts
How fast will the random surfer approach this stationary distribution?
Mixing Time!
The access time or hitting time H(i,j) is the expected number of step before
node j is visited, starting from node i. In general
𝐻 𝑖, 𝑗 ≠ 𝐻 𝑗, 𝑖
The commute time is
𝐻 𝑖, 𝑗 + 𝐻 𝑗, 𝑖
The cover time (starting from a given distribution) is the expected number of
steps to reach every node.
Random Walk with Recommender Systems
A
B
C
D
a
b
c
d
e
Random Walk with Recommender Systems
A
B
C
D
a
b
c
d
e
A to c
Random Walk with Recommender Systems
A
B
C
D
a
b
c
d
e
A to e
A
B
C
b
c
d
e
a
D
Random Walk for Recommendation
TrustWalker: A Random Walk Model for Combining Trust-based and
Item-based Recommendation
Random Walk algorithms
Random Walk algorithms
A subset of Vc of a set genes V have “a prori” known property C
Can we rank the other genes in the set VVc w.r.t their likelihood to
belong to Vc?
Random Walk in DeepWalk
DeepWalk, learning latent representations of vertices in a network
Random Walk in DeepWalk
DeepWalk, learning latent representations of vertices in a network
Reference
• http://people.revoledu.com/kardi/tutorial/StochasticProcess/Rando
mWalk/index.html
• http://www.mit.edu/~kardar/teaching/projects/chemotaxis(AndreaS
chmidt)/random.htm
• https://www.math.uchicago.edu/~lawler/srwbook.pdf
• https://www.cs.cmu.edu/~avrim/598/chap5only.pdf
• http://www.lirmm.fr/~sau/JCALM/Josep.pdf
• http://homes.di.unimi.it/valentini/MB201213/slide/RandomWalksGr
aphs.pdf
• https://arxiv.org/pdf/1403.6652.pdf
Weekly Report
• Released the DeepRec
• Revised the sequential recommendation paper
• I implemented a similar idea for rating prediction-> does not work
• Prepare for the learning group
Next Week:
• Some review work
• Revision
Ad

More Related Content

What's hot (20)

4 stochastic processes
4 stochastic processes4 stochastic processes
4 stochastic processes
Solo Hermelin
 
Random Variable
Random VariableRandom Variable
Random Variable
Habibullah Bahar University College
 
randomwalk.ppt
randomwalk.pptrandomwalk.ppt
randomwalk.ppt
ssusere8264d1
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
Mahak Vijayvargiya
 
Markov Chains
Markov ChainsMarkov Chains
Markov Chains
guest8901f4
 
Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities
Marina Santini
 
Bernoulli distribution
Bernoulli distributionBernoulli distribution
Bernoulli distribution
Suchithra Edakunni
 
Mathematical Expectation And Variance
Mathematical Expectation And VarianceMathematical Expectation And Variance
Mathematical Expectation And Variance
DataminingTools Inc
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
AakankshaR
 
Lesson 11: Markov Chains
Lesson 11: Markov ChainsLesson 11: Markov Chains
Lesson 11: Markov Chains
Matthew Leingang
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
Ratul Basak
 
Markov chains1
Markov chains1Markov chains1
Markov chains1
Kinshook Chaturvedi
 
Gram-Schmidt process
Gram-Schmidt processGram-Schmidt process
Gram-Schmidt process
Burhanuddin Kapadia
 
What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?
Kazuki Yoshida
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
ShahnawazAli81
 
Fourier transforms
Fourier transforms Fourier transforms
Fourier transforms
Fahad B. Mostafa
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
Aliul Kadir Akib
 
Importance of stochastic process
Importance of stochastic processImportance of stochastic process
Importance of stochastic process
tahir riaz
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
AMIT KUMAR
 
Conditional probability
Conditional probabilityConditional probability
Conditional probability
suncil0071
 
4 stochastic processes
4 stochastic processes4 stochastic processes
4 stochastic processes
Solo Hermelin
 
Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities
Marina Santini
 
Mathematical Expectation And Variance
Mathematical Expectation And VarianceMathematical Expectation And Variance
Mathematical Expectation And Variance
DataminingTools Inc
 
Probability Density Function (PDF)
Probability Density Function (PDF)Probability Density Function (PDF)
Probability Density Function (PDF)
AakankshaR
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
Ratul Basak
 
What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?What is the Expectation Maximization (EM) Algorithm?
What is the Expectation Maximization (EM) Algorithm?
Kazuki Yoshida
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
ShahnawazAli81
 
Importance of stochastic process
Importance of stochastic processImportance of stochastic process
Importance of stochastic process
tahir riaz
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
AMIT KUMAR
 
Conditional probability
Conditional probabilityConditional probability
Conditional probability
suncil0071
 

Similar to Introduction to Random Walk (20)

randomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.pptrandomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.ppt
VGaneshKarthikeyan
 
Statistics (recap)
Statistics (recap)Statistics (recap)
Statistics (recap)
Farzad Javidanrad
 
Stat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chainStat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chain
Khulna University
 
1. Random walk.pdf
1. Random walk.pdf1. Random walk.pdf
1. Random walk.pdf
Anjali Devi J S
 
Pavan rmc14quantumwalks
Pavan rmc14quantumwalksPavan rmc14quantumwalks
Pavan rmc14quantumwalks
Pavan Iyengar
 
Spacey random walks CAM Colloquium
Spacey random walks CAM ColloquiumSpacey random walks CAM Colloquium
Spacey random walks CAM Colloquium
Austin Benson
 
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTIONANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
Himanshu Srivastava
 
Bayesian Neural Networks
Bayesian Neural NetworksBayesian Neural Networks
Bayesian Neural Networks
Natan Katz
 
Random walk on Graphs
Random walk on GraphsRandom walk on Graphs
Random walk on Graphs
Pavan Kapanipathi
 
Markov chain intro
Markov chain introMarkov chain intro
Markov chain intro
2vikasdubey
 
Financial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic ImportanceFinancial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic Importance
Kimmo Soramaki
 
Markov Chain Basic
Markov Chain BasicMarkov Chain Basic
Markov Chain Basic
Sanghyuk Chun
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
Geometry of Continuous Time Markov Chains
Geometry of Continuous Time Markov ChainsGeometry of Continuous Time Markov Chains
Geometry of Continuous Time Markov Chains
Shuchang Zhang
 
Probabilistic Models of Time Series and Sequences
Probabilistic Models of Time Series and SequencesProbabilistic Models of Time Series and Sequences
Probabilistic Models of Time Series and Sequences
Zitao Liu
 
Page rank - from theory to application
Page rank - from theory to applicationPage rank - from theory to application
Page rank - from theory to application
GAYO3
 
Intro to Quant Trading Strategies (Lecture 2 of 10)
Intro to Quant Trading Strategies (Lecture 2 of 10)Intro to Quant Trading Strategies (Lecture 2 of 10)
Intro to Quant Trading Strategies (Lecture 2 of 10)
Adrian Aley
 
Data Mining Lecture_12.pptx
Data Mining Lecture_12.pptxData Mining Lecture_12.pptx
Data Mining Lecture_12.pptx
Subrata Kumer Paul
 
Statistical Description of Turbulent Flow
Statistical Description of Turbulent FlowStatistical Description of Turbulent Flow
Statistical Description of Turbulent Flow
Khusro Kamaluddin
 
Cartesian co.ordinates
Cartesian co.ordinatesCartesian co.ordinates
Cartesian co.ordinates
Bangulkhanbaloch
 
randomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.pptrandomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.ppt
VGaneshKarthikeyan
 
Stat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chainStat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chain
Khulna University
 
Pavan rmc14quantumwalks
Pavan rmc14quantumwalksPavan rmc14quantumwalks
Pavan rmc14quantumwalks
Pavan Iyengar
 
Spacey random walks CAM Colloquium
Spacey random walks CAM ColloquiumSpacey random walks CAM Colloquium
Spacey random walks CAM Colloquium
Austin Benson
 
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTIONANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
ANT COLONY OPTIMIZATION FOR IMAGE EDGE DETECTION
Himanshu Srivastava
 
Bayesian Neural Networks
Bayesian Neural NetworksBayesian Neural Networks
Bayesian Neural Networks
Natan Katz
 
Markov chain intro
Markov chain introMarkov chain intro
Markov chain intro
2vikasdubey
 
Financial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic ImportanceFinancial Networks III. Centrality and Systemic Importance
Financial Networks III. Centrality and Systemic Importance
Kimmo Soramaki
 
Geometry of Continuous Time Markov Chains
Geometry of Continuous Time Markov ChainsGeometry of Continuous Time Markov Chains
Geometry of Continuous Time Markov Chains
Shuchang Zhang
 
Probabilistic Models of Time Series and Sequences
Probabilistic Models of Time Series and SequencesProbabilistic Models of Time Series and Sequences
Probabilistic Models of Time Series and Sequences
Zitao Liu
 
Page rank - from theory to application
Page rank - from theory to applicationPage rank - from theory to application
Page rank - from theory to application
GAYO3
 
Intro to Quant Trading Strategies (Lecture 2 of 10)
Intro to Quant Trading Strategies (Lecture 2 of 10)Intro to Quant Trading Strategies (Lecture 2 of 10)
Intro to Quant Trading Strategies (Lecture 2 of 10)
Adrian Aley
 
Statistical Description of Turbulent Flow
Statistical Description of Turbulent FlowStatistical Description of Turbulent Flow
Statistical Description of Turbulent Flow
Khusro Kamaluddin
 
Ad

More from Shuai Zhang (8)

Learning group variational inference
Learning group  variational inferenceLearning group  variational inference
Learning group variational inference
Shuai Zhang
 
Reading group nfm - 20170312
Reading group  nfm - 20170312Reading group  nfm - 20170312
Reading group nfm - 20170312
Shuai Zhang
 
Talk@rmit 09112017
Talk@rmit 09112017Talk@rmit 09112017
Talk@rmit 09112017
Shuai Zhang
 
Learning group em - 20171025 - copy
Learning group   em - 20171025 - copyLearning group   em - 20171025 - copy
Learning group em - 20171025 - copy
Shuai Zhang
 
Learning group dssm - 20170605
Learning group   dssm - 20170605Learning group   dssm - 20170605
Learning group dssm - 20170605
Shuai Zhang
 
Reading group gan - 20170417
Reading group   gan - 20170417Reading group   gan - 20170417
Reading group gan - 20170417
Shuai Zhang
 
Introduction to XGboost
Introduction to XGboostIntroduction to XGboost
Introduction to XGboost
Shuai Zhang
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNN
Shuai Zhang
 
Learning group variational inference
Learning group  variational inferenceLearning group  variational inference
Learning group variational inference
Shuai Zhang
 
Reading group nfm - 20170312
Reading group  nfm - 20170312Reading group  nfm - 20170312
Reading group nfm - 20170312
Shuai Zhang
 
Talk@rmit 09112017
Talk@rmit 09112017Talk@rmit 09112017
Talk@rmit 09112017
Shuai Zhang
 
Learning group em - 20171025 - copy
Learning group   em - 20171025 - copyLearning group   em - 20171025 - copy
Learning group em - 20171025 - copy
Shuai Zhang
 
Learning group dssm - 20170605
Learning group   dssm - 20170605Learning group   dssm - 20170605
Learning group dssm - 20170605
Shuai Zhang
 
Reading group gan - 20170417
Reading group   gan - 20170417Reading group   gan - 20170417
Reading group gan - 20170417
Shuai Zhang
 
Introduction to XGboost
Introduction to XGboostIntroduction to XGboost
Introduction to XGboost
Shuai Zhang
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNN
Shuai Zhang
 
Ad

Recently uploaded (20)

Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 

Introduction to Random Walk

  • 2. What is Random Walk? A drunk man will find his way home, but a drunk bird may get lost forever.
  • 3. What is Random Walk? • Random walk is a process, a model or a rule to generate path sequence of random motion. • A random walk is a mathematical object, known as a stochastic or random process, that describes a path that consists of a succession of random steps on some mathematical space such as the integers.
  • 4. What is Random Walk? • Many natural phenomena can be modelled as random walk • the path traced by a molecule as it travels in a liquid or a gas, • the search path of a foraging animal, • the price of a fluctuating stock and • the financial status of a gambler • PageRank • Recommender Systems • Investment theory of stock market • Generate fractal images • Even though they may not be truly random in reality
  • 5. Simulation of Normally Distributed Random Walk • We start with initial location 100 and generate the random walk based on normal probability distribution.
  • 6. Simulation on Higher Dimensions • In higher dimensions, the set of randomly walked points has interesting geometric properties. In fact, one gets a discrete fractal.
  • 8. Simple random walks on graphs Let G=(V, E) be a connected graph, |V|=n and |E|=m • Given an initial vertex 𝑣0, select “at random” an adjacent vertex 𝑣1, and move to this neighbour • Then select “at random” a neighbour 𝑣2 of 𝑣1, and move to it. • etc.
  • 14. Simple random walks on graphs The sequence of vertices 𝑣0, 𝑣1, 𝑣2, … , 𝑣 𝑘, … selected in this way is a simple random walk on G. At each step 𝑘, we have a random variable 𝑋 𝑘 taking values on 𝑉. Hence, the random sequence 𝑋0, 𝑋1, 𝑋2, … , 𝑋 𝑘, … Is a discrete time stochastic process defined on the state space 𝑉.
  • 15. Simple random walks on graphs What does “at random” mean? If at time 𝑘 we are at vertex 𝑖, choose uniformly an adjacent vertex 𝑗 to move to. Let d(i) denote the degree of vertex i. These transition probabilities do not depend on “time” 𝑘
  • 16. Simple random walks on graphs
  • 17. Random Walk and Markov chain Correspondence between terminology of random walks and Markov chains
  • 18. Random Walk and Markov chain • The Markov property holds: conditional on the present, the future is independent of the past • The random sequence of vertices visited by the walk, 𝑋0, 𝑋1, 𝑋2, … , 𝑋 𝑘, … • Is a Markov chain with state space V and matrix of transition probabilities 𝑃 = 𝑝𝑖𝑗 𝑖, 𝑗 ∈ 𝑉
  • 19. Random Walk and Markov chain • A Markov chain describes a stochastic process over a set of states according to a transition probability matrix • Markov chains are memoryless • Random walks correspond to Markov chains: • The set of states is the set of nodes in the graph. • The elements of the transition probability matrix are the probabilities to follow and edge from one node to another.
  • 20. Random Walk and Markov chain Stochastic matrix
  • 21. Random Walk and Markov chain 𝑗∈𝑉 𝑝𝑖𝑗 = 1 Let D be the diagonal matrix with 𝐷 𝑖𝑗 = 1/𝑑(𝑖) and A be the adjacency matrix of G. Then P = DA In particular , if G is d-regular, 𝑃 = 1 𝑑 𝐴
  • 22. Random Walk and Markov chain Let 𝜌 𝑘 be the row vector giving the probability distribution of 𝑋 𝑘, 𝜌 𝑘 𝑖 = 𝑃 𝑋 𝑘 = 𝑖 , 𝑖 ∈ 𝑉 The rule of the walk is expressed by the simple equation 𝜌 𝑘+1 = 𝜌 𝑘 𝑃 That is, if 𝜌0 is the initial distribution from which the starting vertex 𝑣0 is drawn, 𝜌 𝑘 = 𝜌0 𝑃 𝑘, 𝑘 ≥ 0
  • 23. Random Walk and Markov chain • Since G is connected, the random walk on G corresponds to an irreducible Markov chain. Irreducible: There is a path from every node to every other node. • The Perron-Frobenius theorem for nonnegative matrices implies the existence of a unique probability distribution π, which is a positive left eigenvector of P associated to its dominant eigenvalue λ = 1
  • 24. Random Walk and Markov chain If the initial vertex of the walk is drawn from 𝜋 , then the probability distribution at time k is 𝜌 𝑘 = 𝜋𝑃 𝑘 = π Hence, for all time k >=0 , 𝑃 𝑋 𝑘 = 𝑖 = 𝜋 𝑖 , 𝑖 ∈ 𝑉 The random walk is a stationary stochastic process 𝜋 is the stationary distribution
  • 25. Random Walk and Markov chain Does a stationary distribution always exist? Is it unique? Yes, if the graph is “well-behaved”. Irreducible and Aperiodic, a directed graph is said to be aperiodic if there is no integer k > 1 that divides the length of every cycle of the graph
  • 26. Several concepts How fast will the random surfer approach this stationary distribution? Mixing Time! The access time or hitting time H(i,j) is the expected number of step before node j is visited, starting from node i. In general 𝐻 𝑖, 𝑗 ≠ 𝐻 𝑗, 𝑖 The commute time is 𝐻 𝑖, 𝑗 + 𝐻 𝑗, 𝑖 The cover time (starting from a given distribution) is the expected number of steps to reach every node.
  • 27. Random Walk with Recommender Systems A B C D a b c d e
  • 28. Random Walk with Recommender Systems A B C D a b c d e A to c
  • 29. Random Walk with Recommender Systems A B C D a b c d e A to e A B C b c d e a D
  • 30. Random Walk for Recommendation TrustWalker: A Random Walk Model for Combining Trust-based and Item-based Recommendation
  • 32. Random Walk algorithms A subset of Vc of a set genes V have “a prori” known property C Can we rank the other genes in the set VVc w.r.t their likelihood to belong to Vc?
  • 33. Random Walk in DeepWalk DeepWalk, learning latent representations of vertices in a network
  • 34. Random Walk in DeepWalk DeepWalk, learning latent representations of vertices in a network
  • 35. Reference • http://people.revoledu.com/kardi/tutorial/StochasticProcess/Rando mWalk/index.html • http://www.mit.edu/~kardar/teaching/projects/chemotaxis(AndreaS chmidt)/random.htm • https://www.math.uchicago.edu/~lawler/srwbook.pdf • https://www.cs.cmu.edu/~avrim/598/chap5only.pdf • http://www.lirmm.fr/~sau/JCALM/Josep.pdf • http://homes.di.unimi.it/valentini/MB201213/slide/RandomWalksGr aphs.pdf • https://arxiv.org/pdf/1403.6652.pdf
  • 36. Weekly Report • Released the DeepRec • Revised the sequential recommendation paper • I implemented a similar idea for rating prediction-> does not work • Prepare for the learning group Next Week: • Some review work • Revision

Editor's Notes

  • #4: can all be approximated by random walk models, even though they may not be truly random in reality.
  • #5: can all be approximated by random walk models, even though they may not be truly random in reality.
  • #22: a regular graph is a graph where each vertex has the same number of neighbors
  • #23: a regular graph is a graph where each vertex has the same number of neighbors
  • #24: a regular graph is a graph where each vertex has the same number of neighbors
  • #25: a regular graph is a graph where each vertex has the same number of neighbors
  • #26: a regular graph is a graph where each vertex has the same number of neighbors
  • #27: a regular graph is a graph where each vertex has the same number of neighbors
  • #31: a regular graph is a graph where each vertex has the same number of neighbors
  • #33: a regular graph is a graph where each vertex has the same number of neighbors
  • #34: a regular graph is a graph where each vertex has the same number of neighbors
  • #35: a regular graph is a graph where each vertex has the same number of neighbors