Skip to content

Commit deefd7e

Browse files
authored
Updated pymc.Normal docstring (#5487)
* Updated pymc.Normal docstring * Made data type corrections in normal distribution docstrings * Used tensor_like in the normal distribution docstring * Addressed reviewer comments for tau dicstring in normal distribution
1 parent 2b81f4e commit deefd7e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

pymc/distributions/continuous.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ class Normal(Continuous):
499499
\tau = \dfrac{1}{\sigma^2}
500500
501501
.. plot::
502+
:context: close-figs
502503
503504
import matplotlib.pyplot as plt
504505
import numpy as np
@@ -524,11 +525,12 @@ class Normal(Continuous):
524525
525526
Parameters
526527
----------
527-
mu: float
528+
mu : tensor_like of float, default 0
528529
Mean.
529-
sigma: float
530+
sigma : tensor_like of float, optional
530531
Standard deviation (sigma > 0) (only required if tau is not specified).
531-
tau: float
532+
Defaults to 1 if neither sigma nor tau is specified.
533+
tau : tensor_like of float, optional
532534
Precision (tau > 0) (only required if sigma is not specified).
533535
534536
Examples
@@ -573,9 +575,13 @@ def logcdf(value, mu, sigma):
573575
574576
Parameters
575577
----------
576-
value: numeric or np.ndarray or `TensorVariable`
578+
value : tensor_like of float
577579
Value(s) for which log CDF is calculated. If the log CDF for multiple
578580
values are desired the values must be provided in a numpy array or `TensorVariable`.
581+
mu : tensor_like of float
582+
Mean.
583+
sigma : tensor_like of float
584+
Standard deviation (sigma > 0).
579585
580586
Returns
581587
-------

0 commit comments

Comments
 (0)