CAPM Expected Return
The CAPM Expected Return is the return the Capital Asset Pricing Model of Sharpe (1964) requires of an asset for its market risk: the risk free rate plus the asset’s beta times the market risk premium, with the benchmark as the market. It replaces the noisy average of each asset by one average, that of the market, and a beta, which is estimated far more precisely.
The formula for the CAPM Expected Return starts from the beta of asset i, the covariance of its returns \(r_{i}\) with the benchmark returns \(r_{m}\) over the variance of the benchmark returns:
\[\beta_{i} = \frac{\operatorname{cov}\left(r_{i}, r_{m}\right)}{\operatorname{var}\left(r_{m}\right)}\]It adds \(\beta_{i}\) times the annualized excess return of the benchmark to the annualized risk free rate \(r_{f}\), with P the number of periods in a year:
\[\mu_{i} = r_{f} + \beta_{i} \cdot \left(P \cdot \operatorname{mean}\left(r_{m}\right) - r_{f}\right)\]Assets with the same beta get the same expected return, whatever their own history, so the estimate is as good as the model: assets with a low beta have earned more, and those with a high beta less, than it predicts.
It shows how much the choice moves the input that mean-variance weights are most sensitive to. The expected return of an asset can only be estimated from a short and noisy history: the precision of an average return grows with the length of the history in years, not with the number of periods within them, so even decades of data leave it imprecise. An optimizer that takes such estimates at face value bets most on the assets whose averages happen to be highest in the sample. The estimators differ in how they deal with this: by weighting recent periods, by deriving the returns from a model of risk, by shrinking the averages towards a common value or by using only an ordering of the assets.
Also known as: CAPM return, equilibrium return, beta-implied return.
In the Finance Toolkit this is get_expected_returns_estimate with method="capm", the same function as Expected Returns Estimate.
Example · AAPL, MSFT, JNJ, XOM · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_expected_returns_estimate:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "JNJ", "XOM"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.portfolio.get_expected_returns_estimate(method="capm", show_columns=["Mean", "Geometric", "Bayes-Stein", "James-Stein", "Bodnar-Okhrin-Parolya"])
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | list[str] | None | The estimators. Options are: “mean” (Historical Mean, the arithmetic average), “geometric” (Geometric Mean, the compounded average), “exponential” (Exponentially Weighted Mean, recent periods weigh most), “exponential_geometric” (Exponentially Weighted Geometric Mean, that average compounded over a year), “capm” (CAPM Expected Return, from each asset’s beta to the benchmark, Sharpe, 1964), “bayes_stein” (Bayes-Stein Shrinkage, towards the average of the minimum variance portfolio, Jorion, 1986), “james_stein” (James-Stein Shrinkage, towards the grand mean, James and Stein, 1961), “bodnar_okhrin_parolya” (Bodnar-Okhrin-Parolya Shrinkage, the averages and their grand mean combined with optimal weights, Bodnar, Okhrin and Parolya, 2019), “centroid” (Centroid Expected Return, from an ordering of the assets, Almgren and Chriss, 2006). Defaults to None, all of them (CAPM only when there is a benchmark, Centroid only with a ranking). | None, all of them (CAPM only when there is a benchmark, Centroid only with a ranking) |
period | str | The frequency of the returns. Options are: “daily” (daily returns), “weekly” (weekly returns), “monthly” (monthly returns), “quarterly” (quarterly returns), “yearly” (yearly returns). Defaults to “daily”. | "weekly" |
span | int | The span in periods of the exponential averages. Defaults to 180. | 180 |
adjust | bool | Whether the exponential averages normalize the weights over the whole history rather than follow the recursion \(m_{t} = \alpha r_{t} + (1 - \alpha) m_{t - 1}\). Defaults to True. | True |
ranking | list | dict | pd.Series | None | The ordering of the centroid estimator, from the highest expected return to the lowest: a list of every asset ([“MSFT”, “AAPL”, …]), whose entries can be lists of assets ranked together ([“MSFT”, [“AAPL”, “JNJ”], “XOM”]), or a score per asset ({“AAPL”: 2.1, …} or a pd.Series, higher is better, equal scores ranked together). Defaults to None. | None |
include_benchmark | bool | Whether to include the benchmark as an asset. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the Toolkit’s rounding. | 2 |
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:
| Item | CAPM |
|---|---|
| AAPL | 0.1798 |
| MSFT | 0.1685 |
| JNJ | 0.0592 |
| XOM | 0.0977 |
4 rows
References
- Paper Sharpe, W. F. (1964). “Capital Asset Prices: A Theory of Market Equilibrium under Conditions of Risk.” The Journal of Finance, 19(3), 425-442.
- Library Referenced against PyPortfolioOpt’s capm_return (CAPM Expected Return)