Markov chains Prof. Noah Snavely CS1114

Slides:



Advertisements
Similar presentations
Markov Models.
Advertisements

Matrices, Digraphs, Markov Chains & Their Use by Google Leslie Hogben Iowa State University and American Institute of Mathematics Leslie Hogben Iowa State.
Authorship recognition Prof. Noah Snavely CS1114
1 The PageRank Citation Ranking: Bring Order to the web Lawrence Page, Sergey Brin, Rajeev Motwani and Terry Winograd Presented by Fei Li.
CSE 5522: Survey of Artificial Intelligence II: Advanced Techniques Instructor: Alan Ritter TA: Fan Yang.
IERG5300 Tutorial 1 Discrete-time Markov Chain
Operations Research: Applications and Algorithms
CSE 531: Performance Analysis of Systems Lecture 1: Intro and Logistics Anshul Gandhi 1307, CS building
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 3 March 23, 2005
Introduction to PageRank Algorithm and Programming Assignment 1 CSC4170 Web Intelligence and Social Computing Tutorial 4 Tutor: Tom Chao Zhou
CSE 522 – Algorithmic and Economic Aspects of the Internet Instructors: Nicole Immorlica Mohammad Mahdian.
CS 1114: Introduction to Computing Using MATLAB and Robotics Prof. Noah Snavely
Announcements Project 4 questions? Guest lectures Thursday: Richard Ladner “tactile graphics” Next Tuesday: Jenny Yuen and Jeff Bigham.
Stochastic Processes Prof. Graeme Bailey (notes modified from Noah Snavely, Spring 2009)
Markov chains – Part 2 Prof. Noah Snavely CS1114
Texture Turk, 91.
Link Analysis, PageRank and Search Engines on the Web
1 Hidden Markov Model Instructor : Saeed Shiry  CHAPTER 13 ETHEM ALPAYDIN © The MIT Press, 2004.
Finding Red Pixels – Part 1 Prof. Noah Snavely CS1114
Probabilistic Model of Sequences Bob Durrant School of Computer Science University of Birmingham (Slides: Dr Ata Kabán)
Clustering and greedy algorithms Prof. Noah Snavely CS1114
CS 188: Artificial Intelligence Fall 2009 Lecture 19: Hidden Markov Models 11/3/2009 Dan Klein – UC Berkeley.
Journal Status* Using the PageRank Algorithm to Rank Journals * J. Bollen, M. Rodriguez, H. Van de Sompel Scientometrics, Volume 69, n3, pp , 2006.
More Algorithms for Trees and Graphs Eric Roberts CS 106B March 11, 2013.
Robust fitting Prof. Noah Snavely CS1114
The effect of New Links on Google Pagerank By Hui Xie Apr, 07.
Grade Scale Test 1 Results: Average class score after partial credit: __________ Commonly missed questions: #_________________ If you got less than 70%
COMP Introduction to Programming Yi Hong May 13, 2015.
BA271 Week 9 Lecture Three topics: o Upcoming schedule o Query Quiz review o Normalizing a database.
Random Walks and Semi-Supervised Learning Longin Jan Latecki Based on : Xiaojin Zhu. Semi-Supervised Learning with Graphs. PhD thesis. CMU-LTI ,
CS315 – Link Analysis Three generations of Search Engines Anchor text Link analysis for ranking Pagerank HITS.
The PageRank Citation Ranking: Bringing Order to the Web Lawrence Page, Sergey Brin, Rajeev Motwani, Terry Winograd Presented by Anca Leuca, Antonis Makropoulos.
Center for E-Business Technology Seoul National University Seoul, Korea BrowseRank: letting the web users vote for page importance Yuting Liu, Bin Gao,
Data-driven methods: Video & Texture Cs195g Computational Photography James Hays, Brown, Spring 2010 Many slides from Alexei Efros.
CS 6961: Structured Prediction Fall 2014 Course Information.
CHAPTER 15 SECTION 1 – 2 Markov Models. Outline Probabilistic Inference Bayes Rule Markov Chains.
Adaptive On-Line Page Importance Computation Serge, Mihai, Gregory Presented By Liang Tian 7/13/2010 1Adaptive On-Line Page Importance Computation.
Keyword Search in Databases using PageRank By Michael Sirivianos April 11, 2003.
CompSci 100E 3.1 Random Walks “A drunk man wil l find his way home, but a drunk bird may get lost forever”  – Shizuo Kakutani Suppose you proceed randomly.
Lecture #10 PageRank CS492 Special Topics in Computer Science: Distributed Algorithms and Systems.
Hard problems in computer science Prof. Noah Snavely CS1114
Theory of Computations III CS-6800 |SPRING
Clustering Prof. Ramin Zabih
1 1 COMP5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified based on the slides provided by Lawrence Page, Sergey Brin, Rajeev Motwani.
CS100R: Introduction to Computing Using MATLAB and Robotics Prof. Ramin Zabih
CS774. Markov Random Field : Theory and Application Lecture 15 Kyomin Jung KAIST Oct
FIRST ASSIGNMENT Letter to Mr. Craft. Writing Guidelines I want to get to know you as the unique person that you are. In an effort to increase my ability.
CompSci 100E 4.1 Google’s PageRank web site xxx web site yyyy web site a b c d e f g web site pdq pdq.. web site yyyy web site a b c d e f g web site xxx.
CS 540 Database Management Systems Web Data Management some slides are due to Kevin Chang 1.
Visual Recognition Tutorial1 Markov models Hidden Markov models Forward/Backward algorithm Viterbi algorithm Baum-Welch estimation algorithm Hidden.
Final Exam Information These slides and more detailed information will be posted on the webpage later…
PageRank Google : its search listings always seemed deliver the “good stuff” up front. 1 2 Part of the magic behind it is its PageRank Algorithm PageRank™
Texture Models Paul Heckbert, Nov , Image-Based Modeling and Rendering.
COS 429: Computer Vision Thanks to Chris Bregler.
CS6501 Advanced Topics in Information Retrieval Course Policy
CPS : Information Management and Mining
Announcements Project 4 out today help session at the end of class.
Tutorial: Markov Chains
Search Engines and Link Analysis on the Web
Link-Based Ranking Seminar Social Media Mining University UC3M
PageRank and Markov Chains
Announcements Final Project 3 artifacts Evals
Operations Research: Applications and Algorithms
CS 188: Artificial Intelligence Spring 2007
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
CS 440 Database Management Systems
Prof. Paolo Ferragina, Algoritmi per "Information Retrieval"
Announcements Guest lecture next Tuesday
The chain of Andrej Markov and its applications NETWORKS goes to school - April 23, 2018 Jan-Pieter Dorsman.
Sequences II Prof. Noah Snavely CS1114
Presentation transcript:

Markov chains Prof. Noah Snavely CS1114

Roadmap for the next month  Guest lecture 4/16, Prof. Charles Van Loan –Ellipse fitting (this is a much better way to find lightstick shapes)  Exams: –Prelim 3: 4/30 (Final lecture) –One or two more quizzes  Assignments: –A5P2 due next Friday, 4/17 by 5pm –A6 will be assigned next week, due Friday, 4/24 2

Roadmap for the next month  Final projects –Due on Friday, May 8 (tentative) –You can work in groups of up to 3 –Please form groups and send me a proposal for your final project by next Wednesday, 4/15 Not graded, but required 3

Final project suggestions  Find and follow moving objects in the world (or other robots)  Use SIFT to track robots from the ceiling camera  Coordinate robots to do something interesting (e.g., dance)  Implementing a project on the Aibos  Automatic image colorization  Build an instrument from robots  We’ll post others as well…  We’ll have a demo session on the due date 4

New topic: modeling sequences  Lots of interesting things in the world can be thought of as sequences  Ordering of heads/tails in multiple coin flips  Ordering of moves in rock/paper/scissors  Text  Music  Closing stock prices  Web pages you visit on Wikipedia 5

How are sequences generated?  For some sequences, each element is generated independently –Coin flips  For others, the next element is generated deterministically –1, 2, 3, 4, 5, … ?  For others, the next element depends on previous elements, but exhibits some randomness –The sequence of web pages you visit on Wikipedia –We’ll focus on these (many interesting sequences can be modeled this way) 6

