liveBook · Manning

Option pricing

As explained in Build a Robo-Advisor with Python (From Scratch)

Option pricing is the process of estimating the fair value of a financial option from its contractual terms and the behavior of relevant underlying variables.

Option pricing estimates the value of contingent financial payoffs. In tax-loss harvesting, it quantifies the opportunity cost of being unable to switch back to a primary ETF for 30 days after selling it at a loss. section 14.3.2

The missed additional tax benefit has a put-option-shaped payoff: it is zero when the primary ETF price is above the harvest price and rises as that price falls below it. Pricing that potential benefit makes an immediate harvest comparable with its future constraint. section 14.3.2

VTI and ITOT replacement

After selling VTI at a loss and buying ITOT, a further decline may create another harvestable loss. Selling ITOT would require buying VTI, but doing so within 30 days would trigger a wash sale. A 30-day American put, with the ETF price as both spot and strike, estimates the value of this forgone flexibility. section 14.3.2

Figure 14.5 Potential additional tax benefit as a function of VTI’s price
figure

The payoff plot shows why the additional benefit is zero above the harvest price and increases below it, matching a put option’s shape. section 14.3.2

How Build a Robo-Advisor with Python (From Scratch) covers it

How deep it goes
Models missed harvesting flexibility as an American put and prices it with a binomial-tree implementation.
Examples
Uses VTI and ITOT after a loss harvest, then evaluates a further price decline during the 30-day restriction.
What you can do after
Apply it via the optionprice library to estimate a harvesting decision’s opportunity cost against its tax benefit.
How it connects
Connects tax-loss harvesting, wash sales, opportunity cost, put options, volatility, and dividend yield.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Robo-Advisor with Python (From Scratch). The section links point to the parts of the book it draws on.