Archive for the ‘Uncategorized’ Category

Accounting realization of the day — Inflation and Depreciation

Saturday, February 27th, 2010

After reading the McKinsey Quarterly article on Inflation and Earnings, realized that seemingly currency-neutral financial ratios like operating margin and profit margin are in fact affected by the currency in which they are reported.

This is because of non-cash expenses like asset depreciation which are based on how much was paid for an asset in the past–due to differing rates of inflation, the ratio of “2010 US dollar” to “2000 US dollar” is very different from “2010 Indian rupee” to “2000 Indian rupee”. Assuming higher rates of inflation for the rupee, the operating margin would be higher when reported in rupees, compared to when reported in dollars.

Don’t be bored

Saturday, February 27th, 2010

A series of self-contradictory non-sequiturs

Self-sufficiency is the road to poverty

games of production,
games of consumption,
in the end a game is a game

why be picky?

retirement is difficult, and so it is that meaningful play isn’t all that much easier to get right than meaningful work.

I feel like that’s one of the central lessons of The Culture. In a utopia, Iain Banks shows us how in a limitless and needless world, the problems are very much the same.

Okay, fine, maybe meaningful play is not all that much easier than meaningful work, but it IS easier. The question is whether that is due to others hacking your sense of aesthetics and undermining your free will and things like that. To be truly happy in consumption, you have to find a group of mutually serving people where everyone contributes some atom of meaning, but at that point it’s probably possible to reorganize it into a commercial enterprise anyway.

Point being, I sincerely believe the best things in life are free, or more than pay for themselves.

Kelly criterion in general part I

Saturday, February 6th, 2010

General form for the return R:

R = \Pi_i (1+xa_i)^{p_i}

Optimal conditions:

\partial_x R = \sum_i \frac{p_i a_i}{1+xa_i}\Pi_j ((1+xa_j)^{p_j} = R \sum_i \frac{p_i a_i}{1+xa_i} = 0

Specializing to previous case, where i runs from 1 to 2:

\frac{p_1 a_1}{1+xa_1} + \frac{p_2 a_2}{1+xa_2} = 0

(p_1 a_1)(1+xa_2) + (p_2 a_2)(1+xa_1) = 0

p_1 a_1+ x(p_1+p_2)a_1a_2 + p_2 a_2 = 0

x = -\frac{p_1 a_1+p_2 a_2}{a_1a_2} = -\frac{\left<a\right>}{a_1a_2}

Notice that when p_1\rightarrow 1, x \rightarrow -\frac{1}{a_2}, so as disaster becomes ever more unlikely, you would bet a proportion of your wealth up to the loss ratio. This is a reflection of the Kelly criterion’s tendency to never allow anything to go to zero, under any circumstance.

We’ll consider why this is undesirable in some future post. For now, Let’s make most use of the formulation, and try to find good ways of summarizing win/loss ratios and frequencies to fit into the form above.

The terms for each outcome (\frac{p_i a_i}{1+xa_i} =\frac{p_i}{a_i^{-1}+x} )  sum to zero for the optimal x . Since x > 0, These terms are either monotonically increasing or decreasing with x depending on the sign of a_i.

The question then is how one would represent the two groups of monotonically increasing and decreasing terms so has to figure out which x they net out at. This will be covered in the next post.

Kelly criterion and lottery tickets

Monday, February 1st, 2010

Suppose you have a bet which loses money most of the time, but wins a massive amount now and then, how much money should you put on it?

Let’s say the 1 time you win, you win $a for each dollar you bet, and the N times you lose, you lose $b for each dollar you bet. By the Kelly criterion, the geometric average rate of gain if you bet x of your wealth would be

R = (1+xa)(1-xb)^n

Setting \partial_x R = 0, you get

x = \frac{a - nb}{(n+1)ab} = \frac{\left<\mathrm{arithmetic\ gain}\right>}{ab}

Suppose you are asked to flip a coin, and heads you win $3, and tails you lose $1—then n=1, a=2,b=1, and therefore x = \frac{1}{2 \cdot 2} = \frac{1}{4}, i.e., you should bet 25% of your wealth.

If you have a lottery ticket that has a 1 out of 5,000 chance of winning $10,000 that costs $1, and you are only allowed to buy one number, then n=4999,a=9999, b=1, and
x = \frac{5000}{49999 \cdot 9999} \approx 10000^{-1} and you should only bet 0.01% of your wealth at a time.

Conversely, if you were selling a lottery ticket that had 1 out of 10,000 chance of winning $5,000 that cost $1, n = 9999, a = -4999, b = -1, and x = \frac{5000}{9999\cdot4999} \approx 10000^{-1} and you should be trying to have about 0.01% of your wealth at stake.

Related: Do not play the lottery unless you are a millionaire

Case-Shiller futures have no liquidity :(

Thursday, January 7th, 2010

When I first found out about Case-Shiller futures, I was pretty excited at the possibility of buying a house, enjoying the cheap loan and tax benefits, and hedging out most of the risk.

Alas, the futures have no volume. As of today the open interest on the Feb 2010 New York Case-Shiller futures (NYMG10) is 2 (as in the first integer greater than 1).

It’s difficult to make markets when the underlying and the instrument differ so much in liquidity? Granted, SP500 futures are more liquid than the basket of stocks too, but that gap is bridgeable. What differentiates a bridgeable from an unbridgeable gap? What implications does this have for the existence of noise traders?

Notes on money

Saturday, January 2nd, 2010

Money is a medium of exchange. When exchanging A for B, we prefer to exchange A for money and then money  for B.

Money is a store of value. On top of holding money temporarily while exchanging A for B, we also hold money when we haven’t determined what B we want yet. Holding money is preferable to holding A because A might be bothersome to store (e.g., a truckload of sand) or it might become less valuable with time (e.g., a truckload of apples).

The usefulness of money gives rise to a liquidity preference. Keynes enumerated three ways in which money is useful: as a buffer to smooth out short-term volatility (known unknowns) in income and expenditure, for use as emergency reserves (unknown unknowns), and for use in speculation, i.e., using knowledge of prices to buy assets at low prices and sell them at high prices. The first two forms of liquidity preference tend to grow with income, whilst the last is more affected by the interest rate and expectations of future interest rates.

When the economy is in a state of equilibrium, each party holds a constant amount of money, and it is possible to think of the flow of money as consisting of many cases of multiparty barter, i.e., every dollar flows in a circle, with goods and services flowing in the opposite direction. This money flux is the GDP, and is a measure of economic activity.

Some goods are not directly consumed, and instead are used to produce other goods and services – these are called investment goods. The accumulation of investment goods increases production.

When stimulating the economy by printing money, one dumps money into certain regions, and that money proceeds to flow outwards from the introduction points. Iff that flow results in the accumulation of investment goods, the economy is successfully stimulated.

Incentive compensation

Friday, December 25th, 2009

Income from an asset, X, depends on manager decision A and random factor s, so X = f(A,s). Assume that managers are motivated by personal income I(X), such that the action taken A(I) = \arg\max_A{E_s(U(I(f(A,s)))} where U is the manager’s utility function and I is the incentive-compensation scheme.

The problem in incentive compensation (principle-agent theory) is that of finding \arg\max_I{E_s(f(A(I),s)-I(X))}, the incentive compensation scheme under which payoff to the owners is maximized. The inputs considered are the utility (including risk adversity) of the manager, U, and the relationship of effort to outcome, f.

By designing I, you want to maximize the incentive (the responsiveness of compensation to managerial effort) while minimizing the actual payoff, all while sharing risk so that the manager is not crippled by the risk involved.

Net-net, it seems to suggest that we don’t want managers that are too rich, since the manager needs to have a significant proportion of his wealth vested in the company (to align risk interests and prevent moral hazard) at the same time the owners are trying not to pay him too much, and hence limit his ownership of the company. In fact, it seems to me that an equitable arrangement always results in the manager’s percentage ownership of the company growing with time, an effect only partially offset by the growth in asset value as a whole. After all, what good reason can a manager give for not wanting to own more of the company they have control of?

The possibility of separating ownership from management is made possible by knowledge of responsiveness of managerial effort to reward (motivation, A(I)) and the responsiveness of asset income to managerial effort (f). This knowledge cannot be guaranteed to always be of a form that makes the separation possible.

Learning to consume — Brooks Brothers

Sunday, September 13th, 2009

Bought Brooks Brothers shirts for the first time today. Very curious pricing structure — 1 shirt for $80, 3 shirts for $200, $60 off for going above $300.

The marginal prices of the 6 shirts I got were then $80, $80, $40, $80, $20, $40, making for an average price of $56.

hedonic treadmill avoidance

Wednesday, July 29th, 2009

There’s something awful about thinking that personal capabilities are strongly ordered – that for every two people with different capabilities, one of the two can do everything that the other can. This feeling is behind the aversion to taking money too seriously, because money is definitely strongly ordered. If money were everything, I’d either be better or worse than you, with no other possibility.

Thank god money isn’t everything then. More accurately, thank god prices do not completely represent my desire for things. If everyone had the same desires and productive abilities, then prices would indeed represent desires, but because of the different desires (demands) and productivities (supplies), there is much to gain from exchanging goods I produce with other people.

To the extent that people conform in their desire for scarce items, however, prices are inevitably accurate measures of personal demand, and it’s an endless rat race. To the extent to which prices of things are aligned with the degree what I want them, there is only one way to become happier – to make more money.

What is the most common hand in texas holdem?

Wednesday, July 29th, 2009

Drawing 5 cards out of a deck 100,000 times, I got

      1 SF
     23 4K
    110 FH
    220 FL
    412 ST
   2144 3K
   4706 2P
  42322 1P
  50062 HC

Drawing 7 cards out of a deck 100,000 times, I got

      5 SF
    181 4K
   2595 FH
   3016 FL
   4633 ST
   4907 3K
  17251 HC
  23565 2P
  43847 1P

One-pair becomes the most common hand!

See also: http://en.wikipedia.org/wiki/Poker_probability