BTCUSD:
|Chg%:
|SATS/USD:
|Block Height:
|Hashrate:
|Mining Difficulty:
|Next Halving:
|Circulating Supply:

Power Law Fit Lab

Beta

Re-fit the power law your way: choose which daily closes count, where day 1 sits, how fast old closes fade, or set the line by hand. The standard fit (every close since 2010, days counted from the genesis block) stays on the chart as a dashed line, and the table under the chart compares the two.

Closes in the fit

Closes before the start are left out (shaded on the chart) but stay on it.

Day 1 (time origin)

Days are counted from the genesis block, Jan 3, 2009, as in the standard fit.

Weighting

Every close in the window counts the same, as in the standard fit.

Trend line

Least squares picks the exponent and coefficient (see “How the line gets its numbers”).

Loading prices…

Shading: closes left out of the fit (solid) or down-weighted by the decay factor (fading toward today). The dotted line marks the first close in the fit. Bands, percentiles and quantile lines are all re-fitted on the same closes and weights; the dashed grey line is the standard fit.

What the settings do

How the line gets its numbers

The model is a straight line on log-log axes: ln(price) = ln(a) + b · ln(days since day 1). Ordinary least squares picks the a and b that make the sum of squared misses in ln(price) as small as possible, with every daily close counting once. Nothing is set by hand: b is the covariance of ln(day) and ln(price) divided by the variance of ln(day), and ln(a) puts the line through the average point. The “range of exponents” comes from changing which closes go in or where day 1 sits, as the table below shows.

Why the early years carry so much weight

Least squares lets the points farthest from the average ln(day) steer the slope the most. On log time the early years are stretched out: mid-2010 to mid-2012 spans about half as much ln(day) as the fourteen years since, so a couple of wild years pull on b like a decade of later ones. That leverage is why dropping them, or weighting them down, moves the exponent.

Choosing the closes

Starting the fit later (a year, a cycle top or bottom, the last N days) asks a narrower question: which power law best describes Bitcoin since then? Days are still counted from day 1, so with the genesis block it is the same family of curves fitted to fewer, calmer years. The excluded closes stay on the chart, shaded, so you can see how well the narrower fit describes them.

Moving day 1

Counting days from a later date is a different curve, not the same one with less data. Right after day 1, ln(day) races (days 1 to 10 cover as much log time as days 100 to 1,000), so the first weeks after a top or a bottom get enormous leverage and the exponent describes how price moved away from that date. Day 1 becomes a third parameter chosen by eye; the genesis block has the merit of being fixed before there was any price.

Decay factor

Instead of cutting old closes off, weight them less: a close k days before the latest gets weight λk, and weighted least squares minimises the sum of weight × miss² (Miller, Mathematics and Statistics for Financial Risk Management, ch. 12). The half-life, ln 0.5 ÷ ln λ, is easier to read: λ = 0.9995 halves a close's weight every 3.8 years. Volatility models use λ near 0.94 on daily data, a half-life of about 11 days; for a trend meant to span many years the useful range sits much closer to 1. The effective sample shows how many equally weighted closes the weights are worth.

A hand-set line

Enter an exponent and today's trend price and the chart scores your line on the closes in the fit. Its R² can go negative (worse than a flat line at the average), the σ bands sit on your line at its root-mean-square miss, and the mean miss shows how far the closes sit from it on average. “Copy fitted values” starts from the least squares answer for the current window and weights.

Reading the numbers

R² is not comparable between windows: it is measured against the spread of ln(price) inside the window, and a shorter, calmer window has less spread to explain. Compare σ, the typical miss, instead. None of these fits is as precise as its count of closes suggests: price stays on one side of the line for months at a time, so consecutive closes repeat much of the same information. And a local fit (a recent window or a short half-life) describes the current regime; projected to 2040 it says very little.