CAPM (capital asset pricing model) is used to evaluate investment risk and rates of return compared to the overall market. You can use CAPM to price an individual asset, or a portfolio of assets, using a linear model defined as:

Where:

is the expected return of the asset or portfolio denoted with *i*.

is the risk-free rate of return.

(beta) is the sensitivity of returns of asset *i* to the returns from the market, and is defined as the covariance of returns between the asset *i* and the market to the market variance.

is the expected return of the market.

Using CAPM, you can calculate the expected return for a given asset by estimating its beta from past performance, the current risk-free (or low-risk) interest rate, and an estimate of the average market return.

A common pitfall in estimating beta from historical data sets can arise when the data set is incomplete, or contains missing data, so it is important to have missing data estimation functions to reduce this type of estimation risk for CAPM.

For more information, see Statistics Toolbox™ and Financial Toolbox™.

- Capital Asset Pricing Model (CAPM) with Missing Data (Example)
- Using MATLAB to Optimize Portfolios with Financial Toolbox 33:27 (Webinar)
- Mean-Variance Efficient Frontier (Example)
- Optimal Risky Portfolio (Example)
- Risk-Adjusted Returns (Example)
- Performance Metrics and CAPM (Example)

- CAPM - Capital Asset Pricing Model (Documentation)
- Calculate Risk-Adjusted Alphas and Returns (Function)
- Mean-Variance Efficient Frontier (Function)
- Portfolio Object (Function)

*See also*: *regression and estimation with missing data*, *portfolio optimization*, *financial engineering*, *Black-Litterman Model*