3. Statistics Python Functions¶
3.1. rnorm
¶
-
statspy.basics.
rnorm
(n, mean=0, sd=1)[source]¶ Random generation for the normal distribution with mean equal to mean and standard deviation equation to sd same functions as rnorm in r:
rnorm(n, mean=0, sd=1)
Parameters: - n – the number of the observations
- mean – vector of means
- sd – vector of standard deviations
Returns: the vector of the random numbers
Author: Wenqiang Feng
Email:
3.2. dnorm
¶
-
statspy.basics.
dnorm
(x, mean=0, sd=1, log=False)[source] Density of the normal distribution with mean equal to mean and standard deviation equation to sd same functions as rnorm in r:
dnorm(x, mean=0, sd=1, log=FALSE)
Parameters: - x – the vector od quantiles
- mean – vector of means
- sd – vector of standard deviations
Returns: the list of the density
Author: Wenqiang Feng
Email:
3.3. runif
¶
-
statspy.basics.
runif
(n, min=0, max=1)[source] Random generation from the uniform distribution same functions as rnorm in r:
runif(n, min=0, max=1)
Parameters: - n – the number of the observations
- min – the lower limit of the distribution
- max – the upper limit of the distribution
Returns: the list of n uniform random numers
Author: Wenqiang Feng
Email: