Using the WebSimulator
- For end-users, there are three ways to reach a WebSimulator page:
- Open a web browser and go to the WebSimulator homepage at https://simulator.bayesialab.com
- In the header, you can filter by Field of Study, Analysis Type, and Model Type.
- Only models that were published using a public account will appear here.
- Click on any of the available models to open them.
- You open a specific URL in the format
https://simulator.bayesialab.com/#!simulator/Identifierand directly go to that particular WebSimulator page.
- A public WebSimulator page opens immediately.
- A private WebSimulator page prompts you for a password.
- Upon opening the page of the selected model, you see the layout specified by the designer of the WebSimulator.
- The WebSimulator features two panels:
- Input Panel (left)
- Output Panel (right)
- At the top of the Input Panel, a drop-down menu offers you other available WebSimulators, which you can switch to at any time by clicking on the corresponding list item.
- Selecting the first (blank) item in the list closes your current WebSimulator and loads a blank page.
- To the right of WebSimulator Selector, there are two icons:
- Clicking on the information iconbrings up the Description of the current WebSimulator.
- Clicking on the eye icondisplays the Image associated with the current WebSimulator.
Please note that we use "observation" and "piece of evidence" as well as "setting evidence," "setting observations," and "observing" interchangeably.
- Depending on the type of Input, you can set an observation in a number of ways:
- Moving a slider
- Selecting an item from a drop-down menu
- Selecting a switch
- Typing in a numeric value
- Upon setting evidence on an Input, the Observed checkbox under the corresponding Input is checked.
- With that, this new evidence is set to the node in the underlying Bayesian network, which computes the posterior probability distributions of all other nodes in the network.
- As a result, the WebSimulator displays updated Inputs and Outputs.
Note that a Bayesian network always performs omnidirectional inference, so new evidence can affect all nodes, not just the Outputs (see What is a Bayesian Network? Probabilistic Inference)
- There are two ways to remove any evidence you have set:
- You click the Eraser iconin the upper right corner of the page. This erases all pieces of evidence set thus far.
- Alternatively, you can remove the evidence set on an individual Input by unchecking the Observed box.
- To highlight the impact of your observations on the Outputs, you have to select the option
Display Variationsavailable by clicking the Options iconin the upper right corner of the page.
- Now, the Outputs display the changes that resulted from setting the most recent piece of evidence.
- The deltas are shown in green and red for positive and negative changes respectively.
- For gauge-style Outputs, the variations are also highlighted with green and red arcs for positive and negative impacts, respectively.
- By default, the variations are calculated with respect to the previous state, i.e., before setting the most recent observation.
- This shows the incremental change brought to the Outputs by each piece of evidence.
- However, if you are interested in the impact of a set of multiple observations, you first need to set a reference state:
- Click the Gear iconto open the Options drop-down menu.
Store Reference State.
- The deltas shown on the Outputs now are calculated based on the Reference State.
- Observations Sets allow you to save sets of evidence to retrieve and review them later without having to enter each observation again individually.
- You can also share your saved Observation Sets with other end-users for their review.
- Furthermore, BayesiaLab users can save their Observation Sets, such as the best solutions from an optimization performed with BayesiaLab, and share them with WebSimulator users so they can review the Observation Sets that are proposed as optimal solutions.
- At any time in the WebSimulator, you can save the state of observations as an Observation Set. This even includes non-evidence, i.e., Inputs that have not been observed. Thus, your Observation Sets can include observed and not-observed Inputs.
- To save an Observation Set, click the Plus iconfrom the Icon Bar.
- A pop-up window prompts you to specify a name for the to-be-stored Observation Set.
- Enter the name and click OK.
- Now, an additional iconin the Icon Bar indicates the presence of your saved Observation Set.
- The new Observation Set is like a running tab to which you can add further observations under the same Observation Set Name.
- Simply click the Plus iconagain, and you can add to the same Observation Set Name or create a new Observation Set Name.
- If you select an existing Observation Set Name, the evidence you save will be sequentially numbered, starting with 0.
- If you click on the Observation Set iconin the Icon Bar, a drop-down menu lists all saved Observation Sets with their name and sequence number.
- Click on the Observation Set you wish to restore, and the WebSimulator sets all observations accordingly and performs inference on that basis.
It is essential to realize that the WebSimulator is not merely returning saved results. Instead, the WebSimulator only retrieves the saved Inputs and then performs inference again on that basis. Hence, all results shown are freshly recalculated.
- You can clear all Observation Sets that are currently stored in your WebSimulator session.
- Click the gearicon, then select
Observations > Clear Stored Observations.
- By default, your stored Observations Sets only remain available during your current WebSimulator session. If you closed your browser and reopened the same WebSimulator again, all Observation Sets would be gone.
- To save Observation Sets permanently, you can export them to a Scenario File.
- Click on the gear iconin the Icon Bar, then select
Observations > Export Stored Observations.
- Once you confirm, your browser saves a file named
observations.txtto your local drive.
- This file can be shared with other WebSimulator and BayesiaLab users so they can retrieve and replicate your saved Observation Sets.
The format of this Scenario File is identical to the Evidence Scenario File produced by BayesiaLab. As such, it is an ideal format for exchanging scenarios for review and discussion between BayesiaLab users and WebSimulator users.
- Similarly, you can load a locally saved Scenario File back into the WebSimulator.
- Click on the Gear iconin the Icon Bar, then select
Observations > Import Observations.
Please note the important distinction between temporarily storing an Observation Set for the duration of your WebSimulator session and permanently saving an Observation Set to an external Scenario File on a local drive.
- Whenever you have stored Observation Sets available in your WebSimulator — indicated by the Observation Set icon — you can enter the so-called Simulation Mode. This mode allows you to scroll through all available Observation Sets easily.
- Click on the gear iconin the Icon Bar, then select Simulation Mode.
- With the Simulation Mode activated, the Icon Bar features two additional icons as scroll buttons:.
- You can now step through all Observation Sets backward and forward.
- The name of the current Observation Set is shown on a slide-in label in the bottom right corner of your WebSimulator window.
- You can further modify any Observation Set retrieved in that fashion; however, you can't save that modified evidence as a new Observation Set. To do so, you will first need to exit the Simulation Mode.
- Beyond the default layout specified by the publisher of the WebSimulator, you can choose your own layout to optimize the WebSimulator of your screen size, resolution, and format.
- You can choose the layouts separately for the Input and the Output panel, but the options are the same for both.
- Click the gearicon, then select
Layout > Inputor
Layout > Outputand pick the desired layout: