Sub topic 1
Start with a Target Allocation
Prerequisites
This chapter assumes you already know the following:
- Basic investing vocabulary: stocks, bonds, funds, and asset classes.
- A portfolio weight is an asset class's market value divided by the total portfolio value.
- Percentage arithmetic, such as turning 60% of 110,000 into a dollar amount.
- Optional: basic Python. The code examples use dictionaries, loops, and f-strings.
Later chapters cover drift, calendar rules, threshold rules, and trade calculations. This chapter covers the one input all of them need: the target allocation.
What a target allocation is
A target allocation is the set of weights you want your portfolio to hold across asset classes. A simple example is 60% stocks and 40% bonds. The weights must add up to 100%, and each one is a decision you make on purpose.
Rebalancing is the act of moving the portfolio back toward that target. Without a target there is nothing to measure drift against, and no rule can tell you whether to trade. Calendar rules and threshold rules differ in when they trigger a trade, but both compare today's weights with the target.
A target allocation has three parts:
- The asset classes. These are the broad groups you track, such as domestic stocks, international stocks, bonds, and cash.
- The target weight for each class. This is the share of total value you want in that class.
- The investments that fill each class. These are the specific funds or securities you hold for it.
Rebalancing works at the asset-class level. If you choose to track more classes, you get more weights to monitor and more trades to make.
Where a target comes from
The target should come from your situation, not from recent market performance. Four inputs usually drive it:
- Time horizon. Money needed in two years can't ride out a long stock decline. Money needed in thirty years can.
- Risk tolerance. This is how much of a loss you can accept without abandoning the plan. Think of the largest portfolio drop you would live with, not the average outcome.
- Risk capacity. This is how much loss your finances can absorb. A stable income and a large emergency fund raise it. Near-term spending needs lower it.
- Goals. A retirement account, a house down payment, and a college fund may each deserve a different target.
Risk tolerance and risk capacity can disagree. An investor may feel comfortable with a high stock share but depend on the money soon. In that case, the lower of the two usually wins.
The table below shows common starting points. They are illustrations of the trade-off, not recommendations.
| Target (stocks / bonds) | Typical investor profile | What to expect |
|---|---|---|
| 80 / 20 | Long horizon, high tolerance for losses | Larger swings, higher growth potential |
| 60 / 40 | Moderate horizon, moderate tolerance | Balanced swings and growth |
| 40 / 60 | Shorter horizon or low tolerance | Smaller swings, lower growth potential |
Each row trades growth potential for stability. Rebalancing doesn't change that trade-off. It only keeps you at the point on the curve you picked.
Choosing asset classes and funds
Pick as few asset classes as you can justify. Each extra class adds a weight to check and possibly a trade. A two-fund portfolio, such as a total stock market fund and a total bond market fund, has two weights and one trade at most (the buy and the sell are linked). A six-class portfolio has six weights and more ways to drift.
Some guidelines for choosing classes:
- Use classes that behave differently from each other. Two classes that move together add complexity without adding control.
- Use classes you can hold through a low-cost fund. Rebalancing costs depend on what you trade (see the chapter on transaction costs and taxes).
- Keep the definition stable. If a class means "large US stocks" this year and "all global stocks" next year, your measured drift is meaningless.
Targets can also be nested. You might set 60% stocks, then split that 60% into 40% domestic and 20% international. Flatten nested targets into one list of final weights before you measure anything, so every class has a single weight that adds up to 100%.
def flatten_targets(top, splits):
"""Turn top-level weights plus optional splits into final weights.
top: weights for broad classes, e.g. {"stocks": 0.60, "bonds": 0.40}
splits: how a broad class divides, e.g.
{"stocks": {"us_stocks": 2/3, "intl_stocks": 1/3}}
"""
final = {}
for broad, weight in top.items():
if broad in splits:
for sub, share in splits[broad].items():
final[sub] = weight * share
else:
final[broad] = weight
return final
top = {"stocks": 0.60, "bonds": 0.40}
splits = {"stocks": {"us_stocks": 2 / 3, "intl_stocks": 1 / 3}}
final = flatten_targets(top, splits)
for name, w in final.items():
print(f"{name}: {w:.1%}")
print(f"sum: {sum(final.values()):.1%}")This prints 40.0% for us_stocks, 20.0% for intl_stocks, 40.0% for bonds, and a sum of 100.0%.
Writing the target down as data
A target you only keep in your head will drift as much as the portfolio does. Write it down in a form that code and people can both check. The simplest form is a mapping from asset class to weight.
Before you use a target anywhere, validate it. Three checks catch most mistakes:
- Every weight is zero or more.
- The weights sum to 1.0 (100%), within a small tolerance for floating-point error.
- The set of classes matches the classes you actually hold.
def validate_targets(targets, held_classes=None, tol=1e-9):
"""Raise ValueError if the target allocation is not usable."""
if not targets:
raise ValueError("targets is empty")
for name, weight in targets.items():
if weight < 0:
raise ValueError(f"{name} has a negative weight: {weight}")
total = sum(targets.values())
if abs(total - 1.0) > tol:
raise ValueError(f"weights sum to {total:.4f}, expected 1.0")
if held_classes is not None:
missing = set(held_classes) - set(targets)
if missing:
raise ValueError(f"no target for held classes: {sorted(missing)}")
return True
targets = {"stocks": 0.60, "bonds": 0.40}
print(validate_targets(targets, held_classes=["stocks", "bonds"]))
target_dollars = {a: w * 110000.0 for a, w in targets.items()}
print(target_dollars)The tolerance matters. Weights such as 1/3 + 1/3 + 1/3 don't sum to exactly 1.0 in floating point, so an exact equality test would reject a valid target.
The last two lines show what a target means in money. At a total value of 110,000, a 60/40 target calls for 66,000 in stocks and 44,000 in bonds. The next chapter compares those dollar targets with what you actually hold.
How the target feeds the rest of the process
Everything in this tutorial happens after the target is set. The diagram shows where it sits.
The target sits outside the loop. The loop (measure, compare, decide, trade) repeats for years, but the target changes only when your goals, horizon, or circumstances change. If you rewrite the target each time markets move, rebalancing turns into market timing.
Common errors
Setting the target from recent returns. After a strong year for stocks, a higher stock share looks attractive. A target chosen this way takes more risk exactly when valuations are high, and it undermines the purpose of rebalancing.
Weights that don't sum to 100%. A target like 60/30/15 sums to 105%. Every calculation downstream is then off, and the error is hard to spot because each individual weight looks reasonable.
Mixing definitions. Cash held in a brokerage sweep, a bond fund, and a money market fund can all be called "cash" or "bonds." Decide which holdings belong to which class, and apply the rule the same way each time.
Ignoring accounts held elsewhere. If you rebalance a retirement account to 60/40 but hold a large stock position in a taxable account, your real allocation is higher in stocks. Decide whether the target applies per account or across all accounts together. Many investors treat the whole household portfolio as one, and then use tax-advantaged accounts for most of the trades.
Too many classes. Splitting a portfolio into eight classes with 5% targets each creates many small trades that cost more than the risk control is worth.
Edge cases
- Targets that change over time. A target-date fund lowers its stock share as the date approaches. This is a glide path. For a manual portfolio, it is simplest to change the target at fixed points, such as once a year, and treat each change as a separate decision from rebalancing.
- Zero-weight classes. A target of 0% in a class is valid. It means you sell any holding of that class.
- Very small weights. A 2% target can drift by a large fraction of itself with a small dollar move. Later chapters show why this matters for relative bands.
- Cash needs. Money you will spend soon belongs in its own bucket or in the cash class. Don't count it as part of the long-term stock and bond target.
Exercises
Exercise
Your target is 70% stocks, 25% bonds, and 5% cash. Your portfolio is worth 50,000. How many dollars should each class hold at the target?
Show answer
Stocks: 0.70 × 50,000 = 35,000. Bonds: 0.25 × 50,000 = 12,500. Cash: 0.05 × 50,000 = 2,500. The three amounts add up to 50,000.
Exercise
A colleague proposes the target stocks 55%, bonds 35%, cash 15%. What is wrong with it, and what is one way to fix it?
Show answer
The weights sum to 105%, so the target isn't valid. One fix is to lower cash to 10%, giving 55/35/10. Another is to lower stocks to 50%, giving 50/35/15. Which one is right depends on the investor's risk tolerance and cash needs.
Exercise
You choose 50% stocks and 50% bonds, then split stocks into 30% domestic and 20% international. After flattening, what are the final weights?
Show answer
Domestic stocks 30%, international stocks 20%, bonds 50%. The sum is 100%. The splits must be written as final weights of the whole portfolio, not as shares within stocks, or the sum won't come to 100%.