Week 7 — Portfolios, beta and the CAPM
By the end of this week you can compute your company’s beta from its own return history, turn it into the return shareholders should demand (CAPM), and explain which part of the stock’s risk they are actually paid for.
← Course map · Slides from class
From last week. Last week you measured the risk of one stock on its own. This week you hold several stocks, and some of that risk disappears.
This week’s ideas
Open an idea, read it, try the tool and answer the questions. Then go on to the next one.
1Portfolio return and diversificationIf I split my money across several stocks, what return should I expect, and why is the portfolio's risk smaller than the average of the stocks' risks?
Start with two stocks. Their returns average out, but their risks do not simply add up.
Learning goals
After this idea, you can:
- Compute a portfolio’s expected return as a weighted average, with weights given as percentages or worked out from dollar amounts.
- Compute the standard deviation of a two-stock portfolio from the two standard deviations, the weights and the correlation.
- Explain why a lower correlation lowers the risk of a portfolio but never changes its expected return.
The idea
At a county fair you own an ice-cream truck. Hot days are great. Cold days are terrible. Your daily income swings wildly. Your neighbor owns a hot-soup truck, and her income swings just as much, but on the opposite days. Now suppose each of you owns half of both trucks. The average income is the same as before. The swings almost disappear. A hot day for one truck is a cold day for the other.
One thing still hurts you both: a rainy day. Nobody comes to the fair, so both trucks earn little. Owning both trucks does not protect you from the risk they share.
Stocks work the same way.
Portfolio and weights. A portfolio is a group of investments that one person holds together. The weight of a stock is the share of your money that is in that stock. If you put $6,000 in one stock and $4,000 in another, the weights are 6,000 ÷ 10,000 = 60% and 40%. The weights always add up to 100%.
The return is a weighted average. The expected return of a portfolio is each stock’s expected return multiplied by its weight, then added up. Nothing else is in the formula.
Expected return: E(rp) = w₁ × E(r₁) + w₂ × E(r₂) + …
Risk of two stocks: σp = √( w₁²σ₁² + w₂²σ₂² + 2 × w₁ × w₂ × ρ × σ₁ × σ₂ )
w = weight · E(r) = expected return · σ = standard deviation · ρ = correlation between the two stocks
The risk is not a weighted average. Risk here means the standard deviation (σ) of the return. You might guess that the risk of a portfolio is the average of the stocks’ risks. It is almost always less. The reason is that the stocks do not move together all the time. When one has a bad month, the other may have a good one, and part of the swing cancels out. Spreading money over investments that do not move together is called diversification.
Correlation does the work. Correlation (ρ, the Greek letter rho) is a number from −1 to +1 that says how closely two returns move together.
| Correlation | What the two stocks do | Benefit from mixing them |
|---|---|---|
| +1 | always move together | none: risk is the plain weighted average |
| 0 | no pattern | large |
| −1 | always move opposite | the largest: risk can fall to zero |
Real stocks usually have a correlation between 0.2 and 0.8 with each other. So mixing them gives some benefit, but never zero risk.
Read the risk formula term by term. The first two terms are each stock’s own risk, scaled by its weight. The last term, 2 × w₁ × w₂ × ρ × σ₁ × σ₂, is the cross term. It is the only place where the correlation appears. A small correlation makes the cross term small, and the risk falls. Diversification lives in that last term.
Now look at the return formula again. There is no ρ in it. Diversification lowers risk. It does not lower the expected return.
In Excel. The expected return is =SUMPRODUCT(weights, returns). The correlation of two columns of returns is =CORREL(returns A, returns B). Excel has no function for the risk of a two-stock portfolio. You type the square-root formula yourself.
Try it
Start with the two stocks of the worked example below: 60% in the first, correlation 0.25. Move only the correlation slider first.
What to notice:
- Slide the correlation from +1 down to −1. The risk falls all the way. The expected return does not move.
- The dashed grey line is a correlation of +1: no benefit. The green bar is the risk that diversification saved.
- Move the weight slider. On the curve, some mixes have less risk than either stock alone.
The two food trucks, day by day. Tick the boxes and read the sentence.
Worked example
Problem. Ridgeline Outfitters has an expected return of 11% and a standard deviation of 22%. Harbor Coffee Co. has an expected return of 8% and a standard deviation of 14%. Their correlation is 0.25. You put 60% of your money in Ridgeline and 40% in Harbor Coffee. What are the portfolio’s expected return and standard deviation? (Both companies are fictional.)
Step 1. Expected return. 0.6 × 11% + 0.4 × 8% = 6.6% + 3.2% = 9.8%.
Step 2. The three terms under the square root. Write the percentages as decimals.
- First stock: 0.6² × 0.22² = 0.36 × 0.0484 = 0.017424
- Second stock: 0.4² × 0.14² = 0.16 × 0.0196 = 0.003136
- Cross term: 2 × 0.6 × 0.4 × 0.25 × 0.22 × 0.14 = 0.003696
Step 3. Add and take the square root. 0.017424 + 0.003136 + 0.003696 = 0.024256. √0.024256 = 0.1557, so σp = 15.57%.
Step 4. Compare with the simple average. 0.6 × 22% + 0.4 × 14% = 18.8%. The portfolio’s risk is 15.57%, so diversification saved 18.8 − 15.57 = about 3.2 percentage points.
Step 5. Change only the correlation. With the same weights:
| Correlation | Portfolio risk | Expected return |
|---|---|---|
| +1 | 18.80% (the simple average: no benefit) | 9.8% |
| 0.25 | 15.57% | 9.8% |
| −1 | 7.60% | 9.8% |
Answer. The portfolio expects 9.8% a year with a standard deviation of 15.57%. That is 3.2 points less risk than the simple average, and the expected return is 9.8% at every correlation.
Check yourself · 5 questions
You put half your money in a stock with expected return 8% and half in a stock with expected return 14%. The portfolio’s expected return is
Portfolio expected return = Σ wᵢ × E(rᵢ): a weighted average, nothing more.
The correlation between two stocks in your portfolio falls from +0.6 to 0. Nothing else changes. The portfolio’s expected return
Correlation changes σ_p, never E(r_p). That is why diversification is a free lunch on risk.
Two stocks have standard deviations of 20% and 30%. You hold 50% in each and their correlation is exactly +1. The portfolio standard deviation is
ρ = +1 is the only case where portfolio risk equals the weighted average of the risks — no benefit at all.
Which correlation between two stocks gives the LARGEST reduction in portfolio risk?
The lower the correlation, the smaller the cross term 2w₁w₂ρσ₁σ₂, and the lower σ_p.
At a county fair you own an ice-cream truck (sells on hot days) and a hot-soup truck (sells on cold days). Compared with owning only the ice-cream truck, owning both
Diversification lowers variation; the shared ‘rainy-day’ risk that hits both trucks is the systematic part that stays.
Optional reading: Titman ch. 8, §8.1 · Open this idea as its own page
2Systematic risk and betaWhich part of a stock's risk will nobody pay me for, and how do I measure the part that counts?
Some risk disappears when you mix stocks. The rest stays, and beta measures it.
Learning goals
After this idea, you can:
- Classify a news event as systematic risk (it hits every company) or unsystematic risk (it hits one company), and explain why only the first kind earns a higher expected return.
- Read the diversification curve: risk falls fast up to about 20 to 30 stocks, then flattens at a floor.
- Estimate beta with Excel’s
SLOPEfunction, read it as a multiplier on market moves, and compute the beta of a portfolio.
The idea
Think of a fishing town. Every boat depends on the weather. A season of storms hurts all the boats at once. Each boat also has its own engine, and an engine can break. The town can run an insurance pool for engines: when one boat’s engine breaks, the other boats are having a normal day and can pay for the repair. No pool can insure against the weather, because a storm hits every boat on the same day.
A stock has the same two kinds of risk.
Two kinds of risk. Systematic risk is risk that hits almost every company at once: a recession, a jump in interest rates, inflation, a war. It is also called market risk. It is the weather. Unsystematic risk is risk that hits one company: a product recall, a strike, a lawsuit, a new chief executive. It is also called firm-specific risk. It is the engine.
Total risk = systematic risk + unsystematic risk
Diversification removes only one kind. In a portfolio of many stocks, one company’s bad news is offset by another company’s normal day, so unsystematic risk fades away. Systematic risk stays, because it hits all the stocks together. As you add stocks, the risk of the portfolio falls quickly at first. After about 20 to 30 stocks the curve is almost flat. The flat part is the systematic floor.
Why this matters for return. Investors can remove unsystematic risk almost for free, just by holding many stocks. So the market does not pay anyone to carry it. A higher expected return is the reward for systematic risk only. That is why we need a measure of systematic risk.
Beta measures systematic risk. Beta (β) says how much a stock tends to move when the whole market moves 1%. The market itself has a beta of 1.
| Beta | When the market moves 1%, the stock tends to move |
|---|---|
| 0.5 | 0.5%: half as much |
| 1.0 | 1%: the same as the market |
| 2.0 | 2%: twice as much, up and down |
Beta is a multiplier. With a beta of 1.5, a market fall of 4% suggests a fall of about 1.5 × 4% = 6% for the stock.
Beta is a slope. Put the market’s monthly returns on the horizontal axis and the stock’s monthly returns on the vertical axis. Each month is one dot. Draw the straight line that fits the dots best. The slope of that line is beta.
Beta of a stock: β = slope of the stock’s returns on the market’s returns = covariance(stock, market) ÷ variance(market)
Beta of a portfolio: βp = w₁ × β₁ + w₂ × β₂ + … (a weighted average)
In Excel. Beta is =SLOPE(stock returns, market returns). The stock comes first and the market comes second. If you swap them, you get a different and wrong number. Sixty monthly returns (five years) is a common choice. A fund that follows a broad stock index can stand in for “the market”. For a portfolio, =SUMPRODUCT(weights, betas) gives the portfolio beta.
Try it
The chart starts with twelve months of a fictional stock. Read the slope, then paste your own two columns: the stock first, the market second.
What to notice:
- The orange line is steeper than the dashed grey line (a beta of 1). This stock moves more than the market.
- The dots sit close to the line, so the correlation is high. Most of this stock’s swings come from the market.
- Beta and correlation are different things. Correlation says how tightly the dots follow the line. Beta says how steep the line is.
Now add stocks to a portfolio, one at a time.
- From 1 stock to 10 stocks the risk falls a lot. From 30 to 50 it hardly moves.
- The shaded band is systematic risk. No number of stocks goes below it.
Worked example
Problem. Northwind Robotics is a fictional company. Here are twelve monthly returns for the market and for Northwind. What is Northwind’s beta, and what does it mean?
| Month | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Market | 2.0% | −1.5% | 3.0% | 0.5% | −2.5% | 1.0% |
| Northwind | 3.10% | −2.75% | 4.10% | 1.65% | −3.75% | 1.30% |
| Month | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|
| Market | 4.0% | −3.0% | 1.5% | 2.5% | −1.0% | 0.0% |
| Northwind | 4.20% | −3.30% | 2.25% | 2.85% | −0.40% | −0.20% |
Step 1. The slope. Put the Northwind returns in one column and the market returns in the next. =SLOPE(Northwind, market) gives 1.24. By hand it is the same number: the covariance of the two columns is 6.075 and the variance of the market column is 4.884, and 6.075 ÷ 4.884 = 1.24.
Step 2. How tight is the fit? =CORREL(Northwind, market) gives 0.97. The dots sit very close to the line.
Step 3. Read it. When the market moves 1%, Northwind tends to move about 1.24%. That is more than the market, so its beta is above 1. In a month when the market falls 3%, expect Northwind to fall about 1.24 × 3% = 3.7%.
Step 4. A portfolio beta. You hold 50% in Northwind (use a beta of 1.3), 30% in Harbor Coffee Co. (beta 0.7) and 20% in an index fund (beta 1.0). βp = 0.5 × 1.3 + 0.3 × 0.7 + 0.2 × 1.0 = 0.65 + 0.21 + 0.20 = 1.06.
Step 5. How many stocks? Suppose every stock has a standard deviation of 40% and the average correlation between stocks is 0.3. One stock: 40%. Ten stocks: 24.3%. Thirty stocks: 22.7%. The floor is √0.3 × 40% = 21.9%. Going from one stock to thirty removes 17.3 of the 18.1 points that can be removed.
Answer. Northwind’s beta is 1.24: it tends to move about 1.24% for each 1% move of the market. The three-stock portfolio has a beta of 1.06.
Check yourself · 5 questions
A hurricane destroys Harbor Coffee Co.’s only roasting plant; the stock market index is unchanged that day. Harbor’s price drop is
Company-only news is unsystematic risk; it diversifies away and is not rewarded with higher expected return.
You have 60 monthly returns for a stock in column K and 60 for a market index fund in column L. Which Excel formula gives the stock’s beta?
Beta = SLOPE(stock returns, market returns): company first, market second.
Northwind Robotics has a beta of 1.5. If the market falls 4%, you expect Northwind to
Expected move ≈ beta × market move. Beta 1.5 amplifies both gains and losses.
Your portfolio is 40% in a stock with beta 0.5 and 60% in a stock with beta 1.5. The portfolio beta is
β_p = Σ wᵢ βᵢ — same recipe as portfolio expected return.
You already hold 30 different stocks. Adding 30 more will most likely
The diversification curve flattens at the systematic floor; more stocks buy very little after 30.
Optional reading: Titman ch. 8, §8.2 · Open this idea as its own page
3The CAPM and the security market lineGiven a stock's beta, what return should shareholders demand, and is a stock with a higher expected return a bargain or just riskier?
Beta is the risk that stays. The CAPM turns it into the return a stock must earn.
Learning goals
After this idea, you can:
- Compute the required return on a stock with the CAPM: the risk-free rate plus beta times the market risk premium. This number is the cost of equity.
- Draw the security market line, plot a stock by its beta and its expected return, and say whether it looks underpriced or overpriced.
- Work the line backwards: find the market risk premium from one point on the line, and find how a change in beta changes the required return.
The idea
Two friends each want to borrow $5,000 from you. The first has a steady paycheck and always pays on time. The second changes jobs every few months. You would charge both of them at least what a savings account pays you, because that is what your money earns with no risk. You would charge the second friend more on top.
Investors price a stock the same way. They start from a safe rate. Then they add a premium for risk. The riskier the stock, the bigger the premium.
The safe rate. The risk-free rate (rf) is the return on an investment with no risk of default. For stocks, people usually use the yield on a 10-year U.S. Treasury bond.
The premium for the market. The market risk premium (MRP) is the extra return investors expect from the whole stock market above the risk-free rate. If the market is expected to return 9.6% and the risk-free rate is 4.1%, the premium is 9.6 − 4.1 = 5.5%. The examples on this page use a premium of 5.5%.
Scale the premium by beta. Beta measures how much market risk a stock carries. A stock with a beta of 1 carries the same market risk as the market, so it earns the full premium. A stock with a beta of 0.5 earns half of it. A stock with a beta of 2 earns twice the premium. Only the premium is scaled. The risk-free rate is not.
This rule is the capital asset pricing model (CAPM). The return it gives is the required return: the lowest return that makes shareholders willing to hold the stock. For the company, the same number is the cost of equity.
Required return = rf + β × (E(rm) − rf) = rf + β × MRP
Market risk premium: MRP = E(rm) − rf = (required return − rf) ÷ β
Change in required return = change in beta × MRP
rf = risk-free rate · β = beta · E(rm) = expected return on the market
Excel has no CAPM function. You type the line yourself, for example =0.041 + 0.85*0.055.
The CAPM as a picture. Put beta on the horizontal axis and return on the vertical axis. Mark the risk-free asset at beta 0. Mark the market at beta 1. The straight line through the two points is the security market line (SML). It starts at the risk-free rate and its slope is the market risk premium. The line shows the required return for every beta.
Above or below the line. The line says what a stock should return. A forecast says what somebody expects it to return. Compare the two.
| The stock plots | Expected return is | The stock looks |
|---|---|---|
| above the line | higher than required | underpriced (a bargain) |
| on the line | equal to required | fairly priced |
| below the line | lower than required | overpriced |
A bargain does not last. Investors buy a stock that sits above the line. Buying pushes the price up. A higher price today means a lower return from here on, so the stock moves back down toward the line. So a higher expected return alone does not make a stock a bargain. It is a bargain only if the return is higher than its beta requires.
Try it
The dot starts on a fictional coffee company with a beta of 0.85 and a forecast return of 9.5%. Move the beta slider, then change the forecast.
What to notice:
- Move beta up. The black dot climbs the line: more market risk, more required return.
- Lower the forecast to 8%. The colored dot drops below the line and the verdict flips to overpriced.
- Raise the risk-free rate. The whole line moves up, but its slope stays the same. Raise the premium and the line gets steeper.
Worked example
Problem. Harbor Coffee Co. has a beta of 0.85. The risk-free rate is 4.1% and the market risk premium is 5.5%. An analyst expects the stock to return 9.5%. What return do shareholders require, and is the stock a bargain? (All three companies in this example are fictional.)
Step 1. The premium for this stock. 0.85 × 5.5% = 4.675%.
Step 2. Add the risk-free rate. Required return = 4.1% + 4.675% = 8.78% (8.775% before rounding to two decimals). In Excel: =0.041 + 0.85*0.055.
Step 3. Compare with the forecast. Expected − required = 9.5 − 8.78 = +0.72 points, a little over 0.7 of a point. The forecast is higher than the required return, so the stock plots above the security market line. It looks underpriced.
Step 4. Read the line backwards. Northwind Robotics has a beta of 1.3 and a required return of 11.25%. What premium does that imply? MRP = (11.25 − 4.1) ÷ 1.3 = 7.15 ÷ 1.3 = 5.5%. It is the same premium, so both stocks sit on the same line.
Step 5. A change in beta. Ridgeline Outfitters opens forty stores with borrowed money, and its beta rises from 1.1 to 1.4. The change in its required return is 0.3 × 5.5 = 1.65 points. You do not need the risk-free rate for this step. It is the same before and after.
Answer. Shareholders require about 8.78% from Harbor Coffee. The forecast of 9.5% is about 0.7 points higher, so the stock plots above the line and looks underpriced.
Check yourself · 5 questions
Risk-free rate 3%, market risk premium 5%, beta 1.2. The CAPM required return is
r = r_f + β × MRP: scale only the premium by beta, then add the risk-free rate.
An analyst expects a stock to return 10%. The CAPM says investors require only 8% for its beta. The stock plots
Above the SML = expected > required = underpriced; below = overpriced.
A stock with beta 2.0 has a required return of 15%; the risk-free rate is 5%. The market risk premium implied by the CAPM is
MRP = (required − r_f) ÷ β: the SML’s slope read off one point.
A company sells its riskiest division and its beta falls from 1.4 to 1.0. The market risk premium is 6%. Its CAPM required return
Change in required return = Δβ × MRP; the risk-free rate drops out.
For the company you follow, the CAPM gives a required return of 9.2%. In the cost-of-capital (WACC) chapter this number is used as the company’s
CAPM required return = cost of equity: the shareholders’ side of the WACC.
Optional reading: Titman ch. 8, §8.3 · Open this idea as its own page
· · Your progress is saved in this browser only.
The ideas are complete without the book.
In class
The lecture moves from one stock to a portfolio. It covers three ideas: diversification, beta, and the return that shareholders demand (the CAPM). In the lab you build Dossier Page 6 — Beta & Required Return: your company’s beta from its own monthly returns, and its cost of equity.
Try it
These are the two Try-it boxes from the slides. Redo them at home. Type your answer first, then click.
Your company this week
What return should your shareholders demand? Page 6 turns the two return columns of Page 5 into one beta, then into one required return.
Open this week’s taskClose this week’s tasktwo tools and the steps
The first tool does the same arithmetic as Dossier Page 6. It starts with a fictional company.
The second tool puts your company on the security market line.
- Look up two things: the 10-year Treasury yield today, from FRED (series DGS10), which is your risk-free rate, and your company’s beta on Yahoo Finance, to compare with the beta you compute yourself.
- In the first tool, copy your two return columns from Page 5 in Excel and paste them into the box, company first. Then type the Treasury yield.
- Press “Save to My Numbers”. It keeps your beta, your risk-free rate and your cost of equity in My Numbers, in this browser only.
- After you save, click “Use my numbers” in the second tool. Type a forecast return if you want to see whether the stock sits above or below the line.
- Write the CAPM number down. It is your cost of equity, and Dossier Page 12 (cost of capital) uses it again in Week 13.
- Write the verdict in one sentence. A sample is in the box below.
The site never downloads prices or returns. You paste them yourself.
What Dossier Page 6 computes, in four steps
Your Page 5 already holds 60 months of returns for your company, next to 60 months for SPY (a fund that follows the S&P 500). The page then does four things:
=SLOPE(company returns, SPY returns)gives your beta: how much your stock tends to move when the market moves 1%.=CORREL(company returns, SPY returns)shows how closely your stock follows the market.- The CAPM turns the beta into a required return: the Treasury yield plus beta times 5.5%. The course uses a market risk premium of 5.5%.
- A 50/50 mix of your stock and SPY gets its own beta and required return. SPY has a beta of 1.
How to read your result, with a sample verdict
What to expect: a grocer or a utility usually lands below 1. A chipmaker, a carmaker or a biotech company usually lands above 1.
Then compare your CAPM number with two things:
- Yahoo’s beta. A difference of 0.1 to 0.3 from your own beta is normal. A difference above 0.5 usually means the two columns on Page 5 are not lined up month by month.
- The return your stock actually earned on Page 5. If it is above the CAPM number, the stock beat its required return over those five years. If it is below, it did not.
The verdict is one sentence. For example: “With a beta of 1.24 my shareholders should demand 10.9% a year; the stock earned 12.3% a year over five years, so it beat its required return.”
If the beta here and the beta in your workbook differ, the two columns on Page 5 are not lined up.
In Moodle
- HW08 — CH8 Portfolio Risk & CAPM
- Page 6 — Beta & Required Return (Dossier page, built in the lab, uploaded as a PDF)
- Midterm CFO Memo (the template is in Moodle)
- Mid-semester survey (anonymous, two minutes)
- Kahoot on chapter 8 (played in class)
This week’s formulas
Portfolio expected return: E(rp) = w₁ × E(r₁) + w₂ × E(r₂) + … → =SUMPRODUCT(weights, returns)
Risk of two stocks: σp = √( w₁²σ₁² + w₂²σ₂² + 2 × w₁ × w₂ × ρ × σ₁ × σ₂ ) (you type it)
Correlation: =CORREL(returns A, returns B) · Risk of one stock: =STDEV.S(returns)
Beta: =SLOPE(stock returns, market returns) · Portfolio beta: =SUMPRODUCT(weights, betas)
CAPM: required return = rf + β × MRP (you type it) · MRP = (required return − rf) ÷ β
Change in required return = change in beta × MRP
Common mistakes
- Swapping the two ranges in
SLOPE. The stock comes first, the market second. - Using
CORRELfor beta. Correlation says how tightly two returns move together, not how much. - Averaging the two standard deviations to get portfolio risk. That is right only when the correlation is +1.
- Multiplying the risk-free rate by beta. Only the premium is multiplied by beta.
- Typing 5.5 for the premium next to 0.041 for the risk-free rate. Use percent for both or decimals for both.
- Saying that a stock with a higher expected return is a bargain. It is a bargain only if it plots above the line.
Due dates and points are in Moodle.
Next week. You now have the return that shareholders require. Next week you price the other source of a company’s money: bonds. Week 8 — Bonds: features, ratings and prices →