Sensitivity Analysis
Applies to: CoModel cloud modeling & simulation platform (v1.9+)
1. Overview
Sensitivity Analysis quantifies how sensitive a model's outputs are to changes in a single parameter. Where Parameter Sweeps focuses on traversing the parameter space, sensitivity analysis looks at how perturbations around a base value affect system behavior, helping you identify critical parameters, refine designs and reduce uncertainty risk.
Typical applications include:
- Check whether a controller parameter remains stable within a reasonable tolerance
- Assess the impact of manufacturing tolerances on system performance
- Identify the parameters that contribute most to the output, providing a basis for later optimization or experimental calibration
- Support uncertainty propagation analysis with Monte Carlo sampling
2. Opening the Parameter Study workspace
- In the top navigation bar of the model editor, click the Parameter Study tab.
- The left ~30% of the main view is the job configuration area (with the Config / History sub-tabs); the right ~70% is the results area.
- On first use, the configuration area is empty. Click Scan Model Parameters first: the system compiles the model and extracts the list of available parameters and observables (about 15–60 s the first time, reused afterwards).
- The top of the configuration area has three side-by-side toggle buttons: Single Sweep / Dual Sweep / Sensitivity Analysis. Click Sensitivity Analysis.

Prerequisite: the model is saved and has completed at least one ordinary simulation successfully (the system relies on the generated runnable model code), and the model contains observables.
3. Configuring a sensitivity analysis
3.1 Selecting the analysis parameter
In the Parameter 1 box, select one parameter from the dropdown as the analysis variable. Sensitivity analysis targets a single parameter at a time, keeping results easy to interpret.
- Parameter names are the model's full MTK names in the form
componentName₊paramName(e.g.capacitor1₊C); each dropdown option shows the parameter's default value. - Sensitivity analysis has no Parameter 2 box.

3.2 Setting the base value and perturbation range
| Configuration | Description |
|---|---|
| Base value | Defaults to the selected parameter's default value and can be edited. Switching parameters re-syncs it to the new parameter's default; once edited manually it stays fixed until you switch parameters or reload the page. |
| Perturbation type | Choose Percent (±%) or Absolute (±Δ). |
| Percent | The number you enter is a percentage: entering 10 means ±10%, and the system samples within 90% ~ 110% of the base value (a 10 = ±10% hint appears below the input). Values above 100 are rejected — the perturbation interval would cross zero and produce parameter values of opposite sign. |
| Absolute (±Δ) | Enter the perturbation amount Δ; the sampling interval is base value ± Δ (a single Perturbation amount input — no separate upper/lower bounds). For example, a base value of 1.0 with amount 0.1 gives the interval 0.9 ~ 1.1. |
Note: the system does not check whether perturbed parameter values stay within their physically valid domain. If a perturbation pushes a parameter into an invalid range, the corresponding sample's simulation fails (marked as missing in the results) without affecting the other samples.
3.3 Choosing a sampling method
| Sampling method | Settings | Description |
|---|---|---|
| Linear (evenly spaced) | Steps | Evenly spaced points across the perturbation range (2–10000, default 10), producing a 2D trend curve. |
| Monte Carlo (random) | Samples | Uniform random samples across the perturbation range (1–100000, default 200), producing a scatter plot and computing the Pearson correlation coefficient. |
| Random seed (optional) | Non-negative integer | Monte Carlo only. With a seed set, the sample sequence is reproducible — same seed + same configuration yields exactly the same sample points on every run; leave empty for fresh randomness each run. |
Tip: to observe the overall correlation between the parameter and the output, use Monte Carlo sampling; to focus on the trend near the base value, linear sampling is more intuitive.
3.4 Selecting observables and simulation settings
- Observables: check one or more of the state variables and observables (at most 10). Blue marks state variables, green marks observables.
- Simulation settings: platform defaults (solver
auto, duration 10 s, reltol1e-3, abstol1e-6), editable in the panel; they apply only to this analysis job and do not modify the model's own simulation configuration.
4. Configuration overview
| Configuration | Required | Description |
|---|---|---|
| Analysis type | Yes | Click the Sensitivity Analysis toggle. |
| Analysis parameter | Yes | Select 1 model parameter in Parameter 1. |
| Base value | Yes | Defaults to the selected parameter's default value; editable. |
| Perturbation type | Yes | Percent (10 = ±10%, cannot exceed 100) or Absolute (±Δ). |
| Sampling method | Yes | Linear (2–10000 steps) or Monte Carlo (1–100000 samples). |
| Random seed | No | Monte Carlo only; the same seed reproduces the same results. |
| Observables | Yes | At least 1, at most 10. |
| Simulation settings | No | Starts from platform defaults; can be overridden for this run. |
5. Running the analysis
Click Run Parameter Study at the bottom left. The CoModel backend starts a dedicated compute process for the analysis, generates perturbation samples around the base value and runs a simulation for each point (at most 2 analyses can run concurrently).
- A progress bar with completed/failed counts is shown live below the configuration area on the left.
- Failed sample points are flagged individually; the remaining samples keep running.
- While running, you can click Cancel Study at any time to terminate the job.
6. Viewing results
A dropdown at the top of the results area switches the observable currently displayed (multiple observables are viewed by switching, not overlaid).
6.1 Linear sampling results
A 2D curve chart is generated: the X axis is the actual value of the analyzed parameter, the Y axis is the current observable value. The steeper the curve's slope, the more sensitive the observable is to that parameter. Supports zoom, hover-to-inspect values and other interactions.
6.2 Monte Carlo results
A 2D scatter plot is generated; each point is one randomly sampled simulation.
Both linear sampling and Monte Carlo compute the Pearson correlation coefficient: the top of the results area shows a correlation chip for each observable (e.g. r=0.87; r=— when there are not enough valid samples), colored by correlation strength (|r| ≥ 0.7 filled, ≥ 0.3 outlined, otherwise gray). Clicking a chip switches the chart to that observable.
| |r| absolute value | Correlation strength |
|---|---|
| 0.0 ~ 0.3 | Weak correlation |
| 0.3 ~ 0.7 | Moderate correlation |
| 0.7 ~ 1.0 | Strong correlation |
A positive coefficient means the observable tends to increase as the parameter increases; a negative one means it moves in the opposite direction.

7. Exporting results
Once the sensitivity analysis completes, use the export buttons at the top right of the results panel to get data and charts:
| Export type | Format | Description |
|---|---|---|
| Raw data | .csv |
The parameter value, each observable value and the run status (run_status) column for every sample; Monte Carlo results also append a correlation-coefficient summary row for each observable at the end. |
| Chart image | .png / .svg |
Exports the chart of the current view. |
8. Worked example
Using an RC circuit, evaluate the effect of capacitor tolerance on the output voltage (Monte Carlo):
- Open Parameter Study → click Scan Model Parameters → switch to Sensitivity Analysis.
- In Parameter 1, select
capacitor1₊C(default 1.0) and keep the base value at 1.0. - Set the perturbation type to Percent (±%) and enter
20as the amount (i.e. ±20%). - Set sampling to Monte Carlo (random), samples
200, random seed42(for reproducibility). - Under Observables, check
capacitor1₊v(t). - Click Run Parameter Study and wait for the run to finish → a scatter plot and a correlation chip appear on the right (e.g.
r=-0.99, strong negative correlation). - Run again with the same seed: the scatter distribution should be identical, confirming reproducibility.
With linear sampling instead: set sampling to Linear (evenly spaced) with 11 steps; the result is an 11-point trend curve over base value ±20%.
9. Viewing analysis history
Switch to the History sub-tab on the left to see all Parameter Study jobs for the current model (status, type, completed progress, elapsed time). Click any record to review its result charts; click Exit History View to return to the configuration view.
10. Next steps
- To systematically traverse multiple parameter combinations, read Parameter Sweeps.
- For visualizing and exporting simulation results, see Visualizing Simulation Results and Exporting Results & Managing Simulation Jobs.