Jensen Alpha
The Jensen Alpha is the return of an asset above the return that the Capital Asset Pricing Model expects for its Beta. Jensen (1968) introduced it to test whether mutual funds beat the market once their market risk is taken into account, and found that on average they did not. Where the Alpha credits a manager for simply holding more market risk in a rising market, the Jensen Alpha does not.
The formula for the Jensen Alpha is as follows:
\[\text{Jensen Alpha} = R_{a} - (R_{f} + \text{Beta} \cdot (R_{m} - R_{f}))\]Where \(R_{a}\) is the return of the asset, \(R_{m}\) that of the benchmark and \(R_{f}\) the risk free rate over the period, and Beta the slope of the asset returns on the benchmark returns from the daily returns within the period. The term in parentheses is the CAPM expected return. A positive Jensen Alpha means the asset earned more than its market risk alone justifies; it depends on the benchmark and on the Beta, so a poor proxy for the market or a noisy Beta shifts it.
Alpha is the part of a return that the benchmark does not explain: what an investment earned above or below what holding the benchmark would have given. Investors pay active managers for it, as anyone can hold the benchmark cheaply, so it is the usual measure of whether stock selection or timing added value. The measures differ in what they take as the return the investment should have earned: the benchmark’s own return, or the return the Capital Asset Pricing Model (CAPM) expects for the investment’s market risk. A positive Alpha means the investment outperformed on that measure, a negative one that it underperformed. One period of outperformance is weak evidence of skill, as Alpha is noisy, so look at it over several periods or next to its risk (the Appraisal Ratio and the Information Ratio scale it by that).
See definition: Alpha (finance) (Wikipedia) and https://en.wikipedia.org/wiki/Jensen%27s_alpha
Also known as: Jensen’s alpha, jensens alpha, CAPM alpha, risk-adjusted excess return.
In the Finance Toolkit this is get_alpha with method="jensen", the same function as Alpha.
Example · COST, WMT, TGT · 2020 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_alpha:
from financetoolkit import Toolkit
toolkit = Toolkit(
["COST", "WMT", "TGT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2020-01-01",
end_date="2025-12-31",
)
toolkit.performance.get_alpha(method="jensen")
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The period to use for the calculation. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “quarterly” if the Toolkit is initialised with quarterly=True, otherwise “yearly”. | "quarterly" |
show_full_results | bool | Whether to show the actual and benchmark returns next to the Alpha. Only used when method=”standard” or “annualized”. Defaults to False. | True |
rolling | int | The rolling window size to use for the calculation, in periods, across the full return history instead of per period. With the standard method Alpha is the rolling mean excess return over this many periods; with the Jensen method it is the window of the Beta, estimated from the period returns of the last rolling periods instead of from the daily returns within each period. Not used with the annualized method. At least 2. Defaults to None. | 4 |
method | str | The Alpha. Options are: “standard” (Alpha, the difference of the returns of each period), “annualized” (Active Premium, the difference of the annualized returns over the whole date range, one value per ticker; period and rolling are then not used), “jensen” (Jensen Alpha, the return of each period above the CAPM expected return). Defaults to “standard”. | "standard" |
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 ratios. 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 |
Which returns:
| Date | COST | WMT | TGT |
|---|---|---|---|
| 2020 | 0.2292 | 0.1382 | 0.3083 |
| 2021 | 0.2978 | -0.1269 | 0.0732 |
| 2022 | -0.0272 | 0.0584 | -0.1295 |
| 2023 | 0.2706 | 0.0026 | -0.2592 |
| 2024 | 0.1813 | 0.6352 | -0.1879 |
| 2025 | -0.1836 | 0.1275 | -0.4136 |
6 rows
References
- Paper Jensen, M.C. (1968). “The Performance of Mutual Funds in the Period 1945-1964.” The Journal of Finance, 23(2), 389-416.
- Library Shares similar logic as PerformanceAnalytics (R)’s CAPM.jensenAlpha (Jensen Alpha)
- Library Shares similar logic as empyrical’s alpha (Jensen Alpha)
- Library Shares similar logic as empyrical’s roll_alpha_beta (Jensen Alpha)
- Library Shares similar logic as PerformanceAnalytics (R)’s CAPM.beta (Jensen Alpha)
- Library Shares similar logic as empyrical’s beta (Jensen Alpha)