diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-03-24 14:24:11 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2016-03-24 14:24:11 -0400 |
| commit | badae0f3f338d9218ca5860f4f91603b67b8cf07 (patch) | |
| tree | 7bfc7a77ceacb13d44bea9958d95e3085b1af745 /man/lossdistrib2.Rd | |
| parent | 2b4c4fd1b186d343d2776517ab91988d97a8fb91 (diff) | |
| download | lossdistrib-badae0f3f338d9218ca5860f4f91603b67b8cf07.tar.gz | |
docs improvement
Diffstat (limited to 'man/lossdistrib2.Rd')
| -rw-r--r-- | man/lossdistrib2.Rd | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/man/lossdistrib2.Rd b/man/lossdistrib2.Rd index d62afb4..4d1dd9c 100644 --- a/man/lossdistrib2.Rd +++ b/man/lossdistrib2.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/distrib.R \name{lossdistrib2} \alias{lossdistrib2} -\title{recursive algorithm with first order correction} +\title{Loss distribution of a portfolio} \usage{ lossdistrib2(p, w, S, N, defaultflag = FALSE) } @@ -15,7 +15,7 @@ lossdistrib2(p, w, S, N, defaultflag = FALSE) \item{N}{Integer, number of ticks in the grid} -\item{defaultflag}{Boolean, if True, we compute the default distribution +\item{defaultflag}{Boolean, if TRUE, we compute the default distribution (instead of the loss distribution).} } \value{ @@ -23,6 +23,13 @@ a Numeric vector of size \code{N} computing the loss (resp. default) distribution if \code{defaultflag} is FALSE (resp. TRUE). } \description{ -recursive algorithm with first order correction +\code{lossdistrib2} computes the probability distribution of a sum +of independent Bernouilli variables with unequal probabilities. +} +\details{ +We compute the probability distribution of \eqn{L = \sum_{i=1}^n w_i S_i X_i} +where \eqn{X_i} is Bernouilli(\eqn{p_i}). If \code{defaultflag} is TRUE, we +compute the distribution of \eqn{D = \sum_{i=1}^n w_i X_i} instead. +This a recursive algorithm with first order correction for discretization. } |
