LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
moment_factorial_from_factcumulant.m
1function f = moment_factorial_from_factcumulant(kappa)
2% f = moment_factorial_from_factcumulant(kappa)
3%
4% Converts the factorial cumulants of a discrete random variable N into its
5% factorial moments f_n = E[N(N-1)...(N-n+1)], by running the recursion
6%
7% f_n = sum_{k=1}^{n} nchoosek(n-1,k-1) * kappa_k * f_(n-k)
8%
9% forward with f_0 = 1. Inverse of moment_factcumulant_from_factorial.
10%
11% Input:
12% kappa: vector of length n+1 holding the factorial cumulants of order
13% 0,...,n. Element 1 is ignored
14%
15% Output:
16% f: vector of length n+1 holding f_0,...,f_n, with the same orientation as
17% kappa and f(1) = 1
18%
19% Example:
20% f = moment_factorial_from_factcumulant([0, 2, 0, 0]);
21%
22% Reference:
23% V. P. Leonov and A. N. Shiryaev. On a method of calculation of
24% semi-invariants. Theory of Probability and its Applications,
25% 4(3):319-329, 1959.
26
27f = moment_raw_from_cumulant(kappa);
28end