Docsity

COURSE NOTES STATS 325 Stochastic Processes, Manuais, Projetos, Pesquisas de Processamento Digital de Sinal

Pré-visualização parcial do texto

Baixe COURSE NOTES STATS 325 Stochastic Processes e outras Manuais, Projetos, Pesquisas em PDF para Processamento Digital de Sinal, somente na Docsity!

COURSE NOTES

STATS 325

Stochastic Processes

Department of Statistics

University of Auckland

Contents

    1. Stochastic Processes
    • 1.1 Revision: Sample spaces and random variables
    • 1.2 Stochastic Processes
    1. Probability
    • 2.1 Sample spaces and events
    • 2.2 Probability Reference List
    • 2.3 Conditional Probability
    • 2.4 The Partition Theorem (Law of Total Probability)
    • 2.5 Bayes’ Theorem: inverting conditional probabilities
    • 2.6 First-Step Analysis for calculating probabilities in a process
    • 2.7 Special Process: the Gambler’s Ruin
    • 2.8 Independence
    • 2.9 The Continuity Theorem
    • 2.10 Random Variables
    • 2.11 Continuous Random Variables
    • 2.12 Discrete Random Variables
    • 2.13 Independent Random Variables
    1. Expectation and Variance
    • 3.1 Expectation
    • 3.2 Variance, covariance, and correlation
    • 3.3 Conditional Expectation and Conditional Variance
    • 3.4 Examples of Conditional Expectation and Variance
    • 3.5 First-Step Analysis for calculating expected reaching times
    • 3.6 Probability as a conditional expectation
    • 3.7 Special process: a model for gene spread
    1. Generating Functions
    • 4.1 Common sums
    • 4.2 Probability Generating Functions
    • 4.3 Using the probability generating function to calculate probabilities
    • 4.4 Expectation and moments from the PGF
    • 4.5 Probability generating function for a sum of independent r.v.s
    • 4.6 Randomly stopped sum
    • 4.7 Summary: Properties of the PGF
    • 4.8 Convergence of PGFs
    • 4.9 Special Process: the Random Walk
    • 4.10 Defective random variables
    • 4.11 Random Walk: the probability we never reach our goal
    1. Mathematical Induction
    • 5.1 Proving things in mathematics
    • 5.2 Mathematical Induction by example
    • 5.3 Some harder examples of mathematical induction
    1. Branching Processes:
    • 6.1 Branching Processes
    • 6.2 Questions about the Branching Process
    • 6.3 Analysing the Branching Process
    • 6.4 What does the distribution of Zn look like?
    • 6.5 Mean and variance of Zn
    1. Extinction in Branching Processes
    • 7.1 Extinction Probability
    • 7.2 Conditions for ultimate extinction
    • 7.3 Time to Extinction
    • 7.4 Case Study: Geometric Branching Processes
    1. Markov Chains
    • 8.1 Introduction
    • 8.2 Definitions
    • 8.3 The Transition Matrix
    • 8.4 Example: setting up the transition matrix
    • 8.5 Matrix Revision
    • 8.6 The t-step transition probabilities
    • 8.7 Distribution of Xt
    • 8.8 Trajectory Probability
    • 8.9 Worked Example: distribution of Xt and trajectory probabilities
    • 8.10 Class Structure
    • 8.11 Hitting Probabilities
    • 8.12 Expected hitting times
    1. Equilibrium
    • 9.1 Equilibrium distribution in pictures
    • 9.2 Calculating equilibrium distributions
    • 9.3 Finding an equilibrium distribution
    • 9.4 Long-term behaviour
    • 9.5 Irreducibility
  • 9.6 Periodicity
  • 9.7 Convergence to Equilibrium
  • 9.8 Examples
  • 9.9 Special Process: the Two-Armed Bandit

Chapter 1: Stochastic Processes

What are Stochastic Processes, and how do they fit in?

STATS 310 Statistics

STATS 325 Probability

Randomness in Pattern

Randomness in Process

STATS 210 Foundations of Statistics and Probability Tools for understanding randomness (random variables, distributions)

Stats 210: laid the foundations of both Statistics and Probability: the tools for understanding randomness.

Stats 310: develops the theory for understanding randomness in pattern: tools for estimating parameters (maximum likelihood), testing hypotheses, modelling patterns in data (regression models).

Stats 325: develops the theory for understanding randomness in process. A process is a sequence of events where each step follows from the last after a random choice.

What sort of problems will we cover in Stats 325?

Here are some examples of the sorts of problems that we study in this course.

Gambler’s Ruin You start with $30 and toss a fair coin repeatedly. Every time you throw a Head, you win $5. Every time you throw a Tail, you lose $5. You will stop when you reach $100 or when you lose everything. What is the probability that you lose everything? Answer: 70%.

Pyramid selling schemes

