I have a big problem trying to implement Monte Carlo Method to this function:
D=log(T)
Where T
is a measured time, so T>0
, and, obviously, it has a normal distribution.
I have 10 measured values of T
in the experiment, so I calculate:
m_T (mean of T) = 3.0 seconds
s_T (standard deviation of T)= 1.5 seconds
And, with this parameters I simulate T
and, then, D:
T = Normal(m_T, s_T)
D=log(Normal(m_T, s_T)
But in D
the program returns an error. When I depurate I find that the error is because Normal (m_T, s_T)
have some NEGATIVE values, so log(NEGATIVE) crash!
I’m blocked, I don’t know how to continue… any suggestion? Thank you very much!