# Learnt command/ PF with errors

**URL:** <https://forum.dynare.org/t/learnt-command-pf-with-errors/24637>\
**Category:** Perfect foresight simulations\
**Created:** [28 November 2023 16:12 UTC](https://forum.dynare.org/t/learnt-command-pf-with-errors/24637 "2023-11-28T16:12:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marecon](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@marecon](https://forum.dynare.org/u/marecon)\
**Post date:** [28 November 2023 16:12 UTC](https://forum.dynare.org/t/learnt-command-pf-with-errors/24637/1 "2023-11-28T16:12:51Z")

</div>

Hello,

I read the manual for Dynare 6 version for the learnt\_in command. Is there another reference for the specific algorithm or paper in order to understand the mechanics of the learns/PF with errors simulation?

Thanks

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [4 December 2023 14:15 UTC](https://forum.dynare.org/t/learnt-command-pf-with-errors/24637/2 "2023-12-04T14:15:11Z")

</div>

Section 5 of [deterministic.pdf · master · Sébastien Villemot / perfect-foresight-slides · GitLab](https://git.dynare.org/sebastien/perfect-foresight-slides/-/blob/master/deterministic.pdf?ref_type=heads)  
explains it in more detail:

 ![image](https://forum.dynare.org/uploads/default/original/3X/f/2/f296d5e7c9108260720606c8daf670b3bb7106ef.png)

In a nutshell, you concatenate a sequence of perfect foresight simulations with changing initial conditions that depend on the previously computed path.
