braverock / blotter

blotter provides transaction infrastructure for defining transactions, portfolios and accounts for trading systems and simulation. Provides portfolio support for multi-asset class and multi-currency portfolios. Actively maintained and developed.
114 stars 50 forks source link

add pvalues to mcsim() - as seen in txnsim() #56

Open jaymon0703 opened 7 years ago

jaymon0703 commented 7 years ago

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/