Message Boards Message Boards

0
|
5401 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Write the command for this recursive formula?

Posted 7 years ago

Hey guys:

I have following recursive formula:

$\mathbb{E}[Z_t^n]=\sum_{k=0}^{n-1}\binom{n}{k}\mathbb{E}[X^{n-k} ][\int_0^t e^{-n \delta v} \mathbb{E}[Z_{t-v}^k] dm(v)]$

where $\mathbb{E}$ is the expectation of random variable. You may assume X is exponential distributed and $m(t)=\lambda t, \lambda>0$. Further, $\mathbb{E}[Z_t^0]=1$.

I am wondering how can I write the commands to achieve $\mathbb{E}[Z_t^n]$ for n large, no matter numerically or theoretically.

Thanks in advance.

POSTED BY: Zhehao Zhang
Posted 7 years ago

Hey guys,

I think I have solved my problem now. See my commands below.

However, welcome to any advice, efficiency or another programming method.

Attachments:
POSTED BY: Zhehao Zhang
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract