and we want to compute the standard deviation of the result assuming that a, b and c are normal distributed independent variables. Clearly the problem is quite naive but we want to address is as if we will need a cluster to solve it.
and we want to compute the standard deviation of the result assuming that a, b and c are normal distributed independent variables. Clearly the problem is quite naive but we want to address is as if we will need a cluster to solve it.
We can partition the problem in a three conscutive operations
We can partition the problem in a three conscutive operations
1. A sum: $(a+b)$
1. A sum: $(a+b)$
2. A multiplication of the result 1 with c: $(a+b)\times c$
2. A multiplication of the result 1 with c: $(a+b)\times c$
3. A sqrt of the result of 2: $\sqrt{|(a+b)\times c|}$
3. A sqrt of the result of 2: $\sqrt{|(a+b)\times c|}$
See https://gitlab.cern.ch/abpcomputing/sandbox/tree_maker for the installation.
See https://gitlab.cern.ch/abpcomputing/sandbox/tree_maker for the installation.
Documentation (only started, you need to be on GPN) can be found at https://acc-py.web.cern.ch/gitlab/abpcomputing/sandbox/tree_maker/docs/master/.
Documentation (only started, you need to be on GPN) can be found at https://acc-py.web.cern.ch/gitlab/abpcomputing/sandbox/tree_maker/docs/master/.
%% Cell type:code id:ff6ab8d0 tags:
%% Cell type:code id:2263dcb4 tags:
``` python
``` python
importtree_maker
importtree_maker
fromtree_makerimportNodeJob
fromtree_makerimportNodeJob
```
```
%% Cell type:code id:71eb56f4 tags:
%% Cell type:code id:06366b27 tags:
``` python
``` python
# Clearly for this easy task on can do all in the very same python kernel
# Clearly for this easy task on can do all in the very same python kernel