blotter
blotter copied to clipboard
add pvalues to mcsim() - as seen in txnsim()
A useful feature in the Monte Carlo style function txnsim() is the computation of empirical p-values from the output. The output from simulations of portfolio PL (ie. mcsim) tends to tell us less information about standard sample statistics than metrics like Max Drawdown for instance, and viewing this p-value from the output of mcsim() could be useful to the analyst.
See, North, Curtis, and Sham mention in "A Note on the Calculation of Empirical P Values from Monte Carlo Procedures" - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC379178/