Monte Carlo:

通过极限情况下的分布关系$\pi (x’) =\sum\limits_{x}{ \pi (x)P(x->x’)} $

有p(x’)$\approx\sum\limits_{x}{p(x)T(x—>x’)}$

若T满足regular markov chain的条件,则Monte Carlo方法保证在极限条件下收敛到目标分布。

Regular Markov Chain

转移矩阵经过若干次相乘后,所有项都不为0的马尔科夫链就是规则马尔科夫链。

   充分条件:任意两个状态都相连,每个状态自转移概率不为0.

An square matrix Sampling is called regular if for some integer Sampling all entries of Sampling are positive.

Example

The matrix

Sampling

is not a regular matrix, because for all positive integer Sampling,

Sampling

The matrix Sampling

is a regular matrix, because Sampling has all positive entries.

It can also be shown that all other eigenvalues of A are less than 1, and algebraic multiplicity of 1 is one.

It can be shown that if Sampling is a regular matrix then Sampling approaches to a matrix Sampling whose columns are all equal to a probability vector Sampling which is called the steady-state vector of the regular Markov chain.

Sampling

where Sampling.

It can be shown that for any probability vector Sampling when Sampling gets large, Sampling approaches to the steady-state vector

Sampling

.

That is

Sampling

where Sampling.

It can also be shown that the steady-state vector q is the only vector such that

Sampling

Note that this shows q is an eigenvector of A and Sampling is eigenvalue of A.

 

Mixed:收敛的

验证方法,通常不能验证已经mixed,但是能验证还不是mixed:

1、使用windows,截取一个时间段的数据看是否相近。但是可能在收敛过程中有小部分数据先聚集到一起,这不能说明是收敛的。

2、使用两个不同的初始状态的马尔科夫链。在同一个时间观察,如果数据不相近,则不是mixed。

实际中可以使用一个随机初始的,和一个高概率初始的来比较。

 

MCMC方法取得的样本不是IID的,所以有时需要间隔一段再取。

The faster the Markov Chain converges, the less correlated are the samples.

Sampling

Sampling

Sampling

 

Gibbs Sampling

对多维数据有效。

Sampling

不能mix的gibbs sampling chain

Sampling

metropolis-hastings

Sampling

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-03-05
  • 2021-09-24
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2021-12-16
  • 2021-10-03
  • 2021-12-15
  • 2022-02-11
  • 2021-05-21
相关资源
相似解决方案