Tag Archives: oud

A Better Way To Run Bootstrap Return Tests: Block Resampling

Developing confidence about a portfolio strategy’s track record (or throwing it onto the garbage heap), whether it’s your own design or a third party’s model, is a tricky but essential chore. There’s no single solution, but a critical piece of the analysis for estimating return and risk, including the potential for drawdowns and fat tails , is generating synthetic performance histories with a process called bootstrapping. The idea is based on simulating returns by drawing on actual results to see thousands of alternative histories to consider how the future may unfold. The dirty little secret in this corner of Monte Carlo analysis is that there’s more than one way to execute bootstrapping tests. To cut to the chase, block bootstrapping is a superior methodology for asset pricing because it factors in the reality that market returns exhibit autocorrelation. The bias for momentum – positive and negative – in the short run, in other words, can’t be ignored, as it is in standard bootstrapping. There’s a tendency for gains and losses to persist – bear and bull markets are the obvious examples, although shorter, less extreme runs of persistence also mark the historical record as well. Conventional bootstrapping ignores this fact by effectively assuming that returns are independently distributed. They’re not, which is old news. The empirical literature demonstrates rather convincingly a strong bias for autocorrelation in asset returns. Designing a robust bootstrapping test on historical performance demands that we integrate autocorrelation into the number crunching to minimize the potential for generating misleading results. The key point is recognizing that sampling historical returns for analysis should focus on multiple periods. Let’s assume that we’re looking at monthly performance data. A standard bootstrap would reshuffle the sequence of actual results and generate alternative return histories – randomly, based on monthly returns in isolation from one another. That would be fine if asset returns weren’t highly correlated in the short run. But as we know, positive and negative returns tend to persist for a stretch, sometimes in the extreme. The solution is sampling actual histories in blocks of time (in this case several months) to preserve the autocorrelation bias. The question is how to choose the length for the blocks, along with some other parameters. Much depends on the historical record, the frequency of the data, and the mandate for the analysis. There’s a fair amount of nuance here. Fortunately, R offers several practical solutions, including the meboot package (“Maximum Entropy Bootstrap for Time Series”). As an illustration, let’s use a couple of graphics to compare a standard bootstrap to a block bootstrap, based on monthly returns for the US stock market (S&P 500). To make this illustration clear in the charts, we’ll ignore the basic rules of bootstrapping and focus on a ridiculously short period: the 12 months through March 2016. If this was an actual test, I’d crunch the numbers as far back as history allows, which runs across decades. I’m also generating only ten synthetic return histories; in practice, it’s prudent to create thousands of data sets. But let’s dispense with common sense in exchange for an illustrative example. The first graph below reflects a standard bootstrap – resampling the historical record with replacement. The actual monthly returns for the S&P (red line) are shown in context with the resampled returns (light blue lines). As you can see, the resampled performances represent a random mix of results via reshuffling the sequence of actual monthly returns. The problem is that the tendency for autocorrelation is severed in this methodology. In other words, the bootstrap sample is too random – the returns are independent from one another. In reality, that’s not an accurate description of market behavior. The bottom line: modeling history through this lens could, and probably will, lead us astray as to what could happen in the future. Let’s now turn to block bootstrapping for a more realistic profile of market history. Note that the meboot package does most of the hard work here in choosing the length of the blocks. The details on the algorithm are outlined in the vignette. For now, let’s just look at the results. As you can see in the second chart below, the resampled returns resemble the actual performance history. It’s obvious that the synthetic performances aren’t perfectly random. Depending on the market under scrutiny and the goal of the analytics, we can adjust the degree of randomness. The key point is that we have a set of synthetic returns that are similar to, but don’t quite match, the actual data set. Note that no amount of financial engineering can completely wipe away uncertainty. The future can and probably will deliver surprises, for good and ill, no matter how clever our analytics. Nonetheless, bootstrapping historical data (or in-sample returns via backtests) can help separate the wheat from the chaff when looking into the rearview mirror as a preview of what lies ahead. But the details on how you run a bootstrap test are critical for developing comparatively high-confidence test results. In short, we can’t ignore a simple fact: market returns have an annoying habit of exhibiting non-random behavior.

Facebook Passes 50-Day Test; Netflix, Illumina Break 2 Support Lines

