Skip to content

Commit c7df248

Browse files
authored
Merge pull request #314 from CITCOM-project/docs
Docs
2 parents 1cdfb78 + 4dcaf21 commit c7df248

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ coverage.xml
5555

5656
# Sphinx documentation
5757
docs/build/
58+
docs/source/autoapi
5859

5960
# v/docs/build/scode
6061
.vscode/
@@ -63,4 +64,4 @@ docs/build/
6364
temp/
6465

6566
# log files
66-
*.log
67+
*.log

docs/source/modules/causal_specification.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Causal Specification
1414
- A causal specification is simply the combination of these components: a series of requirements for the scenario-under-test and a causal DAG representing causality
1515
amongst the inputs and outputs. We will discuss these in more detail below.
1616

17+
- Collectively, the components of the causal specification provide both contextual information in the form of constraints and requirements, as well as causal information in the form of a causal DAG.
18+
Later on, these components will be used to design statistical experiments that can answer causal questions about the scenario-under-test, such as `Does opening a window impair the viruses ability to spread?`
19+
1720
Scenario Requirements
1821
---------------------
1922

@@ -30,14 +33,18 @@ Causal DAG
3033
----------
3134

3235
In order to apply CI techniques, we need to capture causality amongst the inputs and outputs in the scenario-under-test.
33-
Therefore, for each scenario, the user must define a causal DAG. While there is generally no guidance/algorithm that can be followed to create a causal DAG,
34-
there are a couple of requirements that should be satisfied.
36+
Therefore, for each scenario, the user must define a causal DAG.
37+
As an example, consider the DAG shown below for the Poisson line process, which can be found in our `examples` directory.
38+
Here, the model has three inputs: `width`, `height`, and `intensity`.
39+
These inputs control the number of lines (`num_lines_abs`) and polygons (`num_shapes_abs`) that are drawn, which then feed into the numbers of lines (`num_lines_unit`) and polygons (`num_shapes_unit`) per unit area.
40+
Note though that the `num_lines_abs` does not have a direct causal effect on `num_shapes_unit`, since the number of polygons per unit area is defined entirely by the total number of polygons and the area of the sampling window.
41+
42+
.. literalinclude:: ../../../examples/poisson-line-process/dag.dot
43+
:language: graphviz
44+
:caption: Example Causal DAG for the Poisson line process example.
3545

46+
Unfortunately, there is no universally applicable guidance or an algorithm that can be followed to create a causal DAG, there are three general requirements that should be satisfied.
3647

3748
#. The DAG must contain all inputs and outputs involved in the scenario-under-test.
3849
#. If there are any other variables which are not directly involved but are expected to have a causal relationship with the variables in the scenario-under-test, these should also be added to the graph. For example, the size of the room might be partially caused by the simulated location (house styles, average wealth etc.), in which case location should be added to the DAG with an edge to room size and any other variables it is deemed to influence.
3950
#. If in doubt, add an edge. It is a stronger assumption to exclude an edge (X and Y are independent) than to include one (X has some potentially negligiable causal effect on Y).
40-
41-
- Collectively, the components of the causal specification provide both contextual information in the form of constraints and requirements,
42-
as well as causal information in the form of a causal DAG. Later on, these components will be used to design statistical experiments that
43-
can answer causal questions about the scenario-under-test, such as `Does opening a window impair the viruses ability to spread?`

paper/paper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ authors:
3434
orcid: 0000-0003-2134-6548
3535
affiliation: 1
3636
- name: Robert M. Hierons
37-
orcid: 0000-0003-2134-6548
37+
orcid: 0000-0002-4771-1446
3838
affiliation: 1
3939
affiliations:
4040
- name: University of Sheffield, UK

0 commit comments

Comments
 (0)