PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Modeling Sequential Processes.

Slides:



Advertisements
Similar presentations
Unit 3: Probability 3.1: Introduction to Probability
Advertisements

Chapter 2 Concepts of Prob. Theory
Probability Three basic types of probability: Probability as counting
Section 5.1 and 5.2 Probability
Chapter 4 Probability and Probability Distributions
The Occasionally Dishonest Casino Narrated by: Shoko Asei Alexander Eng.
5.1 Introducing Probability Objectives: By the end of this section, I will be able to… 1) Understand the meaning of an experiment, an outcome, an event,
Warm up 1)We are drawing a single card from a standard deck of 52 find the probability of P(seven/nonface card) 2)Assume that we roll two dice and a total.
1 Chapter 6: Probability— The Study of Randomness 6.1The Idea of Probability 6.2Probability Models 6.3General Probability Rules.
Discrete Time Markov Chains
Bioinformatics Hidden Markov Models. Markov Random Processes n A random sequence has the Markov property if its distribution is determined solely by its.
1 Part III Markov Chains & Queueing Systems 10.Discrete-Time Markov Chains 11.Stationary Distributions & Limiting Probabilities 12.State Classification.
Hidden Markov Models Ellen Walker Bioinformatics Hiram College, 2008.
Андрей Андреевич Марков. Markov Chains Graduate Seminar in Applied Statistics Presented by Matthias Theubert Never look behind you…
Hidden Markov Model Most pages of the slides are from lecture notes from Prof. Serafim Batzoglou’s course in Stanford: CS 262: Computational Genomics (Winter.
Hidden Markov Models 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
Dependent and Independent Events. If you have events that occur together or in a row, they are considered to be compound events (involve two or more separate.
Heuristic Local Alignerers 1.The basic indexing & extension technique 2.Indexing: techniques to improve sensitivity Pairs of Words, Patterns 3.Systems.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Review.
Hidden Markov Models 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
Hidden Markov Models 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
Linear-Space Alignment. Linear-space alignment Using 2 columns of space, we can compute for k = 1…M, F(M/2, k), F r (M/2, N – k) PLUS the backpointers.
Hidden Markov Models K 1 … 2. Outline Hidden Markov Models – Formalism The Three Basic Problems of HMMs Solutions Applications of HMMs for Automatic Speech.
PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2005 Normative Decision Theory A prescriptive theory for how decisions should be made.
Time Warping Hidden Markov Models Lecture 2, Thursday April 3, 2003.
Bioinformatics Hidden Markov Models. Markov Random Processes n A random sequence has the Markov property if its distribution is determined solely by its.
Markov Chains Chapter 16.
CS262 Lecture 5, Win07, Batzoglou Hidden Markov Models 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
Prediction and Change Detection Mark Steyvers Scott Brown Mike Yi University of California, Irvine This work is supported by a grant from the US Air Force.
CS6800 Advanced Theory of Computation Fall 2012 Vinay B Gavirangaswamy
Chapter 11: understanding randomness (Simulations)
Lecture 11 – Stochastic Processes
Copyright © 2015, 2011, 2008 Pearson Education, Inc. Chapter 7, Unit A, Slide 1 Probability: Living With The Odds 7.
Copyright © 2010 Pearson Education, Inc. Unit 3: Gathering Data Chapter 11 Understanding Randomness.
Section 5.1 What is Probability? 5.1 / 1. Probability Probability is a numerical measurement of likelihood of an event. The probability of any event is.
CSCE 2100: Computing Foundations 1 Probability Theory Tamara Schneider Summer 2013.
Introduction to Simulations and Experimental Probability Chapter 4.1 – An Introduction to Probability Mathematics of Data Management (Nelson) MDM 4U.
Introduction to Simulations and Experimental Probability Chapter 4.1 – An Introduction to Probability Learning goals: Describe a simulation for a given.
Dependent and Independent Events. Events are said to be independent if the occurrence of one event has no effect on the occurrence of another. For example,
History of Probability Theory
Intro to Probability Section 4.2. PROBABILITY All probabilities must be between 0 and 1.
1.3 Simulations and Experimental Probability (Textbook Section 4.1)
Basic Concepts of Probability Coach Bridges NOTES.
Independence and Bernoulli Trials. Sharif University of Technology 2 Independence  A, B independent implies: are also independent. Proof for independence.
Hidden Markov Models 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
1 Markov chains and processes: motivations Random walk One-dimensional walk You can only move one step right or left every time unit Two-dimensional walk.
5.1 Probability in our Daily Lives.  Which of these list is a “random” list of results when flipping a fair coin 10 times?  A) T H T H T H T H T H 
WOULD YOU PLAY THIS GAME? Roll a dice, and win $1000 dollars if you roll a 6.
The generalization of Bayes for continuous densities is that we have some density f(y|  ) where y and  are vectors of data and parameters with  being.
Simulating Experiments Introduction to Random Variable.
MATH 256 Probability and Random Processes Yrd. Doç. Dr. Didem Kivanc Tureli 14/10/2011Lecture 3 OKAN UNIVERSITY.
Introduction to Probability – Experimental Probability.
Chapter 7 Day 3. Warm - Up Jill sells charm bracelets. The table below shows the distribution of X the number of charms sold per bracelet. Jill sells.
Probability Distributions and Expected Value
Stats Term Test 4 Solutions. c) d) An alternative solution is to use the probability mass function and.
11. Markov Chains (MCs) 2 Courtesy of J. Bard, L. Page, and J. Heyl.
Section 6.2: Definition of Probability. Probability of an event E denoted P(E) is the ratio of the number of outcomes favorable to E to the total number.
Chance We will base on the frequency theory to study chances (or probability).
Probability. Definitions Probability: The chance of an event occurring. Probability Experiments: A process that leads to well- defined results called.
Random Sampling Algorithms with Applications Kyomin Jung KAIST Aug ERC Workshop.
Hidden Markov Models – Concepts 1 2 K … 1 2 K … 1 2 K … … … … 1 2 K … x1x1 x2x2 x3x3 xKxK 2 1 K 2.
1 COMP2121 Discrete Mathematics Principle of Inclusion and Exclusion Probability Hubert Chan (Chapters 7.4, 7.5, 6) [O1 Abstract Concepts] [O3 Basic Analysis.
11-2 Basic Probability.
Discrete Time Markov Chains
11-2 Basic Probability.
September 1, 2010 Dr. Itamar Arel College of Engineering
Probability using Simulations
Randomness, Probability, and Simulation
Lecture 11 – Stochastic Processes
Presentation transcript:

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Modeling Sequential Processes

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Simple Sequential Processes Sequences of Events: State Dynamics Sequences of Responses Sequences of Decisions

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Time Series Data TIME AMPLITUDE Composite Index TIME AMPLITUDE Utility Index

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 ECG Data TIME (1/180 sec) AMPLITUDE

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Time Series Data with Hidden state TIME AMPLITUDE Composite Index TIME AMPLITUDE Utility Index Holiday Season

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 ECG Data with Hidden State TIME (1/180 sec) AMPLITUDE Nicotine Inhalation

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Anomaly detection

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Did you get it right?

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004

Time series Inference Tasks Structure detection –Find a simple model for behavior –Choose between models for behavior Prediction ? Anomaly detection a b c d e f q h i j k l m u o p How do we solve these problems? Use Time series models: s T = f(past) + noise where s T = state at time T Future predictable from the past: s T = f( {s 1, s 2, s 3,…., s T-1 },t) s T = f(past) + noise

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Time Series Data You are given a collection of labelled points in some order: { ( y 1, x 1 ), ( y 2, x 2 ),…., ( y N, x N ) }. (e.g. x i are category labels, y i are measurements). In time series data, independence is violated. In time series data, order matters.

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Describing Sequential States Stationarity S is discrete or continuous Independence Markov

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004

Example: The Dishonest Casino A casino has two dice: Fair die P(1) = P(2) = P(3) = P(5) = P(6) = 1/6 Loaded die P(1) = P(2) = P(3) = P(5) = 1/10 P(6) = 1/2 Casino player switches back-&-forth between fair and loaded die once every 20 turns Game: 1.You bet $1 2.You roll (always with a fair die) 3.Casino player rolls (maybe with fair die, maybe with loaded die) 4.Highest number wins $2

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Problem 1: Evaluation GIVEN A sequence of rolls by the casino player QUESTION How likely is this sequence, given our model of how the casino works? This is the EVALUATION problem

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Problem 2 – Decoding GIVEN A sequence of rolls by the casino player QUESTION What portion of the sequence was generated with the fair die, and what portion with the loaded die? This is the DECODING question

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Problem 3 – Learning GIVEN A sequence of rolls by the casino player QUESTION How “loaded” is the loaded die? How “fair” is the fair die? How often does the casino player change from fair to loaded, and back? This is the LEARNING question

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 The dishonest casino model FAIRLOADED P(1|F) = 1/6 P(2|F) = 1/6 P(3|F) = 1/6 P(4|F) = 1/6 P(5|F) = 1/6 P(6|F) = 1/6 P(1|L) = 1/10 P(2|L) = 1/10 P(3|L) = 1/10 P(4|L) = 1/10 P(5|L) = 1/10 P(6|L) = 1/2

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004

Types of Sequential State Models Y: Observed X: State Q: Discrete State (e.g. Decision)

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Transition matrix where initial state matters State update

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Guessing Games “Belief in the law of Small Numbers” Guess the next: –HTHHHH –HHHTTT –HTHTHT Rule 1: Estimating the frequency Rule 2: Using serial prediction Rule 3: Estimating the likelihood

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 All-or-None Learning Models X i Animal’s current state

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 All or None Learning Models Process of Elimination Random Hypothesis Selection Observer generates a set of different sorting hypotheses Color, Mixture of Suits, Face vs Number, etc. Observer tries a hypothesis and told if sort is correct S1 = Incorrect Hyp, Told Incorrect S2 = Correct, Told Correct Stationary Non-Stationary

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Response Models Card Sorting: subject has to determine sorting rule, seeing two cards lying face up. Sort by color R-B Observer’s X = Card S1 = { 2H,2D, …., AceH,AceD} S2 = { 2S,2C, …., AceS,AceC}

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Sequential Games C = Cooperate D = Defect

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Male-Female Pair-off Differences (Rapoport & Chammah)

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Additional Analysis

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Data

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Belief in Sequential Response Dependence Do Players hit shots in streaks? Reasonability: Recalibration

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Beliefs

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Conditional Prob for Players Philadelphia 76ers season

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Runs Test Runs: consecutive hits or misses X000XX0 => 4 “runs”

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Free Throw Data

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Probability of Alternation P(H|Miss)

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Erroneous “Law of small numbers” 22% Larger hospital => more days over 60 56% The same 22% Smaller hospital => more days over 60

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Producing Random sequences Rapoport and Budescu (1992, 1997, 1994) asked subjects - ‘‘simulate the random outcome of tossing an unbiased coin 150 times in succession,’’ - ‘‘imagine a sequence of 150 draws with replacement from a well-shuffled deck, including five red and five black cards, and then call aloud the sequence of these binary draws. Results

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Can we produce random sequences in games? Walker and Wooders (1999) final and semi-final matches at Wimbledon “Our tests indicate that the tennis players are not quite playing randomly: they switch their serves from left to right and vice versa somewhat too often to be consistent with random play. This is consistent with extensive experimental research in psychology and economics which indicates that people who are attempting to behave truly randomly tend to ‘‘switch too often.’’ “

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Perception of Randomness Randomness and Coincidences: Reconciling Intuition and Probability Theory Thomas L. Griffiths & Joshua B. Tenenbaum Randomness as a rational inference - Belief that most sequences have non-random causes

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Zenith Radio “Psychic transmissions”

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004

1-D Random Walk Time is slotted The walker flips a coin every time slot to decide which way to go X(t) p 1-p

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Transition Probability Probability to jump from state i to state j Assume stationary : independent of time Transition probability matrix: P = ( p ij ) Two state MC:

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Stationary Distribution Define Then  k +1 =  k P (  is a row vector) Stationary Distribution : if the limit exists. If  exists, we can solve it by

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Balance Equations These are called balance equations –Transitions in and out of state i are balanced

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 In General If we partition all the states into two sets, then transitions between the two sets must be “balanced”. –Equivalent to a bi-section in the state transition graph –This can be easily derived from the Balance Equations

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Conditions for  to Exist (I) Definitions: –State j is reachable by state i if –State i and j commute if they are reachable by each other –The Markov chain is irreducible if all states commute

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Conditions for  to Exist (I) (cont’d) Condition: The Markov chain is irreducible Counter-examples: p=1 1

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Conditions for  to Exist (II) The Markov chain is aperiodic : Counter-example:

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Conditions for  to Exist (III) The Markov chain is positive recurrent : –State i is recurrent if –Otherwise transient –If recurrent State i is positive recurrent if E( T i )< 1, where T i is time between visits to state i Otherwise null recurrent

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Solving for  1 0 p q 1-q 1-p

PSY 5018H: Math Models Hum Behavior, Prof. Paul Schrater, Spring 2004 Sequential Models of Perception