I have a simulation model for insurance claims that works as follows:
- Assume random values come from two distributions defined as $$ \begin{eqnarray} f_1(x)&, & 0 < x \leq c \\ f_2(x)&, &x > c \end{eqnarray} $$
- A random value will fall in $f_1(x)$ with probability $p$ and $f_2(x)$ with probability $1-p$.
So the model (in Excel) uses rand() to determine which distribution to sample from. $f_2(x)$ is shifted at $c$ so the minimum value from this distribution is $c$ while $f_1(x)$ is set to be capped at $c$. A determined number of values is generated in the model and then summed to give an aggregate value.
I'm trying express the limited expected value of this distribution and am wondering is the distribution simply defined as: $$ f_X(x) = \begin{cases} p \cdot f_1(x), & 0 < x \leq c \\ (1-p) \cdot f_2(x), & x >c \end{cases} $$ or am I missing something? This distribution will not be continuous at $c$ unless I force it to through solving for $p$ but assume that's not a requirement.