ROOT-A-TRON 3000

Documentation › Data and analysis types

Data and analysis types

The data type decides how the measurements are stored, how they are weighted in the fit and what the model is a function of. Choose it from Data type before entering data; a dataset that already has data keeps its type, and choosing another type starts a new dataset.

One variable, y = f(x)

The common case: one measured quantity that depends on one controlled or measured quantity. The table has four columns, X, X uncertainty, Y and Y uncertainty. Each uncertainty column has a mode:

How X uncertainties enter the fit is described under effective variance.

Entering data

Type into the cells, or paste a block copied from a spreadsheet; it fills rightwards and downwards from the cell you paste into, in the order the columns are shown. If the first pasted row is a header, the columns are matched by name: x, y, and for uncertainties any of u(y), dy, σy, y uncertainty, y error and similar. A pasted column that lands on a Constant or None uncertainty switches it to Per point. Import CSV does the same from a .csv, .tsv or .txt file. Columns can be dragged into any order by the grip at the left of their header; the order is only for display and is remembered per data type.

The preview beside the table redraws as you type, so a swapped column or a misplaced decimal point shows up before you fit. The status line under the table reports the point count and the uncertainty modes, and names anything that stops the dataset from being fitted (a missing value, a negative uncertainty, a gap in a per-point column).

Several datasets

A worksheet can hold any number of datasets, each with its own type, model and result; + New dataset adds one and the tabs switch between them. Options renames, duplicates or deletes the current dataset and resets its column order. Plot titles and axis labels belong to the worksheet as a whole. Each dataset is fitted separately.

Histogram

A distribution of one measured quantity, fitted bin by bin. Supply either:

The model is a density: the fit integrates it over each bin (ROOT fit option I with WIDTH) and compares the integral with the count, so a bin twice as wide is expected to hold twice the count and unequal bins are handled correctly. Named functions such as gausn are normalised, so their first parameter is the total area, not the peak height.

Two fit methods:

Multivariate, Rn → Rm

A model with several inputs, several outputs, or both: intensity as a function of two positions, or two quantities measured together that share parameters. Choose the number of inputs n and outputs m, enter one column per input and per output, each with an optional uncertainty column, and write one model per output. Models use x0, x1, … for the inputs and [0], [1], … for the parameters; parameters are shared by index, so [2] in two output models is one parameter fitted to both.

The fit minimises one global χ² over every output and point, with input uncertainties folded in by the same effective-variance rule as the XY fit, using numerical derivatives of each model with respect to each input. Minuit does the minimisation, so the report has the same form: parameters with uncertainties from the covariance matrix, χ², NDF and the status. With one input the result is drawn as a curve, with two as a fitted surface, and with more as a slice along the first input with the others held at their means. Residual and pull diagnostics are available in any dimension. The Beam profile example is a 2-D Gaussian on a 7×7 grid.

← All documentation