How rabittencourt/simulador-trinomial works
The product is a Streamlit app for exploring trinomial random walks. Users set a time horizon and transition probabilities, view one generated path on a triangular lattice, then run Monte Carlo simulations and compare empirical results with theoretical statistics and a Normal curve. The app coordinates simulation, plotting, and KPI display. The graph reflects the inspected app and core modules; it does not assume additional behavior beyond their code and the README.
Main entry points: app.py Streamlit interface · engine.py Trinomial simulator · plots.py Plot generation
Components 12
Interactive app
- Streamlit interface
app.py - Simulation parameters
app.py - Single path view
app.py - Monte Carlo controls
app.py - Result metrics
app.py
Simulation
- Trinomial simulator
src/engine.py - Path generation
src/engine.py - Theoretical statistics
src/engine.py
Visualization
- Plot generation
src/plots.py - Lattice network plot
src/plots.py - Monte Carlo analysis plot
src/plots.py
Other components
- User
Connections 15
- User → Streamlit interface: uses
README.md - Streamlit interface → Simulation parameters: collects
app.py - Streamlit interface → Trinomial simulator: instantiates
app.py - Simulation parameters → Trinomial simulator: configures
app.py - Streamlit interface → Path generation: generates path
app.py - Trinomial simulator → Path generation: provides method
src/engine.py - Streamlit interface → Lattice network plot: plots path
app.py - Plot generation → Lattice network plot: implements
src/plots.py - Streamlit interface → Monte Carlo controls: collects count
app.py - Monte Carlo controls → Path generation: sets simulation count
app.py - Streamlit interface → Theoretical statistics: gets statistics
app.py - Trinomial simulator → Theoretical statistics: provides method
src/engine.py - Streamlit interface → Monte Carlo analysis plot: plots analysis
app.py - Plot generation → Monte Carlo analysis plot: implements
src/plots.py - Streamlit interface → Result metrics: displays results
app.py