3.00208
1.5
0.999999
3.00208
1.5
0.999999
The Power Regression Calculator fits the model y = a·xb to your data, identifying scaling relationships where doubling the input multiplies the output by a fixed factor of 2b. Power laws are ubiquitous in nature and science: gravitational force follows an inverse-square law (b = -2), metabolic rate scales with body mass (b ≈ 0.75, Kleiber's law), earthquake frequency scales with magnitude, city population distributions follow Zipf's law, and turbulent fluid dynamics follow Kolmogorov scaling.
The calculator uses a double-logarithmic transformation: taking ln of both X and Y reduces the power model to a linear equation, which is then solved by standard least squares. Both X and Y values must be positive. Enter up to 5 data pairs to discover the power law relationship in your data.
The power regression model is:
$$y = a \cdot x^b$$
Taking the natural logarithm of both sides:
$$\ln(y) = \ln(a) + b \cdot \ln(x)$$
Defining \(Y' = \ln(y)\) and \(X' = \ln(x)\), this becomes the linear model \(Y' = A + BX'\), where \(A = \ln(a)\) and \(B = b\). Linear regression on the log-log transformed data yields:
$$b = \frac{n\sum \ln(x_i)\ln(y_i) - \sum \ln(x_i)\sum \ln(y_i)}{n\sum [\ln(x_i)]^2 - [\sum \ln(x_i)]^2}$$
$$\ln(a) = \overline{\ln(y)} - b \cdot \overline{\ln(x)} \quad \Rightarrow \quad a = e^{\overline{\ln(y)} - b \cdot \overline{\ln(x)}}$$
The exponent b determines the power law behavior. When b = 1, the relationship is directly proportional (y = ax). When b = 2, y grows as the square of x. When 0 < b < 1, y grows sublinearly (concave curve). When b < 0, y decreases as x increases (inverse relationship). The coefficient a is the Y-value when X = 1, serving as the proportionality constant.
A key property of power laws is scale invariance: multiplying x by any factor k multiplies y by kb. This means the relative change in Y depends only on the relative change in X, not on the absolute values — a hallmark of fractal and self-similar systems.
Power regression results reveal scaling relationships:
To visually assess whether a power law fits, plot ln(Y) vs ln(X). If the points fall roughly on a straight line, the power model is appropriate — the slope of that line is the exponent b. Power regression is particularly common in allometry (biology), fractal geometry, geophysics, and complex systems research. Both X and Y must be positive; if your data includes zeros, the model is not directly applicable.
Inputs
Results
Metabolic rate (watts) vs. body mass (kg) across species. The power fit y = 3.52·x^0.748 closely matches Kleiber's famous 3/4-power law (b ≈ 0.75). This means a 10x increase in body mass only leads to a 10^0.75 ≈ 5.6x increase in metabolic rate. R² = 0.999.
Inputs
Results
Gravitational force vs. distance follows the inverse-square law. The fit y = 99.85·x^(-2.00) recovers b ≈ -2, confirming F ∝ 1/r². Doubling the distance reduces force to 1/4 of its original value. R² ≈ 1.0.
The power regression method takes the natural logarithm of both X and Y, and ln is only defined for positive numbers. The model y = a·x^b with a > 0 produces positive Y values for positive X, so negative or zero values in either variable indicate the data may not follow a power law. If your data contains zeros, consider adding a small offset or using a different model.
The exponent b tells you the scaling relationship. If b = 2, doubling X quadruples Y (2² = 4). If b = 0.5, doubling X increases Y by factor √2 ≈ 1.41. If b = -1, doubling X halves Y. In general, multiplying X by factor k multiplies Y by k^b. This scale-invariant property makes power laws particularly important in physics, biology, and complex systems where the same law applies across many orders of magnitude.
Power regression fits y = a·x^b (variable is the base), while exponential fits y = a·e^(bx) (variable is in the exponent). For large x, exponential growth always eventually outpaces power growth. On a log-log plot, power laws appear as straight lines; on a log-linear plot, exponentials appear as straight lines. Use power regression for scaling relationships (physics, biology) and exponential for compound growth (finance, populations).
The classic method is to plot your data on a log-log scale (both axes logarithmic). If the data falls approximately on a straight line, it follows a power law. The slope of that line is the exponent b. You can also compare R² values from different regression models — if the power model has the highest R², it is the best fit. For rigorous testing, methods like the Kolmogorov-Smirnov test or maximum likelihood estimation are used in research.
Many natural phenomena follow specific power laws: b = -2 (inverse square: gravity, electrostatic force, light intensity), b = 3/4 ≈ 0.75 (Kleiber's law: metabolic rate vs. body mass), b = 2/3 ≈ 0.67 (surface area vs. volume scaling), b = 1/2 = 0.5 (diffusion distance vs. time), b = -1 (Zipf's law: word frequency vs. rank), and b = 3 (Kepler's third law: orbital period squared vs. semi-major axis cubed, as T² ∝ a³).
Yes. The coefficient a is simply the Y-value when X = 1. If the phenomenon produces small Y values at X = 1, then a < 1. For example, in gravitational calculations with certain units, or in microscopic biological scaling, a can be very small. The coefficient a acts as a proportionality constant that scales the entire power curve up or down without changing its shape (which is determined solely by b).
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Linear Regression Calculator
Regression & Correlation Analysis
Simple Linear Regression Calculator
Regression & Correlation Analysis
Multiple Regression Calculator
Regression & Correlation Analysis
Polynomial Regression Calculator
Regression & Correlation Analysis
Exponential Regression Calculator
Regression & Correlation Analysis
Logarithmic Regression Calculator
Regression & Correlation Analysis