Create a CGF object for the sum of n i.i.d. random variables.
Source: R/D-SumsOfiidCGF.R
sumOfiidCGF.RdGiven a base CGF object cgf describing a random variable \(X\),
this function returns a new CGF object for the sum of n i.i.d. copies of \(X\),
i.e. \(Y = X_1 + \cdots + X_n\).
Arguments
- cgf
A
CGFobject describing the base random variable \(X\).- n
Either a positive scalar, or a function/adaptor mapping \(\theta \mapsto n(\theta)\).
- block_size
Optional. Positive integer giving the dimension of one observation of \(Y\).
- iidReps
Optional. Either
NULL,"any", or a positive integer.- ...
Additional arguments passed to CGF creation.
Details
$$K_Y(t;\theta) = n(\theta)\,K_X(t;\theta).$$
For every order \(r \ge 1\), $$K_Y^{(r)}(t;\theta) = n(\theta)\,K_X^{(r)}(t;\theta).$$
nis the number of summands inside each \(Y\).iidReps/block_size(if supplied) describe i.i.d. replication of \(Y\) across observations \(Y_1,\ldots,Y_B\).
Replication (iidReps / block_size):
If both
iidRepsandblock_sizeareNULL, no replication is applied.If
block_sizeis provided butiidRepsisNULL, we setiidReps = "any"and infer the number of blocks fromlength(tvec) / block_sizeat evaluation time.If
iidReps = "any", thenblock_sizemust be provided.If
iidRepsis a positive integer,block_sizemay beNULL, though providing it is safer.