<- All work
05 · Finance
Fandit
Me, wondering what exploration costs when every switch has a price.
A Streamlit experiment comparing bandit policies for stock selection on historical daily returns, with switching costs and baselines on the table. Plus mab-lite-dhruv, a small bandit package on PyPI.
- Status
- Research experiment
- Built with
- Python, Streamlit, Ollama
What it does
- US and India universes, with sector filters.
- Epsilon-greedy, UCB1, and Gaussian Thompson sampling, side by side.
- Exploration parameters, reward transformations, switching costs and selection frequencies are all exposed, not hidden.
- Equal-weight and best-single-stock baselines anchor every comparison.
- A local model summarizes the computed output in plain language. It explains numbers; it does not produce them.
What I would fix
- Transformed rewards can flow into return-style metrics, which makes some charts read better than they should.
- The best single stock is chosen in hindsight. As a baseline it mostly flatters hindsight.
- The next-day comparison advances one calendar day rather than to the next trading day.
- The "live" label really means the last date in a local historical dataset.
What it is not
Not a trading system, not a prediction of returns, and not investment advice. It is a place to see what exploration, reward choice and costs do to a decision.
mab-lite-dhruv is the smaller sibling: Bernoulli bandit exercises with seeded runs, arm counts, rewards and history, packaged for reuse.