How many real bets, and who carries the risk
portfolio_structureHow many independent bets a portfolio's holdings add up to, from how their prices moved together rather than how many tickers there are, and each holding's share of the risk beside its share of the money, over the full record and over recent years. Use it for 'am I diversified?' or 'which holding carries the risk?'; measure_portfolio includes this with look-through and crises. Weights or amounts give the same answer here; base sets the currency the prices are compared in (default USD). The window is set by the youngest holding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Currency every figure is expressed in (USD, EUR, GBP, CAD…). Default USD. | |
| holdings | Yes | What is held: {ticker: weight or amount}. Weights need not sum to one; amounts in the base currency are also accepted (then the crises are shown in money). 1 to 100 holdings. Tickers as the exchange lists them (VOO, VWCE.DE, XAW.TO; 'CASH.USD' for cash). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Where the prices came from and what was missing or repaired. | |
| _fence | Yes | What these figures are and are not: descriptive, no forecast, no advice. Repeat its sense when presenting the result. | |
| recent | No | The same figures over the recent years only. | |
| max_weight | No | Its share of the money, 0 to 1. | |
| n_holdings | No | Holdings measured. | |
| effective_bets | No | Effective number of independent bets (from correlations, not the ticker count). | |
| max_risk_ticker | No | The holding carrying the largest share of the portfolio's risk. | |
| top_factor_share | No | Share of the movement explained by the single strongest common factor. | |
| max_weight_ticker | No | The largest holding by money. | |
| risk_contributions | No | [ticker, share of risk] pairs. | |
| max_risk_contribution | No | That holding's share of the risk, 0 to 1. |