You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/PyCorrFit_doc_content.tex
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -696,11 +696,35 @@ \subsection{Fitting}
696
696
697
697
\subsubsection{Weighted fitting}
698
698
\label{sec:theor.weigh}
699
-
In certain cases, it is useful to implement weights (standard deviation) $\sigma_i$ for the calculation of$\chi^2$. For example, very noisy parts of a correlation curve can falsify the resulting fit. In \textit{PyCorrFit}, weighting is implemented as follows:
699
+
In certain cases, it is useful to perform weighted fitting with a known variance $\sigma_i^2$ at the data points$\tau_i$. In \textit{PyCorrFit}, weighted fitting is implemented as follows:
\textit{PyCorrFit} is able to calculate the weights $\sigma_i$ from the experimental data. The different approaches of this calculation of weights implemented in \textit{PyCorrFit} are explained in \hyref{Section}{sec:intro.graph}.
703
+
704
+
Besides importing the variance alongside experimental data, \textit{PyCorrFit} is able to estimate the variance from the experimental data via several different approaches. A recommended approach is averaging over several curves. Other approaches such as estimation of the variance from spline fits or from the model function (see \hyref{Section}{sec:intro.graph}) cannot be considered unbiased.
705
+
Note that when performing global fits (see \hyref{Section}{sec:menub.tools.globa}), different types of weights for different correlation curves can strongly influence the result of the fit. Especially mixing curves with and without weights will most likely result in unphysical fits.
706
+
707
+
\subsubsection{Displayed $\chi^2$ values}
708
+
The displayed value of $\chi^2$ is defined by the type of the performed fit. This value is commonly normalized by the degrees of freedom $\nu = N - n - 1$, where $N$ is the number of observations (data points) and $n$ is the number of fitting parameters.
709
+
\begin{itemize}
710
+
711
+
\item\textbf{reduced expected sum of squares}: This value is used when there is no variance available for plot normalization.
\item\textbf{reduced global sum of squares}: This value is used for global fits. The weights are computed identically to the situation with reduced weights, except that the variance $\sigma_\textrm{glob}^2$ may result in non-physical weighting (hence the emphasis on global).
0 commit comments