You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/specs/stdlib_stats_distribution_normal.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ Experimental
14
14
15
15
### Description
16
16
17
-
A normal continuous random variate distribution, also known as Gaussian, or Gauss or Laplace-Gauss distribution. The location `loc` specifies the mean or expectation. The `scale` specifies the standard deviation.
17
+
A normal continuous random variate distribution, also known as Gaussian, or Gauss or Laplace-Gauss distribution. The location `loc` specifies the mean or expectation ($\mu$). The `scale` specifies the standard deviation ($\sigma$).
18
18
19
-
Without argument the function returns a standard normal distributed random variate N(0,1).
19
+
Without argument, the function returns a standard normal distributed random variate $N(0,1)$.
20
20
21
-
With two arguments, the function returns a normal distributed random variate N(loc, scale^2). For complex arguments, the real and imaginary parts are independent of each other.
21
+
With two arguments, the function returns a normal distributed random variate $N(\mu=\text{loc}, \sigma^2=\text{scale}^2)$. For complex arguments, the real and imaginary parts are independent of each other.
22
22
23
-
With three arguments, the function returns a rank one array of normal distributed random variates.
23
+
With three arguments, the function returns a rank-1 array of normal distributed random variates.
24
24
25
25
Note: the algorithm used for generating normal random variates is fundamentally limited to double precision.
26
26
@@ -44,7 +44,7 @@ Elemental function (passing both `loc` and `scale`).
44
44
45
45
### Return value
46
46
47
-
The result is a scalar or rank one array, with a size of `array_size`, and as the same type of `scale` and `loc`.
47
+
The result is a scalar or rank-1 array, with a size of `array_size`, and as the same type of `scale` and `loc`.
48
48
49
49
### Example
50
50
@@ -62,11 +62,11 @@ Experimental
62
62
63
63
The probability density function (pdf) of the single real variable normal distribution:
For complex varible (x + y i) with independent real x and imaginary y parts, the joint probability density function is the product of corresponding marginal pdf of real and imaginary pdf (ref. "Probability and Random Processes with Applications to Signal Processing and Communications", 2nd ed., Scott L. Miller and Donald Childers, 2012, p.197):
67
+
For a complex varible $z=(x + y i)$ with independent real $x$ and imaginary $y$ parts, the joint probability density function is the product of the the corresponding real and imaginary marginal pdfs (ref. "Probability and Random Processes with Applications to Signal Processing and Communications", 2nd ed., Scott L. Miller and Donald Childers, 2012, p.197):
68
68
69
-
$$f(x + y \mathit{i}) = f(x) f(y) = \frac{1}{2\sigma_{x}\sigma_{y}} e^{-\frac{1}{2}[(\frac{x-\mu}{\sigma_{x}})^{2}+(\frac{y-\nu}{\sigma_{y}})^{2}]}$$
69
+
$$f(x + y \mathit{i}) = f(x) f(y) = \frac{1}{2\sigma_{x}\sigma_{y}} \exp{\left[-\frac{1}{2}\left(\left(\frac{x-\mu_x}{\sigma_{x}}\right)^{2}+\left(\frac{y-\mu_y}{\sigma_{y}}\right)^{2}\right)\right]}$$
70
70
71
71
### Syntax
72
72
@@ -88,7 +88,7 @@ All three arguments must have the same type.
88
88
89
89
### Return value
90
90
91
-
The result is a scalar or an array, with a shape conformable to arguments, and as the same type of input arguments.
91
+
The result is a scalar or an array, with a shape conformable to the arguments, and of the same type as the input arguments.
92
92
93
93
### Example
94
94
@@ -106,11 +106,13 @@ Experimental
106
106
107
107
Cumulative distribution function of the single real variable normal distribution:
For the complex variable (x + y i) with independent real x and imaginary y parts, the joint cumulative distribution function is the product of corresponding marginal cdf of real and imaginary cdf (ref. "Probability and Random Processes with Applications to Signal Processing and Communications", 2nd ed., Scott L. Miller and Donald Childers, 2012, p.197):
111
+
For the complex variable $z=(x + y i)$ with independent real $x$ and imaginary $y$ parts, the joint cumulative distribution function is the product of the corresponding real and imaginary marginal cdfs (ref. "Probability and Random Processes with Applications to Signal Processing and Communications", 2nd ed., Scott L. Miller and Donald Childers, 2012, p.197):
0 commit comments