Friday, August 29, 2014

Changing Role of IT

The gap between IT and business seems to be widening by the day. Here are my thoughts on bridging that gap.

Monday, July 14, 2014

Predicting the World Cup using analytics


I was asked to present a keynote session at MicroStrategy World in Barcelona. I decided to combine my 2 passions - soccer and data. The data showed some interesting trends. If you analyze countries by the value of the players in the transfer market, Germany is one of the few countries trending upward. What does that portend for 2018?

See more of my analysis here.


Monday, July 7, 2014

MicroStrategy World: Europe Edition


I will be on stage showing off MicroStrategy at our annual European user conference.

Tune in on Wednesday July 9th at about 10 AM Barcelona local time!

http://www.microstrategy.com/us/microstrategyworld/europe/live

Friday, May 23, 2014

Want To Leverage Your Dark Data? 5 Steps to Get Started

DD-Banner


There has been a lot of talk lately about Dark Data. Interesting parallels between the rise of dark data, and the acceptance of dark matter and energy in astrophysics.

Recently, Software Advice interviewed me about my take on dark data.

Saturday, April 26, 2014

Do stocks get safer the longer you hold them?

Early in your investing career, someone probably showed you a chart like this. A Dow or S&P growth chart. The conclusion seems obvious. Sure - stocks go up and down in the short term, but over the long term, you are bound to come out ahead.

The fundamental question you should ask yourself is - why do equities have a greater expected return than say, cash in a bank? The answer is deceivingly simple. Investors demand a higher return from stocks because they are riskier. This is called the equity risk premium. But we have a conundrum here. On the one hand, we know stocks are risky. On the other hand, conventional wisdom says that they get less risky if you hold them for a long time. But if all it took to make stocks safer was time, the equity risk premium would have long since disappeared.

Let's take a closer look. All the charts you see are based on the performance of the US markets over the past century. The data is neither time (only 9 independent 10 year data points) nor geographically diversified.The United States has had a great run over the last century. Returns have been spectacular with relatively low volatility. But is that systemic, or just luck? How sure can we be that this trend will continue - and that we aren't just looking at a particularly lucky slice of history?

As I was pondering this issue, I came across this great paper - The Long Term Risks of Global Stock Markets. The author, Phillipe Jorion makes a convincing case that stocks do not actually get safer over the long term. I took the liberty of recasting some of the data in the paper into visualizations that make the point clearly. The data in the paper is for the time period 1921-1996. The visualizations were created using MicroStrategy Desktop

1. You aren't guaranteed to make money in the stock market. Even over the long term

As you can see from the chart below, many global equity markets have negative long term real returns (accounting for inflation). Sure you would have done great investing in Sweden or the U.S - but what if the next 70 years in the US are more like Spain below?


Average 10 yr annualized returns (1921-1996)

2. The probability of loss in equity markets doesn't significantly change over time

If stocks got safer with time, you would expect the probability of loss to get smaller over 5 and 10 year periods compared to 1 year periods. But the data shows that the probability of loss drops off very slowly with time, if at all.

1, 5 and 10 year prob of loss. selected countries






3. Large long term losses are surprisingly frequent and surprisingly large.

If someone were to ask you when most stock markets had their biggest 10 year losses, you might predict the Great Depression. Or World War 2. But the data shows that big losses are spread out all over the time map. For example, the biggest 10 year US loss (real, accounting for inflation) was the period 1972-1982.

The largest losses are also surprisingly large - the stock markets have "fat tails". Our graph starts at -60% and goes all the way to -90%. And this doesn't even account for cases where the entire market closed and investors lost 100%. (Japan 45-46, Chile 72-73 for example).

Largest 10 year losses






4. There still may one free lunch - Global diversification

So what is a savvy investor to do? The data points to one possible way out. A globally diversified equity portfolio seems to have less risk on the downside than a portfolio concentrated in any one country. But there is always the chance that all correlations go to 1 in the next great crisis. At the end of the day, as the old saying goes - "You pays your money and you takes your chances."


Wednesday, April 16, 2014

Donations in the Nation: How charitable is your state?

Time to exhale - to take a couple of deep breaths and let the stress of the last week recede. If you are anything like me, you spent the last week in a frenzied muddle of receipts, forms and statements. Scrambling to file taxes by the 15th. This year, I achieved the task with a day to spare. New record. Anyway, during my umpteen visits to the IRS website, I chanced upon this webpage which provides tax statistics across a number of dimensions. The data was too interesting to pass up.

