Standard deviation (standard_deviation)
The sample standard deviation of a list of numbers, or that of a distribution.
How to write it
standard_deviation(data)
The square root of the sample variance, which divides by n - 1.
- data
- At least two numbers. Symbols are allowed. Takes a list.
standard_deviation(distribution)
The square root of the variance of a distribution.
- distribution
- A distribution such as normal_distribution(mu, sigma). Takes an expression.
standard_deviation(process)
The square root of the variance of a stochastic process at a time.
- process
- A process at a time, written construct(p, t), or p(t) for a stored process p. Takes an expression.
Examples
standard_deviation([2, 4, 4, 4, 5, 5, 7, 9])In the solver,
Open in the solverstandard_deviation([2, 4, 4, 4, 5, 5, 7, 9])gives4sqrt(14)/7.standard_deviation(poisson_distribution(lambda))In the solver,
Open in the solverstandard_deviation(poisson_distribution(lambda))givessqrt(lambda).standard_deviation(exponential_distribution(lambda))In the solver,
Open in the solverstandard_deviation(exponential_distribution(lambda))gives1/lambda.standard_deviation(construct(ornstein_uhlenbeck_process(mu, sigma, theta, x0), t))In the solver,
Open in the solverstandard_deviation(construct(ornstein_uhlenbeck_process(mu, sigma, theta, x0), t))givessqrt(2)*sqrt(sigma^2*(1 - e^(-2t*theta))/theta)/2 if theta != 0.
Functions its examples use
- poisson_distribution
The number of events in a period when they come at an average rate lambda.
- exponential_distribution
The waiting time for events that come at rate lambda.
- construct
Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
- ornstein_uhlenbeck_process
A process pulled toward mu at rate theta, with noise sigma, started at x0.
Related functions
- stationary_distribution
The law a process settles into over time, when it has one.
- quantile
The smallest value with at least a share q of a list, or a chance q of a distribution, at or below it.
- uniform_distribution
The continuous distribution that is equally likely anywhere between a and b.
- probability
The probability that a condition holds for a variable with a distribution.
- variance
The sample variance of a list of numbers, or the variance of a distribution.
- weibull_distribution
The lifetime of a unit whose chance of surviving to time x is e^(-(x/scale)^shape).