Statistics
Symbolic probability distributions, joint laws, and random-variable algebra. A
distribution node names a parametrised family; a random variable node names
a draw from a distribution. Distinct draws are not independent unless they share
an explicit independent-product law. The complete distribution registry
lists every accepted family, its ordered parameters, support, and closed-form
operations. The canonical names for the gamma and beta families are
gamma_distribution and beta_distribution.
distribution#
Raw WebAssembly: Default context
distribution(name: string, parameters: Expression[]): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.distribution
distribution(name: string, parameters: Expression[]): ExpressionBuild a distribution node from a family name and its ordered parameter list
(e.g. distribution("normal", [mean, standard_deviation])). An unknown name
raises an invalid-option error. A parameter count that does not match the
family's arity raises a collection-shape error; it does not create an
undefined mathematical value.
random_variable#
Not exposed by the WASM / JavaScript bindings. Available as Context.random_variable in Python, UniffiSession.randomVariable in Kotlin, UniffiSession.randomVariable in Swift, api::probability::Session::random_variable in Rust.
Build a random variable named name drawn from distribution. Each call creates
a distinct coordinate identity, even when its display name is reused.
multivariate_normal#
Not exposed by the WASM / JavaScript bindings. Available as Context.multivariate_normal in Python, UniffiSession.multivariateNormal in Kotlin, UniffiSession.multivariateNormal in Swift, api::probability::Session::multivariate_normal in Rust.
Construct an ordinary multivariate normal law from an ordered real mean vector and a symmetric positive-definite covariance matrix.
multinomial_distribution#
Not exposed by the WASM / JavaScript bindings. Available as Context.multinomial_distribution in Python, UniffiSession.multinomialDistribution in Kotlin, UniffiSession.multinomialDistribution in Swift, api::probability::Session::multinomial_distribution in Rust.
Construct a multinomial law from a nonnegative integer trial count and ordered category probabilities summing exactly to one.
dirichlet#
Raw WebAssembly: Default context
dirichlet(parameters: Expression[]): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.dirichlet
dirichlet(parameters: Expression[]): ExpressionConstruct a Dirichlet law. Its density is relative to intrinsic simplex measure, not ambient Euclidean Lebesgue measure.
independent_product#
Not exposed by the WASM / JavaScript bindings. Available as Context.independent_product in Python, UniffiSession.independentProduct in Kotlin, UniffiSession.independentProduct in Swift, api::probability::Session::independent_product in Rust.
Construct the joint product law that explicitly certifies independence.
discrete_markov_chain#
Raw WebAssembly: Default context
discreteMarkovChain(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.discreteMarkovChain
discreteMarkovChain(): ExpressionConstruct a finite-state time-homogeneous Markov chain with ordered distinct state labels, an exact row-stochastic transition matrix, and an exact initial row law.
transition_probability#
Raw WebAssembly: Default context
transitionProbability(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.transitionProbability
transitionProbability(): ExpressionReturn the exact finite-horizon transition probability for a finite Markov chain. The horizon must be a proved nonnegative integer.
stationary_distributions#
Raw WebAssembly: Default context
stationaryDistributions(): MatrixCalling forms
Raw WebAssembly: Explicit context: Context.stationaryDistributions
stationaryDistributions(): MatrixReturn one row for every extreme stationary law. All stationary laws are the convex combinations of these rows in the process state order.
hitting_probability#
Raw WebAssembly: Default context
hittingProbability(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.hittingProbability
hittingProbability(): ExpressionReturn the exact probability that the chain ever reaches one of the target
states from start_state.
expected_hitting_time#
Raw WebAssembly: Default context
expectedHittingTime(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.expectedHittingTime
expectedHittingTime(): ExpressionReturn the exact expected time to reach a target state set. The result is positive infinity when the target is not reached almost surely.
affine_process_transformation#
Raw WebAssembly: Default context
affineProcessTransformation(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.affineProcessTransformation
affineProcessTransformation(
name: string,
source: Expression,
multiplier: Expression,
offset: Expression,
): ExpressionConstruct the pointwise affine image offset + multiplier * source of a certified Gaussian process.
independent_gaussian_process_sum#
Raw WebAssembly: Default context
independentGaussianProcessSum(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.independentGaussianProcessSum
independentGaussianProcessSum(
name: string,
first_source: Expression,
second_source: Expression,
): ExpressionConstruct the pointwise sum of two explicitly independent Gaussian processes on the same index domain.
finite_dimensional_random_vector#
Raw WebAssembly: Default context
finiteDimensionalRandomVector(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.finiteDimensionalRandomVector
finiteDimensionalRandomVector(
process: Expression,
indices: Expression[],
coordinate_names: string[],
): ExpressionConstruct the ordered random-vector handle for a finite process slice, using the shared joint-law and conditioning operations.
conditional_process_slice_distribution#
Raw WebAssembly: Default context
conditionalProcessSliceDistribution(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.conditionalProcessSliceDistribution
conditionalProcessSliceDistribution(
process: Expression,
selected_indices: Expression[],
conditioning_indices: Expression[],
conditioning_values: Expression[],
): ExpressionCondition an ordered finite process slice on another ordered slice at explicit values through the shared continuous conditional-law engine. The operation declines or remains unevaluated when the conditioning marginal has no certified density.
independent_process_product#
Raw WebAssembly: Default context
independentProcessProduct(): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.independentProcessProduct
independentProcessProduct(
first_process: Expression,
first_indices: Expression[],
second_process: Expression,
second_indices: Expression[],
): ExpressionConstruct the explicit block-independent joint law of two finite process slices.
product_copula#
Not exposed by the WASM / JavaScript bindings. Available as Context.product_copula in Python, UniffiSession.productCopula in Kotlin, UniffiSession.productCopula in Swift, api::probability::Session::product_copula in Rust.
Construct the product copula of at least two continuous marginals with exact CDF and density descriptors. The result is the certified independent product law.
gaussian_copula#
Not exposed by the WASM / JavaScript bindings. Available as Context.gaussian_copula in Python, UniffiSession.gaussianCopula in Kotlin, UniffiSession.gaussianCopula in Swift, api::probability::Session::gaussian_copula in Rust.
Construct a Gaussian copula from continuous marginals and a symmetric positive-semidefinite unit-diagonal correlation matrix. Its density remains unevaluated unless the system gains an exact normal-quantile representation.
archimedean_copula#
Not exposed by the WASM / JavaScript bindings. Available as Context.archimedean_copula in Python, UniffiSession.archimedeanCopula in Kotlin, UniffiSession.archimedeanCopula in Swift, api::probability::Session::archimedean_copula in Rust.
Construct a Clayton, Frank, or Gumbel copula from continuous marginals. The parameter domain is checked exactly; arbitrary generator expressions are not accepted as copulas.
estimate_archimedean_copula_parameter#
Not exposed by the WASM / JavaScript bindings. Available as Context.estimate_archimedean_copula_parameter in Python, UniffiSession.estimateArchimedeanCopulaParameter in Kotlin, UniffiSession.estimateArchimedeanCopulaParameter in Swift, api::probability::Session::estimate_archimedean_copula_parameter in Rust.
Estimate a Clayton or Gumbel parameter by exactly inverting bivariate Kendall's tau. Observations must have exactly two columns and every pairwise order must be exact and strict, so ties and undecidable comparisons decline.
estimate_archimedean_copula_parameter_numeric#
Not exposed by the WASM / JavaScript bindings. Available as Context.estimate_archimedean_copula_parameter_numeric in Python, UniffiSession.estimateArchimedeanCopulaParameterNumeric in Kotlin, UniffiSession.estimateArchimedeanCopulaParameterNumeric in Swift, api::probability::Session::estimate_archimedean_copula_parameter_numeric in Rust.
Explicitly request bracketed numerical Frank-parameter estimation. A result is returned only when the requested bracket and every needed numerical kernel can be certified; otherwise its typed decline explains why.
quantile_numeric#
Not exposed by the WASM / JavaScript bindings. Available as Context.quantile_numeric in Python, UniffiSession.quantileNumeric in Kotlin, UniffiSession.quantileNumeric in Swift, api::probability::Session::quantile_numeric in Rust.
Explicitly invert a scalar continuous CDF on an exact rational bracket. Symbolic probability operations never invoke this numerical operation implicitly.
order_statistic#
Not exposed by the WASM / JavaScript bindings. Available as Context.order_statistic in Python, UniffiSession.orderStatistic in Kotlin, UniffiSession.orderStatistic in Swift, api::probability::Session::order_statistic in Rust.
Construct the rank order statistic of an i.i.d. sample from a scalar law. Both sample size and rank must be positive exact integers, and rank cannot exceed sample size.
minimum#
Raw WebAssembly: Default context
minimum(base_law: Expression, sample_size: Expression): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.minimum
minimum(base_law: Expression, sample_size: Expression): ExpressionConstruct the smallest member of an i.i.d. sample from a scalar law.
maximum#
Raw WebAssembly: Default context
maximum(base_law: Expression, sample_size: Expression): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.maximum
maximum(base_law: Expression, sample_size: Expression): ExpressionConstruct the largest member of an i.i.d. sample from a scalar law.
random_vector#
Not exposed by the WASM / JavaScript bindings. Available as Context.random_vector in Python, UniffiSession.randomVector in Kotlin, UniffiSession.randomVector in Swift, api::probability::Session::random_vector in Rust.
Construct an ordered vector of fresh coordinate handles for a joint law.
joint_distribution#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_distribution in Python, UniffiSession.jointDistribution in Kotlin, UniffiSession.jointDistribution in Swift, api::probability::Session::joint_distribution in Rust.
Return a random vector's joint law.
component#
Raw WebAssembly: Default context
component(random_vector: Expression, position: number): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.component
component(random_vector: Expression, position: number): ExpressionSelect one coordinate by zero-based position.
marginal#
Raw WebAssembly: Default context
marginal(
joint_distribution: Expression,
positions: Uint32Array,
): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.marginal
marginal(
joint_distribution: Expression,
positions: Uint32Array,
): ExpressionReturn the distinct ordered coordinate projection of a joint law.
permute#
Raw WebAssembly: Default context
permute(
joint_distribution: Expression,
permutation: Uint32Array,
): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.permute
permute(
joint_distribution: Expression,
permutation: Uint32Array,
): ExpressionReorder every coordinate by a permutation.
joint_density#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_density in Python, UniffiSession.jointDensity in Kotlin, UniffiSession.jointDensity in Swift, api::probability::Session::joint_density in Rust.
Evaluate an ordinary joint density at an ordered point. Laws without an ordinary density retain an unevaluated query.
intrinsic_simplex_density#
Not exposed by the WASM / JavaScript bindings. Available as Context.intrinsic_simplex_density in Python, UniffiSession.intrinsicSimplexDensity in Kotlin, UniffiSession.intrinsicSimplexDensity in Swift, api::probability::Session::intrinsic_simplex_density in Rust.
Evaluate a Dirichlet density relative to its intrinsic simplex measure.
joint_probability_mass_function#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_probability_mass_function in Python, UniffiSession.jointProbabilityMassFunction in Kotlin, UniffiSession.jointProbabilityMassFunction in Swift, api::probability::Session::joint_probability_mass_function in Rust.
Evaluate a joint point mass at an ordered point.
joint_cumulative_distribution#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_cumulative_distribution in Python, UniffiSession.jointCumulativeDistribution in Kotlin, UniffiSession.jointCumulativeDistribution in Swift, api::probability::Session::joint_cumulative_distribution in Rust.
Evaluate the lower-orthant cumulative distribution at an ordered point.
joint_rectangle_probability#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_rectangle_probability in Python, UniffiSession.jointRectangleProbability in Kotlin, UniffiSession.jointRectangleProbability in Swift, api::probability::Session::joint_rectangle_probability in Rust.
Evaluate the ordered rectangle probability (lower, upper].
joint_support#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_support in Python, UniffiSession.jointSupport in Kotlin, UniffiSession.jointSupport in Swift, api::probability::Session::joint_support in Rust.
Return the exact support of a joint law when available.
joint_raw_moment#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_raw_moment in Python, UniffiSession.jointRawMoment in Kotlin, UniffiSession.jointRawMoment in Swift, api::probability::Session::joint_raw_moment in Rust.
Return an exact multi-index raw moment when known.
joint_mean#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_mean in Python, UniffiSession.jointMean in Kotlin, UniffiSession.jointMean in Swift, api::probability::Session::joint_mean in Rust.
Return the ordered exact mean entries of a joint law.
joint_covariance_matrix#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_covariance_matrix in Python, UniffiSession.jointCovarianceMatrix in Kotlin, UniffiSession.jointCovarianceMatrix in Swift, api::probability::Session::joint_covariance_matrix in Rust.
Return the exact covariance matrix of a joint law.
joint_correlation_matrix#
Not exposed by the WASM / JavaScript bindings. Available as Context.joint_correlation_matrix in Python, UniffiSession.jointCorrelationMatrix in Kotlin, UniffiSession.jointCorrelationMatrix in Swift, api::probability::Session::joint_correlation_matrix in Rust.
Return the correlation matrix when coordinate variances are proved positive.
density#
Raw WebAssembly: Default context
density(random_variable: Expression, point: Expression): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.density
density(random_variable: Expression, point: Expression): ExpressionProbability density (continuous families) or probability mass (discrete
families) of random_variable evaluated at point. Falls back to an
unevaluated structural form when no closed form exists.
cumulative_distribution#
Not exposed by the WASM / JavaScript bindings. Available as Context.cumulative_distribution in Python, UniffiSession.cumulativeDistribution in Kotlin, UniffiSession.cumulativeDistribution in Swift, api::probability::Session::cumulative_distribution in Rust.
Cumulative distribution function of random_variable evaluated at point.
expectation#
Raw WebAssembly: Default context
expectation(
target: Expression,
random_variables: Expression[],
): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.expectation
expectation(
target: Expression,
random_variables: Expression[],
): ExpressionExpectation of target over the listed independent random variables. Linearity
and the constant-factor lift are applied; bare and power-of-random-variable
leaves consume the distribution's mean and raw moments.
variance#
Raw WebAssembly: Default context
variance(target: Expression, random_variables: Expression[]): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.variance
variance(target: Expression, random_variables: Expression[]): ExpressionVariance of target over the listed independent random variables.
covariance#
Raw WebAssembly: Default context
covariance(
left: Expression,
right: Expression,
random_variables: Expression[],
): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.covariance
covariance(
left: Expression,
right: Expression,
random_variables: Expression[],
): ExpressionCovariance of left and right over the listed independent random variables;
zero for independent operands.
probability#
Raw WebAssembly: Default context
probability(
predicate: Expression,
random_variables: Expression[],
): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.probability
probability(
predicate: Expression,
random_variables: Expression[],
): ExpressionProbability that predicate (a tail comparison such as X > t) holds over the
listed independent random variables.
moment#
Raw WebAssembly: Default context
moment(random_variable: Expression, order: Expression): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.moment
moment(random_variable: Expression, order: Expression): ExpressionThe order-th raw moment E[X^order] of random_variable.
cumulant#
Raw WebAssembly: Default context
cumulant(random_variable: Expression, order: Expression): ExpressionCalling forms
Raw WebAssembly: Explicit context: Context.cumulant
cumulant(random_variable: Expression, order: Expression): ExpressionThe order-th cumulant of random_variable.
moment_generating_function#
Not exposed by the WASM / JavaScript bindings. Available as Context.moment_generating_function in Python, UniffiSession.momentGeneratingFunction in Kotlin, UniffiSession.momentGeneratingFunction in Swift, api::probability::Session::moment_generating_function in Rust.
Closed-form moment generating function M_X(t) of random_variable in the
named auxiliary variable, when elementary; otherwise an unevaluated structural
form.
characteristic_function#
Not exposed by the WASM / JavaScript bindings. Available as Context.characteristic_function in Python, UniffiSession.characteristicFunction in Kotlin, UniffiSession.characteristicFunction in Swift, api::probability::Session::characteristic_function in Rust.
Closed-form characteristic function of random_variable in the named
auxiliary variable, when elementary; otherwise an unevaluated structural form.
Example#
This family is not part of the recommended JavaScript facade in this release. Call it through the generated symi.raw layer, whose entries are listed with their wasm-bindgen signatures above, and read Migration for the ownership rules that apply there.
Additional API#
archimedeanCopula#
Raw WebAssembly: Default context
archimedeanCopula(family: string): ExpressionConstruct a supported Archimedean copula from continuous marginals and its parameter.
Calling forms
Raw WebAssembly: Explicit context: Context.archimedeanCopula
archimedeanCopula(
family: string,
marginals: Expression[],
parameter: Expression,
): ExpressioncharacteristicFunction#
Raw WebAssembly: Default context
characteristicFunction(
random_variable: Expression,
auxiliary_variable: string,
): ExpressionClosed-form characteristic function of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.
Calling forms
Raw WebAssembly: Explicit context: Context.characteristicFunction
characteristicFunction(
random_variable: Expression,
auxiliary_variable: string,
): ExpressioncumulativeDistribution#
Raw WebAssembly: Default context
cumulativeDistribution(
random_variable: Expression,
point: Expression,
): ExpressionCumulative distribution function of random_variable evaluated at point.
Calling forms
Raw WebAssembly: Explicit context: Context.cumulativeDistribution
cumulativeDistribution(
random_variable: Expression,
point: Expression,
): ExpressionestimateArchimedeanCopulaParameter#
Raw WebAssembly: Default context
estimateArchimedeanCopulaParameter(family: string): ExpressionEstimate an exactly invertible Archimedean copula parameter from bivariate ranks.
Calling forms
Raw WebAssembly: Explicit context: Context.estimateArchimedeanCopulaParameter
estimateArchimedeanCopulaParameter(
family: string,
observations: Matrix,
): ExpressionestimateArchimedeanCopulaParameterNumeric#
Raw WebAssembly: Default context
estimateArchimedeanCopulaParameterNumeric(family: string): NumericRootFindingResultNumerically estimate a Frank copula parameter from exact bivariate ranks in a requested bracket.
Calling forms
Raw WebAssembly: Explicit context: Context.estimateArchimedeanCopulaParameterNumeric
estimateArchimedeanCopulaParameterNumeric(
family: string,
observations: Matrix,
parameter: string,
): NumericRootFindingResultgaussianCopula#
Raw WebAssembly: Default context
gaussianCopula(marginals: Expression[], correlation: Matrix): ExpressionConstruct a Gaussian copula from continuous marginals and a correlation matrix.
Calling forms
Raw WebAssembly: Explicit context: Context.gaussianCopula
gaussianCopula(marginals: Expression[], correlation: Matrix): ExpressionindependentProduct#
Raw WebAssembly: Default context
independentProduct(factors: Expression[]): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.independentProduct
independentProduct(factors: Expression[]): ExpressionintrinsicSimplexDensity#
Raw WebAssembly: Default context
intrinsicSimplexDensity(
joint_distribution: Expression,
points: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.intrinsicSimplexDensity
intrinsicSimplexDensity(
joint_distribution: Expression,
points: Expression[],
): ExpressionjointCorrelationMatrix#
Raw WebAssembly: Default context
jointCorrelationMatrix(joint_distribution: Expression): MatrixExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointCorrelationMatrix
jointCorrelationMatrix(joint_distribution: Expression): MatrixjointCovarianceMatrix#
Raw WebAssembly: Default context
jointCovarianceMatrix(joint_distribution: Expression): MatrixExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointCovarianceMatrix
jointCovarianceMatrix(joint_distribution: Expression): MatrixjointCumulativeDistribution#
Raw WebAssembly: Default context
jointCumulativeDistribution(
joint_distribution: Expression,
points: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointCumulativeDistribution
jointCumulativeDistribution(
joint_distribution: Expression,
points: Expression[],
): ExpressionjointDensity#
Raw WebAssembly: Default context
jointDensity(
joint_distribution: Expression,
points: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointDensity
jointDensity(
joint_distribution: Expression,
points: Expression[],
): ExpressionjointDistribution#
Raw WebAssembly: Default context
jointDistribution(random_vector: Expression): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointDistribution
jointDistribution(random_vector: Expression): ExpressionjointMean#
Raw WebAssembly: Default context
jointMean(joint_distribution: Expression): Expression[]Expose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointMean
jointMean(joint_distribution: Expression): Expression[]jointProbabilityMassFunction#
Raw WebAssembly: Default context
jointProbabilityMassFunction(
joint_distribution: Expression,
points: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointProbabilityMassFunction
jointProbabilityMassFunction(
joint_distribution: Expression,
points: Expression[],
): ExpressionjointRawMoment#
Raw WebAssembly: Default context
jointRawMoment(
joint_distribution: Expression,
orders: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointRawMoment
jointRawMoment(
joint_distribution: Expression,
orders: Expression[],
): ExpressionjointRectangleProbability#
Raw WebAssembly: Default context
jointRectangleProbability(
joint_distribution: Expression,
lower_bounds: Expression[],
upper_bounds: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointRectangleProbability
jointRectangleProbability(
joint_distribution: Expression,
lower_bounds: Expression[],
upper_bounds: Expression[],
): ExpressionjointSupport#
Raw WebAssembly: Default context
jointSupport(joint_distribution: Expression): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.jointSupport
jointSupport(joint_distribution: Expression): ExpressionmomentGeneratingFunction#
Raw WebAssembly: Default context
momentGeneratingFunction(
random_variable: Expression,
auxiliary_variable: string,
): ExpressionClosed-form moment generating function M_X(t) of random_variable in the named auxiliary variable, when elementary; otherwise an unevaluated structural form.
Calling forms
Raw WebAssembly: Explicit context: Context.momentGeneratingFunction
momentGeneratingFunction(
random_variable: Expression,
auxiliary_variable: string,
): ExpressionmultinomialDistribution#
Raw WebAssembly: Default context
multinomialDistribution(
trial_count: Expression,
probabilities: Expression[],
): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.multinomialDistribution
multinomialDistribution(
trial_count: Expression,
probabilities: Expression[],
): ExpressionmultivariateNormal#
Raw WebAssembly: Default context
multivariateNormal(mean: Expression[], covariance: Matrix): ExpressionExpose the native joint-law operation on the default context.
Calling forms
Raw WebAssembly: Explicit context: Context.multivariateNormal
multivariateNormal(mean: Expression[], covariance: Matrix): ExpressionorderStatistic#
Raw WebAssembly: Default context
orderStatistic(
base_law: Expression,
sample_size: Expression,
rank: Expression,
): ExpressionConstruct the rank order statistic of an independent identically distributed sample.
Calling forms
Raw WebAssembly: Explicit context: Context.orderStatistic
orderStatistic(
base_law: Expression,
sample_size: Expression,
rank: Expression,
): ExpressionproductCopula#
Raw WebAssembly: Default context
productCopula(marginals: Expression[]): ExpressionConstruct the product copula of continuous scalar marginals.
Calling forms
Raw WebAssembly: Explicit context: Context.productCopula
productCopula(marginals: Expression[]): ExpressionquantileNumeric#
Raw WebAssembly: Default context
quantileNumeric(distribution: Expression): NumericRootFindingResultNumerically invert a scalar distribution CDF on an explicitly supplied exact bracket.
Calling forms
Raw WebAssembly: Explicit context: Context.quantileNumeric
quantileNumeric(
distribution: Expression,
probability: Expression,
variable: string,
): NumericRootFindingResultrandomVariable#
Raw WebAssembly: Default context
randomVariable(name: string, distribution: Expression): ExpressionBuild a random variable named name drawn from distribution.
Calling forms
Raw WebAssembly: Explicit context: Context.randomVariable
randomVariable(name: string, distribution: Expression): ExpressionrandomVector#
Raw WebAssembly: Default context
randomVector(
coordinate_names: string[],
joint_distribution: Expression,
): ExpressionExpose the native joint-law operation on the default context.