MATLAB: Pricing a digital option, Monte Carlo vs. explicit integral formula?
问题 I am stuck with the following problem using MATLAB: Let Z be lognormally distributed such that ln Z has mean m and variance w. Let eta be a negative number and c a positive constant. I am trying to compute the expected value (let I(Z<=c) denote the indicator function of the set (Z<=c)) E[Z^(eta+1) I(Z<=c)] = (1/sqrt(w)) integral_0^c x^(eta) phi((ln x - m)/sqrt(w)) dx, where phi() denotes the probability distribution function of a standard normal random variable. First thing I did was to