|
89 | 89 | "\n",
|
90 | 90 | "### Parent and Child relationships\n",
|
91 | 91 | "\n",
|
92 |
| - "To assist with terminology, and to be consistent with PyMC's documentation, we introduce *parent and children* variables. \n", |
| 92 | + "To assist with terminology, and to be consistent with PyMC's documentation, we introduce *parent and child* variables. \n", |
93 | 93 | "\n",
|
94 | 94 | "* *parent variables* are variables that influence another variable. \n",
|
95 | 95 | "\n",
|
96 |
| - "* *children variable* are variables that are affected by other variables, i.e. are the subject of parent variables. \n", |
| 96 | + "* *child variable* are variables that are affected by other variables, i.e. are the subject of parent variables. \n", |
97 | 97 | "\n",
|
98 |
| - "Variables can be both parent and children variables. For example, consider the PyMC code below" |
| 98 | + "Variables can be both parents and children. For example, consider the PyMC code below" |
99 | 99 | ]
|
100 | 100 | },
|
101 | 101 | {
|
|
178 | 178 | "source": [
|
179 | 179 | "### PyMC Variables\n",
|
180 | 180 | "\n",
|
181 |
| - "All PyMC variables also expose a `value` attribute. This method produces the *current* (possible random) value of the variable, given the variable's parents. To use the same variables from before:" |
| 181 | + "All PyMC variables also expose a `value` attribute. This method produces the *current* (possibly random) value of the variable, given the variable's parents. To use the same variables from before:" |
182 | 182 | ]
|
183 | 183 | },
|
184 | 184 | {
|
|
240 | 240 | "\n",
|
241 | 241 | "Rather than creating a Python array of stochastic variables, addressing the `size` keyword in the call to a `Stochastic` variable creates multivariate array of (independent) stochastic variables. The array behaves like a Numpy array when used like one, and references to its `value` attribute return Numpy arrays. \n",
|
242 | 242 | "\n",
|
243 |
| - "The also solves the annoying case where you may have many variables $\\beta_i, \\; i = 1,...,N$ you wish to model. Instead of creating arbitrary names and variables for each one, like:\n", |
| 243 | + "The `size` argument also solves the annoying case where you may have many variables $\\beta_i, \\; i = 1,...,N$ you wish to model. Instead of creating arbitrary names and variables for each one, like:\n", |
244 | 244 | "\n",
|
245 | 245 | " beta_1 = mc.Uniform( \"beta_1\", 0, 1)\n",
|
246 | 246 | " beta_2 = mc.Uniform( \"beta_2\", 0, 1)\n",
|
|
349 | 349 | "source": [
|
350 | 350 | "#### Determinstic variables\n",
|
351 | 351 | "\n",
|
352 |
| - "Since most variables you will be modeling are stochastic, we distinguish deterministic variables with a `pymc.deterministic` wrapper. If you are unfamiliar with Python wrappers, that's no problem. Just preppend the `pymc.deterministic` and your good to go. No need to know know more. Preprending with the wrapper is the easist way, but not the only way, to create deterministic variables. This is not completely true: elementary operations, like addition, exponentials etc. implicity create determinsitic variables. " |
| 352 | + "Since most variables you will be modeling are stochastic, we distinguish deterministic variables with a `pymc.deterministic` wrapper. If you are unfamiliar with Python wrappers (also called decorators), that's no problem. Just preppend the `pymc.deterministic` decorator and you're good to go. No need to know know more. Preprending with the wrapper is the easist way, but not the only way, to create deterministic variables. This is not completely true: elementary operations, like addition, exponentials etc. implicity create determinsitic variables. " |
353 | 353 | ]
|
354 | 354 | },
|
355 | 355 | {
|
|
0 commit comments