Skip to content

DogInfantry/india-ai-public-equity-landscape

AI x India: Public Equity Landscape

Status Domain Theme Focus Focus Metrics Valuation Tools Output License Contributions Welcome

India's AI services sector is a structural multi-year opportunity. This is the investment case — built on live market data, not consensus.

  • Best risk-adjusted name: Run the notebook to generate live findings
  • Highest compounder: Data generated at runtime — no hard-coded values
  • Correlation watch: Universe-wide concentration risk surfaced on every run
  • Valuation flag: Per-stock PE/PB percentile vs own 3-year history

(Values above are regenerated automatically when the notebook is run)

Sharpe/Return Scatter

What this is

  • A live thematic pitch on 20+ Indian AI/tech equities, built entirely on public market data
  • A scoring engine that ranks names differently depending on client risk profile (growth, income, thematic)
  • A full analytics suite: Sharpe/Sortino, drawdown tracking, portfolio optimization, valuation percentile

How to contribute

This project is open to contributions from equity researchers, quants, and engineers.

  • Browse the Issues tab for items labelled good first issue or help wanted
  • Read CONTRIBUTING.md for setup, coding style, and PR guidelines
  • Open an issue before working on something large — it helps avoid duplicated effort

Contribution tracks: track:data · track:analytics · track:app · track:infra

Read the research

Full thematic pitch (HTML)Visual galleryTop 5 tearsheets (PDF)

AI x India Scorecard

AI x India Theme Map

Universe design

The stock universe in data/ai_india_universe.csv covers 20+ Indian publicly-listed companies across five segments: large-cap IT enablers (TCS, Infosys, HCL Tech, Wipro), ER&D/digital-engineering specialists (Tata Elxsi, LTTS, Persistent, Cyient), analytics and platform names (Affle, RateGain, eClerx, Saksoft), AI infrastructure (Netweb), and enterprise software (OFSS, KPIT, Bosch). All market data is fetched live from Yahoo Finance at runtime — no hard-coded prices.

Data & Methodology

  • Live market data via yfinance at runtime — no hard-coded prices, returns, or valuations
  • Risk-adjusted metrics: Sharpe ratio (6.5% India risk-free rate), Sortino ratio, max drawdown with date and recovery tracking
  • Portfolio construction: mean-variance optimization via scipy.optimize — minimum volatility and maximum Sharpe portfolios
  • Valuation context: each stock ranked against its own 3-year PE/PB history (percentile 0–100)

Setup

Python 3.11+ recommended.

python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -r requirements.txt

Usage

Run the thematic pitch notebook:

jupyter lab
# Open notebooks/01_ai_india_landscape.ipynb and run all cells

This will:

  • Pull live market data
  • Compute all metrics including Sharpe, Sortino, drawdown duration, valuation percentile, efficient frontier
  • Refresh reports/ai_india_thematic_pitch.md and reports/ai_india_thematic_pitch.html
  • Generate all charts (PNG + JPG) in reports/figures/
  • Write PDF tearsheets to reports/tearsheets/
  • Auto-update the key findings in this README

Generate the visual pack directly:

python src/visuals.py

Run the Streamlit advisor engine:

streamlit run src/app.py

Run tests:

pytest tests/ -v

Folder structure

data/           Universe CSV and runtime caches
notebooks/      Analysis notebooks (run top-to-bottom)
src/            Python modules: analysis, visuals, reporting, scoring, app
reports/        Generated markdown, HTML report, tearsheets, and chart figures
tests/          pytest test suite for all new analytics and reporting functions

Disclaimer

This repository is for educational and portfolio-use purposes only. It is not investment advice, not a research product. All data sourced from public APIs at runtime.

About

Decode the AI megatrend in Indian public markets. An open-source, thematic equity research landscape tracking NSE/BSE listed companies building, scaling, and monetizing Artificial Intelligence and Machine Learning.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors