# Difference between revisions of "TFPIE2012: Recursion Schemes of Scientific Models"

From tfpie

(→The Recursion Schemes of Scientific Models) |
(→Visual Demonstrations) |
||

(10 intermediate revisions by the same user not shown) | |||

Line 4: | Line 4: | ||

* Draft proceedings version [[File:TFPIE2012_Draft_RecursionSchemesOfScientificModels_Widemann.pdf]] | * Draft proceedings version [[File:TFPIE2012_Draft_RecursionSchemesOfScientificModels_Widemann.pdf]] | ||

* Literate Haskell Archive [[File:TFPIE2012_Supplement_RecursionSchemesOfScientificModels_Widemann.zip]] | * Literate Haskell Archive [[File:TFPIE2012_Supplement_RecursionSchemesOfScientificModels_Widemann.zip]] | ||

+ | |||

+ | === Visual Demonstrations === | ||

+ | |||

+ | The following diagrams can be produced from the Literate Haskell code (provided some not quite hassle-free Haskell packages are installed, sorry). | ||

+ | |||

+ | * [[File:TFPIE2012-_Recursion_Schemes_of_Scientific_Models-demoT.png|thumb|alt=Demo: Direct Modelling with Trajectories.|Direct Modelling with Trajectories.]] Trajectories of the logistic map with different initial states and parameter values are plotted for 100 steps, showing six classes of behaviour. From top-left to bottom-right: | ||

+ | *# Stable limit points that attract the initial state, either one-sided (<math>r<2</math>) or with overshooting (<math>r>2</math>). These correspond to the initial branch of the logistic map's bifurcation diagram. | ||

+ | *# Stable periodic solution of period length 2 that attracts the initial state; corresponds to the first bifurcation at <math>r=3</math>. | ||

+ | *# Stable periodic solution of period length 2 that attracts the initial state; more difficult to find in the bifurcation diagram in a small window of orderly behaviour among chaos. | ||

+ | *# Stable periodic solution of period length 4 that attracts the initial state; corresponds to the second bifurcation at <math>r \approx 3.45</math>. | ||

+ | *# Chaotic behaviour at <math>r = 4</math>, ranging over the whole domain. Illustrates one of the defining properties of chaos: orbits (points connected by a trajectory) are ''dense''. | ||

+ | *# Chaotic behaviour at <math>r = 4</math>, starting from a tiny neighbourhood of an unstable limit point. Illustrates another defining property of chaos: near trajectories ''diverge exponentially''. | ||

+ | *: The initial state is 0.35 in all cases except the last, where it is 0.7500000000001. | ||

+ | * [[File:TFPIE2012-_Recursion_Schemes_of_Scientific_Models-demoI.png|thumb|alt=Demo: Direct Modelling with Intervals.|Direct Modelling with Intervals.]] The same six situations as above, but now with an interval of potential initial states. Note that periodic solutions are either self-focussing or self-dispersing, for one-sided and overshooting convergence, respectively. Note also how quickly the state becomes completely indeterminate when chaos emerges. The initial intervals are [0.3, 0.4] in all cases except the last, where it is [0.75, 0.7500000000001]. | ||

+ | * [[File:TFPIE2012-_Recursion_Schemes_of_Scientific_Models-demoD.png|thumb|alt=Demo: Direct Modelling with Distributions.|Direct Modelling with Distributions.]] Trajectories of continuous state distribution are plotted for 5 steps as differently coloured cdf graphs. Colours range over the rainbow, in order of increasing wavelength. The initial distribution is uniform on the whole domain in all cases except the last, where it is uniform on the middle third only. The distributions appear to converge in all cases. For <math>r = 4</math> (bottom row), the limiting distribution has been studied thoroughly: it is the ''Beta(1/2, 1/2)'' distribution. Note that the initial distribution hardly matters in this case; it converges quickly and almost surely. | ||

+ | * [[File:TFPIE2012-_Recursion_Schemes_of_Scientific_Models-demoR.png|thumb|alt=Demo: Inverse Modelling with Observations.|Inverse Modelling with Observations.]] Successively narrowed intervals are plotted. They are obtained by iterating the inference step for the observation ''the next state is in the upper half'' 20 times, starting with a completely indeterminate state. Four types of behaviour appear, from top-left to bottom-right: | ||

+ | *# The inference fails after one step, because there is no such state. | ||

+ | *# The inference stagnates, because the observation is not unique. | ||

+ | *# The inference converges slowly. | ||

+ | *# The inference converges quickly. | ||

