{"id":464,"date":"2019-05-15T16:22:44","date_gmt":"2019-05-15T16:22:44","guid":{"rendered":"http:\/\/algotrading101.com\/wiki\/?p=464"},"modified":"2021-01-08T21:13:59","modified_gmt":"2021-01-08T21:13:59","slug":"backtesting-biases-and-risks","status":"publish","type":"post","link":"https:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/","title":{"rendered":"Backtesting Biases and Risks"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Definition<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Backtesting biases refer to how the results of a trading strategy backtest can be misleading. <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Description<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the 8 common biases:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Black Swan Reconciliation<\/li><li>Survivorship Bias<\/li><li>Spreads<\/li><li>Cost of carry\/Holding costs<\/li><li>Inaccurate Price Simulation<\/li><li>Change in Contract Specifications<\/li><li>Look-ahead Bias<\/li><li>Curve-Fitting and Optimization Bias<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"371\" src=\"http:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg\" alt=\"black swan events trading\" class=\"wp-image-467\" srcset=\"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg 500w, https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading-300x223.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Black swans in real life<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 1 &#8211; Black Swan Reconciliation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Black swan events refer to events that come as a surprise and have a huge impact.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Brokers and exchanges may alter the prices of assets after a volatile price moves (black swan events). There are 2 types of alteration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Type 1 &#8211; Changing the fill price<\/u><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After an unexpected large price move, brokers and exchanges might change the prices that you got filled on your trades.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Example<\/em>   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">EURUSD is trading at 1.1300. A black swan event occurs and EURUSD spikes up 2000 pips (to 1.3300) (1 pip = $0.0001). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You long EURUSD 1000 pips into the 2000 pips move. You are long EURUSD at 1.2300. It is now trading at 1.3300. You close the trade at a 1000 pips profit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few hours after the trade, you receive an email saying that \u201cIn view of this unexpected event, all trades will be cleared at 1.1800 price\u201d. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your 2000 pips profit becomes a 500 pips loss. Your account gets wiped out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Real example: <a href=\"https:\/\/www.bloomberg.com\/news\/articles\/2015-05-22\/saxo-trades-lawsuits-with-clients-after-swiss-currency-turmoil\">Saxo Trades Lawsuits With Clients After Swiss Currency Turmoil<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Type 2 &#8211; Changing their historical price<\/u><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After an unexpected large price move, brokers and exchanges might not change the prices that you got filled on your trades. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, they alter the price on the historical charts and data. Thus, the prices you see in your charts are different (almost always worse) than the prices you get in live trading.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In your backtests, you might have bought Apple shares at $180, but in real life, you would have gotten those shares at $250.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 2 &#8211; Survivorship Bias<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Survivorship bias, or survival bias, refers to the fact that people overlook entities\/processes that failed because they only see successful entities\/processes. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Example<\/u><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We are selecting a bunch of stocks to trade. We create a list of criteria to identify potentially successful stocks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, we filter the universe of stocks listed in the US based on these criteria.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And with that, survivorship bias just got to us. This universe of stocks only includes stocks that survive. There may be stocks that are delisted but fit our criteria. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We need to consider those stocks as well to give us an idea of how sound our strategy is.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 3 &#8211; Spreads<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The difference between the price we can buy at (bid price) and the price we can sell at (ask price) is called the spread.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Spreads change in real time. It depends on the buyers and sellers on exchanges, or brokers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">During volatile events, spreads usually widen, sometimes by a 100 times. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Without accurate bid and ask data, these spread widening events will make our backtests inaccurate.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 4 &#8211; Cost of carry\/Holding costs<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are leveraged (you trade a size larger your capital by borrowing from the broker), shorting or trading a derivative, you might need to pay interest to hold your positions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This interest represents the fees needed to cover the capital loaned to you, or the costs to hold any underlying assets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These holding costs might vary without warning during the lifetime of a trade. Hence, it is difficult to estimate these costs in your backtest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Example<\/u><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The usual interest cost to short a stock is less than 2% a year. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, for a period in early 2019, the cost to short Tilray, a cannabis stock shot up to over 800% a year. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 5 &#8211; Inaccurate Price Simulation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not all backtesters replicate the exact historical price movement, some use simulated fake price movements. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This might not be significant if you make a few trades a year and analyze the market using end-of-day data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, your backtest results will be greatly skewed if your strategy is related to scalping (price action and movement) and fires many trade per day on lower timeframe data. <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 6 &#8211; Change in Contract Specifications<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An exchange or broker may change the contract specifications (i.e. details) of their products. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, they may increase margin requirements, change the settlement specifications or contract size of their products. These may lead to jumps in market prices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main takeaway here is \u2013 in such cases, do not take a price change at face value. Your P&amp;L may not change proportionally to a price change. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, increasing the margin requirement for silver may cause silver prices to fall. In your backtest, your short silver position may look like it is doing well. However, if you had traded that move in real-life, you may get a margin call and be forced to close the position.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Real-life examples<\/u><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.marketwatch.com\/story\/margin-change-didnt-cause-silver-slide-cme-2011-05-06\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Margin change didn&#8217;t cause silver slide &#8211; CME<\/a><\/li><li><a href=\"https:\/\/www.financemagnates.com\/forex\/analysis\/ice-changes-gold-contracts-specifications-opts-physical-delivery-bullion\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">ICE Changes Gold Contracts Specifications, Opts for Physical Delivery of Bullion<\/a><\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong style=\"\">Bias 7 &#8211; Look-ahead Bias<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Look-ahead bias involves having prior knowledge of how the market behaves before running a backtest. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><u>Example<\/u><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You want to run a strategy that takes advantage of trends. You look for assets that trend and discard those that don&#8217;t trend.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You then run a backtest on these assets using a trending strategy. Unsurprisingly, your strategy does well. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These tests are not useful as you have only chosen assets that you know would have done well in your backtests.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Bias 8 &#8211; Curve-Fitting and Optimization Bias<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Curve fitting is the process of adapting a trading system so closely to the past that it becomes ineffective in the future. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Optimizing strategies too closely to past data will result in inflexibility to adapt to the future. Hence, it leads to poor performance in the future.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We need to adapt our trading strategies to signals in historical data, not noise.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/Curve-fitting-algorithmic-trading-1-1024x430.png\" alt=\"\" class=\"wp-image-476\" srcset=\"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/Curve-fitting-algorithmic-trading-1-1024x430.png 1024w, https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/Curve-fitting-algorithmic-trading-1-300x126.png 300w, https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/Curve-fitting-algorithmic-trading-1-768x323.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption> Curve fitting data points <\/figcaption><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong> Links to Other Explanations<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/medium.com\/auquan\/backtesting-biases-and-how-to-avoid-them-776180378335\">Backtesting Biases and How To avoid them &#8211; Auquan<\/a><\/li><li><a href=\"https:\/\/keepingstock.net\/backtesting-bias-and-how-we-avoid-it-fe598930cb1\">Backtesting bias and how we avoid it &#8211; Keepstock<\/a><\/li><li><a href=\"https:\/\/blog.quantopian.com\/9-mistakes-quants-make-that-cause-backtests-to-lie-by-tucker-balch-ph-d\/\">9 Mistakes Quants Make that Cause Backtest to Lie &#8211; Dr Balch<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Related Terms<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/algotrading101.com\/wiki\/algorithmic-trading-strategies\/\">Algorithmic Trading Strategies<\/a><\/li><li>Backtesting (Upcoming)<\/li><li><a href=\"https:\/\/algotrading101.com\/wiki\/market-inefficiency\/\">Market Inefficiencies<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Definition Backtesting biases refer to how the results of a trading strategy backtest can be misleading. Description Here are the 8 common biases: Black Swan Reconciliation Survivorship Bias Spreads Cost of carry\/Holding costs Inaccurate Price Simulation Change in Contract Specifications Look-ahead Bias Curve-Fitting and Optimization Bias Bias 1 &#8211; Black Swan Reconciliation Black swan events [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":"","footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-data-science-resources","category-finance-resources"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki<\/title>\n<meta name=\"description\" content=\"Quantitative Finance - Explain Like I&#039;m Five\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki\" \/>\n<meta property=\"og:description\" content=\"Quantitative Finance - Explain Like I&#039;m Five\" \/>\n<meta property=\"og:url\" content=\"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/\" \/>\n<meta property=\"og:site_name\" content=\"AlgoTrading101 Wiki\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-15T16:22:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-08T21:13:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lucas Liew\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lucas Liew\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/\"},\"author\":{\"name\":\"Lucas Liew\",\"@id\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/#\\\/schema\\\/person\\\/bf5a3d12a8fa6a18c56e3dafc22b191f\"},\"headline\":\"Backtesting Biases and Risks\",\"datePublished\":\"2019-05-15T16:22:44+00:00\",\"dateModified\":\"2021-01-08T21:13:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/\"},\"wordCount\":1002,\"image\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/black-swan-events-trading.jpg\",\"articleSection\":[\"Data Science\",\"Finance\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/\",\"url\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/\",\"name\":\"Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/black-swan-events-trading.jpg\",\"datePublished\":\"2019-05-15T16:22:44+00:00\",\"dateModified\":\"2021-01-08T21:13:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/#\\\/schema\\\/person\\\/bf5a3d12a8fa6a18c56e3dafc22b191f\"},\"description\":\"Quantitative Finance - Explain Like I'm Five\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/black-swan-events-trading.jpg\",\"contentUrl\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/black-swan-events-trading.jpg\",\"width\":500,\"height\":371,\"caption\":\"black swan events trading\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/algotrading101.com\\\/wiki\\\/backtesting-biases-and-risks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backtesting Biases and Risks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/#website\",\"url\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/\",\"name\":\"AlgoTrading101 Wiki\",\"description\":\"Quantitative Finance in 500 Simple Words\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/#\\\/schema\\\/person\\\/bf5a3d12a8fa6a18c56e3dafc22b191f\",\"name\":\"Lucas Liew\",\"url\":\"https:\\\/\\\/algotrading101.com\\\/wiki\\\/author\\\/algotradingadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki","description":"Quantitative Finance - Explain Like I'm Five","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/","og_locale":"en_US","og_type":"article","og_title":"Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki","og_description":"Quantitative Finance - Explain Like I'm Five","og_url":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/","og_site_name":"AlgoTrading101 Wiki","article_published_time":"2019-05-15T16:22:44+00:00","article_modified_time":"2021-01-08T21:13:59+00:00","og_image":[{"width":500,"height":371,"url":"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg","type":"image\/jpeg"}],"author":"Lucas Liew","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lucas Liew","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#article","isPartOf":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/"},"author":{"name":"Lucas Liew","@id":"https:\/\/algotrading101.com\/wiki\/#\/schema\/person\/bf5a3d12a8fa6a18c56e3dafc22b191f"},"headline":"Backtesting Biases and Risks","datePublished":"2019-05-15T16:22:44+00:00","dateModified":"2021-01-08T21:13:59+00:00","mainEntityOfPage":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/"},"wordCount":1002,"image":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#primaryimage"},"thumbnailUrl":"http:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg","articleSection":["Data Science","Finance"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/","url":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/","name":"Backtesting Biases and Risks Simplified - AlgoTrading101 Wiki","isPartOf":{"@id":"https:\/\/algotrading101.com\/wiki\/#website"},"primaryImageOfPage":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#primaryimage"},"image":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#primaryimage"},"thumbnailUrl":"http:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg","datePublished":"2019-05-15T16:22:44+00:00","dateModified":"2021-01-08T21:13:59+00:00","author":{"@id":"https:\/\/algotrading101.com\/wiki\/#\/schema\/person\/bf5a3d12a8fa6a18c56e3dafc22b191f"},"description":"Quantitative Finance - Explain Like I'm Five","breadcrumb":{"@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#primaryimage","url":"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg","contentUrl":"https:\/\/algotrading101.com\/wiki\/wp-content\/uploads\/2019\/05\/black-swan-events-trading.jpg","width":500,"height":371,"caption":"black swan events trading"},{"@type":"BreadcrumbList","@id":"http:\/\/algotrading101.com\/wiki\/backtesting-biases-and-risks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/algotrading101.com\/wiki\/"},{"@type":"ListItem","position":2,"name":"Backtesting Biases and Risks"}]},{"@type":"WebSite","@id":"https:\/\/algotrading101.com\/wiki\/#website","url":"https:\/\/algotrading101.com\/wiki\/","name":"AlgoTrading101 Wiki","description":"Quantitative Finance in 500 Simple Words","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/algotrading101.com\/wiki\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/algotrading101.com\/wiki\/#\/schema\/person\/bf5a3d12a8fa6a18c56e3dafc22b191f","name":"Lucas Liew","url":"https:\/\/algotrading101.com\/wiki\/author\/algotradingadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":18,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/posts\/464\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/algotrading101.com\/wiki\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}