Theoretical background¶
This page gives the impedance relations and the least-squares equations that the fit functions of EISFitpython use.
Fundamentals of impedance spectroscopy¶
Electrochemical impedance spectroscopy (EIS) measures the electrical properties of a material and of its interfaces with the electrodes. The instrument applies a small sinusoidal voltage and records the current:
The impedance is the complex ratio of the voltage to the current:
In these equations, \(\omega = 2\pi f\) is the angular frequency, \(\phi\) the phase shift, \(|Z|\) the impedance magnitude, and \(Z'\) and \(Z''\) the real and imaginary components.
Complex nonlinear least-squares fitting¶
Complex nonlinear least-squares (CNLS) analysis fits an equivalent-circuit model to impedance data. The method minimizes a sum of squares \(S\). This sum is the difference between the experimental data and the model with the parameter set \(P\):
\(Z_i^\mathrm{EXP}\) is the experimental impedance at the frequency \(\omega_i\), and \(Z_i^\mathrm{TH}\) is the impedance of the model. \(w_i^\mathrm{RE}\) and \(w_i^\mathrm{IM}\) are the weighting factors of the real part and the imaginary part.
Weighting methods¶
The weighting changes the fit result. EISFitpython has three weighting methods.
Select one with the argument weight_mtd.
| Code | Method | Weighting factors | Notes |
|---|---|---|---|
U |
Unit | \(w_i^\mathrm{RE} = w_i^\mathrm{IM} = 1\) | All data points have equal weight. The points with large impedance control the fit. |
P |
Proportional | \(w_i^\mathrm{RE} = 1/(\mathrm{Re}Z_i)^2\), \(w_i^\mathrm{IM} = 1/(\mathrm{Im}Z_i)^2\) | The relative error of each part is equal for all points. |
M |
Modulus | \(w_i^\mathrm{RE} = w_i^\mathrm{IM} = 1/\lvert Z_i\rvert^2\) | Points with small impedance and points with large impedance have equal influence. This is the default. |
For the use of the weighting in a fit, see Fitting one spectrum.