In connection with the Brooklyn Analytics, Inc. blog we will be periodically posting publications to the site. All the publications will be summarized on the Publications page as well as being announced in a blog post. The publications will range from scholarly to introductory materials. This particular publication is more in the latter vein.
This publication uses some python code to develop a simulation looking at simple models of leverage. The document is available as a pdf here. The source code and some companion spreadsheets can be downloaded here.
Have fun! Feed free to contact me with comments, questions or corrections.