Sensitivity tab reference
Field-level reference for the Sensitivity tab. The task steps are on the Sensitivity page.
Sensitivity vocabulary
| Term | Meaning |
|---|---|
| Sensitivity | The whole study. One model, many Runs, with chosen parameters that vary. A model can hold several named routines. Each routine has its own parameters and sampling settings. |
| Sample | One pass of the model at one drawn set of parameter values. Stella draws the values and does not write them to disk. Experimenter reads the Sample number from the export table. |
| Sensitivity parameter | A variable that varies, with the distribution and bounds that govern it. |
| Run | One model execution. Every other configuration type uses the same unit. A Run selects its routine through config.sensitivity, as an optimize Run selects its optimizer. |
| Saltelli design | A set of Samples built from two base matrices, A and B, for Sobol first- and total-order indices. A routine with a saltelli: block draws it. The Experimenter engine runs it. |
| Base sample count | base_samples of a Saltelli design. A routine with k parameters runs base_samples x (k+2) Samples. |
Before your first Sensitivity
Stella keeps full results for only the most recent few Runs (a model preference, often 5 or lower). For every earlier Run, Stella keeps only the variables on a graph or table. It gives no warning. So:
- Set
output_variableson every Sensitivity. It names the variables that Stella keeps in full for every Run. - Include the varied parameters, to trace which sampled value gave which outcome. A set list captures only the names in it.
- If you leave it unset, Experimenter captures every model variable. The
Output.csvis then much larger.
The sensitivity entry
A Sensitivity is in the sensitivities: map of the Experiment, with one entry for
each routine. A Run binds a routine through config.sensitivity. The full key
list is under Sensitivities. The shape is:
model: ../Model/Model.stmx
engine: architect
datasets: # optional, the same axis as every other mode
- {name: america, base: ../Datasets/America}
- {name: germany, base: ../Datasets/Germany}
sensitivities: # a map keyed by routine name
Sensitivity Test:
method: sobol_sequence # the sampling algorithm
runs: 200 # how many Runs Stella executes
seed: 12345 # optional
clear_database: true # delete the run copy's .isdb first
parameters: # a map keyed by variable name
Private_Capital_Depreciation_Time:
distribution: normal
mean: 32.5
std_dev: 7
Elasticity_of_Output_to_Capital_a:
distribution: uniform
min: 0.3
max: 0.9
output_variables: Output-Sensitivity-Table # a table's export name, or a list file
runs: # the Order pane: which Run arms which routine
baseline:
config: {sensitivity: Sensitivity Test}The architect and experimenter engines run a Sensitivity. model,
engine, and datasets: follow the same rules as for every other mode. A
Sequence member can reference a Sensitivity Run or group, as it does any other.
Sensitivity parameters
Each entry under the parameters: of a routine names a distribution:
| Distribution | Fields |
|---|---|
normal | mean, optional std_dev / min / max |
beta | alpha, beta, optional min / max |
exponential | lambda, optional min / max |
gamma | shape, scale, optional min / max |
logistic | mean, scale, optional min / max |
pareto | shape, scale, optional min / max |
triangular | lower, mode, upper, optional min / max |
weibull | shape, scale, optional min / max |
log_normal | mean, min, max, optional std_dev |
uniform | min, max |
incremental | starting_value, ending_value, optional min / max |
adhoc | values: one comma-separated string of the exact values, one per Sample ("0.1, 0.2, 0.3"). A YAML list is refused. |
A parameter entry can also have its own seed and num_samples, separate
from the seed of the routine. Each variable must resolve in the model.
Experimenter writes the settings into the model copy. It never computes the
values.
An absent or empty std_dev on normal / log_normal is valid. Stella
accepts it and runs, so Experimenter validates it. For normal, Stella 4.3.1
draws as follows.
- Under Random Multivariate with
minandmax, the draws are uniform over[min, max]. - Under Latin Hypercube and Sobol Sequence, the variable keeps its model value in every run.
- With no
minand nomax, the run hangs.
No measurement exists for log_normal. The Experimenter engine does not reproduce
these draws. It refuses such a routine, with a message that names them. A
std_dev that IS set must still be a number.
Experimenter refuses a log_normal variable that lacks min or max. Stella
hangs with no output on such a variable. When you pick log_normal in the
editor, or change mean or std_dev, the editor fills each empty bound. It
uses the 0.1st percentile (min) or the 99.9th percentile (max) of the
log-normal built from mean and std_dev. You can overwrite both. With no
std_dev, the bounds stay empty and validation reports the error.
Under Sobol Sequence and Latin Hypercube, Stella ignores the log_normal
shape. It draws the variable uniform (linear) between min and max.
Validation warns once for each such variable. Random Multivariate truncates a
bounded log_normal correctly and gives no warning.
On the Parameters tab:
- Add opens a picker. The picker lists only variables whose equation is a bare number. Stella can sample only a constant, so a computed variable is never in the list.
- Remove drops the parameter from this Experiment only. A parameter that the model declares stays on the table.
- The … picker on each row rebinds the row to a different variable. You never type over the name. Rebinding a model-owned row queues the removal of the old variable from the model at Save. It carries the settings to the new name. Rebinding a config-only row is a plain rekey.
Saltelli design
A routine with a saltelli: block draws a Saltelli design on the Experimenter
engine. Sobol first- and total-order indices need that design.
The key is YAML only. The Sensitivity tab has no field for it, and a save from the interface writes the block back unchanged.
sensitivities:
Sobol main:
saltelli:
base_samples: 1024 # a power of 2
parameters:
growth rate: {distribution: uniform, min: 0.01, max: 0.05}
adjustment time: {distribution: normal, mean: 4, std_dev: 1, min: 1, max: 8}Sample count. With k parameters the routine runs base_samples x (k+2)
Samples. A base_samples of 1024 and 5 parameters give 7,168 Samples. A
base_samples of 64 and 3 parameters give 320. The dry run, the output
estimate and the Monitor all count base_samples x (k+2).
The N column of Sensitivity_Indices.csv is not base_samples. It is 2 x
base_samples, the Samples that PRCC read.
The method and runs of the model play no part.
Rules. Validate refuses a routine that breaks one of these.
| Rule | Detail |
|---|---|
base_samples | A whole number, a power of 2, from 2 to 1048576. |
| Beside the block | Validate refuses method, runs and path, because the block sets the design and the count. |
| Parameters | 2 to 500, each uniform or normal. |
seed | A seed on the routine or on a parameter gives a warning, because the design uses no seed. |
Design. The design is an unscrambled Sobol sequence. It has no random
state, so the same routine gives the same Samples on every machine. The
parameters: of the routine give the column order.
Sample rows. Each base point i, from 1 to base_samples, gives k+2 Samples in this
order:
| Row name | Values |
|---|---|
S<i>-A | The matrix A values of base point i. |
S<i>-AB<j> | The A values of base point i. Parameter j comes from matrix B, for j from 1 to k in column order. |
S<i>-B | The matrix B values of base point i. |
sample.csv in the Run folder holds the Samples. Its first column is Run Name, with the row names above. One column per parameter follows. The
sample column of Output.csv numbers the Samples from 1 to base_samples x (k+2), in
the order of sample.csv.
batch.json records the design in the sensitivity entry of the experimenter
block.
The entry holds the method saltelli, base_samples, the parameter
order and second_order: false. The
outputs reference
describes the indices.
Stella refuses the key. Stella has no Saltelli design. Validate gives this error for a Run that selects the routine on a Stella engine. The runner refuses it again at launch:
sensitivities.<routine>.saltelliruns on the Experimenter engine only. Stella has no Saltelli design and would run the routine’s own method instead. Setengine: experimenterfor this Run, or write the design to a CSV and run it throughpath:on either engine.
Two ways round the refusal:
- Set
engine: experimenteron the Run. - Run the
sample.csvof a Saltelli Run throughpath:, on either engine. TheRun Namecolumn carries over. The record of that batch does not namesaltelli, so the Sobol columns stay empty.
Where each setting lands
Every Run executes on a copy of the Template. It never uses the file itself.
| Setting | Where it lands |
|---|---|
method, runs, seed, parameters | The run copy, and the Template at Save when Write changes to model file is on |
Which routine a Run arms (config.sensitivity), and saltelli | The Experiment file only |
output_variables, clear_database | The run copy only, at Run start |
| Add or Remove a routine | Queued, then applied to the Template at Save |
Add on the Sensitivities table starts a new routine name in the
configuration. A new name queues the matching model node for creation at Save.
If you type a name that the model already declares, Experimenter binds it.
Remove drops the routine from the configuration and queues its removal
from the model. It also clears config.sensitivity on every Run bound to the
routine. After you remove the active routine, none is active. A queued Add or
Remove counts as an unsaved change. Reset discards the queue and leaves the
.stmx untouched. Save shares the one-time
<model>.stmx.pre-experimenter-backup with every other Write changes to model
file action. Optimization and Payoff Add/Remove on the
Optimization tab queue and apply the same way.
A configuration can name a routine that Stella no longer has. This happens when you rename or delete the routine in Stella after the last Experimenter save. That row shows its Name in bold, warn-colored text, with a tooltip. Experimenter will not create the routine at Save. Remove the row from the configuration, or add a matching routine back in Stella. Remove drops it like any other row.
Validate rejects a sensitivity: entry that names no routine the model
declares. It does so once the model declares at least one routine of its own.
A model with no routines yet is not checked, because every entry is then a
routine not yet created. A queued unsaved Add for the same name does not
trigger the error. If the error surprises you, look for a typo, or for a
rename made directly in Stella.
The tabs


