Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 36 ยท Investing Basics

Diversification and Portfolios

Learn why not to put all your money in one place, how asset allocation mixes stocks and bonds, and how rebalancing keeps a portfolio on track.

An old saying warns: do not put all your eggs in one basket. In investing this idea is called diversification. If you hold many different investments, a disaster in one of them hurts you much less. A collection of investments owned by one person is a portfolio.

This lesson explains why diversification works, how to describe a portfolio with an asset allocation, and how rebalancing keeps your risk where you want it.

Why diversification works

Imagine you invest everything in one company and it fails. You lose all. If you invest in 100 companies and one fails, you lose about 1% of your money. Different investments do not all fall at the same time or by the same amount, so the ups and downs partly cancel each other out. The portfolio is steadier than most of its parts.

Diversification can happen in several ways:

  • Across companies: many companies instead of one.
  • Across industries: technology, health, food, energy, banking.
  • Across countries: so one economy's trouble does not decide everything.
  • Across asset types: stocks, bonds, cash, property.

Diversification does not remove risk. In a deep market crash, almost all stocks fall together. It lowers the risk that comes from any single investment, not the risk of the whole market.

Asset allocation

Asset allocation is how you split your money between asset types. For example, "70% stocks, 30% bonds". It is the most important investing decision for most people, because it sets how bumpy the ride will be.

Common factors in choosing it:

  • Time horizon: longer horizon allows more stocks.
  • Ability to take risk: stable income and no urgent needs allow more risk.
  • Willingness to take risk: if a 30% fall would make you sell in panic, a lower-risk mix suits you better.
flowchart LR
    A["Your goals<br/>and time horizon"] --> B["Choose allocation<br/>(for example 70/30)"]
    B --> C["Buy diversified funds"]
    C --> D["Prices move,<br/>mix drifts"]
    D --> E["Rebalance back<br/>to target"]
    E --> D

Choose a mix, buy diversified funds, and rebalance when the mix drifts.

Measuring a portfolio's return

The return of a portfolio is the weighted average of its parts: multiply each asset's return by its share of the portfolio and add them up. The program below does this for a portfolio with invented one-year returns.

Python Portfolio return as a weighted average

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers are invented. The pattern is the lesson: the more stocks, the bigger the gain in a good year and the bigger the loss in a bad year.

Rebalancing

Suppose you start with 70% stocks and 30% bonds. After a strong year for stocks, they might grow to 76% of the portfolio. You now hold more risk than you planned. Rebalancing means selling some of what grew and buying what lagged, to get back to the target. Many people do it once a year or when an allocation drifts by more than five percentage points. Some funds ("target-date" or "balanced" funds) do it for you.

Rebalancing can have costs (fees, and in some countries taxes), so check the rules where you live. One cheap way to rebalance is to direct new contributions to the part that is below target.

Python A rebalancing calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The program is a calculator and does not place orders. It shows that rebalancing means selling a little of the winner and buying the laggard.

A practical start

For most beginners, a simple, low-cost path is a small number of broad, diversified funds (for example one stock index fund and one bond fund), bought regularly, with an allocation you can stick to in bad times. Avoid chasing last year's winner and avoid putting a large share of your money in one company, even the one you work for.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Diversification means

    Spreading across many investments reduces the damage from any single failure.
  2. 2. Asset allocation is

    It is the percentage mix between asset types.
  3. 3. Can diversification remove all risk?

    It reduces single-investment risk, but market-wide risk remains.
  4. 4. A portfolio is 50% in an asset that returns 10% and 50% in one that returns 2%. Its return is

    0.5 ร— 10% + 0.5 ร— 2% = 6%.

Summary

  • Diversification spreads risk across companies, sectors, countries and asset types.
  • Asset allocation, the mix of stocks, bonds and cash, mostly sets your risk.
  • A portfolio's return is the weighted average of its parts.
  • Rebalancing returns the mix to your target after prices move.
  • Broad, low-cost funds are a simple way to diversify.

Next: Compound Growth, Fees and Retirement