I decided to analyze something that has always interested me - Who contributes to charity? And how much do they give? The results surprised me.

(*All the visualizations below were created using a free data visualization product from MicroStrategy. (Full disclosure - I am currently employed by MicroStrategy). The data is a mashup from the IRS website, and the census bureau  for the year 2011)

1. Lots of people give to charity. 
  • 38 Million tax returns had a charitable contribution listed for a total of $174 Billion.
  • The average charitable contribution per tax return was $4,591.
  • Those making a million dollars or more contributed the highest percentage of income to charity.
  • This is probably a case where median would be more insightful than average since a few large contributions can skew results. But the IRS does not publish median data.

2. Low income states tend to be among the most generous.

I analyzed the breakdown of charitable contributions by state and there were some surprising results. I normalized the giving by median income to ensure that we are comparing apples to apples.
The southern states, which tend to have the lowest median incomes showed among the highest generosity. A humbling and thought provoking insight.

States by median income
Red: Bottom 3rd, Yellow: Middle 3rd, Green: Top 3rd



States by average contribution per household - normalized for income
Red: Bottom 3rd, Yellow: Middle 3rd, Green: Top 3rd

3. See how your State ranks.

To see how states compared, I plotted state metrics across Avg. Charity per person and Median Income. In the scatter plot, the size of the bubble indicates the state population. Generous states are to the right, high income states are to the top. In an ideal world, everyone would be in the top right corner.
  • For the most part, people in states that make more, tend to give more
  • Utah is an interesting outlier giving much more than average - reflecting a strong tradition of giving
  • New Hampshire is an outlier at the other end of the spectrum - possibly due to a strong libertarian streak?
States by contribution per household vs. Median income per household


Where did you rank in terms of your giving compared to your peers in your state?

Caveats:
1. Analysis based on 1 year of data (2011)
2. Few large contributions can skew averages
3. Additional variables may have an impact but are not considered


Thursday, April 3, 2014

Avoiding Analysis Paralysis: Decision making in the information age


I was just about to board a plane on my way to the Gartner BI summit (great analytics conference btw), when I received a call from our finance team. Could I make ROI projections on my capital spend and recommend an action plan in the next 2 hours?

Complex decision. Check.
Limited Time. Check.
Predict the future. Check.

As an analytics professional, you may think that this would be easy for me. Analyze the data, and a solution will appear. But it's not that simple. It's all too easy to fall into the trap of over analyzing a situation looking for the perfect answer.


Here are a few tips on how to avoid Analysis Paralysis.

1. Recognize that the future is largely unknowable. Don't try and force precision on a imprecise world.


The great scientists of the 1800's were convinced that they had the answer. They had a model for how the universe worked, and things evolved in a predictable manner. But two developments over the past century have ended that dream.The Uncertainty Principle and chaos theory. Quantum mechanics says that you cant measure things precisely, even in theory. And chaos theory says that minute variations in initial conditions cause huge divergences in the future.

Accept and recognize that however sophisticated your model, nature limits their predictive power. And they rapidly get less accurate the further out you go.

2. The world is complex. 1+1 often equals 4.

Our minds (and most of our analytic models) work linearly. We break a problem into smaller pieces, analyze those pieces, and then sum them up to get an answer to the whole. But this isn't how the world works. A brain is more than the sum of it's neurons. An ant colony is more than a collection of ants. For a beautiful intro to complexity theory, read this book. The world is non-linear and complex.

Recognize that your analysis is based on models that simplify. Consider your problem - is it largely linear? If you double any input, does the output roughly double? In many cases it won't. 

3. The Pareto Principle and the marginal utility of information.


Students of economics are familiar with marginal utility. Simply stated, the more stuff you have, the less each additional dollar is worth. The same is true for information. To see why, consider the Pareto principle. The Pareto principle states that 80% of the causes come from 20% of the effects. In most cases each additional piece of information contributes exponentially less to the overall solution.

When making a decision, look for the top 3 contributing factors. Once you do, act.


4. Work in parallel. But recognize that not all paths are equal

Consider an ant colony. How does it find food in a constantly changing environment? Ants solve this by having many workers forage in random directions. If an ant finds food, it lays down a chemical marker. Other ants follow this marker, and if they find food there too, they add to the marker. If they dont, the marker fades away. In this way, ants pursue many different paths, but feedback determines which paths are better than others.

Work like an ant colony. In a complex non linear world, solutions are not always obvious. Analyze several different paths to a solution in parallel. Go down each rabbit hole a few steps, and pursue the ones that are promising.


Analytics is immensely powerful. The world is a better, safer, smarter place for it. But know when to back away from the buffet table.



Wednesday, March 19, 2014

Too big to count? Four reasons why Big Data doesn't mean the end of sampling


Let's say your boss has asked you to count the blades of grass on a football field (you know better than to ask why). There are two ways you could go about it.
  1. Hire an army of 100 interns, assign each of them a patch and ask them to count each blade of grass.
  2. Pick a couple of small patches of grass, count the blades, then scale that number up to the entire field.
Which method would you pick? 

The answer seems obvious, yet when it comes to big data and analytics, there have been a rash of articles like this one predicting the end of sampling as we know it. The argument seems to run along the following lines.
  1. Big data technologies are now cheap enough to store everything.
  2. Big data technologies are powerful enough to analyze anything.
  3. Why sacrifice accuracy by sampling? 
  4. Sampling may miss the outliers.
Let's look at each of these arguments in more detail. Btw, asking a Big data vendor if you should sample, or store everything is like asking a barber if you need a haircut.

1. Big data technologies are now cheap enough to store everything.

Proponents of this show charts of cost of storage dropping precipitously over time. It is true that storage is becoming cheap. At somewhere around 25-40% CAGR (Compound Annual Growth Rate). But, data is growing quicker - at a CAGR north of 60%. So, storage is and will always be playing catch up. Contrary to what you may hear, the cost of big data is not trivial. Especially once you throw in the costs of the experts needed.

2. Big Data technologies are now powerful enough to analyze anything. 

The argument goes like this. Big data technologies are massively parallel (MPP). Just throw more nodes at the problem. Plus with Moore's law, chips are getting faster too. But, here is the fallacy. All you fans of complexity theory will appreciate this.

Adding nodes to an MPP system increases capacity linearly. Double the nodes, you have doubled the processing power. But analytic problems don't typically scale linearly. Some scale as a polynomial function of n (n is the number of data points), and some are even NP - you can't even determine if you will ever find a solution. (The travelling salesman problem for example)

3. Why sacrifice accuracy by sampling? 

Aren't you sacrificing accuracy by sampling just a subset of the data? The fact is that the larger your data set, the more accurate sampling is! There is a whole beautiful branch of physics called statistical mechanics that uses statistics and probability to get astoundingly accurate results. No physicist is trying to add up the energy of each molecule in a jar of gas to get the temperature. Yet, this is just what many of us are trying to do with big data. These problems have been solved before by very smart people. Let's put the science back in Data science.

4. Sampling may miss the outliers.

I will grant the validity of this. If you truly have data or an app where missing a few points would significantly alter your results, you will need to scan everything. But data that doesn't smoothly vary is not very common. Also, in many cases you will find that you are looking at the problem wrong if outliers affect your data. For example: If you were calculating average wealth in the Seattle area, and miss Bill Gates in your sample, you would be way off. But if you are calculating median wealth, you would be fine.

Do you have any big data applications where sampling won't work? I would be very interested in seeing some real world examples.

Friday, March 7, 2014

Peer pressure: The forgotten analytics tool

Pop quiz time.

We all know that reusing hotel towels helps the environment. But, which one of these hotel bathroom signs would you be likely to act on?


  1. "Reuse your hotel towels. Help save our environment"
  2. "Reuse your hotel towel and get $2 off your stay"
  3. "63% of people who stayed in this room reused their towels. Will you?"


If we were all rational economic beings,("homo economicus"), we would choose #2. But research has conclusively shown that #3 performs 25%+ better than the other alternatives. In fact, a theory called motivation crowding says that adding monetary incentives actually undermines motivation.

This brings me to one of my favorite memes. "How do you change behavior, when it's not in someone's direct interest to do so?" Specifically, how do you do you do that in a corporate setting? 

The combination of analytics and behavioral theory has the answer. Peer benchmarking. Most organizations I deal with neglect this tool in favor of more sexy analytics initiatives. Predictive modeling and Big Data sound much more appealing, but in terms of ROI, few things beat ranking people and showing them where they stand.



Take McCain foods for example. One of world's largest french fry producers has multiple manufacturing plants world over. They put up giant screens in each plant, ranking them by safety record. Magically, the safety record improved.


Try it. It's not hard. 
  1. Establish a peer group. Ensure that the peers are true peers who compete over the same thing.
  2. Pick a metric that your target competes over. Sales numbers. Safety record. Blog post hits.
  3. Publish basic ranking reports, and send them out. Regularly. 
  4. Sit back and watch behavior change.