Lesson 1 of 15
Logistic Map
Logistic Map
The logistic map is one of the simplest yet most fascinating examples of how complex, chaotic behaviour can emerge from a simple nonlinear equation:
Here represents a normalised population at generation , and is the growth rate parameter.
Behaviour by Region
| Range of | Behaviour |
|---|---|
| Population dies out → | |
| Converges to stable fixed point | |
| Period-doubling bifurcations (2, 4, 8, …) | |
| Chaos (mostly) |
Fixed Point
For , the non-trivial fixed point satisfies , giving:
Lyapunov Exponent
The Lyapunov exponent measures the average rate of divergence of nearby trajectories:
- : stable (convergent) dynamics
- : chaos (exponential divergence)
For the fully chaotic case , the Lyapunov exponent equals .
Your Task
Implement three functions:
logistic_iterate(r, x0, n)— iterate the map times from , returning a list of valueslogistic_fixed_point(r)— return for , elselyapunov_exponent(r, x0=0.5, n=1000)— compute , skipping the first 100 transient steps
Python runtime loading...
Loading...
Click "Run" to execute your code.