The Math behind online strategy games

Online strategy games are the kind people play on Facebook , with thousands of multiple users logging in. The graphics are not as demanding as those in a virtual world (like www.secondlife.com or World of Warcraft http://www.worldofwarcraft.com )

second-life.GIF

These graphical games are hugely entertaining and addictive. unfortunately World of Warcraft is not present either in India or China.

wow.GIF

However this post talks about simpler games (which are more like optimization problems). Here gamers get a specific or variable game currency to spend (which can be tokens, gold ,or dollars). The amounts can be fixed or varying dependent on current position. The gamer then has to allocate the currency into multiple resources that increase his net worth (or prevent his net worth from decreasing by other gamer’s interventions “attacks”) .  These multiple resources can be defensive (to prevent other gamers from stealing worth or value/score) , aggresive (to steal other gamers value) or passively accretive (enhances value on stand alone basis). Usually the costs of these resources are different with different benefits . The benefits are either fixed (like in the http://www.facebook.com games Triumph or Return of the Infernals ..below) or they vary (as in the game DopeWars Online).

fb_roti.GIF

To further enhance the optimization complexity , gamers can form alliances or cartels to co ordinate strategy against other gamers.

Such games help in simulating operations production, market forces in business strategy (like the beer game) , and have now taken the leap into free online games thanks to Google’s Open social initiative and Facebook’s  pioneering application building by third party developers.

Ultimately they are simply optimization equations which seek to maximize net worth or score of a player subject to multiple fixed and variable constraints.

A good website to track the world of games is www.gamespot.com

This is a fast growing industry and creativity in designing a simple front end,financial resources to host servers , and some maths to run the back end optimization is all that is required .

You might just get some interesting cash flows from advertising, in game promotions,premium subscriptions , and bonus packs besides enjoying the game of course.

Get (or Atleast Try ) Clicky

After writing about various tools on online analytics, a good favorite is Clicky from http://getclicky.com/

It is recommended especially to WordPress users because it has a customized WP Plugin (which means all the fun without any of the code), has an affiliate referral program (it’s a tough economy !) and can help you track individual visitors with a great deal of analytical value.

You can view the www.getclicky.com site for their own benefit list.

Short of actually building a click stream capturing application (which is quite useful for tracking and building models for web mining), clickstream data is extremely helpful in generating insights as it is at a record /visitor level and can be sliced /diced and viewed for your custom insights.

As for building automated models using web data, their is another software from Kxen (www.Kxen.com). They have been around for some time , though losing out on a couple of big chances , but their web scoring module is definitely worth a dekko.

Keynes and Milton Friedman

The current economic situation is as follows –

1) Growth is high – at 8-9 % p.a

2) Inflation is even higher – at 11 % p.a

3) Inflation i s high for fuel , a huge importer (despite subsidies) and essential food items (a big importer.

4) Non -food credit growth is high (as per the Central Bank ..the Reserve Bank of India,RBI)

5) There is a general election next year , hence inflation is the top concern

6) Economy is dependent on services , and is sensitive to dollar depreciation. Inflow of investment and export dollars is almost matched by outflow for oil imports (nearly 70 %)

7) Equity markets are in a slump (down 25 % this year)

This has led to the RBI doing the following – clamp down on monetary supply by hiking key rates.

Situation is almost the same as the US except that the US has lower growth , nearly a recession , a distressed credit and mortgage market, and has big war expenditures.

Unfortunately  by clamping down on rates ,inflation is less likely to come down because both oil and food expenses are not discretionary expenses.By making capital goods more expensive, the manufacturers will likely pass the increased price to customers leading to demand slowdown first and price slowdown much later if at all. Oil and food will continue to be managed price items hence the subsidy bill on government is going to be higher thus leading to slower investment growth.It might just lead to a mortgage crisis in India as adjustable floating rates are now likely to touch 12 %.
By blindly following Friedman ‘s economic monetary policies of money control, the central banks are ignoring the fundamentals of the current crisis in which essential commodities are having increased prices, and growth is threated by global and financial market failures. Ironically these are conditions that have taken place almost 79 years ago in the macro economic event called Great Depression. A return to Keynesian economics and using the huge bulk up of stored dollars in foreign exchange funds to drive growth  rather than shrink money supply should be the way forward. It is necessary to grow out of this crisis rather than shrink and try and dodge it.

This will however require political leadership in driving long term infrastructure programs rather than short term monetary handouts and subsidies.

Analyzing Web Traffic by Google Trends

And the Google Lords are back with another software. This one helps analyze trends of websites (even if they are not yours) and so is pitched directly at Alexa .

It can be quite useful in analyzing internet web sites and also separating the fact and fiction from new web startups.And no you cant analyze Google sites from this software..the Sith Lords/Jedi of the internet thrive on mystery.

Here is an analysis of the big websites and you can see how Facebook overcame Myspace and why Yahoo.com is such a prize for Microsoft.

chart_social_media.png

facebook.com -Light Blue

myspace.com  -Red

yahoo.com -Orange

msn.com -Green

ebay.com -Dark Blue

5 Web Analytics Softwares (apart from Google)

The following softwares are also recommended for web analytics (or analyzing traffic to your website)

1) Index Tools (acquired by Yahoo in April , thats 2 months ago) and now reportedly free .It is considered comparable in most features to Omniture , the market leader (see below)

http://www.indextools.com/products/features.html

2) Omniture

The leading professional web analytics software. The only caveat is the premium cost.

http://www.omniture.com/en/products/web_analytics

3) Get Clicky

getclicky.com

4) Sitemeter (Small , useful for counting traffics, not useful for graphics rich sites)

www.sitemeter.com

5) Microsoft’s Answer (Adcentre -Analytics)

http://advertising.microsoft.com/advertising/adcenter-analytics

So here are 5 alternative ways to Google Analytics and thus have more , better control over your data.

The actual software used should be dependent on

your budget,

anticipated traffic and

subject matter domain of website.

Google’s fine print

Just read the fine print in Google Analytics,

Google’s (and its wholly owned subsidiaries’) total cumulative liability to You or any other party for any loss or damages resulting from any claims, demands, or actions arising out of or relating to this Agreement shall not exceed U.S. $500.”

“TERM and TERMINATION . Either party to the Agreement may terminate it at any time and for any reason.

Well , thats just standard legal clause right. Wrong.

It happened to me once when my gmail account got de activated for 1 day, as I wrote to larry@google.com and sergei@google.com , asking to stop their recruiter for spamming me.  If they (or any Googler) are reading this , please stop here right now, forgive me and I shall repent ………………………………………………………..for I need that gmail account still.

Anyways Google Analytics remains the best for tracking website performance.You can check website performance in terms of page views,time per page, location of visitors, trends in recency .frequency and duration of visits

Unfortunately it does not give you access to raw data from your own website, but gives you views , and slices of data .

The fine print says Google CAN use that data but you cant since, a record level data can be used for identifying customers using i.p addresses.

INFORMATION RIGHTS AND PUBLICITY . Google and its wholly owned subsidiaries may retain and use, subject to the terms of its Privacy Policy (located at http://www.google.com/privacy.html , or such other URL as Google may provide from time to time), information collected in Your use of the Service.

BLAH BLAH BLAH…

Unless You notify Google otherwise in writing, You hereby grant to Google and its wholly owned subsidiaries a limited license to use Your trade names, trademarks, service marks, logos, domain names and other distinctive brand features (“Brand Features”) in presentations, marketing materials, customer lists, and financial reports.”

7. PRIVACY . You will not (and will not allow any third party to) use the Service to track or collect personally identifiable information of Internet users, nor will You (or will You allow any third party to) associate any data gathered from Your website(s) (or such third parties’ website(s)) with any personally identifying information from any source as part of Your use (or such third parties’ use) of the Service. “.

Agreed on enhanced graphics, and functional design is extremely good for a free software. But it does allow the big G to own more of your data, which they cross sell for advertising.

Now if only Windows /Microsoft started giving programs for free by using advertising in their softwares. or Yahoo launched a tracking software .

Need for Economists in Corporate India

Corporate India has been caught on surprise on many counts recently and most of them are macro economic events.

These have been namely credit rate hikes, inflation due to oil prices (consequent demand for better salaries and attrition) , market entry of new players and above all the rupee appreciation that shave off nearly 1000 basis points off the profitability of unhedged exporters.

Add to this the uncertainty in stock markets over remote events in the sub prime mortgage market in the United States that has actually led to many corporates getting below expectation results in their listing or Initial Public Offerings despite good fundamentals.

All these point to need for better corporate planning and strategizing for economic changes and events especially in a networked world.

Table 1-Top Macro Economic Events that caught corporate India by surprise and their impact

? Credit Policy Hikes by RBI 2006-2007 leading to expensive debt.
? Rupee Appreciation and RBI steps including curbs on ECB.
? Oil Prices and Inflation.
? US Mortgage Market, Effect on Global Equity Markets including India.
? SEZ Policy and impact on communities (this is more of socio-economic topic)

The primary impact of this has been exporters like Infosys missing their earnings guidance due to rupee appreciation, corporates like WNS having lower listed prices ,rising credit costs including for banks , and considerable rework of SEZ plans for corporates like Tatas and Reliance.

These are the biggest names in India, so the impact of lack of econometric planning and forecasting on smaller players is likely to be more.

Most corporates in advanced economies have business intelligence units and economic strategy and planning units. They are used mainly for forecasting sales using scientific quantitative methods like base driver models, time series models and regression models to predict and anticipate demand and align corporate supply and demand chains accordingly.

The usual audience for them is at CXO or Board level advisory positions.

In India while many corporates have started creating these units they are yet to gain the credibility and respect that they would have got in Western Companies.

Main reasons for these are as follows –
depth of Indian academia in application oriented research and their ability to adjust to corporate demands,
skepticism regarding modeling techniques most of which are complex for end users and corporate audiences ,
lack of investment in forecasting soft wares (like SAS , SPSS and even Excel/Solver ) and human resources in these units.

Most Indian corporates would rather hire five more sales managers than invest in two economists who would help create a much better forecast to help plan the corporate strategy.

This is partly due to historic mindsets and partly due to cultural risk aversion, as corporates engage in cost cutting, sales is looked upon as revenue units and planning units are cost centers. An additional complicating factor is that many companies still believe in push based sales, rather than pull based demand targets.

Table 2
Examples of Business Intelligence Units / Planning Units in Indian Corporates.

ICICI
Reliance
Muruguppa Group
Airtel

Examples of Business Intelligence Units / Planning Units in other countries.

General Motors
British Telecom
Nestle
Citigroup

An alternative for corporates unwilling to go into full fledged economics planning units is to become subscribers for customized content providers by third party providers.

This content could be in the form of business research, market research and segmentation studies, predictive models or even economics newsletters. The chief drawback to this is that due to the outsourcing and Knowledge Process Outsourcing boom, sales margins for third party content providers is much more when catering to the global market.

However even for the outsourcing sector it would be advisable to keep a foot in the domestic market, keeping in mind long term growth plans of Indian corporates and the ability to build domain expertise much better while catering to onshore Indian clients rather than offshore global clients. In the short term, these would be lower margins but it would help in building the domain expertise necessary for them to move up the value chain.

As the Indian economy is poised for sustained growth, the size and scale of this domestic demand for economics content would likely scale up manifold. Indian corporates should actually benchmark their demand planning and economic units from international players and partners