PolyFit automatically finds the polynomial formula that best
describes your data. You provide input columns (Params) and a
target column (Target); the algorithm systematically tries all
polynomial combinations within the defined degree range and
returns the formula with the best fit.
While the standard mode assumes the objective function
f(x1, x2, x3, β¦) is already known and only its
parameters need to be tuned, PolyFit treats the function itself as
unknown. Both the structure of the polynomial and its
coefficients are fitted.
This is particularly useful when evaluating measurement series for
which no theoretical model is available. Once the formula is
determined, you can use it without further computation β as an
ordinary cell formula.
Step 1: Switch mode
In the plugin window, switch to PolyFit at the
top.
Step 2: Mark cell ranges
Select the relevant cell ranges in the spreadsheet and assign them
using the buttons:
-
Select as Params β the columns
with the input values
x1, x2, x3, β¦
-
Select as Target β the column
with the target values
y that the polynomial should
approximate
Step 3: Define the search space
-
MinGrade and MaxGrade
determine which exponents are allowed in the terms (negative
values are permitted).
-
NumParams is the number of terms in the
resulting polynomial β i.e. how many summands the final formula
has.
Step 4: Use Native (optional, recommended)
With Use Native, PolyFit talks to a local HTTP
service instead of running the WASM build in the browser. This is
significantly faster, especially for large datasets or wide
search spaces. See Native PolyFit
Service below.
Result
The result is a ready-to-use formula you can paste directly into
your spreadsheet β for example:
-0.1300Β·x2β»ΒΉΒ·x3Β² + 1.5252Β·x1Β²Β·x3 + β¦