Tuesday, April 29, 2014

Slidify Old Book Images from Google Books

I really enjoy reading old books, especially finance books, from Google Books.  With all the changes in the world, their continued relevance amazes me.  For instance, as I prepared for my talk about Wealth and Skill, I rediscovered Developing Financial Skill by Enoch Gowin (1922).  I had forgotten some of the interesting visualizations in the book, and I just had to publicize them.  With some R and slidify, I made a IO2012 slideshow of the images in less than an hour.  Each of the images are linked to their original location in the book if you want the context.  Below are a quote from the book along with an image linking to the slideshow.

It appears in the well-thought-out conclusions of Justice Holmes, Doctor Beecher, President Hadley, Professors Fisher, Moore, and Cohn, Lord Kelvin, and Jesse Livermore that current views concerning speculation have confused it with gambling. Its real nature, however, set forth here, provides food for profitable reflection. Speculators, in reality, whether or not they think of themselves as being such, are all men who look ahead, the risk takers, men prudent, farsighted, "longheaded," forward-looking—to whom business profits sooner or later cannot fail to gravitate.


Wednesday, April 23, 2014

All the Factors | More Looks

Well, my last post Exploring Factors with rCharts and factorAnalytics got enough attention to motivate me to pull in some more Asness, Frazzini, Pedersen factors and plot them in some different ways.  The additional factors are US and global UMD (up minus down) and QMJ (quality minus junk) introduced in this paper.

Quality Minus Junk

Asness, Clifford S. and Frazzini, Andrea and Pedersen, Lasse Heje

October 9, 2013

Available at SSRN: http://ssrn.com/abstract=2312432

I used rCharts and dimplejs to draw a cumulative line chart.

Then I thought this would be a great opportunity to use the correlation chart spawned by rCharts issue 381.


Of course the next step is to simply merge the BAB (Betting Against  Beta) factors from the previous post, but I’ll leave that to you.  Let me know what you discover.

Monday, April 21, 2014

Exploring Factors with rCharts and factorAnalytics

Fama and French changed the financial world with their factors in 1993.  Another duo Andrea Frazzini and Lasse Heje Pedersen have expanded our world with their Betting Against Beta (BAB) and Quality Minus Junk (QMJ)  factors.  The combined factor set of Fama/French and Frazzini/Pedersen provides substantial insight into the historical performance of equities in the US and around the world.

Fortunately for us, the authors have also made available their factors.  Unfortunately, BAB and QMJ are not updated like the Fama/French SMB and HML. (actually discovered this is no longer true Frazzini data library)  Still though, combining these factors with the R packages factorAnalytics and rCharts allows us to do some amazing things.  Here is a quick example. Look for more soon.

Tuesday, April 15, 2014

Wealth and Skill | A Talk to Students

I enjoyed talking to University of Alabama students this morning about wealth, skill, and luck.  I tried to synthesize a whole lot of research into something meaningful.  Of course, it would not have been possible without rCharts + Slidify.  Thanks Ramnath. Thanks to my good friend Dr. Underwood for the invitation. Click here or on the screenshot below for the show.


Friday, April 11, 2014

Find it Humorous … “Not So Bad” in the “long-term”

I agree the market selloff has been weak thus far (especially as a frustrated bear).  However, I find it humorous as some widely followed commentators say things like “You’re only down x% ytd.  It’s not that bad”.  I wonder if this selloff gets worse will they extend to a 12 month horizon since last year was so good.  Immediately makes me think of 1987.

  October 19, 1987 : Today was not so bad.  You are only down 3% ytd.


Edit:  Ok, I just had to add an interactive version:


Friday, April 4, 2014

R as a Publishing Engine | CPI Components Use Case

R was certainly not designed to be a publishing engine, but in my workflow, R is the primary method of content creation.  With that in mind, I have been thinking about a very different use case of rCharts in which we might want to include inflexible and not really reusable custom javascript components in our document.  As a quick example after updating my CPI component graph using d3.js and angular, I want to plug it into a document and really only need to modify a couple of parameters.  While someone might want to use this for different data, I doubt it.

rCharts seamless integration with knitr/slidify/Rpres makes this very easy.  I just wonder how popular this will become.


Wednesday, April 2, 2014

xts like endpoints in Javascript

I decided to promote this from a Twitter comment to a blog post.  I had hoped to do a prototype javascript interactive rebalancing visualization of Unsolved Mysteries of Rebalancing integrating this, but I have not had the time, so  I’ll release it into the wild in its current state.  I hope someone can use it.