Hi,

I have been trying to figure this out for two days but I don't seem to be reaching a conclusion

Let me describe what I'm doing...

I have a vector of constants: $\displaystyle X$

I obtain a vector of random values, $\displaystyle Z$ by adding a vector of AGWN, $\displaystyle N$, to $\displaystyle X$: $\displaystyle Z=X+N$

Finally, I compute $\displaystyle C$ between $\displaystyle X$ and $\displaystyle Y$: $\displaystyle C=\sigma_{XZ}/\sqrt(\sigma_{X}\sigma_{Z})$

As you can see, the value of $\displaystyle C$ would change each time I generate a new vector of AWGN noise. Therefore I will average $\displaystyle C$ over several trials.

What I can't get my head round ishow can I decide how many trials are enough?

I have gone on various errands to standard error of the mean, confidence intervals, and Monte Carlo trials, without fruition.

Your input is appreciated!

Thanks.