# Generating dependent time series from a given distribution?

How can I generate dependent time series from a given marginal distribution? I want to be able to adjust the level of dependence, to influence the predictability of the series, which will be given as input to a Monte Carlo simulation. The dependence parameter can be the correlation, the mutual information, or something along those lines.

You may assume the distribution is Bernoulli for discussion purposes. MATLAB code is gratefully accepted.

-
@Emre, the answer heavily depends on dependence structure. Independence property is unique, dependence is not. For the continuous distribution processes the most easiest to generate is linear processes (ARIMA) for discrete, I guess Markov. –  mpiktas May 5 '11 at 18:09
Feel free to propose the dependence structure, as long as it allows you to set the correlation, mutual information, or something similar. I need to be able to dial in the level of dependence. –  Emre May 5 '11 at 18:14
@Emre, by level of dependence you mean what? –  mpiktas May 5 '11 at 18:29
@mpiktas: To quote myself: "The dependence parameter can be the correlation, the mutual information..." between the latest sample and the preceding one(s). –  Emre May 5 '11 at 18:37
If you have been given a distribution over sequences, how would you adjust the correlation between samples from it, since it is part of the distribution and thus not subject to change (since it's given)? Or do you mean distribution of the values at timesteps? –  bayerj May 6 '11 at 8:35
show 1 more comment

You can use Markov chains. You will have a to specify a density $p(x_t|x_{t-1})$. Of course you will have to be able to sample from that marginal. Then just sample...