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")     

Wednesday, June 3, 2015

Gaming the P/E

One of my current projects (for entertainment purposes) is the calculation of the Price to Earnings ratio (P/E) of the PSEi index. My interest in it lies in its usefulness as a rule of thumb way of comparing returns on investment of stocks versus bonds.

There are various ways of calculating this quantity (and therefore various ways of misleading the people who use this ratio). The most primitive method is to look at the current stock price of a company and then divide it by the most recently reported earnings per share, a quantity that should show up in the financial statements of a corporation. 

Another way of calculating this is to use analysts best estimates for the future earnings per share. This can be confusing, especially since some news services do not actually specify where the earnings per share value used comes from.

What are the disadvantages of these two methods? The first one is the tendency of management to inflate the earnings per share value reported, especially when management compensation comes from stock options. Meeting or beating analysts predictions is one way of encouraging the increase of the stock price. I've read of many such cases in the US; every time there's news of an earnings restatement, I wonder about the auditors and the management. The most famous example of earnings statement manipulation is Enron.

The second disadvantage lies in analysts being human. Precise figures are produced without error bars just looks like black magic. Any prediction about the future will contain uncertainty, and the error bars get larger as the length of time involved increases. Weather prediction, for example, gives only a week or so. Typhoon paths for example, contain error bars, and the error bars increase with time. I've read studies of analyst accuracy, and they don;t make a good showing.

One way of getting around the uncertainty of past year earning estimates is to take a time average, for example, over ten years (suitably indexed to take inflation to account), and then use this average earning per share to calculate P/E. The problem, of course, is how representative this average is of present or future earnings.

One case where this average seems to be useful is for the stock market as a whole. Shiller, in Irrational Exuberance, uses this ratio for the S and P index to check whether the market as a whole is overpriced. The claim is that "normal" levels would be at around 15, and numbers above this mean the market is overpriced.

I sometimes calculate the inverse of the P/E ratio as a way of comparing the return on investment on a stock to that of a bond. If you divide 100 by the P/E, then you have an estimate on the return on investment, assuming you just bought the stock at that price. 15 means a return of around 6.8 percent, slightly better than the current return on BBB bonds which is, as of writing, at around 4 percent per annum. This number of course is most meaningful if you take the perspective of the controlling shareholder, assuming you bought control at that price. 

One should not read too much into the P/E ratio. There are other ratios that Graham and Dodd suggests as a way of measuring the health and return of a corporation, e.g. Total Earnings to Current Assets, etc. One ratio that I'm partial to (if only getting that information for free is so damned difficult) is the Price to Corporate Income Tax per share ratio, since it gives similar information as the P/E but this time, based on actual taxable income. Alas, like all financial ratios, it is also possible to game.   

Tuesday, June 2, 2015

Of reading and calculating there is no end

I spent the last few days reading the prospectuses of three PSEi based index mutual funds. I was mostly interested in the expenses of each fund, since all three should be doing exactly the same thing: buying a portfolio of representative stocks that constitute the PSEi. Since they're all doing exactly the same thing, their returns (fees excluded) should be the same. This means if one wants to maximize the returns from an index fund, one should buy shares from the fund with the lowest expense ratios.

All this, because I've decided to start putting my retirement plan into action. I've calculated the assets that I would need, and it comes to PhP 6 million, or around USD 140000. For a good margin of safety, I estimate about PhP 12 million.

The biggest factor that I need to control while on the way to this amount is emotions. I'm planning on a buy and hold strategy; this means having the necessary willpower to buy and forget, even if the market declines so much that my investments go down to half the peak of its market value. (I won't actually be doing the buy and totally forget, since I will be tracking the money that goes in, just to make sure that I can avoid things like fraud, for example.)

The good news is I don't have any outstanding debt. The bad news is my net worth right now is low: about three to four months of living expenses. I can expect money to start flowing in by November because that would be the season when demand for a physics tutor will start to rise. I also have a writing gig that supposed to start mid-June. Meantime, I need to ensure that I live with very low expenses.

To help keep things in perspective, I'm rereading my favorite investment related books: Benjamin Graham's The Intelligent Investor, Burton Malkiel's A Random Walk Down Wall Street, and Robert Schiller's Irrational Exuberance. No "technical analysis" books for me. These are popular books, with some math (meaning simple arithmetic). They suit my taste because I like to calculate things, and I often use their discussions to start my own calculations and math models. It's more fun for me that  way, just to see if I can reproduce some of the results in finance and investment books like Brealey and Myers' text.

I've also intsalled R, because I'm studying probability and statistics, so that I can include it in my portfolio of teachable subjects. Right now, what I do have of probability and statistics are loose ends gathered from my various statistical physics subjects. So there is a need to study it in more detail.  

Monday, June 1, 2015

Starting My Random Walk on Wall Street

Although I've been reading a variety of books on investing and personal finance, I've procrastinated getting a stock trading account and mutual fund shares. Blame Newton's First Law of Procrastination:" A graduate student in a state of procrastination will stay in the same state unless acted upon by an outside force."

My interest in finance started in earnest when I was still in my first teaching job. The university I was working for gave out free copies of the Wall Street Journal every week, and I read them for entertainment, as well as for finding out what Republicans more or less thought about. To help me understand what I've read, I started looking at finance books both from the fundamentalist perspective (Graham's The Intelligent Investor ) and from the Random Walker perspective (Burton Malkiel's A Random Walk Down Wall Street).

I've never liked taking things on faith, and so when there is a statistical or mathematical claim, I prefer being able to calculate and verify. So I started reading Graham and Dodd to help me get a better idea of how fundamentalists decide on value (it's mostly reading financial statements and calculating financial ratios, and some entrail reading for predicting future returns). I also got a copy of academic texts on finance and investments, which I haven't fully gotten around to reading yet. Mostly, if I need a summary of the academic results on investments, I either read Schaum's outlines, or do a google search for the relevant definitions.

During my time as a high school physics teacher, I invested my extra cash in fixed deposits in a credit cooperative. Although the returns were low (it was at around 5% per annum), it was relatively safe, since the cooperative mainly lent to employees of my school, and the payments for loans were automatically deducted from salaries. If I had stayed there, it would have been one of the good places to save for retirement. My estimate was in terms of risks of default, it would be between the same level as BBB bonds and having a diversified portfolio of junk bonds.

After leaving that job though, I needed cash to live on, and the fixed deposits I managed to save was worth about a few months of living expenses. To get access to that money, I had to leave the cooperative (stop being a member). This meant I needed a place for saving for retirement.

At first, I thought about opening a stock trading account, and then try to simulate an index fund. Since I didn't have enough capital to perfectly simulate the PSEi index (although I think simulating the all-shares index was better), I was thinking of buying stocks using a Monte Carlo method that ultimately converges to the same proportions as the PSEi.

Of course, an index fund was initially lower cost, but my intention was plain buy and hold, so I thought it would lower transaction costs using my strategy. There would be large tracking errors as my portfolio was being built, but as time goes on, it should settle to small values until I was effectively running my own index fund. As I did all that, I would be learning about index fund management.

Why do this when buying index fund shares was less labor intensive? I was motivated by the way mutual funds in the Philippines are systematically gouging money from their subscribers. One of the most important things I learned from Burton Malkiel was, if all other things are equal, the fund with the lowest costs would be the best performing.

When I first checked the web for index funds in the Philippines, there was only one, and they charged exorbitant fees per annum. The management fees was at around 1.5 percent per annum, and they charged sales loads. Note that index funds in the US (I was thinking of Vanguard) had zero loads as well as low management fees that were at around 0.20% So that index fund was bilking their subscribers for doing something that can be automated, since index fund portfolios follow an algorithm, so the management fees should be minimal. The cost of entry was also a big factor, with the initial investment at around PhP 50K.

After that, BPI set up a UITF that was an index fund, and the cost of entry was PhP 10 K. I couldn't find a prospectus, so I couldn't tell what the fees were. Although the summaries available on the BPI website did state a fee of 1.5% per annum. I do vaguely remember that before this, the entry requirement was around PhP 20K.

My final decision though was to get index fund shares from Sun Life, mainly due to the lower management fee of 1%, even though it had a 2% sales load. My investment horizon is greater than five years, so after 5 years, this should outperform an index fund with zero sales load but 1.5% management fees. There was even an option to get a zero sales load, but it meant larger back-end loads if the shares are redeemed earlier than 5 years. I chose not to avail it because I wanted to be able to redeem shares earlier in case I needed the money. If I had a greater savings reserve, I would probably have used it.

For those who choose to buy shares from Sun Life, one should be wary of being sold other products that you may not need. A conversation with one of their financial advisers is one of their requirements before you purchase shares, and one of the things these advisers will do is try to sell variable life insurance plans. These are hybrid products that are a combination of mutual fund and insurance. Regular premiums are expected here, and I'm guessing that getting these should cost as much or even more than getting insurance and mutual fund separately. I haven't crunched the numbers yet, so I can't be sure about that, but US experience says getting a VUL is more expensive, so I suppose the same dynamic works here. Once I get the numbers calculated (I got quotations for term life and the VUL), I should be able to give firmer concusions.


Wednesday, April 22, 2015

new blog

I've started a new blog, but it's meant to focus on only on thing: single-tracked vehicles. I've promised that I would write about it, and it feels better for me to not add motorcycle related posts to the mix that's already here. Even I feel that a life too ordered is a bad thing, so is too much randomness.

Friday, February 27, 2015

Banaue to Bontoc at night

What our ride was like from Banaue to Bontoc: