Modern asset pricing rests on one idea: every asset is a bundle of payoffs in different possible futures, and its price is the sum of the prices of those payoffs. A single set of numbers, the state prices, going back to Arrow and Debreu, prices stocks, bonds and options alike.
We will price with Arrow securities and finish with the risk-free rate.
Step 1: Arrow securities
Suppose tomorrow brings one of S states of the world. An Arrow security for state s pays $1 if s occurs and nothing otherwise; its price qs is the state price. Every asset is a bundle of Arrow securities, one for each state, so
Example: with state prices 0.3, 0.5 and 0.15 for a boom, a normal year and a recession, an asset paying (10, 8, 4) costs 3 + 4 + 0.6 = 7.6. State prices combine how likely a state is with how much a dollar is worth in it: a state's price is relatively high when it is likely and when a dollar is especially valuable there, as in a recession.
Step 2: The risk-free rate
A risk-free bond pays 1 in every state, so it costs the sum of the state prices:
Example: the state prices above sum to 0.95, so a sure dollar costs 95 cents, a bond paying 100 in every state costs 95, and the risk-free rate is 1/0.95 − 1 ≈ 5.3%. If the state prices summed to 0.96, the rate would be about 4%.