\[\DeclareMathOperator{\erf}{erf} \DeclareMathOperator{\argmin}{argmin} \newcommand{\R}{\mathbb{R}} \newcommand{\n}{\boldsymbol{n}}\]

Module pyqt_fit.plot_fit

Analyses of the residuals

Plotting the residuals

General plotting

Output to a file

Return types

Most function return a tuple. For easier access, there are named tuple, i.e. tuples that can be accessed by name.

class ResultStruct(...)

Note

This is a class created with pyqt_fit.utils.namedtuple().

fct

Fitted function (i.e. result of the fitted function)

fct_desc

Description of the function being fitted

param_names

Name of the parameters fitted

xdata

Explaining variables used for fitting

ydata

Dependent variables observed during experiment

xname

Name of the explaining variables

yname

Name of the dependent variabled

res_name

Name of the residuals

residuals

Function used to compute the residuals

popt

Optimal parameters

res

Residuals computed with the parameters popt

yopts

Evaluation of the optimized function on the observed points

eval_points

Points on which the function has been interpolated (may be equal to xdata)

interpolation

Interpolated function on eval_points (may be equal to yopt)

sorted_yopts

Evaluated function for each data points, sorted in increasing residual order

scaled_res

Scaled residuals, ordered by increasing residuals

normq

Expected values for the residuals, based on their quantile

CI

List of confidence intervals evaluated (in percent)

CIs

List of arrays giving the confidence intervals for the dependent variables and for the parameters.

CIresults

Object returned by the confidence interval method

class ResidualMeasures(scaled_res, res_IX, prob, normq)

Note

This is a class created with pyqt_fit.utils.namedtuple().

scaled_res

Scaled residuals, sorted

res_IX

Sorting indices for the residuals

prob

Quantiles of the scaled residuals

normq

Expected values of the quantiles for a normal distribution

class ResTestResult(res_figure, residuals, scaled_residuals, qqplot, dist_residuals)

Note

This is a class created with pyqt_fit.utils.namedtuple().

res_figure

Handle to the figure

residuals

Handles created by plot_residuals()

scaled_residuals

Handles created by scaled_location_plot()

qqplot

Handles created by qqplot()

dist_residuals

Handles created by plot_dist_residuals()

class Plot1dResult(figure, estimate, data, CIs, *ResTestResult)

Note

This is a class create with pyqt_fit.utils.namedtuple(). Also, it contains all the first of ResTestResult at the end of the tuple.

figure

Handle to the figure with the data and fitted curve

estimate

Handle to the fitted curve

data

Handle to the data

CIs

Handles to the confidence interval curves

Table Of Contents

Previous topic

Modules of PyQt-Fit

Next topic

Module pyqt_fit.curve_fitting

This Page