Sub topic 1
Reading the market through an index
When people say "the market fell 3% today," they usually mean a stock market index. This chapter explains what that number measures and how it is built. It also covers where it can mislead you. Later chapters define bull markets, corrections, and bear markets as percentage moves, and those moves are almost always moves in an index.
Prerequisites
This chapter assumes you have these basics:
- You know what a stock is and what a share price is.
- You are comfortable with percentages and weighted averages.
- You can read short Python programs. The code examples are optional but run as written.
Why we need an index
The U.S. has thousands of listed companies, and their prices move in different directions every day. No single stock describes "the market." An index is a rule-based basket of stocks, summarized as one number that is recalculated throughout the trading day. If the basket is broad and well built, its movement approximates the movement of the market it represents.
The level of an index, such as 5,000 or 40,000, has no meaning by itself. It is a scaled number, set to some starting value on a base date. Only changes carry information, so analysts convert levels into percentage returns:
return = new level / old level − 1
An index is a measuring instrument, and you cannot buy it directly. You can buy funds that try to track it, but the index is only a calculation.
How an index is built
Three design choices determine what an index tells you.
- Which stocks are included. This is the universe and the selection rule, for example "the 500 large U.S. companies chosen by a committee" or "all listed stocks in a country."
- How each stock is weighted. This decides how much each stock's move affects the total.
- What return is reported. Price return counts only price changes. Total return also counts dividends.
Weighting schemes
The three common weighting schemes give different answers from the same stocks.
| Scheme | Weight of a stock | Typical example | Main effect |
|---|---|---|---|
| Price-weighted | Its share price | Dow Jones Industrial Average | A high-priced stock moves the index more, regardless of company size |
| Market-cap-weighted | Share price × shares outstanding | S&P 500, Nasdaq Composite, MSCI World | Large companies dominate |
| Equal-weighted | The same for every stock | S&P 500 Equal Weight | Small and large companies count equally |
Market capitalization (market cap) is the total value of a company's shares: share price multiplied by the number of shares outstanding. Most widely quoted indexes are cap-weighted because that matches how the whole market behaves. If you owned every stock in proportion to its value, your portfolio would have cap weights.
The following program builds all three indexes from three made-up stocks over two days.
stocks = {
# name: (shares outstanding, price on day 1, price on day 2)
"A": (10, 100, 110),
"B": (100, 50, 50),
"C": (500, 20, 16),
}
def pct(new, old):
return new / old - 1
# Price-weighted: average of the prices
price_old = sum(p1 for _, p1, _ in stocks.values()) / len(stocks)
price_new = sum(p2 for _, _, p2 in stocks.values()) / len(stocks)
# Cap-weighted: total market value
cap_old = sum(n * p1 for n, p1, _ in stocks.values())
cap_new = sum(n * p2 for n, _, p2 in stocks.values())
# Equal-weighted: average of the individual returns
equal = sum(pct(p2, p1) for _, p1, p2 in stocks.values()) / len(stocks)
print(f"price-weighted: {pct(price_new, price_old):.1%}")
print(f"cap-weighted: {pct(cap_new, cap_old):.1%}")
print(f"equal-weighted: {equal:.1%}")The output is:
price-weighted: 3.5%
cap-weighted: -11.9%
equal-weighted: -3.3%The same three stocks produce a gain, a large loss, and a small loss. Stock C is the largest company by market value (10,000 of a total of 16,000), so its 20% fall dominates the cap-weighted result. Stock A has the highest share price, so its 10% gain dominates the price-weighted result.
Real indexes have the same sensitivity, on a smaller scale. When a few giant companies make up a large share of an index, the index can rise while most individual stocks fall.
The divisor
An index provider does not simply add up prices or market values. It divides the total by a number called the divisor. The divisor is adjusted whenever something happens that would otherwise change the level without changing investor wealth: a stock split, a company being added or removed, or a spin-off. This keeps the index level continuous. Without a divisor, a 2-for-1 stock split in a price-weighted index would look like a sudden drop.
Common indexes and what they cover
- S&P 500: about 500 large U.S. companies, cap-weighted. The most common stand-in for "the U.S. stock market."
- Dow Jones Industrial Average: 30 large U.S. companies, price-weighted. It is old and widely quoted, but narrow, and its weighting is unrelated to company size.
- Nasdaq Composite: most stocks listed on the Nasdaq exchange, cap-weighted and heavily tilted toward technology.
- Russell 2000: about 2,000 smaller U.S. companies. It is used to judge the small-company segment.
- MSCI World and similar: large and mid-sized companies across many developed countries.
These indexes often disagree over short periods. A 12% fall in the Nasdaq Composite does not mean the S&P 500 fell 12%. When this tutorial says "the market," it means a broad, cap-weighted index of the market you care about, unless stated otherwise.
Price return and total return
Companies pay part of their profits to shareholders as dividends. A price index ignores them. A total return index assumes dividends are reinvested. The headline number you see on a news ticker is usually the price return.
The difference is small in one day and large over decades:
years = 10
price_growth = 1.07 ** years # 7% a year from price changes alone
total_growth = 1.09 ** years # 9% a year if dividends are reinvested
print(f"price only: {price_growth:.2f}x")
print(f"with dividends: {total_growth:.2f}x")The program prints 1.97x and 2.37x. A 2-point annual gap from dividends leaves the investor with about 20% more after ten years.
For classifying market phases, the price index is the usual convention. Be aware that a price index understates what a dividend-reinvesting investor experienced. When you compare recoveries across eras, a total return series is the better choice. Dividends were a much larger share of returns in earlier decades.
Limits of an index as a gauge
An index is a good summary, and it has several known weaknesses.
- Concentration. In a cap-weighted index, a handful of the largest stocks can account for a large fraction of the movement. The index then reflects a few companies more than the "typical" one.
- Reconstitution and survivorship. Indexes drop companies that shrink or fail and add ones that grow. The reported history looks better than the experience of someone who held a fixed list of companies. Strong performers get added, and weak ones are removed.
- Coverage. A U.S. large-company index says little about small companies, bonds, real estate, or foreign markets.
- Timing. Index levels are computed from the last trade of each stock. Illiquid stocks may have stale prices, and the daily close is one moment among many.
- Your own portfolio. A diversified investor's holdings may behave differently from any headline index. A decline in the S&P 500 is not a decline in your account.
Choosing an index for measuring bull and bear markets
For the rest of this tutorial, the choice of index matters because a threshold rule is applied to one specific series. Consider these questions when you pick one.
- Does it cover the market in question (U.S. large companies, global, small companies)?
- Is it cap-weighted, so it reflects the market as a whole rather than an arbitrary weighting?
- Is it a price or total return series, and is that consistent across everything you compare?
- Does it have a long, consistently defined history?
Using different indexes can change a conclusion. One index may have fallen 19% from its peak while another has fallen 21%. The first is "not a bear market" and the second is, under the usual 20% rule. This is a measurement difference, not a contradiction. Chapter 7 returns to this point.
Exercise
A price-weighted index holds two stocks priced at 200 and 20, so the index is the average price, 110. The 200 stock falls 5% and the 20 stock rises 25%. Does the index rise or fall, and what does an equal-weighted version of the same two stocks do?
Show answer
The 200 stock falls to 190 and the 20 stock rises to 25. The average price becomes (190 + 25) / 2 = 107.5, a change of 107.5 / 110 − 1 ≈ −2.3%, so the price-weighted index falls even though the smaller-priced stock gained more in percentage terms. The equal-weighted version averages the returns: (−5% + 25%) / 2 = +10%, so it rises. The high-priced stock dominates the price-weighted index, while the equal-weighted index treats each stock the same.
Exercise
Why does an index provider use a divisor, and what would happen to a price-weighted index if a stock did a 2-for-1 split and the divisor were not adjusted?
Show answer
The divisor keeps the index level continuous when events change prices or constituents without changing investor wealth. In a 2-for-1 split, the stock's price halves while the number of shares doubles. Without a divisor adjustment, the stock's contribution to the price-weighted total would drop by half, and the index would fall sharply even though nothing of value was lost.
Exercise
An index reports a price return of 6% for a year, and its constituents paid dividends equal to 2% of the index value. About what total return would a dividend-reinvesting investor have earned, and why is a price index not the best choice for comparing long-run results?
Show answer
Roughly 8% (a little more than 6% + 2% once reinvestment compounds). A price index leaves out dividends, so over many years it understates the return an investor actually earned. The gap compounds, which is why total return series are better for long-run comparisons.