Discrete Moments VI

Owning Palette: Probability VIs

Requires: Full Development System

Returns the expected mean and variance of the random variate X, where X describes the selected distribution type. You must manually select the polymorphic instance to use.

Details  Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Bernoulli Moments

p is the probability of success (probability that x = 1) and must be in the interval [0,1].
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Binomial Moments

X represents a binomial-distributed variate: the number of successes in n independent Bernoulli trials. The Bernoulli probability parameter p is the probability of success of each trial or experiment.

n is the number of independent Bernoulli trials.
p is the probability of success of each Bernoulli trial and must be in the interval [0,1].
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Geometric Moments

X represents a binomial-distributed variate: the number of successes in n independent Bernoulli trials. The Bernoulli probability parameter p is the probability of success of each trial or experiment.

p is the probability of success of each Bernoulli trial and must be in the interval [0,1].
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Hypergeometric Moments

X represents a hypergeometric-distributed variate: the number of successes when n items are drawn from an M-sized population of which k elements are successes.

M is the number of elements in the population.
k is the number of successes in the population.
n is the number of items drawn without replacement.
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Neg Binomial Moments

X represents a negative binomial-distributed variate: the number of failures before the xth success in a sequence of Bernoulli trials. The Bernoulli probability parameter p is the probability of success of each trial or experiment.

x is the number of successes and must be in the interval [0,inf].
p is the probability of success of each Bernoulli trial and must be in the interval [0,1].
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Poisson Moments

X represents a Poisson-distributed variate that takes on discrete, non-negative values (X = 0, 1, 2, 3, …) and often represents the number of events occurring within a specific time interval. The parameter lambda represents the average number of occurrences expected to occur within the specific time interval.

lambda is the average number of events expected to occur within a specific time interval.
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Uniform (Discrete) Moments

X represents a discrete uniform-distributed variate where every value in the range of integers in the interval [1,n] is equally likely to occur.

n is the maximum value of the uniform variate.
mean is the expected mean of a variate with the given parameters.
variance is the expected variance of a variate with the given parameters.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Discrete Moments Details

In the Bernoulli instance of the VI, X represents a Bernoulli-distributed variate with one of two possible outcomes: success (x = 1) or failure (x = 0). The Bernoulli probability parameter p is the probability of success of a single trial or experiment.

Example

Refer to the Display Discrete Probability Distributions VI in the labview\examples\Mathematics\Probability and Statistics directory for an example of using the Discrete Moments VI.

 Open example  Find related examples