Markov chains 7  A sequence of random variables – is the state of the model at time t –Markov assumption: each state is dependent only on the previous one dependency given by a conditional probability: –This is actually a first-order Markov chain –An N’th-order Markov chain: (Slide credit: Steve Seitz) Andrei Markov

Markov chains  Example: Springtime in Ithaca Three possible conditions: nice, rainy, snowy If it’s nice today, then tomorrow it will be: rainy 75% of the time snowy 25% of the time If it’s rainy today, then tomorrow it will be: rainy 25% of the time nice 25% of the time snowy 50% of the time If it’s snowy today, then tomorrow it will be: rainy 50% of the time nice 25% of the time snowy 25% of the time 8

Markov chains  Example: Springtime in Ithaca  We can represent this as a kind of graph  (N = Nice, S = Snowy, R = Rainy) 9 N N R R S S NRS N R S Transition probabilities

Markov chains  Example: Springtime in Ithaca  We can represent this as a kind of graph  (N = Nice, S = Snowy, R = Rainy) 10 If it’s nice today, what’s the probability that it will be nice tomorrow? NRS N R S Transition probabilities If it’s nice today, what’s the probability that it will be nice the day after tomorrow?

Markov chains  The transition matrix at time t+1 is  The transition matrix at time t+n-1 is 11 NRS N R S =

Markov chains  What’s the weather in 20 days?  Almost completely independent of the weather today  The row [ ] is called the stationary distribution of the Markov chain 12

Markov chains  Where do we get the transition matrix from?  One answer: we can learn it from lots of data (e.g., 20 years of weather data) 13

Markov Chain Example: Text “A dog is a man’s best friend. It’s a dog eat dog world out there.” 2/31/ a dog is man’s best friend it’s eat world out there dog isman’sbestfriendit’seat world outthere a.. (Slide credit: Steve Seitz)

Text synthesis  Create plausible looking poetry, love letters, term papers, etc.  Most basic algorithm: 1.Build transition matrix find all blocks of N consecutive words/letters in training documents compute probability of occurance 2.Given words compute by sampling from  Example on board...

[Scientific American, June 1989, Dewdney] “I Spent an Interesting Evening Recently with a Grain of Salt” - Mark V. Shaney (computer-generated contributor to UseNet News group called net.singles)  You can try it online here: Output of 2nd order word-level Markov Chain after training on 90,000 word philosophical essay: “Perhaps only the allegory of simulation is unendurable--more cruel than Artaud's Theatre of Cruelty, which was the first to practice deterrence, abstraction, disconnection, deterritorialisation, etc.; and if it were our own past. We are witnessing the end of the negative form. But nothing separates one pole from the very swing of voting ''rights'' to electoral...”

Text synthesis  Jane Austen’s Pride and Prejudice: –121,549 words –8,828 unique words (most common: ‘the’) –7,800,000 possible pairs of words –58,786 pairs (0.075%) actually appeared –most common pair? –Given a model learned from this text, we can generate more “Jane Austen”-like novels estimate the likelihood that a snippet of text was written by Jane Austen 17

Music synthesis  Chord progressions learned from large database of guitar tablature 18 C C G G F F Am

Google’s PageRank 19 Page, Lawrence; Brin, Sergey; Motwani, Rajeev and Winograd, Terry (1999). The PageRank citation ranking: Bringing order to the WebThe PageRank citation ranking: Bringing order to the Web. See also: J. Kleinberg. Authoritative sources in a hyperlinked environment. Proc. 9th ACM-SIAM Symposium on Discrete Algorithms, 1998.Authoritative sources in a hyperlinked environment.