Risk models
Quantify a risk with a model of blocks instead of a single estimate, read the expected downside, the 1 in 200 year loss and the charts of a run, and see what the model changes elsewhere in the app.
A risk model is a graph of blocks that describes how the yearly loss of a risk comes about: known values, estimates, risk events, calculations and one result. The result is the annual loss of the risk. The model runs on the Volatilis Simulation Engine, and its figures replace the single loss estimate of the risk.
Overview
A risk has at most one model. While it exists:
- The model drives the risk. Its Expected downside per year, the 1 in 20 and 1 in 200 year loss and the Chance of a loss in a year come from the last run, and the register, the appetite checks and the capacity page use them.
- The loss estimate of Quantification is kept but not used. The risk form shows a link to the model instead of the picker. If you remove the model, the risk uses its earlier estimate again.
- The Copilot and the register export know that the risk is quantified by a model. The export columns for the frequency model and the loss shape say "model".
Role needed
To start, open the risk, go to the Analysis tab and select Build a model. If the risk has a loss estimate, the app first says that the model replaces it, that the risk has no loss figures until the model has run, and that the estimate comes back if you remove the model. A risk without a model keeps the picker of Quantification.
When the assistant is set up on your server, Build a model asks How do you want to start? and offers Describe it in your own words, Answer a few questions (the Guided start) and Start with a blank canvas. Select one and then Continue. Without the assistant, Build a model opens the Guided start directly.
Editor
Select Open model on the Analysis tab to work on the blocks of the model. The editor fills the whole window: the sidebar and the top bar of the app step aside so the canvas gets all the room. The top bar of the editor has, from left to right, a button back to the risk, the title, the save state, Assistant (when the assistant is set up), the Model and Results switch, Show details (Hide details once the panel is open), Export, Run simulation and a More actions menu with Delete model and Help for this page. On a phone the labels shrink to icons and the Model and Results switch moves to its own row.
Blocks
A model is made of blocks that you connect. Each block has a name and a name in formulas, which is how other blocks refer to it.
| Block | Use it for |
|---|---|
| Known value | A fixed number you are sure about. |
| Estimate | A value you can only give as a range. Pick how you describe it: Three-point estimate, Triangular, 90% range, skewed, Any value in a range, Bell curve, Count per year or Yes or no. |
| Risk event | Something that may happen. Choose Happens or not (a chance in a year) or Can repeat (events per year), and describe the loss size of one event. |
| Calculation | Combines inputs. Choose Add all, Multiply all or Formula. |
| Result | The yearly loss of the risk. A model has exactly one. |
| Note | An assumption or a source on the canvas. It does not change the numbers. |
A formula uses the names of blocks and these functions: if, min, max, abs, sqrt, exp, ln, log (the same as ln), log10, round, floor, ceil and clip. Blocks that a formula uses are connected for you. A model holds at most 60 blocks, of which at most 25 are estimates and risk events.
Work on the canvas
- Tools on the canvas. A small group in the top left corner holds Add block, Tidy up, Zoom out, Zoom in and Fit to screen. Viewers only see the zoom buttons.
- Add block. Select Add block, press N, or double-click an empty spot on the canvas. The number keys 1 to 6 pick a kind.
- Connect. Drag from the round point on the right of a block to a calculation or to the result. Loops are not possible. On a touch screen you can also tap the round point of one block and then the block it should feed. Select a connection and press Delete to remove it. Removing a connection also removes that block from a sum in the formula.
- Details. Select a block to edit it in the panel on the right: name, unit, the numbers, the formula and the sources of your assumptions. Without a selection the panel lists the checks of the model and its correlations. Select Show block next to a check to jump to the block. Show details and Hide details in the top bar open and close the panel. On a narrow screen the panel is a sheet at the bottom of the canvas, which Close details closes.
- Keys. N adds a block. A slash (/) jumps to the message box of the assistant. Escape closes the Add block menu, then the assistant, then the details sheet or the selection, when you are not typing in a field.
- Moves together with. On an estimate or a risk event, Link to another block makes two values move together. Drag the slider for the strength. The canvas shows the link as a dashed line. If the correlations cannot all hold at once, a run does not happen and the notice names the pair of blocks.
- Tidy up. Arranges the blocks from inputs to the result.
- Model and Results switch between the canvas and the charts of the last run, the same as on the Analysis tab.
The editor saves by itself about a second after your last change. The top bar says Saving, Saved or Not saved. If someone else changed the model in the meantime, a notice says who and when, and you can reload or overwrite.
People who can only view the risk see the canvas and the details without being able to change them.
Run the model
Run simulation runs the model on the Volatilis Simulation Engine and uses one simulation run of your plan, unless the same distributions, events and correlations were run before. A model with only known values and calculations needs no run and is calculated as you edit it.
- While your plan has 20 or more simulation runs left, a change to an estimate, a risk event or a correlation runs the model by itself, up to six times each time you open the editor.
- With fewer runs left, the editor only runs when you select Run simulation and says how many runs are left.
- With no runs left, or when the engine is not set up on the server, the editor says so and the model shows no numbers.
If a model has errors, the notice lists them and Run simulation is not available until they are fixed.
Results
On the Analysis tab, a risk with a model shows the stored result of its last run. Viewing the tab never starts a run and costs no simulation run.
- Figures. Expected downside per year, 1 in 20 years loss, 1 in 200 years loss (red when it is above your risk capacity) and Chance of a loss in a year.
- A year in total. The yearly loss of all simulated years. Years without a loss are not drawn, and a note says how many they are. A dashed line marks the 1 in 200 loss. If the result block has a target, a second line marks it and a sentence gives the chance that a year costs more.
- What moves the result, Share of the spread and Is the average stable? show which blocks drive the loss and whether the run was long enough. See Reading the charts.
- Check these figures. A note when a block was undefined in some simulated years (for example a division by zero), or when the result is negative in some years. Those years count as no loss in the figures of the risk.
- A line below the charts names the engine, the number of iterations and the run time, for a model with estimates or events.
When the model has no numbers yet, the tab says why:
| Message | What to do |
|---|---|
| Run the model to see numbers | Open the model and run it. |
| Fix the model so it can run. | Open the model and fix the errors that are listed. |
| The Volatilis Simulation Engine is not set up on this server, so the model cannot run. | Ask your administrator. |
| Your plan has no simulation runs left this month. | Wait for the next month or see the plans. |
A model run uses one simulation run of your plan. A run is free when the model uses the same distributions, events and correlations as an earlier run: changing a formula, a constant or a connection is calculated again from the stored samples. A model with only known values and calculations needs no run.
If correlations cannot all hold at once, a run does not happen. The notice then names each pair of blocks, the correlation you chose and the range that would fit.
Build with the assistant
The assistant builds and edits the model for you. You need the right to edit the risk, and the assistant has to be set up on the server. Without it the editor shows no assistant and works as described above.
Describe your model in plain words
Write down how the loss comes about, in your own words: what can happen, how often and what it costs. The assistant builds the blocks from that text.
- Empty canvas. A model without blocks shows the card Describe your model. Type your description, or, on a wider screen, select one of the Examples to fill the box (a phone does not show them), then select Create the blocks. Nothing is sent until you select the button. Answer a few questions on the same card starts the Guided start instead.
- Model with blocks. A message bar at the bottom of the canvas takes a change or a whole model. Press / to jump to it, and Enter or the send button to send. It opens the assistant panel.
- Replace the current model. In the panel, this checkbox makes the assistant start from an empty model for one message. Your blocks stay until you apply, and the proposal lists every block it removes.
- Layout. A model built from nothing is arranged from inputs to the result before you see it, and Apply stores that layout.
Each message uses one AI draft of your plan, and the proposal still needs Apply. A long description can reach the limits of one request. The assistant then stops early and says so, and you can send "continue".
Chat with the assistant
Select Assistant in the top bar, say what the model should show, and send the message. For example: "Add a ransomware event with a yearly chance of 5 percent and a recovery cost between 80,000 and 400,000", or "Build a first model for this risk".
The assistant reads the risk (title, description, cause, consequence, category), your currency and risk capacity, and the model as it is on the canvas, including edits that are not saved yet. It also sees the last six messages of the conversation. It then changes the model step by step, checks after each step that the model still works, and answers in plain words with a list of what it changed. It picks ranges and chances itself when you do not give them and says so in its reply, so check them before you rely on them.
Nothing is saved while you talk to the assistant:
- The canvas shows the proposal, read-only. New blocks have a solid outline, changed blocks a dashed one. Removed blocks are listed in the panel. While a proposal is open you cannot edit the model; a follow-up message builds on the open proposal.
- Apply takes the proposal into the model. The editor then saves it like any other edit, and the audit log marks the change as AI assisted.
- Discard drops the proposal and leaves the model as it was.
The assistant works on the canvas only. It does not run the simulation and cannot read other risks or your documents. The assistant is told to treat text in the risk, in block labels and in notes as data, not as instructions. It can still be misled, so check every proposal before you apply it. If it cannot turn a request into a valid model within the model limits, it says so and your model stays unchanged. A request with a very large or unclear scope works better in small steps.
Each message to the assistant uses one AI draft of your plan. If AI is not set up on the server, the panel says "AI is not configured for this workspace." When your plan has no AI drafts left, it says so and points to Billing in Settings. See Usage and quotas.
Guided start
Build a model opens the Guided start: a few plain questions, no statistics needed, that end in a starter model for the risk. If you would rather draw the model yourself, select Start with a blank canvas: in the How do you want to start? question when the assistant is set up (then Continue), otherwise on the first step of the Guided start. That gives the risk a model with one empty Yearly loss result, as before. When the assistant is not set up, the editor shows Answer a few questions on an empty canvas, so you can start the questions from there too. With the assistant, the card Describe your model on an empty canvas has the same button.
The questions go in this order, and each answer decides the next question:
- Risk: the name of the risk, filled in with the title of the risk. Amounts are in the currency of your organization.
- Situation: either a risk event that may happen, or something that will happen with only its size uncertain.
- Frequency (risk events only): once, or several times a year. Once asks for the chance this year in percent. Several times asks for the average number of events a year.
- Impact: many possible outcomes that you give as a range, or a few fixed scenarios.
- What you know (for a range): only the smallest impact, the smallest and the largest, or neither. With the smallest and the largest, Most likely asks whether one value in between is more likely than the rest.
- Likelihoods (for scenarios): whether you can say how likely each scenario is. If not, all scenarios count as equally likely.
- Numbers: the amounts, or up to eight scenarios with their likelihoods, which must add up to 100%.
- Summary: your answers in plain words. Create model stores the model and opens the editor.
The answers pick the distribution for you:
| You know | The model uses |
|---|---|
| Only the smallest impact | A skewed range, never below zero, from a low case and a high case (lognormal) |
| Smallest, largest and a most likely value | A three-point estimate (PERT) |
| Smallest and largest, nothing more likely | Every value in the range equally likely (uniform) |
| Neither smallest nor largest | A symmetric bell curve around the middle of your low and high case (normal) |
| Fixed scenarios | One block that picks a scenario by chance, and a calculation with your amounts |
The starter model has the risk as an Estimate or a Risk event, the Yearly loss result, which becomes the risk's yearly loss, and a Note that lists your answers in plain words. Scenarios have no block of their own. The engine has no scenario type, so the model uses a Scenario draw, a uniform estimate between 0 and 1, and a Calculation with a formula that picks the amount: if(scenario_draw < 0.5, 100000, if(scenario_draw < 0.85, 250000, 1000000)). You can change the amounts and the cut-off values in the formula. If a risk event can happen several times a year and you give scenarios, the model has one estimate per scenario that counts how often that scenario happens, so that the events of one year can differ in size.
Nothing is simulated when you create the model. The risk has no loss figures until the model has run, as described above.
Exports and report
Export on the Analysis tab and in the top bar of the editor offers these downloads:
| Choice | File | What it holds |
|---|---|---|
| Python script | .py | A script that runs the model with numpy and prints the mean annual loss, the 95th percentile, the 99.5% value at risk and the expected shortfall. |
| R script | .R | The same in base R. |
| JSON | .json | The model document with the risk code, title and currency. |
| Component list (CSV) | .csv | One row per block, for a spreadsheet. |
Good to know:
- The scripts run outside GRC and need no connection to it. They draw their own random numbers, so their figures match the model results statistically, not draw by draw. You can pass the number of iterations and a seed when you start a script.
- A script can only be written for a model without errors. Otherwise the export names the first problems, such as "Fix the model before exporting code". JSON and the component list always work.
- The editor saves your latest changes first, so the file matches what you see.
- Exporting needs the Export right on Risks. All standard roles that can see risks have it. A custom role needs it added. Without it the four downloads are disabled and the menu says so. Every download is written to the audit log.
Report opens a printable page at /risks/<id>/model/report. Anyone who can view the risk can open it. It shows the risk code, title, owner and currency, the time of the last run, every block of the model (type, distribution and values or formula, unit and description), the correlations, and the same figures and charts as the Analysis tab. Opening the report never starts a run: it shows the stored result and says when it comes from. Use Print / save PDF to print it or save it as a PDF. The results start on a new page.
Quantification
Put a loss model on a risk with four plain steps, read the expected downside and the 1 in 20 and 1 in 200 year loss, calibrate with your own incidents and matrix, and understand the simulation runs.
Reading the charts
How to read the loss curve, the yearly histogram, the capacity charts, the heat map, the indicator trend, the test plan bar and the board report charts, with worked examples and common misreadings.