Tuesday, March 13, 2007

Solving the Enterprise Architecture puzzle

The best articles(one, two) I have read on AJAX, SOA and EDA in the context of Enterprise Architecture. Most of the time, the nature of these technologies is much simpler than the marketing gurus would like us to believe (I understand ROI is important. But a paper talks about nothing but ROI hardly helps on that front). Or the arguments about the literal of terms ("SOA and EDA, who is the father" type, do I sense another StarWars comic?). SOA and EDA are simple design patterns, or reusable designs to solve common problems. (I always think of EDA as some combination of the old "chain of responsibility" and "observer" patterns). While SOA is a pattern focusing on decoupling the functioning components and implementing a tight control relationship among them, EDA focuses on integrating loosely-coupled components and services. The following graph from the article summerizes it nicely: UPDATE: Among the comments of the original article, Gerry posted:

Come on guys, this is trivial stuff. SOA and EDA are NOT rocket science. SOA is just another way of enforcing loose coupling and high cohesion. EDA is so trivial (and as a concept has been around for decades) that I can't believe its being bandied around as the 'next big thing'. Sigh, I think I've been in this business too long.
My feeling exactly.

Monday, March 12, 2007

How we remember only what we choose to remember

6 month price chart for Shanghai Stock Exchange Composite Index. Before the Feb. 27 plunge, the index actually had a sizable correction towards the end of January. It declined 12% in three trading sessions, then recovered quickly and made new high above 3000, only to see the 9% drop in Feb. 27th. The index is now on its way to make another attempt at 3000 level. We only remembered what we choose to remember. We remembered what happened to the index on Feb. 27th because it's blamed for the near 400 points drop in DJIA, along with Yen carry trades and problems in subprime mortgages.

Friday, March 9, 2007

Gamma Scalping

An article on Gamma Scalping, the option trading strategy that takes advantage of the difference between implied vol and realized vol, not easy to find in any introductory option trading materials.

Thursday, March 8, 2007

Spoiled Gamers

Once up a time, we were happy playing games like this: Yet today, we call Games with DVD quality picture "low resolution". So what's next? The Virtual Reality Helmet? How far are we to The Matrix? And are we really heading to the right direction? Anyway, just some random thoughts while reading the history of "Legend of Zelda" series. UPDATE: Speaking of which, Shigeru Miyamoto, the designer of the series, just received Lifetime Achievement Award today on Game Developers Conference 2007.

Wednesday, March 7, 2007

Barbarian at the Gate

Barbarian at the Gate
The story of $25 billion buyout of RJR Nabisco Corporation, a record KKR kept for almost two decades. An interesting read when today's LBOs are getting bigger and bolder.
The Billion Dollar Club
The latest hedge fund "Billion Dollar Club" survy by Hedge Fund Intelligence.
With the biggest chunk of profit coming from prop trading and asset management, is Goldman still a investment bank or a big hedge fund?

Tuesday, March 6, 2007

Was Last Week's Mini Crash "Made in China"?

There has been a lot of talk on how last week's rout indicates China's stock market has become an integrated part of global capital market. To put things in perspective, I've put togather the following data comparison from various sources(news releases from NYSE and SSE, CIA World Factbook):

                              China          US
-------------------------------------------------
GDP ($ Trillion)                2.50        13.22
  
                                SSE         NYSE
-------------------------------------------------
Total Market Cap.              895.15      24,500
Floating Shares                205.35         N/A
Percent of GDP                     8%        182%
  
2006 Volume (in $)            715.56       21,730
2006 Daily Volume (in $)        2.97        86.92
2006 Daily Volume (in Share)    3.41         2.35


* Dollar and share amounts in billions.
* Assume an average exchange rate of 8.
  • Although Shanghai Stock Exchange's total market capitalization is on par with its emerging market couterparts (Korea Stock Exchange, India's National Stock Exchange, for example), the actual floating (or tradable) shares only account for about $200 billion, less than 1% of that of NYSE.
  • In fact, several Dow components (GE, Exxon, Microsoft, etc) have higher market cap. than all SSE listed companies combined.
  • The stock market is not really an important source of capital for Chinese companies. They still rely heavily on traditional venues such as bank loan. The market cap. of SSE is only about 8% of China's GDP, the same number for NYSE is 182%.
  • Interestingly, the daily trading volume in shares on SSE is HIGHER than that of NYSE.
  • Currently the companies traded on SSE have an average P/E of 33.30. According to data here, the last time SP500 had such a high PE was between 1999 to 2002. We all know what happened after that, don't we?
So what's the conclusion? I don't think China was the cause of last week's global stock market plunge. It can only be the catalyst, at best. China's stock market has shown little correlation with Chinese economy in the past, let alone global.

MSBuild QuickStart

One obvious advantage of using MSBuild over NAnt is that Visual Studio 2005 uses MSBuild script as its default project file format. However, when you want to get your hands dirty on the details of MSBuild files, you'd likely find that the documentation is not as organized as NAnt help in MSDN. Here are two places that might give you a quick start on MSBuild:

Monday, March 5, 2007

DLL Hell: A ghost from the past