Have you received a chain letter like this one? Just send $10 to the person whose name comes at the top of the list, and add your own name to the bottom of the list. Send the letter to as many people as you can. Within a few months, the letter promises, you will have received $77,000 in $10 notes! Will you?

Answer: it depends upon the response rate. However, with a fairly realistic assumption about response rate, we can calculate an expected return of $ with a 64% chance of getting nothing!

Note: Pyramid selling schemes like this are prohibited under the Fair Trading Act, and it is illegal to participate in them.

Spread of SARS The figure to the right shows the spread of the disease SARS (Severe Acute Respiratory Syndrome) through Singapore in 2003. With this pattern of infections, what is the probability that the disease eventually dies out of its own accord? Answer: 0.997.

Markov’s Marvellous Mystery Tours

Mr Markov’s Marvellous Mystery Tours promises an All-Stochastic Tourist Ex- perience for the town of Rotorua. Mr Markov has eight tourist attractions, to which he will take his clients completely at random with the probabilities shown below. He promises at least three exciting attractions per tour, ending at either the Lady Knox Geyser or the Tarawera Volcano. (Unfortunately he makes no mention of how the hapless tourist might get home from these places.)

What is the expected number of activities for a tour starting from the museum?

  1. Museum 3. Buried Village 5. Hangi
    1. Cruise
  2. Helicopter
  3. Flying Fox
  4. Volcano
  5. Geyser

1/

1

1/

1/

1/3 1/

1/

1

1

1/

1/

1 1/

1/

1/ 1/

Answer: 4.2.

Structure of the course

  • Probability. Probability and random variables, with special focus on conditional probability. Finding hitting probabilities for stochastic pro- cesses.
  • Expectation. Expectation and variance. Introduction to conditional ex- pectation, and its application in finding expected reaching times in stochas- tic processes.
  • Generating functions. Introduction to probability generating func- tions, and their applications to stochastic processes, especially the Random Walk.
  • Branching process. This process is a simple model for reproduction. Examples are the pyramid selling scheme and the spread of SARS above.

1.2 Stochastic Processes

Definition: A stochastic process is a family of random variables,

{X(t) : t ∈ T } , where t usually denotes time. That is, at every time t in the set

T , a random number X(t) is observed.

Definition: {X(t) : t ∈ T } is a discrete-time process if the set T is finite or

countable.

In practice, this generally means T = { 0 , 1 , 2 , 3 ,.. .}

Thus a discrete-time process is {X(0), X(1), X(2), X(3),.. .} : a random number

associated with every time 0, 1, 2, 3,...

Definition: {X(t) : t ∈ T } is a continuous-time process if T is not finite or

countable.

In practice, this generally means T = [0, ∞) , or T = [0, K] for some K.

Thus a continuous-time process {X(t) : t ∈ T } has a random number X(t)

associated with every instant in time.

(Note that X(t) need not change at every instant in time, but it is allowed to change at any time; i.e. not just at t = 0, 1 , 2 ,... , like a discrete-time process.)

Definition: The state space, S, is the set of real values that X(t) can take.

Every X(t) takes a value in R, but S will often be a smaller set: S ⊆ R. For example, if X(t) is the outcome of a coin tossed at time t, then the state space

is S = { 0 , 1 }.

Definition: The state space S is discrete if it is finite or countable.

Otherwise it is continuous.

The state space S is the set of states that the stochastic process can be in.

For Reference: Discrete Random Variables

  1. Binomial distribution

Notation: X ∼ Binomial(n, p). Description: number of successes in n independent trials, each with proba- bility p of success. Probability function:

fX (x) = P(X = x) =

n x

px(1 − p)n−x^ for x = 0, 1 ,... , n.

Mean: E(X) = np. Variance: Var(X) = np(1 − p) = npq, where q = 1 − p. Sum: If X ∼ Binomial(n, p), Y ∼ Binomial(m, p), and X and Y are independent, then

X + Y ∼ Bin(n + m, p).

  1. Poisson distribution

Notation: X ∼ Poisson(λ). Description: arises out of the Poisson process as the number of events in a fixed time or space, when events occur at a constant average rate. Also used in many other situations.

Probability function: fX (x) = P(X = x) = λx x!

e−λ^ for x = 0, 1 , 2 ,...

Mean: E(X) = λ. Variance: Var(X) = λ. Sum: If X ∼ Poisson(λ), Y ∼ Poisson(μ), and X and Y are independent, then X + Y ∼ Poisson(λ + μ).

  1. Hypergeometric distribution

Notation: X ∼ Hypergeometric(N, M, n). Description: Sampling without replacement from a finite population. Given N objects, of which M are ‘special’. Draw n objects without replacement. X is the number of the n objects that are ‘special’. Probability function:

fX (x) = P(X = x) =

