• Skip to primary navigation
  • Skip to main content

The One Percent Almanack

Wit and Wisdom on Investing, Business, and Life

  • Home
  • Members
  • Log In|Log Out
  • Show Search
Hide Search

Picking Stocks Like a Mathematician

July 21, 2019

Have you ever noticed that finding an available spot in the multilevel car parking in any mall or shopping complex is an interesting exercise in mental maths? Let me explain.

Whenever I enter the parking area, I often try to optimize, i.e., find a spot near the lift lobby/staircase. Which means the moment I enter the parking area, I have to forego the easily available spots and keep driving towards the lift lobby and then hope that there’s a spot available near it. If there isn’t, then I would have to drive up to the next floor, which is kind of worse than the case where I would have taken the first few available spots near the parking entrance. So how many first available spots should I pass before I decide to stop searching?

It turns out that mathematicians have spent centuries thinking about this class of problems. They call it The Optimal Stopping problem.
[show_to accesslevel=’almanack-all’]

Imagine you’re an administrator who wants to hire the best secretary out of 100 applicants for a position. The applicants will be interviewed one-by-one in random order. The condition is that a decision about each particular applicant needs to be made immediately after the interview. You can’t save your decision for future neither you can sleep over it. Either hire the candidate and stop the interview process or reject him and move on to the next candidate. But, once rejected, an applicant cannot be recalled.

During the interview, you can rank the applicant among all applicants interviewed so far. However, you’re still unaware of the quality of yet unseen applicants. The question is — what strategy should you adopt to make a decision to ensure that you end up hiring a reasonably good secretary among the hundred applicants?

Of course, without interviewing all the 100 candidates, it’s not possible to decide who is the best among them but given the condition that you can’t hire a once rejected interviewee, you don’t have the luxury of evaluating all the candidates. Which means the optimum strategy is one which employed multiple times (for hiring for multiple positions) will statistically select the best candidate most of the time.

So the dilemma is this — do you take the first candidate who seems good enough? If so, then you are missing out on the possibility of better candidates further down the line. Or do you reject the first ninety-five to get an estimate about the quality of the applicant pool, then from the final five you choose the one who is closest to the best candidate you’ve seen so far? Again the risk is — what if all five turn out to be duds?

The riddle is popular among mathematicians and they’ve named it (uncreatively) as The Secretary Problem. Brian Christian and Tom Griffiths in their book Algorithms to Live By explain —

…the optimal solution takes the form of what we’ll call the Look-Then-Leap Rule: You set a predetermined amount of time for “looking”—that is, exploring your options, gathering data—in which you categorically don’t choose anyone, no matter how impressive. After that point, you enter the “leap” phase, prepared to instantly commit to anyone who outshines the best applicant you saw in the look phase.

So how long do you keep looking and when do you decide to leap? Rolf Dobelli writes in his book —

Surprisingly, there is only one optimal solution. You should interview the first thirty-seven candidates and reject them all; meanwhile, however, you should be monitoring their quality. Then keep interviewing until you find someone who is better than the top applicant out of the previous thirty-seven. Hire her. You’ll be making an excellent decision. She may not be the very best of the hundred applicants, but she’s sure to be a solid choice. Every other approach has been shown to produce statistically worse results.

What is it about the number thirty-seven? Thirty-seven is 100 divided by the mathematical constant e (2.718). If you had only fifty applicants, you would turn down the first eighteen (50/e) then hire the first candidate who was better than anyone out of the previous eighteen.

The Secretary Problem is quite relevant in the context of investing. Replace the administrator with an investor and applicants with stocks. It’s an unending dilemma for an investor — whether to wait for a better stock idea (or to wait for the stock price to correct further) or to go ahead and deploy the cash with whatever is available now.

Warren Buffett and Charlie Munger are known to wait for years together before they decide to buy a stock or a business. But that strategy works for seasoned investors who have already refined their investment philosophy over the years by making mistakes and learning from them. As far a new investor is concerned, waiting endlessly may be a bad idea. But at the same time investing in the first idea that comes along is also foolishness.

Let’s say you decide to construct a portfolio of 10 stocks with your available capital. The question you need to answer for every stock is how many ideas should be evaluated before you say yes. Once you invest in a stock, that cash is gone and is not available for the next idea. On the other hand, if you reject a stock idea, the same stock may not be available at the same valuation in the future.

