Stochastic Processes
- All of statistics chapter 23
Stochastic Processes are used in sequences where the I.I.D assumption doesn’t hold. For Example: daily temperatures
A stochastic process
The variables
I.I.D and Stochastic Proccesses
i.i.d random variables are an example of Stochastic Process. In fact, a sequence of i.i.d. random variables can be written as
Examples of Stochastic Processes
The weather is a classical example also used in Markov Models.
Let
sunny,sunny,cloudy,sunny,cloudy,cloudy,...
This process has a discrete state space and a discrete index set.
Stock prices is another example of stochastic process, where the index set
Recall that the join density can be written as:
Markov Chains
Poissons Processes
The Poisson process arises when we count occurrences of events over time, for example, traffic accidents, radioactive decay, arrival of email messages, etc.
Preliminaries for Poisson Process and counting process
Recall the Poisson Distribution
Also recall that
- the mean i.e
and (as in the example) in a Poisson distribution the mean and the variance have the same value . - If
Poisson( ) and Poisson( ) and then Poisson( ) - Finally if
Poisson( ) and Binomial( ), then the marginal distribution of is Poisson( ).
Imagine you record each time you get a new message. Let
A process of this form is called a counting process.
A poisson process is a counting process that satisfies certain conditions.
We need the following notation:
if as this means that is smaller than when is close to zero. For example
Poisson Process Definition
A Poisson process is a stochastic process
- For any
the increments: are independent - There is a function
such that:
We call
Theorem
If
- where
In particular,
Definition: homogenous Poisson process
A poisson process with intensity function
Waiting times and sojourn times
Let
Theorem
The sojourn times
The waiting time
Hence,
Example: Consider requests to a WWW server in Calgary (see Calgary-HTTP).
Let’s assume that this is a homogenous Poisson process,
is the total observation time is the total number of events observed
The likelihood is:
maximizing this with respect to
in events per minute.
Let’s test the assumption that the data follow a homogenous Poisson process using a goodness-of-fit test, i.e rate must be constant over time. (see Hypothesis Testing and p-values, chi2 , permutation, likelihood ratio test, multiple testing and goodness-of-fit testing)
We divide the interval
Let
This is the null hypothesis.
We can test this hypothesis using either a likelihood ratio test or a
We use the
- Measures how far observed counts deviate from equal-probability assumptions.
This yields
- the chance of seeing such uneven counts under a true homogenous Poisson process is practially zero.
- Therefore, we reject the null hypothesis.
The data aren’t from a homogenous Poisson process. This strongly suggests the arrival rate isn’t constant. Because web traffic is usually time-varying: less during the night, and more during the day.