Idiosyncratic Skewness
Calculate the Idiosyncratic Skewness per asset and period: the skewness of the part of the returns the factors do not explain, positive for a stock with lottery-like jumps up.
Bali, Engle and Murray (2016) regress the daily excess returns of every stock on the Fama and French three factors (or the market alone) within each month and take the skewness of the residuals. Stocks with a high idiosyncratic skewness earn lower returns the next month in equal-weighted portfolios: investors who like lottery-like payoffs overpay for them, as Boyer, Mitton and Vorkink (2010) find for expected idiosyncratic skewness. Total skewness mixes in the skewness of the market and the co-skewness with it; the residuals leave only the asymmetry that belongs to the stock itself.
The formula is as follows (with the default Fama and French three factors):
\[\text{Excess Return}_{t} = \alpha + \beta_{1} \cdot \text{Mkt RF}_{t} + \beta_{2} \cdot \text{SMB}_{t} + \beta_{3} \cdot \text{HML}_{t} + \epsilon_{t}\] \[\text{Idiosyncratic Skewness} = \frac{n}{(n - 1) \cdot (n - 2)} \cdot \sum_{t=1}^{n} \left(\frac{\epsilon_{t}}{\operatorname{std}\left(\epsilon\right)}\right)^{3}\]The formula of the regressions with the CAPM and the q-factor model is as follows:
\[\text{Excess Return}_{t} = \alpha + \beta \cdot \text{Benchmark Excess Return}_{t} + \epsilon_{t}\] \[\text{Excess Return}_{t} = \alpha + \beta_{1} \cdot \text{MKT}_{t} + \beta_{2} \cdot \text{ME}_{t} + \beta_{3} \cdot \text{IA}_{t} + \beta_{4} \cdot \text{ROE}_{t} + \epsilon_{t}\]Where Mkt RF is the market factor Mkt-RF, the regression runs on the daily returns within the period, n is the number of days and std the sample standard deviation (with n - 1 in the denominator) of the residuals: the bias-adjusted sample skewness (G1) of the Skewness. A period with fewer than 15 daily returns is NaN.
Also known as: ISKEW, idiosyncratic skewness, residual skewness, IdioSkew.
Example · AAPL, TSLA, KO · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_idiosyncratic_skewness:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "TSLA", "KO"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-06-30",
)
toolkit.risk.get_idiosyncratic_skewness()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How skewed were the daily returns of Apple, Tesla and Coca-Cola beyond the Fama-French three factors in each month of the first half of 2025?
Which returns:
| Date | AAPL | TSLA | KO | Benchmark |
|---|---|---|---|---|
| 2025-01 | 0.7562 | 0.8377 | 0.4960 | 0.6898 |
| 2025-02 | -0.1736 | -0.2041 | 1.1184 | 0.3884 |
| 2025-03 | -0.1632 | -0.3836 | -0.4182 | 0.2761 |
| 2025-04 | -0.4433 | 0.3388 | -0.4442 | -1.0935 |
| 2025-05 | -1.3210 | 0.5008 | 1.0094 | 0.4741 |
| 2025-06 | 0.4936 | -0.8260 | -0.1474 | 0.6629 |
6 rows
Parameters
get_idiosyncratic_skewness accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period each regression runs within. Options are: “monthly”, “quarterly”, “yearly”. Defaults to “monthly”, as in the book. | "weekly" |
model | str | The factors to regress on. Options are: “fama_french” (the Fama and French three factors Mkt-RF, SMB and HML), “capm” (the excess return of the benchmark), “q” (the q-factors MKT, ME, IA and ROE of Hou, Xue and Zhang), “q5” (the q-factors and expected growth EG). Defaults to “fama_french”. | "fama_french" |
rolling | int | Regress on the daily returns of the last rolling periods instead of one period (e.g. period=’monthly’ and rolling=12 for a one-year window at every month end). At least 2. Defaults to None. | 4 |
region | str | The region whose Fama and French factors to use with model=”fama_french”. Options are: “United States”, “Developed”, “Developed ex US”, “Europe”, “Japan”, “Asia Pacific ex Japan”, “North America”. Every region’s factors are U.S. dollar returns. Defaults to “United States”. | "Europe" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the Idiosyncratic Skewness over time. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Bali, T. G., Engle, R. F. and Murray, S. (2016). “Empirical Asset Pricing: The Cross Section of Stock Returns.” Wiley, Chapter 13 (Skewness).
- Paper Boyer, B., Mitton, T. and Vorkink, K. (2010). “Expected Idiosyncratic Skewness.” The Review of Financial Studies, 23(1), 169-202.
- Paper Hou, K., Xue, C. and Zhang, L. (2015). “Digesting Anomalies: An Investment Approach.” Review of Financial Studies, 28(3), 650-705.
- Library Shares similar logic as scipy’s skew