Student[Statistics]
MomentGeneratingFunction
compute the moment generating function
Calling Sequence
Parameters
Description
Computation
Examples
References
Compatibility
MomentGeneratingFunction(X, t, numeric_option, inert_option)
MGF(X, t, numeric_option, inert_option)
X
-
algebraic; random variable
t
algebraic; point
numeric_option
(optional) equation of the form numeric=value where value is true or false
inert_option
(optional) equation of the form inert=value where value is true or false
The MomentGeneratingFunction function computes the moment generating function of the specified random variable at the specified point.
The first parameter can be a random variable or an algebraic expression involving random variables (see Student[Statistics][RandomVariable]).
By default, all computations involving random variables are performed symbolically (see option numeric below).
If the input point is a floating point value, then the output will be given in a floating point. Otherwise, the output is exact.
The value of the moment generating function of the input random variable at the specified point is computed according to the rules mentioned above. To always compute the outcome numerically, specify the numeric or numeric=true option.
with⁡StudentStatistics:
Compute the moment generating function of the beta random variable with parameters n and p.
MomentGeneratingFunction⁡BinomialRandomVariable⁡n,p,t
p⁢ⅇt+1−pn
Use numeric parameters.
MomentGeneratingFunction⁡BinomialRandomVariable⁡10,12,3
ⅇ32+1210
If the numeric option is specified or the second parameter is given in a floating point value, then a floating point value will be returned.
MomentGeneratingFunction⁡BinomialRandomVariable⁡10,0.5,3,numeric
1.696471963×1010
MGF functions the same way as MomentGeneratingFunction.
MomentGeneratingFunction⁡BinomialRandomVariable⁡10,0.5,3.0
Use the inert option.
MomentGeneratingFunction⁡BinomialRandomVariable⁡10,12,3,inert
∑_t=010⁡ⅇ3⁢_t⁢10_t⁢12_t⁢1210−_t
evalf⁡MomentGeneratingFunction⁡BinomialRandomVariable⁡10,12,3,inert
1.696471965×1010
Define a new random variable.
X≔3⁢PoissonRandomVariable⁡a+2⁢ExponentialRandomVariable⁡b:
MGF⁡X,t
ⅇa⁢ⅇ3⁢t−1−2⁢b⁢t+1
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
The Student[Statistics][MomentGeneratingFunction] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
moment generating function
Statistics[MomentGeneratingFunction]
Student
Student[Statistics][RandomVariable]
Download Help Document