Suppose we want to estimate S=E[X2] when X has the density that is proportional to q(x) = exp{-|x|3/3}.

1. Use rejection sampling to estimate E[X2]. Describe your algorithm first. Attach your R code and output. Be sure to count and report your acceptance ratio

Public Answer

RZARKV The First Answerer