We recommend reading this documentation on pkgdown which renders math nicely.
https://pkg.mitchelloharawild.com/distributional/reference/dist_sample.html
In the following, let \(X\) be a random variable with sample
\(x_1, x_2, \ldots, x_n\) of size \(n\).
Support: The observed range of the sample
Mean (univariate):
$$
\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i
$$
Mean (multivariate): Computed independently for each variable.
Variance (univariate):
$$
s^2 = \frac{1}{n-1} \sum_{i=1}^{n} (x_i - \bar{x})^2
$$
Covariance (multivariate): The sample covariance matrix.
Skewness (univariate):
$$
g_1 = \frac{\sqrt{n} \sum_{i=1}^{n} (x_i - \bar{x})^3}{\left(\sum_{i=1}^{n} (x_i - \bar{x})^2\right)^{3/2}} \left(1 - \frac{1}{n}\right)^{3/2}
$$
Probability density function: Approximated numerically using
kernel density estimation.
Cumulative distribution function (univariate):
$$
F(q) = \frac{1}{n} \sum_{i=1}^{n} I(x_i \leq q)
$$
where \(I(\cdot)\) is the indicator function.
Cumulative distribution function (multivariate):
$$
F(\mathbf{q}) = \frac{1}{n} \sum_{i=1}^{n} I(\mathbf{x}_i \leq \mathbf{q})
$$
where the inequality is applied element-wise.
Quantile function (univariate): The sample quantile, computed using
the specified quantile type (see stats::quantile()).
Quantile function (multivariate): Marginal quantiles are computed
independently for each variable.
Random generation: Bootstrap sampling with replacement from the
empirical sample.