Cross-entropy method: Difference between revisions

Content deleted Content added
Generic CE algorithm: fix formatting.
m Generic CE algorithm: fix formatting
Line 15:
 
==Generic CE algorithm==
1.# Choose initial parameter vector <math>\mathbf{v}^{(0)}</math>; set t = 1.
2.# Generate a random sample <math>\mathbf{X}_1,\dots,\mathbf{X}_N</math> from <math>f(\cdot;\mathbf{v}^{(t-1)})</math></p>
# Solve for <math>\mathbf{v}^{(t)}</math>, where<br><math>\mathbf{v}^{(t)} = \mathop{\textrm{argmax}}_{\mathbf{v}} \frac{1}{N} \sum_{i=1}^N H(\mathbf{X}_i) \frac{f(\mathbf{X}_i;\mathbf{u})}{f(\mathbf{X}_i;\mathbf{v}^{(t-1)})} \log f(\mathbf{X}_i;\mathbf{v})</math>
3. Solve for <math>\mathbf{v}^{(t)}</math>, where
4.# If convergence is reached then '''stop'''; otherwise, increase t by 1 and reiterate from step 2.
<math>\mathbf{v}^{(t)} = \mathop{\textrm{argmax}}_{\mathbf{v}} \frac{1}{N} \sum_{i=1}^N H(\mathbf{X}_i) \frac{f(\mathbf{X}_i;\mathbf{u})}{f(\mathbf{X}_i;\mathbf{v}^{(t-1)})} \log f(\mathbf{X}_i;\mathbf{v})</math>
4. If convergence is reached then '''stop'''; otherwise, increase t by 1 and reiterate from step 2.
 
In several cases, the solution to step 3 can be found ''analytically''. Situations in which this occurs are