RiskModels Cohort Statistics
riskmodels_get_cohortsRetrieve cross-sectional residual statistics for SPY and the 11 GICS sector SPDR cohorts on one date or as a time series to compare sector risk.
Instructions
Use when you want cross-sectional residual statistics for SPY and the 11 GICS sector SPDR cohorts, on one date or as a time series. Not for one stock's peers (use riskmodels_get_peers) or one stock's rank (use riskmodels_get_rankings). Returns, from GET /cohorts (one date) or GET /cohorts/series (series=true), residual_mean, residual_sd, mean_pairwise_corr, n_names and n_effective by default, more on request. ERM3 residuals are fitted without an intercept, so residual_mean is not zero; link_fit_resid_sd is the residual standard deviation of the 252-day link regression, a fit-quality measure rather than a standard error. Subsector cohorts are not available. End-of-day data, refreshed after each US market close. Price: $0.04 for one date, $0.15 for a series.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teo | No | Observation date for the one-date view (default latest), format YYYY-MM-DD, e.g. 2026-06-30 | |
| series | No | true returns a time series over start_date..end_date, e.g. true (default false: one date) | |
| cohorts | No | Comma-separated cohort tickers from SPY, XLE, XLB, XLI, XLY, XLP, XLV, XLF, XLK, XLC, XLU, XLRE, e.g. "SPY,XLK" (default all) | |
| end_date | No | Series end, series=true only, format YYYY-MM-DD, e.g. 2026-06-30 | |
| min_names | No | Drop cohorts or days with fewer members, integer, e.g. 20 | |
| variables | No | Comma-separated variables, e.g. "residual_sd,n_names" (default residual_mean, residual_sd, mean_pairwise_corr, n_names, n_effective) | |
| start_date | No | Series start, series=true only, format YYYY-MM-DD, e.g. 2025-01-02 |