Stationary processes
[20/5%]Let , , and be independent random variables with expectation 1 and variance 1. Compute
,
,
,
,
,
.
What is the correlation coefficient, , between the random variables and if , , and ?
Let be a sequence of independent, identically distributed random variables with mean and variance . Let be the stochastic process defined by . Compute the mean , and the covariance function . Show that is weakly stationary.
Let be a sequence of zero-mean, independent, identically distributed random variables with variance . Define
Prove that is non-stationary by computing and . The non-stationarity can be corrected by letting for an appropriate choice of the constant . Find such a .
Find a physically realistic explanation to the dependence structure at lag in the figure below, which shows the correlation function of monthly mean temperature in Stockholm (left) and a scatter plot of mean temperatures taken nine months apart (right). The correlation is almost 0 for despite a strong non-linear dependence.
#| echo: false
#| fig-cap: "Left: Correlation function of monthly mean temperature in Stockholm. Right: Scatter plot of mean temperatures taken nine months apart."
exec(open("figs/figs_recreated/2/004.tex.py").read())
Let and be two independent random variables with expected values for both and variances and . A stochastic process is created from
Is the process weakly stationary?
Let be different (non-random) frequencies, and let and be mutually independent random variables, with all uniform on . Let be a random constant, independent of all other and . Consider the process
and the time-averaged power over the interval . Expanding by trigonometric identities gives
It is stated to be "easy to see" that as , and also, for ,
so that, as ,
Complete the "easy to see" part of this convergence, i.e., prove the three limit statements above.
A physicist studies the amount of carbon dioxide, , at time , near a highly trafficked road and models the amount by a stationary process. During one day she gets the measurements , which she regards as a realization of the stationary stochastic process . In order to study the dependence between , , and she makes two scatter plots at time lags 1 and 2 of the observed data, that is, she plots the points and ; see the figure below.
#| echo: false
#| fig-cap: "Scatter plots of pairs of measurements in Exercise 2:8."
exec(open("figs/figs_recreated/2/001.tex.py").read())
What can you tell from them? She has to choose amongst the following two different stochastic processes:
where are zero-mean, independent, identically distributed random variables with variance 1. Which one should she choose?
Which of the following functions can be the covariance functions to a stationary process and which can not?
,
,
,
.
A digital image consists of pixels, , arranged in a large matrix. Each pixel takes a real value, which determines its color. The image captured by a digital camera is often affected by noise if the light is dim. In order to reduce the effect of the noise we replace each pixel value of the image with the average of the original pixel value and the four closest pixel values:
Using statistical terminology, we might say that we estimate the ``true'' pixel value with the average of the outcomes of five (possibly correlated) random variables. Your task is to compute the variance of this estimate. We consider the image as a stochastic process:
where is a constant (the ``true'' image) and is correlated noise with covariance , where , , and is the ordinary euclidian distance between the pixel and . Using this model, compute the variance .
Let be a random variable such that . Let be a random variable uniformly distributed in the interval .
Is , , a weakly stationary process?
Is , , a weakly stationary process?
A weakly stationary process has expected value and covariance function , and zero for all other values.
Compute, for , the standard deviation of the estimate .
If we have the possibility to choose the time between the measure points in a), i.e., , how should the integer be chosen for lowest possible standard deviation?
We are interested in a low frequency signal, but unfortunately our bias-free measurements of the signal are disturbed by noise. We model our recorded signal as a deterministic low frequency component (the one we are interested in) plus a stationary stochastic process (the noise). We have reasons to believe that the covariance function, , of the noise can be approximated with
In order to suppress the noise, we consider the following two options:
where and are two different approximations of the low frequency signal of our interest.
Why are and less affected by noise than our original measurements, ?
There is a trade-off in selecting (or ). Explain!
How large must we choose in order for the variance of to be less than ? How large must we choose in order for the variance of to be less than ?
Compare the values of and in the previous question. Give an explanation of the difference.
A division of the national Swedish Institute for Building Research wants to estimate the average noise level in a specific area. The dependence between measurements, , at different locations is described by , where is the distance between the :th and the :th measurement point. They are restricted to estimate the noise level with the average of the sound level recorded by three microphones. They discuss two different placements, shown in the figure below. Do some computations, and argue in favor of one of the alternatives.
#| echo: false
#| fig-cap: "Two different microphone placements."
exec(open("figs/figs_recreated/2/002.tex.py").read())
A zero-mean sequence, , has covariance function
We would like to estimate by observing consecutive samples of the process. How large must be, in order for the standard deviation of the estimate to be less than ? You can make appropriate approximations.
Suppose that is a stationary process with unknown mean , known variance , and correlation function . The mean is estimated with . Suppose that is large and approximate the variance of the estimator. Also, find the number of elements that would have been necessary in order to achieve the same variance, if the elements of had been uncorrelated.
In Example 2.12 of the source text, the mean of a stationary sequence is estimated by the average of observations of , where the covariance function is for some (writing ). For large , the asymptotic standard deviation of is found to be
The example states the following general rule of thumb: if one wants to get the same variance of the mean in a sample from a stochastic process with this covariance function as in a sample of independent random variables with the same variance, then one has to increase the number of observations by a factor , where is the time lag where the correlation has decreased from one to . Motivate the rule and show that it is exact if the correlation function is of the form .
The Swedish Meteorological and Hydrological Institute (SMHI) reports daily ozone levels for a number of Swedish cities. We are particularly interested in the measurements during July, which seems like an ``ordinary'' month, with mean 335 and standard deviation 16. We assume that the observations, , come from a stationary Gaussian process, . The covariance function is stated below for a few time lags,
Suppose that we want to estimate the mean value, using only three measurements during July. Which measurements should we choose? Answer the question by computing the variance of
[Figure omitted -- see figs/figs_original/2/003.png]
Example 2.11 of the source text considers 40 samples of 25 dependent AR(1)-observations, , where the are independent normal variables, compared against 40 samples of 25 independent normal observations with and . Although the observations within each dependent AR(1) sample are less spread out than those in the independent samples, the observed sample averages are more variable for the AR(1)-process: the calculated standard deviation of the sample average is about for the dependent samples, versus about for the independent samples -- i.e., the more spread-out sample actually gives better precision for estimating the mean.
Repeat the experiment with the model to see how negative correlation affects the estimate.
Let and be independent normal variables and define . Is a linearly ergodic sequence? Compare with the covariance criterion for ergodicity.