It can be quite surprising how this ghost from the past can still haunt you in the era of .Net.
The Problem
We have a .Net Excel PlugIn, developed with ManagedXLL under .Net Framework 1.1 and we have been relying on Visual Studio 2003 to debug it (Run Excel, then "Attach to Process"). Today, however, this process suddenly stopped working. Visual Studio gives the following error message ("Unable to attach to process"? very "informative", I must add) when attemp to attach to Excel:
The Solution
It became quite obvious that this has something to do with .Net Runtime versioning when I realize the only difference is that I installed .Net 2.0 last Friday (Yeah, I know this makes me look like a caveman...). Visual Studio 2003 should work with .Net Framework 1.1 only. No surprises here. And we have set the PlugIn and ManagedXLL to work with .Net 1.1 exclusively. So why would it messes around with .Net Framework 2.0? After a couple attempts, I found a somewhat odd solution: to define a configuration file for Excel. Save the following as Excel.exe.config in the same directory as Excel.exe (requires Admin account):
<configuration>
   <startup>                                
      <supportedRuntime version="v1.1.4322"/>
   </startup>
</configuration>
It seems this config file would force Excel to load 1.1 version of the Runtime. But why would an unmanaged executable such as Excel require .Net runtime (even without the plugin) in the first place is beyond my understanding.

Friday, March 2, 2007

Warren Buffett’s 2006 Letter to Shareholders

Warren Buffett’s 2006 Letter to Shareholders. Some interesting remarks:

On Risks
Don't think, however, that we have lost our taste for risk. We remain prepared to lose $6 billion in a single event, if we have been paid appropriately for assuming that risk... Our behavior here parallels that which we employ in financial markets: Be fearful when others are greedy, and be greedy when others are fearful.
On Accounting
We sometimes encounter accounting footnotes about important transactions that leave us baffled, and we go away suspicious that the reporting company wished it that way. (For example, try comprehending transactions "described" in the old 10-Ks of Enron, evenafter you know how the movie ended.)
On Residential Real Estate & Mortgages
The "optional" contracts and "teaser" rates that have been popular have allowed borrowersto make payments in the early years of their mortgages that fall far short of covering normal interest costs. Naturally, there are few defaults when virtually nothing is required of a borrower. As a cynic has said, "A rolling loan gathers no loss." But payments not made add to principal, and borrowers who can't afford normal monthly payments early on are hit later with above-normal monthly obligations. This is the Scarlett O'Hara scenario: "I'll think about that tomorrow." For many home owners, "tomorrow" has now arrived.
On US Trade Deficit

As our U.S. trade problems worsen, the probability that the dollar will weaken over time continues to be high. ...Like a very wealthy but self-indulgent family, we peeled off a bit of what we owned in order to consume more than we produced. These transfers will have consequences, however. Already the prediction I made last year aboutone fall-out from our spending binge has come true: The "investment income" account of our country---positive in every previous year since 1915 --- turned negative in 2006. Foreigners now earn more on their U.S. investments than we do on our investments abroad. In effect, we've used up our bank account and turned to our credit card. And, like everyone who gets in hock, the U.S. will now experience "reverse compounding" as we pay ever-increasing amounts of interest on interest.

On Derivatives
The answer is that derivatives, just like stocks and bonds, are sometimes wildly mispriced. For many years, accordingly, we have selectively written derivative contracts --- few in number but sometimesfor large dollar amounts. We currently have 62 contracts outstanding. I manage them personally, and they are free of counterparty credit risk.
On Efficient Market Theory
When I talked about Walter 23 yearsago, his record forcefully contradicted this dogma [EMT]. ... The faculties of the schools went merrily on their way presenting EMT as having the certainty of scripture. Typically, a finance instructor who had the nerve to question EMT had about as much chance of major promotion as Galileo had of being named Pope. Tens of thousands of students were therefore sent out into life believing that on every day the price of every stock was "right" (or, more accurately, not demonstrably wrong) and that attempts to evaluate businesses --- that is, stocks --- were useless. Walter meanwhile went on overperforming, his job made easierby the misguided instructions that had been given to those young minds. After all, if you are in the shipping business, it's helpful to have all of your potential competitors be taught that the earth is flat.

Thursday, March 1, 2007

The DJIA Technical Glitch

What happened
According to the statement published by Dow Jones Index, the heavy trading volume caused a 70 minutes delay in the calculation of Dow Jones Industrial Average on Feb 27th, around 2pm. The market data feed for the underlying prices was congested. When the problem was resolved by switching to a redundaent market data system, DJIA suddenly moved to its correct level, causing an almost 200 point drop in 5 minutes.
Effects on Future and ETF
Originally I thought this would cause a bit of chaos in the DIA ETF and Dow Future, both track the value of the index. However, this post compares the intraday charts and reached the conclusion that both the ETF and Future were tracking the correct value of the index all the time. The algorithm trading system at the index arbitrage desks must have been working very hard to squeeze profit out of the system (and eliminating the very arbitrage opportunity at the same time).
Was there an arbitrage opportunity?
Here is some discussion on the subject. I think this eventually boils down to the question of whether there are traders using DJIA as a reference for Future or ETF trading. If these poor souls do exist, they would be trading at wrong prices and give more informed traders immediate profit opportunities.