About Me

When not at work with students, I spend my time in my room either reading, calculating something using pen and paper, or using a computer. I read almost anything: from the pornographic to the profound, although my main interests are mathematics and physics. "When I get a little money I buy books; and if any is left I buy food and clothes." -Erasmus

Sunday, November 1, 2015

Mula sa baul

Naglaglagan na ang mga bulaklak ng narra:
Mistulang yelong dilaw na nagkalat
sa kalsadang ni minsan di nakaranas ng taglamig.

Ako din: ang tanging lamig na naranas ko
dulot lang ng lagnat, sigwa,
at de-kuryenteng makina.

Walang lamig dito ngayon.
Mga bata na lang ang mga nagtatago
ng mukha sa pridyider.

Nandito ako ngayon sa lilim ng narra
minamasdan ang mga dilaw na bulaklak
at maya-maya rin magsisindi.

Manonood habang daliang tinutupok
mga bulaklak na pinagmamasdan natin dati.

In English:

Narra flowers have fallen on the road.
Like yellow snow on concrete
that has never known winter.

Like me: the only chill that I have felt
was due to fever, typhoon,
and machine.

I'm sitting here under the Narra tree
watching the yellow flowers 
preparing a match.

Later to watch these flowers, 
that we used to watch fall,
burn til nothing remains.

Monday, August 24, 2015

Sinatra, or why older is sometimes better

When I was a lot younger, the only music I would hear in the house would be jazz standards. And so I grew up with Tony Bennett and Sinatra and Nat King Cole being played by the radio all day long. (Does anyone even listen to the radio anymore?) Of these singers, I got to appreciate Sinatra only when I was older.

Sinatra always put me off because I felt that the way he sang his songs (at least in the albums I did hear) felt shallow. I suppose the teenagers of his time might have found his rendition cute, but it never did hit me right. I It was only when I was about to enter university that I started to appreciate his music, and the catalyst was a live album: Sinatra 80th Live in Concert. I used to play it over and over again, and sing with it.

When I finally got internet access, I started searching for mp3's and videos of Sinatra's other albums, and it hit me: I still felt that his early albums were not as good. The clue that led me to understand why was found, of all places, while reading Mario Puzo's The Godfather. One of the characters, Johnny Fontaine, was modeled after Sinatra, and you could divide his career into two phases, before he lost his voice, and after he regained it. And I realized that in the same way there are two phases in Sinatra's work: when he was younger (which I disliked) and when he was older (which I loved). I'll link to two youtube videos so that you can sample how he does the same song, once as a youngster, and the other when he was much older. I think the older Sinatra wins.

Here's the younger Sinatra (1959)

 and the older Sinatra (1982) below.

Tuesday, June 16, 2015

Less Than Meets The Eye

I saw this on my facebook timeline today:

and I would like to invite you to guess what's wrong with it.

If you look at the numbers, you should be immediately suspicious of the grams of protein to calorie ratios. The better measure of protein content is grams of protein to grams of food. Take broccoli for instance. One of the things we can expect is that broccoli, on a per gram basis, does not contain the same amount of calories per gram as meat. (This is the reason, by the way, why dieters love veggies. You can get the feeling of being full without taking in as many calories if you eat the same mass of veggies as meat.)

I did a search on the per gram protein content of broccoli, and one of the websites I hit was this. Go read it, as it is both informative and hilarious.

This case reminds me of other places where numbers can be used to mislead. I've recently acquired various books on the analysis of financial statements: Mulford and Comiskey's The Financial Numbers Game: Detecting Creative Accounting Practices, Schilit and Perler's Financial Shenanigans, and Fridson and Alvarez's Financial Statement Analysis: A Practitioner's Guide, so I suppose that in this instance, I was already primed to check the numbers. After finishing Kahneman's Thinking Fast, Thinking Slow and Thaler's Nudge, I've decided to entertain myself with financial statement analysis. I'm reading slowly through Fridson's book, and one of the insights that I've gained is to examine income statements in terms of percentages of sales. Unfortunately, after reading these books, one leaves with a less than charitable impression of corporate management.

Monday, June 8, 2015

Unfair wagers

I've been reading a few books with a decidedly behavioral economics theme. The two most recent ones were Dan Ariely's Predictably Irrational, and Belsky and Gilovich's Why Smart People Make Big Money Mistakes -- And How To Correct Them. I've had a lot of time for all this since I'm currently out of work, and waiting for a government funded writing project. I'm also seriously considering becoming self-employed, since I much prefer doing something self-directed. My main expected headache, though,  is how to deal with taxes if I do take that route.

From my recent reading, I encountered the following problem: Assume that you have a fair coin (equal likelihood for heads and tails), and you were asked if you were willing to make the following wager: USD 150 for you if it's heads, and USD100 for the house if it's tails. Would you be willing to take that wager?

A simple calculation shows that the expected payoff if you do take the wager is USD 25, which is obtained in the following way: Expected payoff $=(150)(0.5)+(-100)*(0.5)$ =USD 25. So if you were the rational man of classical economics, you should take the wager.

Unfortunately, there is something that's really wrong with the rational man. If your total net worth is USD 100, then if you were unlucky, then you may be faced with ruin at a single toss of the coin. That's certainly not a good outcome. And if you have a net worth, for example, USD 200, then the odds of getting both tails would be 0.25. Again, if you were unlucky, you could face ruin after two tosses with probability $\frac{1}{4}$.

The only realistic way that you could play this game is if you had a margin of safety, if the bets you make were small compared to your net worth. I'm not sure, for example, if the bank would be willing to extend credit while you take the losses while you undergo large number of bad runs. Given how hard it is to raise additional capital, even unfair wagers where you have the advantage may be a bad idea.

Friday, June 5, 2015

Mandelbrot, Fat tails, and other things

I spent yesterday continuing my reading of Mandelbrot's book on the (Mis)behaviour of Markets. Although I 've read excerpts before (my thesis adviser has a copy somewhere in the theoretical physics group room), it was only yesterday that I obtained a copy, and was able to read it through.

One of the things that I keep coming back to is probability estimates, and quantifying risk. (This is one motivation for reading Mandelbrot, as he forces me to think again about these things.) Conventional finance has such measures (the volatility of stock prices of a stock, or index for example), but I'm not sure how reliable it is.

Part of the things we studied in the theory seminars I've attended is the study of random walks. There are a lot of flavors, apparently, and it all boils down to the probability distributions that you use for each step. Conventional finance calculations seem to rely on Gaussian distributions, and for these, experimental estimates of probability can be obtained by taking the mean and standard deviation. From these, the sophisticated machinery of confidence intervals and parametric tests emerge.

The world, however, is not so nice. If, for example, the underlying distribution for the steps in a random walk are Cauchy distributions (an example of a fat-tailed distribution), then the probabilities of very large steps are more likely than an experimental measurement of mean and variance will indicate. In finance, these large steps either produce great fortunes or ruin.

And yet, I keep procrastinating on the studies of probability and statistics that I need. 

Still, I need to dust off those finance books and random walk books, so that I can start reading and rereading, as well as calculating. Some of the finance material has applications after all. But I'm not sure about rereading; sometime, it's more fun to read enough to understand the problem, and then work out the solution, than it is to read both.

I do have lots of questions to think about: what determines the risk premium for stocks over bonds? How do we measure the performance of an index fund relative to the index it's supposed to follow? (I want quantitative measures, and a suitable motivation for the definition of the measure.) How do we know if a fund consistently beats the index? (The problem is finding the right definition of "beat the index")