(M

x

)(N −M

n−x

(N

n

) for

x = max(0, n + M − N ) to x = min(n, M).

Mean: E(X) = np, where p =

M

N

Variance: Var(X) = np(1 − p)

(N − n N − 1

, where p =

M

N

  1. Multinomial distribution

Notation: X = (X 1 ,... , Xk) ∼ Multinomial(n; p 1 , p 2 ,... , pk). Description: there are n independent trials, each with k possible outcomes. Let pi = P(outcome i) for i = 1,... k. Then X = (X 1 ,... , Xk), where Xi is the number of trials with outcome i, for i = 1,... , k. Probability function:

fX (x) = P(X 1 = x 1 ,... , Xk = xk) =

n! x 1!... xk! px 1 1 px 2 2... px kk

for xi ∈ { 0 ,... , n} ∀i with

∑^ k

i=

xi = n, and where pi ≥ 0 ∀i,

∑^ k

i=

pi = 1.

Marginal distributions: Xi ∼ Binomial(n, pi) for i = 1,... , k. Mean: E(Xi) = npi for i = 1,... , k. Variance: Var(Xi) = npi(1 − pi), for i = 1,... , k. Covariance: cov(Xi, Xj ) = −npipj , for all i 6 = j.

Continuous Random Variables

  1. Uniform distribution

Notation: X ∼ Uniform(a, b).

Probability density function (pdf): fX (x) =

b − a

for a < x < b.

Cumulative distribution function:

FX (x) = P(X ≤ x) =

x − a b − a for a < x < b.

FX (x) = 0 for x ≤ a, and FX (x) = 1 for x ≥ b.

Mean: E(X) =

a + b 2

Variance: Var(X) =

(b − a)^2 12

  1. Exponential distribution

Notation: X ∼ Exponential(λ).

Probability density function (pdf): fX (x) = λe−λ x^ for 0 < x < ∞.

Cumulative distribution function: FX (x) = P(X ≤ x) = 1 − e−λ x^ for 0 < x < ∞. FX (x) = 0 for x ≤ 0.

Mean: E(X) =

λ

Variance: Var(X) =

λ^2

Sum: if X 1 ,... , Xk are independent, and each Xi ∼ Exponential(λ), then X 1 +... + Xk ∼ Gamma(k, λ).

Probability Density Functions

Uniform(a, b)

 

  

x

fX (x)

a b

1 b − a

Exponential(λ)

λ = 1

λ = 2

Gamma(k, λ)

k = 2, λ = 1

k = 2, λ = 0. 3

Normal(μ, σ^2 )

σ = 4

σ = 2

μ

Chapter 2: Probability

The aim of this chapter is to revise the basic rules of probability. By the end of this chapter, you should be comfortable with:

  • conditional probability, and what you can and can’t do with conditional expressions;
  • the Partition Theorem and Bayes’ Theorem;
  • First-Step Analysis for finding the probability that a process reaches some state, by conditioning on the outcome of the first step;
  • calculating probabilities for continuous and discrete random variables.

2.1 Sample spaces and events

Definition: A sample space, Ω, is a set of possible outcomes of a random

experiment.

Definition: An event, A, is a subset of the sample space.

This means that event A is simply a collection of outcomes.

Example:

Random experiment: Pick a person in this class at random.

Sample space: Ω = { all people in class}

Event A: A = { all males in class}.

Definition: Event A occurs if the outcome of the random experiment is a member

of the set A.

In the example above, event A occurs if the person we pick is male.

2.3 Conditional Probability

Suppose we are working with sample space Ω = {people in class}. I want to find the proportion of people in the class who ski. What do I do?

Count up the number of people in the class who ski, and divide by the total

number of people in the class.

P( person skis) =

number of skiers in class

total number of people in class

Now suppose I want to find the proportion of females in the class who ski. What do I do?

Count up the number of females in the class who ski, and divide by the total

number of females in the class.

P( female skis) =

number of female skiers in class

total number of females in class

By changing from asking about everyone to asking about females only, we have:

  • restricted attention to the set of females only,

or: reduced the sample space from the set of everyone to the set of females,

or: conditioned on the event { females}.

We could write the above as:

P( skis | female) =

number of female skiers in class

total number of females in class

Conditioning is like changing the sample space: we are now working in a new sample space of females in class.

In the above example, we could replace ‘skiing’ with any attribute B. We have:

P(skis) =

skiers in class

class

; P(skis | female) =

female skiers in class

females in class

so:

P(B) =

B’s in class

total # people in class

and:

P(B | female) =

female B’s in class

total # females in class

in class who are B and female

in class who are female

Likewise, we could replace ‘female’ with any attribute A:

P(B | A) =

number in class who are B and A number in class who are A

This is how we get the definition of conditional probability:

P(B | A) =

P(B and A) P(A).

P(B ∩ A)

P(A)

By conditioning on event A, we have changed the sample space to the set of A ’s

only.

Definition: Let A and B be events on the same sample space: so A ⊆ Ω and B ⊆ Ω.

The conditional probability of event B, given event A, is

P(B | A) =

P(B ∩ A)

P(A)