+ | * [[File:TFPIE2012-_Recursion_Schemes_of_Scientific_Models-demoA.png|thumb|alt=Demo: Inverse Modelling with Input.|Inverse Modelling with Input.]] Backwards trajectories for the logistic map with <math>r=4</math> are plotted for 100 steps. In the forward mode, the map is completely chaotic for this parameter value, i.e., periodic of all lengths exist, but are unstable. In the backwards mode, these solutions become stable such that most initial states are attracted to them. By the simple expedient of driving the reverse map with a periodic stream of binary input of the desired period length, convergence towards a solution of that period length is effected. Running forwards from a state obtained by this procedure, the appearance of a periodic trajectory is produced. Of course, it will break down eventually because of chaos, but the longer the backwards search procedure, the longer the appearance can be maintained. Simple cases of length 1 and 3 are shown, as well as for 5 and 17. Those are virtually impossible to construct in the forward mode. |

## Latest revision as of 11:29, 2 June 2012

## The Recursion Schemes of Scientific Models

By: Baltasar Trancón y Widemann

- Draft proceedings version File:TFPIE2012 Draft RecursionSchemesOfScientificModels Widemann.pdf
- Literate Haskell Archive File:TFPIE2012 Supplement RecursionSchemesOfScientificModels Widemann.zip

### Visual Demonstrations

The following diagrams can be produced from the Literate Haskell code (provided some not quite hassle-free Haskell packages are installed, sorry).

- Trajectories of the logistic map with different initial states and parameter values are plotted for 100 steps, showing six classes of behaviour. From top-left to bottom-right:
- Stable limit points that attract the initial state, either one-sided (<math>r<2</math>) or with overshooting (<math>r>2</math>). These correspond to the initial branch of the logistic map's bifurcation diagram.
- Stable periodic solution of period length 2 that attracts the initial state; corresponds to the first bifurcation at <math>r=3</math>.
- Stable periodic solution of period length 2 that attracts the initial state; more difficult to find in the bifurcation diagram in a small window of orderly behaviour among chaos.
- Stable periodic solution of period length 4 that attracts the initial state; corresponds to the second bifurcation at <math>r \approx 3.45</math>.
- Chaotic behaviour at <math>r = 4</math>, ranging over the whole domain. Illustrates one of the defining properties of chaos: orbits (points connected by a trajectory) are
*dense*. - Chaotic behaviour at <math>r = 4</math>, starting from a tiny neighbourhood of an unstable limit point. Illustrates another defining property of chaos: near trajectories
*diverge exponentially*.

- The initial state is 0.35 in all cases except the last, where it is 0.7500000000001.

- The same six situations as above, but now with an interval of potential initial states. Note that periodic solutions are either self-focussing or self-dispersing, for one-sided and overshooting convergence, respectively. Note also how quickly the state becomes completely indeterminate when chaos emerges. The initial intervals are [0.3, 0.4] in all cases except the last, where it is [0.75, 0.7500000000001].
- Trajectories of continuous state distribution are plotted for 5 steps as differently coloured cdf graphs. Colours range over the rainbow, in order of increasing wavelength. The initial distribution is uniform on the whole domain in all cases except the last, where it is uniform on the middle third only. The distributions appear to converge in all cases. For <math>r = 4</math> (bottom row), the limiting distribution has been studied thoroughly: it is the
*Beta(1/2, 1/2)*distribution. Note that the initial distribution hardly matters in this case; it converges quickly and almost surely. - Successively narrowed intervals are plotted. They are obtained by iterating the inference step for the observation
*the next state is in the upper half*20 times, starting with a completely indeterminate state. Four types of behaviour appear, from top-left to bottom-right:- The inference fails after one step, because there is no such state.
- The inference stagnates, because the observation is not unique.
- The inference converges slowly.
- The inference converges quickly.

- Backwards trajectories for the logistic map with <math>r=4</math> are plotted for 100 steps. In the forward mode, the map is completely chaotic for this parameter value, i.e., periodic of all lengths exist, but are unstable. In the backwards mode, these solutions become stable such that most initial states are attracted to them. By the simple expedient of driving the reverse map with a periodic stream of binary input of the desired period length, convergence towards a solution of that period length is effected. Running forwards from a state obtained by this procedure, the appearance of a periodic trajectory is produced. Of course, it will break down eventually because of chaos, but the longer the backwards search procedure, the longer the appearance can be maintained. Simple cases of length 1 and 3 are shown, as well as for 5 and 17. Those are virtually impossible to construct in the forward mode.