Author Archives: David

Moment Generating Functions and the Uniform Distribution

Using the MGF of the uniform is a pain. Here’s why along with the solution if you insist on going this route. Continue reading

Posted in Statistics | Leave a comment

Martingales, part 1

I had an interesting interview question pop-up last week that made clear I’m past due for a review Martingales. The question was: if X is a martingale whose underlying process follows Geometric Brownian Motion(GBM), is X3 a martingale? Before getting … Continue reading

Posted in Statistics | Leave a comment

Rock Paper Scissors…

I saw this article in the NY Times and was inspired to write my own Rock Paper Scissors implementation. The AI uses something very similar to a Markov Chain to determine it’s next move, with the exception that the transition … Continue reading

Posted in Includes JAVA code, Statistics | Leave a comment

Brownian Bridge Code

Got a small amount of work on this project done. This is some code that I’ve written based on the algorithm in Monte Carlo Methods in Financial Engineering by Paul Glasserman: # Implementation a Brownian Bridge. # by David Blankley … Continue reading

Posted in Includes R code, Statistics | Leave a comment

Proof of concept – Tomcat inside WordPress

Can I get a jsp page to load inside wordpress? Yes! This next line is the output of an echo: If php echo works, then you see this message. And this is the output of a jsp page: Warning: include(http://www.blankley.com:8080/sample/dhbHello.jsp) … Continue reading

Posted in Tech | Leave a comment

An interesting portfolio optimization question…

Let’s pretend I am a trader on a structured products desk in late 2008, early 2009 and I have a very strong view that the baby has been thrown out with the bathwater, and numerous bonds that are currently priced … Continue reading

Posted in Statistics | Leave a comment

NYU Research Day

I got to attend the research day hosted by the finance department at NYU this past Friday. Very high level of presentations for what were all working papers. My personal favorite was Aswath Damodaran talking about the equity risk premium … Continue reading

Posted in Finance | Leave a comment

Some simulation code

For one of my first classes at Baruch’s MS program I worked on replicating some of the simulation results from Realised Kernels in Practice: Trades and Quotes by Barndorff-Nielsen, Hansen, Lunde and Shephard. What were my goals for the project? … Continue reading

Posted in Includes C# code, School, Statistics | Leave a comment

Grade inflation…

I’m currently busy reading “Principles of Mathematical Analysis” by Rudin as preparation for a Real Analysis class I’m taking next semester, when a couple of thoughts struck me with regard to the current debate on grade inflation vis-a-vis my experiences … Continue reading

Posted in School | Leave a comment

ARMAX

This past semester I attended the Time Series class at Baruch. I say attended, since it clashed with the Regression class I had to take for the department pre-requisite (I got an A in both; just the Time Series one … Continue reading

Posted in School, Statistics | Tagged | Leave a comment