The center pane holds three tabs:
- Files: the import/export configuration of this Run, behind three
Settings tabs.
- Output Settings is the tab that Output Settings tab describes. It is file-level, not per-Run.
- Run Settings starts with a read-only Run field, the name of the
selected Run. Next is the Engine control (see Run
Tab for how it resolves and
locks). Then come Retries, Timeout, Retention, Output
variables, and Move to File Default, which promotes the output
settings of this Run to the Output Settings tab. Start Time / Stop
Time come last. They are the simulation window of the Run, formatted as
the Simulation tab formats it, per Run. The Experimenter engine also runs a
Sensitivity Run, with a Limited runs (Latin Hypercube sampling), Limited
runs (random sampling) or All combinations routine. It also runs a routine
with a
saltelli:block (see Saltelli design). It runs a routine with apath:design file too (From External Parameter File). It refuses any other routine at launch. For the refusals, see the Simulation Engines. - File Settings holds the import/export table.
- Sensitivities: an Active | Sensitivity table of the routines in the model, plus any routines that the configuration adds. Highlight a row to show its settings. Tick Active to bind the selected Order-pane Run to that routine. Double-click a name to rename it. A model-owned routine renames the model at once (Write changes to model file must be on), and the configuration follows.
- Parameters: the parameters of the highlighted routine. The tab follows the routine you clicked last, whether or not that routine is the bound one.
The right Settings pane follows the center tab. Its forms sit under the headers Sensitivity analysis options, Threshold and Selected sensitivity parameter options. For a routine, it shows Sampling method, Number of runs, Noise seed, Optimization to run, From External Parameter File, the Grounded Sensitivity Criteria threshold rows, and Clear database. For a parameter, it shows only the fields that its distribution uses.
Sampling method uses the wording of the live Stella 4.3.1 dialog. The choices
are All combinations (grid), Sequential Sampling (sequential), Limited runs
(random sampling) (multivariate), Limited runs (Sobol Sequence sampling)
(sobol_sequence), and Limited runs (Latin Hypercube sampling)
(latin_hypercube). The config key still holds the token in parentheses.
The entry From external parameters file is available only on a routine
that is already external. On any other routine it shows gray, as in Stella,
and Experimenter refuses a pick. To make a routine external, type a path in From
External Parameter File.
grid and sequential take no run count. The Number of runs field hides
for them, and an explicit runs: under either is a validation error. In that
error case only, the field stays visible so that you can clear it.
How many runs Sequential Sampling makes. Run 1 is the base case, with every parameter at its model value. Then each parameter moves alone through its levels, in config order. The others stay at the model value. The total is 1 plus the sum of the Number of samples of every parameter.
Fourteen parameters
with 3 samples each make 1 + 14 x 3 = 43 runs. All combinations multiplies the
Number of samples instead. Stella 4.4.1 gave these counts for incremental
parameters. Other distributions have no measured count.
Optimization to run (using_optimization) is a Setup Criteria field. It
runs the named optimization on every sensitivity draw. None leaves the model
setting untouched. If the routine never had an optimizer, None leaves it
without one.
From External Parameter File (path) takes a model-relative path in the
r-prefixed form of Stella (for example r../ExtParams.csv). When you set it,
the method of this routine becomes External. It drops the own variables of the
routine, and any runs value the routine had. A runs value set in the same
write stays. The field in Stella takes only a Browse pick. This field takes
typed text.
The four Grounded Sensitivity Criteria threshold rows write the
<isee:threshold> element. Payoff picks which payoff spec the threshold
targets, one payoff at a time. The dialog in Stella lists a checkbox for each
payoff. Threshold is the own Threshold field of Setup Criteria. The Help of
Stella puts it at roughly 2 above the best calibration payoff, at a 95%
confidence bound for a squared-error payoff. Relative to base and
Adjust sensi parameters are the two-state checkboxes of Stella. Adjust
factor is the scaling multiplier that Adjust sensi parameters applies. It
shows only while that box is checked.
Running a Sensitivity
The bottom bar has the same Reset, Validate, Save, Run, Pause, and Stop controls as every editor tab (see The Editor Shell). Pause is between Run and Stop. It holds the queue after the in-flight job finishes, before the next job starts. It is enabled only for a multi-job sweep. Stop is beside Pause. It stops the running Stella at once, paused or not. For the full mechanics, see the Monitor.
Keep full data for every Run
output_variables (resolved Run > group > file) defeats the few-Runs cap. It
takes either of two forms:
- A table’s export name. Name a table that your model already has. Experimenter marks it comparative in the run copy. It leaves alone the copy of the model and any export that the model scopes to the table.
- A
.txt/.csvlist file, with one variable name per line, resolved relative to the Experiment file. Experimenter builds a new table from the list, in file order, in the run copy only.
The two forms differ in one way. A table name narrows the export but not a folded-in saved run, which folds in unfiltered. Use a list file when both must narrow together (see Output variable list).
With either form, Experimenter authors its own export against that table onto
the run copy (Experimenter-Output-Data.csv by default). The results reach
disk and no export block that the model already has is touched. If you leave it
unset, Experimenter enumerates every model variable into a new table. A model
with no export blocks at all then still returns full data. Validate warns once
for each routine. It names the cap of the model when the model sets one.
Clear the results database
clear_database: true deletes the whole .isdb of the run copy before the Run
starts. No saved run from a prior configuration then stays in a new Sample.
Sample output
The results of a Sensitivity come from its authored table export, never from
the results database. A command-line run quits without saving, so the export is
the only place where a Sample lands. Collation melts the export into the usual
Output.csv in the chosen layout. It adds one context column, sample, after
record_hash:
- A Sample row has the job name in
source,jobinsource_kindand the integer Sample number of Stella insample. - A comparison series (for example
Historical) keeps its own label insource, withsaved_runinsource_kindandsampleempty. A fit script selects the observed series withsource_kind. - With
output_variablesset, the varied parameters appear only when it includes them. If it is unset, they are included, because Experimenter captures every model variable. - An ordinary Run keeps its usual
Output.csv. Only a Sensitivity emitssamplerows. - In wide layout, a Sample is one row for each variable, and each time step is a column.
The comparison series still comes from the results database, read as it was before the run.
Experimenter verifies a Sensitivity. It counts the distinct Sample columns that
the export wrote and compares the count with the declared runs of the
routine. This check is needed because the own cap of Stella can end a run early
with a clean exit. A short count fails the attempt and retries. grid and
sequential declare no count, so Experimenter verifies their Runs by a
non-empty, stable export instead.