Skip to content

stockviz/plutons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plutons

notebooks created on pluto

Currencies

Dollar Indices on the FRED: Explore trade-weighted dollar indices on the FRED and compare other USD currency pairs, like USDINR, with trade-weighted indices.
Currency futures on the NSE: Creating a continuous series out of futures contracts.
An overview of how currency sources on pluto

Yield curves!

Zero-coupon yields vs. Sovereign bond index yields
Plotting the 10-year yields of India, US and Euro-AAAs

Cumulative and yearly return charts using FRED data.

Gold

Gold vs. NIFTY 50: Explore historical returns of gold vs. the NIFTY 50 Total Return (TR) index in dollars.
GOLDBEES vs. NIFTYBEES: Comparision of the two India listed ETFs.
Gold futures listed on MCX: Exploring the plethora of gold futures contracts listed on the MCX.

NIFTY 50

Rolling Returns: Plot rolling returns over different time-horizons.
SMA On/Off: Toggling market exposure based on a Simple Moving Average.

Density plots and summary statistics.

ggplot, quantmod are fair game.

Do active managers reduce drawdowns during downturns? Top 5 mid-cap funds by AUM at the turn 2017 show that active managers can and do navigate through drawdowns.

A tile plot to visualize sector allocations through time. A caveat: classifications can and do change over time. For example, HDFCBANK was first "BANK" and since March 2018, it is "FINANCIAL SERVICES".
Franklin Prima
Mirae Emerging Blue-chip

The Bombay Stock Exchange has its own logic to classifying stocks by sector. It gives a more consistent and granular view of allocations.

Pie charts of allocations at different periods. Got a bit tricky because the notebook bloted beyond the 1MB limit of github. So now, on exceeding the limit, markdown files with images extracted to separate files is uploaded instead. The big notebook files stays on pluto.

Use Upset charts for visualizing fund portfolio overlaps.

Fun with NASDAQOMX index data-sets

Explore commodity indices or Indian equity indices in USD

Uses a monthly return series of NIFTY 50 and MIDCAP 100 total-return indices as a stand-in for equities and short-term (< 5 year maturity) government bond total-return index as a stand-in for bonds.

Works mostly because it side-steps some steep drawdowns. However, when the same was tested on NIFTY/INDIA-VIX, it under-performed buy-and-hold. And adding an SMA(50) layer only makes it worse.

Inflation tends to vary widely through time. To see what "real", i.e., after inflation, returns are, the rate of inflation needs to be subtracted from gross returns. Also, charting historical inflation

Equity time-series

Plotting a stock's price chart with corporate action overlay
Comparing stocks with indices

Fama-French

Equity Risk Premium: An equity investor takes on a lot more risk compared to someone who buys only US government bonds. So, in theory, the equity investor should earn returns in excess of those given by bonds. But how much more should that be?
Value vs. Equal weighting:The decision between value weighting and equal weighting a portfolio cannot be taken in haste. It ends up making a big difference over time.
Low-momentum ≠ Negative-returns: Sometimes, everything rallies. Just because a set of stocks performed poorly in the past doesn’t necessarily mean that they will have negative returns going-forward.
Long-Short comes up short: The last 10-years in the US markets have been a one-way, long-only bet. So if you constructed a long-short momentum portfolio, the chances are that you got hosed.
Out-lasting statistics: Just because momentum is statistically shown to out-perform the market over long periods of time, the actual period during which it out-performs may not overlap with your time horizon.