In other words, for how many stocks should a new investor say, “pass” before saying yes? It’s the investing version of The Secretary Problem. And not just investing, this decision-making conundrum extends to many other areas like finding a new house, choosing a job, an industry, a partner, or an ideal holiday destination.

Now, in investing (and in life and business) you can’t really do the mathematician’s kind of precise calculations. Even if you could, you must not. Charlie Munger often reminds, “It’s better to be approximately right than precisely wrong.”

When I started investing eight years back, in spite of having read about value investing and Warren Buffett’s investing strategy, my first 5-6 stocks were bought in haste. How do I know I hadn’t waited enough? Because when I sold those stocks (all of them were blunders), I couldn’t really do a post mortem of what went wrong because I hadn’t formed a hypothesis before buying those stocks. There’s no learning in the absence of a hypothesis.

Do you know how do most people decide when they face a version of The Secretary Problem in their lives? Experiments have shown that most people end up deciding too early. And my guess (confirmed by my own experience described above) is that it’s true for the new investors also.

Dobelli explains it excellently —

Why do we tend to make decisions too soon? Where does our impatience come from? Random sampling is time-intensive. Doing a hundred job interviews when we could be done in five? Going through ten different application procedures before picking a place to work? It’s a lot of effort—much more than we’d like. Plus, sampling is gluey. It’s easy to get stuck in an industry simply because you poked around in it a bit when you were young. You might have built a career in it, of course, but you almost certainly would have met with the same success elsewhere, or perhaps with more success and greater enjoyment—if only you’d been a little more willing to experiment. The third reason why we tend to make choices too quickly is that we prefer to keep our minds clear. We like ticking stuff off and moving onto the next item on the list. That’s fine for inconsequential decisions, but counterproductive for the important ones.

The Optimal Stopping problem which I mentioned at the beginning of this post is a more generic form of The Secretary Problem. And as the name suggests, it is the investigation of the most optimal point at which one should stop the search.

Christian and Griffiths again —

The study that most closely follows the classical secretary problem was run in the 1990s by Rapoport and his collaborator Darryl Seale. In this study people went through numerous repetitions of the secretary problem, with either 40 or 80 applicants each time. The overall rate at which people found the best possible applicant was pretty good: about 31%, not far from the optimal 37%. Most people acted in a way that was consistent with the Look-Then-Leap Rule, but they leapt sooner than they should have more than four-fifths of the time.

Rapoport told us that he keeps this in mind when solving optimal stopping problems in his own life. In searching for an apartment, for instance, he fights his own urge to commit quickly. “Despite the fact that by nature I am very impatient and I want to take the first apartment, I try to control myself!

So the central idea is to wait longer than what our instincts tell us to. In general, we’re impatient and want to get done with the task of deciding. Having taken a decision relieves the mental burden. Our brain doesn’t like to be in a state of “should I or should I not” and the more choices it has to go through the more taxing it is.

Dobelli sums it up well —

The world is much bigger, richer and more diverse than we imagine, so try to take as many samples as you can while you’re still young. Your first years of adulthood aren’t about earning money or building a career. They’re about getting acquainted with the universe of possibility. Be extremely receptive. Taste whatever fate dishes up. Read widely, because novels and short stories are excellent simulations of life. Only as you age should you adapt your modus operandi and become highly selective. By then you’ll know what you like and what you don’t.

The take-home lesson for investors (especially the young ones who are just getting started) is to spend time evaluating (interviewing) more and more businesses rather than loading up on what you see first and wishing for multi-bagger returns.
[/show_to] [hide_from accesslevel=’almanack-all’]

Want to Read More? This content is exclusive for members of Value Investing Almanack. Login to read if you are a member. Else, click here to subscribe.

Benefits to VIA Members

 

  • Spotlight: Big ideas from Value Investing and why applying them in your investment decision making will be a great deal
  • InvestorInsights: Interviews with experienced value investors, learners, and deep thinkers
  • StockTalk: Thorough analysis of business models of companies (without any recommendations)
  • Behaviouronomics: Deep analysis of human behaviour and how it impacts investment decision making
  • BookWorm: Reviews of the best books on Value Investing and related subjects
  • Free Course – Financial Statement Analysis for Smart People (otherwise priced at Rs 5,900)
  • Archives: Instant access to our huge archive from the past three years

Become a VIA Member. Click to Subscribe

[/hide_from]

Filed Under: Spotlight

Handcrafted with in India