{"id":8039,"date":"2025-04-15T09:00:00","date_gmt":"2025-04-15T07:00:00","guid":{"rendered":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia"},"modified":"2026-03-27T13:46:00","modified_gmt":"2026-03-27T12:46:00","slug":"proyecto-tfm-prediccion-series-temporales-modelos-ia","status":"publish","type":"post","link":"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia","title":{"rendered":"Master's Thesis Project: Time Series Forecasting Using AI Models"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\"><\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Contents\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Proyecto_TFM_Prediccion_de_series_temporales_con_modelos_de_IA\" >Master's Thesis Project: Time Series Forecasting Using AI Models<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Objetivos_del_TFM\" >Objectives of the Master's Thesis<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Datos_del_Proyecto\" >Project Details<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Seleccion_del_universo_de_activos_a_estudiar\" >Selection of the asset universe to be studied<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Metricas_de_valoracion_de_estrategias\" >Strategy Evaluation Metrics<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#1_Rentabilidad\" >1. Profitability<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#2_Ratio_de_Sharpe\" >2. Sharpe Ratio<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#3_Ratio_de_Sortino\" >3. Sortino Ratio<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#4_Maxima_perdida\" >4. Maximum loss<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#5_Porcentaje_de_operaciones_ganadoras\" >5. Percentage of winning trades<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#6_Ratio_de_beneficio_entre_riesgo\" >6. Risk-to-Return Ratio<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#7_Esperanza_matematica\" >7. Mathematical Expectation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#8_Tamano_de_Kelly\" >8. Kelly Size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#9_Porcentaje_de_tiempo_en_el_mercado\" >9. Percentage of time in the market<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Primer_caso_de_estudio\" >First Case Study<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Segundo_caso_de_estudio\" >Second Case Study<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Conclusiones\" >Conclusions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Resena_del_autor\" >Author's Review<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/#Testimonio_del_autor\" >Author's Testimony<\/a><\/li><\/ul><\/nav><\/div>\n\n<figure class=\"wp-block-image aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" width=\"300\" height=\"292\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/wr_diff_opt-300x292.png\" alt=\"Predicci\u00f3n de series temporales con distintos modelos de IA 3\" class=\"wp-image-8459\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/wr_diff_opt-300x292.png 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/wr_diff_opt.png 677w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" width=\"300\" height=\"272\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/exp_diff_opt-300x272.png\" alt=\"Predicci\u00f3n de series temporales con distintos modelos de IA 2\" class=\"wp-image-8458\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/exp_diff_opt-300x272.png 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/exp_diff_opt.png 730w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img decoding=\"async\" width=\"300\" height=\"258\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/expectancy_opt-300x258.png\" alt=\"Predicci\u00f3n de series temporales con distintos modelos de IA 4\" class=\"wp-image-8460\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/expectancy_opt-300x258.png 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/expectancy_opt.png 724w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This master's thesis project optimizes time series forecasting using AI models. Discover advanced approaches to data analysis and decision-making.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Proyecto_TFM_Prediccion_de_series_temporales_con_modelos_de_IA\"><\/span><strong>Master's Thesis Project: Time Series Forecasting Using AI Models<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This article focuses on the Final Project <a href=\"https:\/\/academy.structuralia.com\/masters\/master-en-big-data-y-business-analytics\" target=\"_blank\" rel=\"noreferrer noopener\">Master's Degree in Big Data and Business Analytics<\/a> from our former student at the <a href=\"https:\/\/www.linkedin.com\/in\/daniel-cano-alvira\/\" target=\"_blank\" rel=\"noreferrer noopener\">Daniel Cano Alvira<\/a>, which seeks to explore the potential of artificial intelligence to <strong>predict movements in stock market indices <\/strong>with the goal of achieving positive returns in the financial markets. The project explores potential applications of artificial intelligence techniques in the field of investing, proposing and developing two possible approaches to address this challenge.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Objetivos_del_TFM\"><\/span><strong>Objectives of the Master's Thesis<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The objective of this study is to develop a price prediction model for use in financial markets. To this end, we will use <a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python<\/a> in order to download the prices of various financial assets by connecting to <a href=\"https:\/\/es.finance.yahoo.com\/?guccounter=1\" target=\"_blank\" rel=\"noreferrer noopener\">Yahoo Finance<\/a>. The code developed in this post will not be included so that it doesn't get too long.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Datos_del_Proyecto\"><\/span><strong>Project Details<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yahoo Finance is an online service provided by <a href=\"https:\/\/es.search.yahoo.com\/?fr2=p:fprd,mkt:es\" target=\"_blank\" rel=\"noreferrer noopener\">Yahoo<\/a> which offers a variety of financial information free of charge, including stock data, financial news, analysis tools, and resources for tracking markets and investments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Although it does not have an official API, thanks to the large number of repositories available on <a href=\"https:\/\/github.com\/\">GitHub<\/a> Contribution data can be easily obtained. The repository that will be used is called <a href=\"https:\/\/pypi.org\/project\/yfinance\/\">yfinance<\/a>, developed by <a href=\"https:\/\/aroussi.com\/\">Ran Aroussi<\/a>, is the best alternative to Yahoo Finance, although it increasingly relies on outdated methods due to the website\u2019s improved security against web scraping. For the purposes of this project, only the \u201cTicker\u201d method will be used, and stock price data for certain stock indices will be downloaded from the Yahoo Finance global indices page using a very simple web scraping technique. A stock index is a figure calculated using an equation based on specific assets, with the aim of reflecting changes in value or returns of the assets that comprise it. The data will be returned as Japanese candlesticks; this type of data consists of four main components that describe the price movement of the underlying asset. These components are explained below, along with the rest of the data available in the resulting table.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Date: <\/strong>Start date and time of the Japanese candlestick chart. When downloading daily candlestick charts, there will be one per day, so the date will be daily.\u00a0<\/li>\n\n\n\n<li><strong>Open (Opening): <\/strong>The asset's price at the start of the candlestick's time interval.<\/li>\n\n\n\n<li><strong>High (Max):<\/strong> Highest price reached during the candle's time interval.\u00a0<\/li>\n\n\n\n<li><strong>Low (Minimum)<\/strong>: Lowest quoted price during the candle's time interval.\u00a0<\/li>\n\n\n\n<li><strong>Close: <\/strong>The asset's price at the end of the candlestick's time interval.\u00a0<\/li>\n\n\n\n<li><strong>Volume: <\/strong>The number of contracts that have been transferred out of the total number of transactions carried out during the candle's time interval.\u00a0<\/li>\n\n\n\n<li><strong>Dividends: <\/strong>The amount of money paid per share to a company's shareholders. This applies only to stocks or ETFs.\u00a0<\/li>\n\n\n\n<li><strong>Stock Splits:<\/strong> The ratio multiplies the number of shares to increase or decrease the number available on the market. If it is less than one, it is considered a reverse split, in which the number of shares is reduced, usually with the goal of raising the price. If the ratio is greater than one, the number of shares increases, lowering the price and making them more affordable. This applies only to stocks and ETFs.\u00a0<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In our case, we will also calculate new data based on the data already mentioned in order to improve our predictive capabilities. The main ones are explained below.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Range:<\/strong> The trading range for that candle is calculated by subtracting the low from the high.\u00a0<\/li>\n\n\n\n<li><strong>Range per unit: <\/strong>Price per unit is calculated by dividing the range by the opening price.\u00a0<\/li>\n\n\n\n<li><strong>Open to Close:<\/strong> The range between the opening and closing prices is calculated by subtracting the opening price (Open) from the closing price (Close). It is important to note that, unlike the Range, this figure will be negative when the price falls.\u00a0<\/li>\n\n\n\n<li><strong>Open to Close per unit: <\/strong>Range between the opening and closing prices, divided by the opening price (Open).\u00a0<\/li>\n\n\n\n<li><strong>Gap:<\/strong> The difference between the current opening price and the closing price of the previous candlestick.\u00a0<\/li>\n\n\n\n<li><strong>Gap per unit:<\/strong> The difference between the current opening price and the closing price of the previous candlestick, divided by the previous closing price.\u00a0<\/li>\n\n\n\n<li><strong>Moving Average difference per unit: <\/strong>The difference between the current opening price and the 10-, 20-, 50-, 100-, and 200-period moving averages.\u00a0<\/li>\n\n\n\n<li><strong>Weekday:<\/strong> The day of the week number (between 0 and 4) to which the candle corresponds.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Seleccion_del_universo_de_activos_a_estudiar\"><\/span><strong>Selection of the asset universe to be studied<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the stock market indices had been web-scraped, it was decided to filter them due to their initial volume. By analyzing the time series of the various indices, it was concluded that the most actively traded are those in the U.S. market and that some indices have a daily range considerably smaller than others, such as the N225, IXIC, GSPC, and AORD. It is worth noting that the SPY has decent volume, sufficient volatility, and an appropriate price to enable efficient risk management in actual trading. Next, we will examine the correlation among the selected assets.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/2AzzBmEcKmgDhRJcJmSGz6r0n8ooT43WLd_oizNyRSUjQfB4czuf3IRmCfsHz4hhOJvm6Hw6vd6F_oFyiUTVdCkdlVGie81zN4r_mJ0fn0nBciJ-W118-Jhb4EzkeW3lXsjpBzKkX8K7rk9nOHDT6Q.png\" alt=\" Predicci\u00f3n de series temporales con modelos de IA\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The figure shows the high correlation between them; the correlation is never negative and falls below 0.5 in only three cases. Since indices provide an overview of the direction and health of a particular segment of the financial market, when such an index represents a country\u2019s top companies, its performance is generally considered to mirror the country\u2019s economic health. If we combine this with the high correlation among indices from different countries, we might conclude that economic cycles are relatively synchronized, likely due to extensive globalization and international interdependence. We can deduce from all of this that the indices themselves likely have some predictive value relative to one another; this will be the hypothesis of the second case study to be conducted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Metricas_de_valoracion_de_estrategias\"><\/span><strong>Strategy Evaluation Metrics<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To validate the prediction systems, we will calculate industry-standard metrics as well as some that I personally believe may be interesting and help in understanding the system\u2019s behavior. All of these metrics are based on past trades and are therefore purely indicative and subject to change over time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Rentabilidad\"><\/span><strong>1. Profitability<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It measures performance in terms of net profit relative to invested capital. A positive return indicates that the system is generating profits.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Return on Investment = Net Income \/ Invested Capital \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Ratio_de_Sharpe\"><\/span><strong>2. Sharpe Ratio<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It assesses the relationship between the additional return earned by taking on risk and the volatility of the portfolio. A high Sharpe ratio indicates a better risk-adjusted return. In practice, the yield on short-term government bonds, such as U.S. Treasury bills with maturities of three or six months, is commonly used as a proxy for the risk-free rate. This choice is based on the assumption that these bonds are relatively safe and liquid. Since this is beyond the scope of this study, we will use a risk-free rate of 0, which would be equivalent to keeping the money in a bank account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sharpe Ratio = Expected Return \u2013 Risk-Free Rate \/ Volatility \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Ratio_de_Sortino\"><\/span><strong>3. Sortino Ratio<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This metric is very similar to the Sharpe ratio, but instead of using the system's total volatility, it takes into account only the volatility of the negative positions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sortino Ratio = Expected Return \u2013 Risk-Free Rate \/ Negative Standard Deviation \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Maxima_perdida\"><\/span>4.&nbsp;<strong>Maximum loss<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It measures the largest decline in the portfolio balance from its peak. The smaller the decline, the greater the stability of the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Maximum Loss = (1 - Current Balance \/ Maximum Balance) \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Porcentaje_de_operaciones_ganadoras\"><\/span><strong>5. Percentage of winning trades<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The probability that any given trade will be profitable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Probability of Winning = Number of Successful Trades \/ Total Number of Trades \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Ratio_de_beneficio_entre_riesgo\"><\/span><strong>6. Risk-to-Return Ratio<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It evaluates the relationship between gains and losses, helping to determine whether the system is generating returns that are proportionally greater than the risks taken.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Risk-Reward Ratio = Average Profit per Trade \/ Average Loss per Trade<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_Esperanza_matematica\"><\/span><strong>7. Mathematical Expectation<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It represents the weighted average of all possible outcomes of a random variable, taking into account the probability of each outcome occurring. In a financial context, expected value can be used to calculate the expected return on an investment, helping investors make informed decisions about where to allocate their resources.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Expected Value = (Probability of Winning * Average Profit per Trade \u2013<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Probability of Loss * Average Loss per Trade) \u00d7 100<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Where: Probability of Losing = 1 - Probability of Winning<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the previous equation, we can understand the relationship between the probability of winning and the risk ratio. There will be a threshold beyond which the expected value is negative for every value of the probability of winning, since the lower the probability, the higher the return on investment must be relative to the loss (risk ratio) in order to remain profitable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_Tamano_de_Kelly\"><\/span><strong>8. Kelly Size<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A formula used in capital management theory and information theory to determine the optimal size of a series of bets. It is applicable in situations involving successive bets or investments and aims to maximize long-term capital growth. It is important to note that the Kelly Criterion is an aggressive strategy, and while it can maximize long-term growth, it can also lead to the loss of a large portion of capital in the short term if probability estimates are inaccurate.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Kelly = Probability of Winning - Probability of Losing \/ Risk-Reward Ratio \u00d7 100<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9_Porcentaje_de_tiempo_en_el_mercado\"><\/span><strong>9. Percentage of time in the market<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The relationship between the number of days on which trades are executed and the number of days the system has been in use. A lower percentage is generally considered better, as it means less exposure to risk and lower commissions, if any maintenance fees apply.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Exposure Rate = Time with Open Positions \/ System Execution Time \u00d7 100<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Primer_caso_de_estudio\"><\/span><strong>First Case Study<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first prediction attempt will involve applying an artificial intelligence model based solely on characteristics derived from the asset's own price. A comparison will be made of the application of the models:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Linear Regression<\/li>\n\n\n\n<li>Logistic Regression<\/li>\n\n\n\n<li>K Nearest Neighbors (KNN)<\/li>\n\n\n\n<li>Naive Bayes<\/li>\n\n\n\n<li>Neural Network<\/li>\n\n\n\n<li>Random Forest<\/li>\n\n\n\n<li>Support Vector Machine (SVM)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Although the code for these models has been developed\u2014rather than using the most common libraries\u2014it will not be published so as not to make this post too long. If you would like access, please contact the author.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To avoid extending the project timeline, a minor optimization was performed before comparing the models. Below are three different graphs that will be used to compare the results from the training and test data, with the ultimate goal of identifying possible over-optimization.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first graph shows the variation in the probability of winning between the prediction results using test data and those using training data. It can be inferred that the closer the value is to 0, the less overfitting there is. The contour lines projected onto the lower plane show that the KNN model is the most overfitted of all, while the Linear Regression and Neural Network models are the least overfitted, even performing better with the test data than with the training data for some assets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following figure shows the difference in the expected value obtained from the training data and the test data. Since the probability of winning affects the expected value, it can be seen that the models in which this metric varies the least between the training and test data are the same as those in the previous graph. Although the Linear Regression model shows the least variation, when all assets are taken into account, the KNN model is once again the most overfitted, thus reaffirming the previous conclusion.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Naive Bayes and KNN models have the lowest mean mathematical expectation, as shown in the following graph. It is worth noting that the Linear Regression, Neural Networks, and SVM models have the fewest features with a negative mathematical expectation, making them the most versatile. The results obtained by applying the PCA model to the features used have not been included, since they were worse than those obtained without applying it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, the changes in the balance sheet for each model will be calculated for each asset studied.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will assume an initial capital of 100,000.01 TP4T and an allocation of 100 % to each of the models. Since risk management is beyond the scope of this study, we will trade using the total capital each time a trade is executed. Furthermore, only long positions will be considered, and commissions will be assumed to be zero. The figure shows a chart for each asset with the corresponding balance curve for each trained model. It can be seen that, in general, no single model stands out, but there are models that perform relatively well with U.S. indices, and it might be worth exploring them further and introducing risk management strategies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It should be noted that only two years of data were used for the study, and that those years coincided with one year of recession and another marking the start of an expansion driven by central bank policies. It would be advisable to conduct a study using a larger dataset and to include a walk-forward test.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Segundo_caso_de_estudio\"><\/span><strong>Second Case Study<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The second exercise will involve predicting the prices of the SPY, an ETF that tracks the performance of the S&amp;P 500. The idea behind this exercise is based on the time difference between various markets around the world. Since the Asian market has closed by the time the U.S. market opens, it stands to reason that the trading session on that day could be influenced by the performance of markets operating in earlier time zones. The data will be divided equally, with the first half serving as training data and the second half as the data to be predicted. Additionally, the same operational approach used in the previous exercise will be followed.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, the models studied will be the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following section presents a comparative analysis of the models based on the previously defined metrics. It can be seen that different models excel in different metrics, underscoring the importance of considering multiple criteria when evaluating financial strategies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It has been decided to use the strategy of maintaining the total capital invested in the asset\u2014commonly known as \u201cBuy &amp; Hold\u201d\u2014as a benchmark. For this strategy, a profit of 104,035.87$ is obtained, with a return of 104.03 %. The Sharpe ratio is 0.84, and the Sortino ratio is 0.062. Additionally, the maximum drawdown during the test period would be 22.94 %, and the probability of winning is 56.17 %. In general, the application of PCA does not appear to add value, with the Random Forest model being the sole exception. Although returns may be lower when using PCA, the reduction in dimensionality can be useful in terms of simplicity and computational efficiency. The Logistic Regression model yields the lowest return; this is due to its low trading frequency, with a market time of approximately 3 %. This, combined with its high reliability, makes it the model with the lowest maximum loss and the highest Sharpe ratio.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"65\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/table-300x65.jpg\" alt=\"Predicci\u00f3n de series temporales con distintos modelos de IA 6\" class=\"wp-image-8462\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/table-300x65.jpg 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/table-1024x221.jpg 1024w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/table-768x166.jpg 768w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/table.jpg 1461w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"148\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/comparison-300x148.png\" alt=\"Predicci\u00f3n de series temporales con distintos modelos de IA 6\" class=\"wp-image-8463\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/comparison-300x148.png 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/comparison-768x379.png 768w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/comparison.png 911w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, the K-Nearest Neighbors (KNN) model achieves the highest return, although this is due to overfitting. This occurs when the model is too closely fitted to the training data, resulting in patterns that are not well generalized. This can be seen in the figure above. During the first half (training), the capital increases steadily with almost no fluctuation, while in the test data, the capital fluctuates constantly between a maximum and a minimum.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The best strategy for your actual trading would be the Linear Regression model, to which you could incorporate the signals generated by the Logistic Regression model in order to achieve greater profits. In this specific case, the signals from the Logistic Regression model are also generated by the Linear Regression model, so they would not add any value unless they were taken into account in the risk management strategy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The figure above compares the return and cumulative loss at each point in time for the final strategy and the \u201cBuy &amp; Hold\u201d strategy. As you can see, the maximum loss is almost one-third that of \u201cBuy &amp; Hold,\u201d while the strategy\u2019s final return is 1.4 times that of \u201cBuy &amp; Hold.\u201d All of this is achieved while entering the market only half as often.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusiones\"><\/span><strong>Conclusions<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The objective of this project was to study the feasibility of artificial intelligence models in predicting the prices of assets traded in financial markets. This project focused more on the models and their comparison than on capital and portfolio management. Although it has been demonstrated that, no matter how trendy artificial intelligence may be, it is not the holy grail, we have managed to develop strategies that may be worthwhile. In the first exercise, we observed that models often fail in their task if they are fed only with data derived from what we want to predict. Only in the most liquid markets did they achieve a certain degree of accuracy. The final exercise demonstrated the need to avoid overfitting models, as this can lead to disaster when applied to real-world trading. Furthermore, the importance of factor engineering in obtaining variables with greater predictive power has been highlighted. Artificial intelligence is part of our daily lives and has been applied in financial markets for decades. It will take a great deal of research and resources to develop a system capable of matching the returns of industry leaders such as <a href=\"https:\/\/www.rentec.com\/Home.action?index=true\">Medallion Fund.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the future, it would be advisable to include operational and capital management, since there are many variables that depend on these factors and have been assumed in this study. Some ideas to start with could be: adding stop-loss and take-profit limits to positions instead of keeping them open all day, and defining an algorithm to allocate the percentage of the account to risk at any given time. On the other hand, it would be advisable to define the time interval for retraining the model, since keeping the model up to date requires training it with new data. It would be necessary to define how often the model should be retrained and the amount of data to be used, since past patterns may contradict current ones and impair the model\u2019s predictive ability.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1-300x300.jpg\" alt=\"Proyecto TFM Daniel Cano\" class=\"wp-image-8464\" srcset=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1-300x300.jpg 300w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1-1024x1024.jpg 1024w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1-150x150.jpg 150w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1-768x768.jpg 768w, https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Fotos-Contenidos-1.jpg 1080w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Resena_del_autor\"><\/span><strong>Author's Review<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.linkedin.com\/in\/daniel-cano-alvira\/\" target=\"_blank\" rel=\"noreferrer noopener\">Daniel Cano<\/a>, holds a degree in Energy Engineering from the Polytechnic University of Madrid and has recently completed the <a href=\"https:\/\/academy.structuralia.com\/masters\/master-en-big-data-y-business-analytics\" target=\"_blank\" rel=\"noreferrer noopener\">Master's Degree in Big Data and Business Analytics<\/a>. He currently works at T\u00e9cnicas Reunidas S.A., specifically in the Digital Transformation department. Daniel has his own personal project page, \u00ab<a href=\"https:\/\/onemade.es\/\" target=\"_blank\" rel=\"noreferrer noopener\">One Made<\/a>\u00ab.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testimonio_del_autor\"><\/span><strong>Author's Testimony<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Why did you choose Structuralia?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u00abMy company gave me the opportunity to further my education and specialize by pursuing a master's degree. When I had to choose among several options, the master's program at Structuralia was the one that appealed to me the most.\u00bb<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. What would you highlight most about the master's program?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u00abWhat I would highlight most is that the Master's in Big Data and Business Analytics provides excellent documentation and materials.\u00bb<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. How has it helped you, or how do you think it could help you, in your current or future professional development?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u00ab<\/em><em>Completing this master's program has helped me better understand and reinforce concepts I already knew. I've also been able to learn about new Big Data tools.<\/em><em>\u00ab<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>This master's thesis project optimizes time series forecasting using AI models. Discover advanced approaches to data analysis and decision-making.<\/p>","protected":false},"author":9,"featured_media":8467,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_ayudawp_aiss_exclude":false,"_ayudawp_aiss_summary":"","_ayudawp_aiss_summary_provider":"","_ayudawp_aiss_summary_hash":"","footnotes":""},"categories":[266],"tags":[],"class_list":["post-8039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-transformacion-digital"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA - Blog de Structuralia<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/posts\/8039\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA - Blog de Structuralia\" \/>\n<meta property=\"og:description\" content=\"Este proyecto TFM optimiza la predicci\u00f3n de series temporales con modelos de IA. Descubre enfoques avanzados para an\u00e1lisis de datos y toma de decisiones.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog de Structuralia\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-15T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-27T12:46:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1050\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Equipo de redactores\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Equipo de redactores\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA - Blog de Structuralia","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":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/posts\/8039","og_locale":"en_US","og_type":"article","og_title":"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA - Blog de Structuralia","og_description":"Este proyecto TFM optimiza la predicci\u00f3n de series temporales con modelos de IA. Descubre enfoques avanzados para an\u00e1lisis de datos y toma de decisiones.","og_url":"https:\/\/blog.structuralia.com\/en\/proyecto-tfm-prediccion-series-temporales-modelos-ia\/","og_site_name":"Blog de Structuralia","article_published_time":"2025-04-15T07:00:00+00:00","article_modified_time":"2026-03-27T12:46:00+00:00","og_image":[{"width":1050,"height":550,"url":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg","type":"image\/jpeg"}],"author":"Equipo de redactores","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Equipo de redactores","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#article","isPartOf":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia"},"author":{"name":"Equipo de redactores","@id":"https:\/\/blog.structuralia.com\/#\/schema\/person\/87ddd066f2b0e01e832284f797138b7b"},"headline":"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA","datePublished":"2025-04-15T07:00:00+00:00","dateModified":"2026-03-27T12:46:00+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia"},"wordCount":3696,"commentCount":0,"publisher":{"@id":"https:\/\/blog.structuralia.com\/#organization"},"image":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#primaryimage"},"thumbnailUrl":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg","articleSection":["Transformaci\u00f3n digital"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia","url":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia","name":"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA - Blog de Structuralia","isPartOf":{"@id":"https:\/\/blog.structuralia.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#primaryimage"},"image":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#primaryimage"},"thumbnailUrl":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg","datePublished":"2025-04-15T07:00:00+00:00","dateModified":"2026-03-27T12:46:00+00:00","breadcrumb":{"@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#primaryimage","url":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg","contentUrl":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2024\/12\/Daniel-Cano.jpg","width":1050,"height":550,"caption":"Proyecto TFM Daniel Cano"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.structuralia.com\/proyecto-tfm-prediccion-series-temporales-modelos-ia#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inicio","item":"https:\/\/blog.structuralia.com"},{"@type":"ListItem","position":2,"name":"Transformaci\u00f3n digital","item":"https:\/\/blog.structuralia.com\/transformacion-digital"},{"@type":"ListItem","position":3,"name":"Proyecto TFM: Predicci\u00f3n de series temporales con modelos de IA"}]},{"@type":"WebSite","@id":"https:\/\/blog.structuralia.com\/#website","url":"https:\/\/blog.structuralia.com\/","name":"Structuralia's Official Blog","description":"On our blog, we create specialized content to keep you up to date on all the latest news, trends, and tips related to engineering.","publisher":{"@id":"https:\/\/blog.structuralia.com\/#organization"},"alternateName":"STRUCTURALIA","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.structuralia.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/blog.structuralia.com\/#organization","name":"Structuralia Blog","url":"https:\/\/blog.structuralia.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.structuralia.com\/#\/schema\/logo\/image\/","url":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2026\/01\/logo.svg","contentUrl":"https:\/\/blog.structuralia.com\/wp-content\/uploads\/2026\/01\/logo.svg","width":36,"height":38,"caption":"Blog de Structuralia"},"image":{"@id":"https:\/\/blog.structuralia.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blog.structuralia.com\/#\/schema\/person\/87ddd066f2b0e01e832284f797138b7b","name":"Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6047234e84771ae0815c2fc62265d85296754868378b6dd88865366408801df4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6047234e84771ae0815c2fc62265d85296754868378b6dd88865366408801df4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6047234e84771ae0815c2fc62265d85296754868378b6dd88865366408801df4?s=96&d=mm&r=g","caption":"Equipo de redactores"},"url":"https:\/\/blog.structuralia.com\/en\/autor\/equipo-de-redactores"}]}},"views":430,"_links":{"self":[{"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/posts\/8039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/comments?post=8039"}],"version-history":[{"count":0,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/posts\/8039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/media\/8467"}],"wp:attachment":[{"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/media?parent=8039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/categories?post=8039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.structuralia.com\/en\/wp-json\/wp\/v2\/tags?post=8039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}