Facebook ( FB ) tested a key level Tuesday morning but came out stronger. But Netflix ( NFLX ) and Illumina ( ILMN ) crashed through support levels on weak Q1 figures. IBM ( IBM ) gets an incomplete. MaxLinear ( MXL ) triggered a sell rule as well as breaking a support level. Facebook Facebook has been finding support at its 50-day moving average since April 11, when shares finished just below that key level. Since then the stock has closed above that support level. On Tuesday, Facebook shook off a morning dip to just above the 50-day to rally for a 1.7% gain at 112.29. On the upside, the next key level is a buy point at 117.09. Facebook releases earnings next week, with analysts expecting a 48% EPS gain, the third straight quarter of accelerating growth. Netflix Netflix late Monday reported an unexpected rise in Q1 earnings per share. Subscriber growth also topped expectations. But the Web-streaming giant expects net global-customer growth of just 2.5 million in Q2, which would be the weakest quarterly gain in two years . It also guided Q2 earnings lower. Netflix stock dived 13% Tuesday, crashing through its 200-day and 50-day moving averages in one fell swoop. (Netflix retook its 200-day line just last week). How do Netflix and IBM stack up vs. their rivals? Find out at IBD Stock Checkup Illumina Illumina late Monday gave Q1 preliminary revenue figures that were well below Wall Street estimates. The gene-sequencing tools giant sees Q1 sales up 6%, ending a 14-quarter string of double-digit growth. Illumina stock crashed 23.2% on Tuesday, back near two-year lows. Like Netflix, Illumina tumbled through its 200-day and 50-day lines. The stock on Monday topped its 200-day for the first time this year. IBM IBM revenue and earnings did top Wall Street forecasts late Monday, though sales have fallen for 16 straight quarters. Also, IBM’s implied Q2 EPS guidance appeared to be below analyst estimates. IBM stock fell 5.6% on Tuesday, undercutting its 200-day line intraday but closing just above that area. But IBM could easily retest the 200-day line in the coming days, with the 50-day only slightly below that. MaxLinear MaxLinear’s chip designs are used in video streaming. The stock cleared an entry point of 17.85 last month, rising to a 19.10 peak on April 4. But shares drifted lower since then. On Tuesday, the stock dived 10.2% to 15.86, triggering an 8% sell rule from that entry point and breaking through its 50-day moving average. It wasn’t immediately clear why the MaxLinear shares fell.

Here’s Why IBM Fell Despite A Solid Q1 Earnings Beat

IBM ( IBM ) closed down 5.6% at 144 Tuesday, following a first-quarter earnings report late Monday that beat estimates but still left room for concern. IBM has been undergoing a major transition, shedding older technologies while making a concerted push into growth areas such as cloud computing, Big Data analytics, security and mobile computing — areas it calls strategic imperatives. The transition helps explain why revenue growth has declined each quarter for the past four years. In its Q1 earnings results, IBM reported revenue of $18.7 billion, down 4.6% from the year-earlier quarter but edging the Wall Street consensus estimate of $18.3 billion. Revenue from strategic imperatives rose 14%. Total cloud revenue rose 34%. Earnings per share ex items of $2.35 easily beat views of $2.09, as polled by Thomson Reuters, but were down 19% and marked the fourth quarter in a row of EPS declines. IBM stock fell in the stock market today  presumably on the view that Q2 expectations are below estimates. IBM does not provide formal quarterly guidance, but its implied EPS guidance of $2.85 for Q2 is below the consensus estimate of 3.01. Despite the Q1 beat, IBM did not increase but instead maintained its full-year earnings outlook. IBD’s Take: How healthy is IBM’s stock and how does it stack up vs. rivals? Find out at IBD Stock Checkup RBC Capital Markets analyst Amit Daryanani maintained a sector perform rating on IBM stock, and a price target of 155. “We believe the competitive challenges are emerging from companies seeking to build a business model similar to IBM’s, notably Hewlett-Packard Enterprise ( HPE ), Cisco ( CSCO ), Oracle ( ORCL ), EMC ( EMC ), and Dell,” he wrote. Of these competitors, he said, Hewlett-Packard is the closest. Another is Cisco. ‘Attempting To Recreate The IBM Model’ “Beyond Hewlett-Packard and Cisco, there are also others attempting to recreate the IBM model,” he wrote. A harsher report on IBM came from Credit Suisse analyst Kulbinder Garcha, who reiterated an underperform rating and a price target of 110 on IBM stock. “We believe the quality of earnings was again low and the manner in which IBM has chosen to manage its business seems unsustainable,” Garcha wrote. “We believe the secular and structural challenges facing IBM remain, and specifically see limited improvement in Services and Software margins.” UBS analyst Steven Milunovich maintained a neutral rating on IBM but raised his price target to 150 from 132. “The quarter was mixed with revenue and EPS beating due to currency improvement, acquisitions, and the Japan tax rebate,” he wrote. “We give IBM credit for changing the narrative,” with an emphasis on becoming a leader in the new category of Cognitive Computing, which includes its Watson computer business, he wrote. Drexel Hamilton raised its revenue forecast, maintained its EPS projection and raised the price target to 166 from 160.