LOGEST
Returns parameters for an exponential model fitted to known data.
LOGEST fits y = b * m^x and returns either [m, b] or an expanded statistics matrix.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=LOGEST(known_ys, [known_xs], [const], [stats])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
known_ys | number (range) | Required | — |
known_xs | number (range) | Optional | — |
const | number (range) | Optional | — |
stats | number (range) | Optional | — |
Remarks
- All known y-values must be strictly greater than
0. known_xdefaults to1..nwhen omitted; several variables are laid out as inLINESTand the bases come back in reverse order of the variables, thenb.constcontrols whetherbis fitted (TRUEby default).stats=TRUEreturns theLINESTstatistics block of the fit ofln(y).
Examples
Fit coefficients using three observations and their known x values.
Formula =LOGEST({2;4;8},{1;2;3})
Expected result {2, 1}
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Return exponential regression statistics for three imperfectly aligned observations.
Formula =LOGEST({2;4;7},{1;2;3},TRUE,TRUE)
Expected result {1.87082869338697, 1.09310353301279; 0.0385471927385168, 0.083271453596626; 0.996227180101123, 0.0545139627622202; 264.053733494562, 1; 0.784707527616663, 0.00297177213604073}
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use two observations with distinct x values.
Formula =LOGEST({2;4},{1;2})
Expected result {2, 1}
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The independent and dependent observations do not align.
Formula =LOGEST({2;4;8},{1;2})
Expected result #REF!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Exponential base and intercept
Formula =LOGEST({2,4,8},{1,2,3})
Expected result {2, 1}
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Alternative growth series
Formula =LOGEST({3,6,12},{1,2,3})
Expected result {2, 1.5}
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.