Sub topic 1
What Volatility Is and Why Crypto Has So Much of It
Prerequisites
This chapter assumes you know what a blockchain is, how to buy crypto on an exchange, how percentages work, and how to read simple Python.
What volatility is
Volatility is how much an asset's price moves over time. An index fund that typically moves 1% a day is calm. An asset that typically moves 5% a day is volatile. Crypto is volatile for several reasons: it trades around the clock, the market is young and relatively small, and prices respond quickly to sentiment.
Measuring volatility
Start with returns, the change in price from one period to the next. Take the log return of each day, then compute the sample standard deviation of those returns. That gives daily volatility. Crypto trades every day, so multiply by the square root of 365 to annualize.
import math
prices = [100, 104, 98, 110, 105, 120, 90]
returns = [math.log(b / a) for a, b in zip(prices, prices[1:])]
mean = sum(returns) / len(returns)
variance = sum((r - mean) ** 2 for r in returns) / (len(returns) - 1)
daily_vol = math.sqrt(variance)
annual_vol = daily_vol * math.sqrt(365)
print(f"Daily volatility: {daily_vol:.2%}")
print(f"Annualized volatility: {annual_vol:.2%}")Drawdowns and recovery
A drawdown is the fall from a previous peak to a later low. Maximum drawdown is the largest such fall in a period. Losses are asymmetric. A 50% loss needs a 100% gain to break even.
prices = [100, 104, 98, 110, 105, 120, 90]
peak = prices[0]
max_drawdown = 0.0
for price in prices:
peak = max(peak, price)
max_drawdown = min(max_drawdown, price / peak - 1)
print(f"Maximum drawdown: {max_drawdown:.2%}")What moves crypto prices
Prices respond to sentiment, news, and market structure. Sentiment shifts quickly on social media. Regulatory announcements and exchange failures create sudden news shocks. Thin order books mean a modest sale can push the price down sharply.
Market risk
Market risk is the chance that an asset's price falls, regardless of how well the project performs. Holding crypto exposes you to this risk directly. Position size and time horizon determine how much a drop will hurt you.
> Seven prices give only six returns. Real volatility estimates need months of daily data.
Seven prices give only six returns. Real volatility estimates need months of daily data.Exercise
If an asset falls 60% from its peak, what gain is needed to return to that peak?
Show answer
150%. Use 1 / (1 - 0.60) - 1 = 1.5.