{"id":608,"date":"2023-10-31T15:24:09","date_gmt":"2023-10-31T15:24:09","guid":{"rendered":"https:\/\/blogs.mathworks.com\/finance\/?p=608"},"modified":"2024-03-12T14:59:30","modified_gmt":"2024-03-12T14:59:30","slug":"the-path-to-carbon-neutrality-a-time-series-approach","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/finance\/2023\/10\/31\/the-path-to-carbon-neutrality-a-time-series-approach\/","title":{"rendered":"The Path to Carbon Neutrality: A Time Series Approach"},"content":{"rendered":"<p><em><span class=\"TextRun SCXW194797580 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW194797580 BCX0\">The following blog was written by <\/span><\/span><a class=\"Hyperlink SCXW194797580 BCX0\" href=\"https:\/\/www.linkedin.com\/in\/haoranzhang8\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW194797580 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW194797580 BCX0\" data-ccp-charstyle=\"Hyperlink\">Leslie Zhang<\/span><\/span><\/a><span class=\"TextRun SCXW194797580 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW194797580 BCX0\">, a <\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">Northeastern<\/span><span class=\"NormalTextRun SCXW194797580 BCX0\"> graduate who recently joined <\/span><\/span><a class=\"Hyperlink SCXW194797580 BCX0\" href=\"https:\/\/www.mathworks.com\/company\/jobs\/students\/edg.html\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"TextRun Underlined SCXW194797580 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW194797580 BCX0\" data-ccp-charstyle=\"Hyperlink\">MathWorks Engineering Development program<\/span><\/span><\/a><span class=\"TextRun SCXW194797580 BCX0\" lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW194797580 BCX0\">.<\/span><span class=\"NormalTextRun SCXW194797580 BCX0\"> This post aims to highlight the <\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">collaboration <\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">opportunities available to students <\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">and Leslie\u2019s journey to joining MathWorks<\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">.\u00a0<\/span><span class=\"NormalTextRun SCXW194797580 BCX0\">\u00a0<\/span><\/span><span class=\"EOP SCXW194797580 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/em><\/p>\n<h2>Background:<\/h2>\n<p><span data-contrast=\"auto\">As a young engineer, I always dreamed of contributing to a company that values innovation and fosters collaboration. My journey led me to a place that exceeded my expectations &#8211; the <\/span><a href=\"https:\/\/github.com\/mathworks\/MATLAB-Simulink-Challenge-Project-Hub\/tree\/main\"><span data-contrast=\"none\">MATLAB and Simulink Challenge Projects<\/span><\/a><span data-contrast=\"auto\"> and the Engineering Development Group at MathWorks.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"none\">My education stands at the intersections between Econometrics and Computer Science, and this leads me to explore the interest in deploying data science models to resolve industrial pain points.<\/span> <span data-contrast=\"auto\">In February 2023, I got a chance to collaborate with MathWorks through the MATLAB and Simulink Challenge Projects, led by <a href=\"https:\/\/www.linkedin.com\/in\/roberto-g-valenti-a8571a13\/\">Roberto Valenti<\/a>. This initiative provides a platform for students to engage in research, explore cutting-edge technologies, and contribute to groundbreaking projects. It was through this project that I had the privilege of collaborating with <a href=\"https:\/\/www.linkedin.com\/in\/yuchen-dong-48061582\/\">Yuchen Dong<\/a>, a Senior Financial Application Engineer at MathWorks. Together, we embarked on a mission to tackle the pressing issue of carbon neutrality using a time series approach.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Our project aimed to develop innovative solutions using machine learning, deep learning, time series analysis, and Monte Carlo simulation, all powered by MATLAB. <\/span><span data-contrast=\"none\">In comparison with open-source tools like Python and TensorFlow,<\/span> <span data-contrast=\"none\">I choose MATLAB as the primary language because it empowers data model deployment with extensive toolboxes such as <a href=\"https:\/\/www.mathworks.com\/products\/econometrics.html\">Econometrics Toolbox<\/a>\u00a0that supports auto code generation. MATLAB also provides specialized tools for displaying and sharing models in standalone applications and web applications, such as <a href=\"https:\/\/www.mathworks.com\/products\/compiler.html\">MATLAB Compiler<\/a> and <a href=\"https:\/\/www.mathworks.com\/products\/matlab-production-server.html\">MATLAB Production Server<\/a>. <\/span><span data-contrast=\"auto\">Our journey culminated in the publication of a conference paper titled &#8220;<\/span><a href=\"https:\/\/www.spiedigitallibrary.org\/conference-proceedings-of-spie\/12675\/126750V\/The-path-to-carbon-neutrality-a-time-series-approach\/10.1117\/12.2676311.short?tab=ArticleLink.&amp;SSO=1\"><span data-contrast=\"none\">The Path to Carbon Neutrality: A Time Series Approach<\/span><\/a><span data-contrast=\"auto\">&#8220;, presented at the 2023 SPIE Conference: Machine Learning Chapter in San Diego, California. <\/span><span data-contrast=\"none\">This Machine Learning conference attracts engineers and scientists to show how data science can release its potential in various industries, from optics manufacturing, physics, to environmental engineering.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The project highlighted the potential of MathWorks&#8217; software in addressing complex challenges and underscored the company&#8217;s commitment to sustainability and carbon reduction efforts.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:true,&quot;134233118&quot;:true,&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"976\" class=\"size-full wp-image-611 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/paper.png\" alt=\"\" \/><\/p>\n<p><em>Poster presented at SPIE 2023<\/em><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"825\" height=\"997\" class=\"size-full wp-image-614 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/conference.png\" alt=\"\" \/><\/p>\n<p><em>Yuchen Dong and Leslie Zhang at SPIE 2023<\/em><\/p>\n<h2>The project:<\/h2>\n<p>This example produced from this project leveraged MATLAB R2023a and according toolboxes to<\/p>\n<ul>\n<li>predict carbon emission for US, UK, China and Japan with <strong>Time Varying Parameter Vector Auto Regression (TVP-VAR) time series model<\/strong><\/li>\n<li>add <strong>Monte Carlo Simulation<\/strong> to the TVP-VAR Model to simulate the carbon emission path to achieve carbon neutrality goals in 2050.<\/li>\n<li>introduce <strong>Long Short-term Memory<\/strong> Deep Learning model as an alternative way to predict carbon emission<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> The code and paper for this project is available on <a href=\"https:\/\/github.com\/hrcheung\/carbon-neutrality-paper\">GitHub here<\/a>.<\/p>\n<p>The imperative for addressing climate change extends beyond environmental considerations and has profound implications on the financial sector, necessitating diligent analysis and strategic response. At MathWorks, our <strong>Application Engineering team<\/strong> in computational finance is deeply engaged in research pertaining to climate change, specifically in the context of carbon neutrality simulation. Financial institutions are increasingly recognizing the necessity to delineate the multifaceted threats and opportunities associated with climate change, as it has a direct impact on investment portfolios, credit risk, asset valuation, and overall financial stability. Concurrently, financial regulators are committed to comprehensively understanding the ramifications of climate change on the stability of the financial system in order to mitigate systemic risks and ensure long-term sustainability.<\/p>\n<p>In light of these considerations, Yuchen and I are dedicated to conducting rigorous research on carbon neutrality simulation. Our work aims to elucidate the potential pathway to simulate carbon dioxide emission and achieve carbon neutrality. Therefore, our work provides a solid data foundation, so we may further evaluate climate change\u2019s impact on financial parameters and, consequently, the broader financial system. For example, we may predict grains futures price with the carbon emission as a parameter because the climate change heavily impacts grain production. Through the simulation of different scenarios and the assessment of their prospective impacts, we endeavor to equip financial institutions and regulators with the insights necessary to make informed decisions. Our code work is all implemented with <strong>MATLAB R2023a<\/strong>.<\/p>\n<p>In our research, we firstly conducted time series analysis on carbon dioxide emission prediction with <strong>Econometrics Toolbox <\/strong>and <strong>Statistics and Machine Learning Toolbox.<\/strong> To be more specific, with the past 80 years of data, we introduced Time Varying Parameter Vector Auto Regression (TVP-VAR) model to forecast how CO<sub>2<\/sub> emission progress in four major developed and developing countries in the next 30 years. Apart from China, US, UK, and Japan have shown a steady decrease in CO<sub>2<\/sub> emission. In particular, we use <a href=\"https:\/\/www.mathworks.com\/help\/econ\/arima.estimate.html\">estimate<\/a> function in Econometrics Toolbox&#x2122; to easily fit autoregressive integrated moving average model to data, serving as an essential step to build up TVP-VAR model.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"805\" class=\"size-full wp-image-617 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure1.png\" alt=\"\" \/><\/p>\n<p><em>Time Varying Parameter Vector Auto Regression (TVP-VAR) model to forecast how CO<sub>2<\/sub> emission progress in four major developed and developing countries in the next 30 years.\u00a0<\/em><\/p>\n<p>The second insight was achieved by using Monte-Carlo simulation to identify how likely governments can achieve their 2050 carbon neutrality goals as set on the United Nations Framework Convention on Climate Change (UNCCC) in 2020:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"134\" class=\"size-full wp-image-620 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure2.png\" alt=\"\" \/><\/p>\n<p><em>2050 Carbon neutrality goals for China, United States, EU and Japan<\/em><\/p>\n<p>With Monte-Carlo simulation, we simulated carbon neutrality path 10,000 times, where we find that <strong>for around 500 times (5%), selected countries reach their carbon reduction target<\/strong>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"810\" class=\"size-full wp-image-623 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure3.png\" alt=\"\" \/><\/p>\n<p><em>Carbon Neutrality Path Simulation\u00a0<\/em><\/p>\n<p>We used Long Short-term Memory (LSTM) model to provide a deep learning perspective in carbon emission simulation. With Deep Learning Toolbox&#x2122;, we built up an LSTM model using the <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/gs\/get-started-with-deep-network-designer.html\">Deep Network Designer<\/a> which allows an interactive and low-code way to generate deep learning models. For example, one can implement LSTM with built-in blocks to avoid repetitive debugging using other open-source programming languages.<\/p>\n<p>The training result shows a strong model fitness with <strong>normalized RMSE less than 0.06<\/strong>.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"684\" class=\"size-full wp-image-626 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure4.png\" alt=\"\" \/><\/p>\n<p><em>LSTM model built in the <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/gs\/get-started-with-deep-network-designer.html\">Deep Network Designer<\/a><\/em><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"975\" height=\"468\" class=\"size-full wp-image-629 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure5.png\" alt=\"\" \/><\/p>\n<p><em>Training output of Deep Network designer with a model RMSE &lt; 0.06<\/em><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"839\" height=\"629\" class=\"size-full wp-image-632 alignnone\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/figure6.png\" alt=\"\" \/><\/p>\n<p><em>Performance and Result of the LSTM model predicting in yearly timesteps the Carbon output of USA<\/em><\/p>\n<p>The use of the LSTM model represents a promising step forward in the domain of carbon emissions forecasting, demonstrating the potential on deep learning techniques in environmental modeling and prediction.<\/p>\n<p><strong>Project Conclusion:<\/strong><\/p>\n<p>This research underscores the need for heightened urgency and action to mitigate carbon emissions in the US, UK, Japan, and China. Despite the sobering results, our findings should serve as a wake-up call to prompt more significant commitment and innovative strategies to achieve the ambitious goal of carbon neutrality by 2050. Our research illustrates the utility of advanced statistical and deep learning models in forecasting carbon emissions, paving the way for their further application in environmental research and policy planning. Future work should focus on exploring potential interventions and strategies that can alter the current trajectory and increase the probability of achieving the carbon neutrality targets.<\/p>\n<h2>Summary:<\/h2>\n<p>This collaboration inspired me to join MathWorks&#8217; Engineering Development Group (EDG), where new graduates can rotate among different teams to unlock their potential. The onboarding process was smooth, and from day one, I felt welcomed and supported. I was exposed to a wide range of engineering opportunities, allowing me to explore various domains and expand my skill set.<\/p>\n<p>Throughout my time with MathWorks, I received unwavering support from my EDG manager, Jason Jumper, and the Application Engineering manager, David Willingham. Their guidance, mentorship, and belief in my abilities played a pivotal role in my growth and success.<\/p>\n<p>Reflecting on my experience, I wholeheartedly encourage aspiring students to consider joining MathWorks. The Innovation Excellence Project offers a unique opportunity to work on exciting projects, collaborate with brilliant minds, and make a meaningful impact. If you are seeking an environment that nurtures your skills, challenges you to push boundaries, and provides a platform to create a better future, then MathWorks is the place for you. Join us on this incredible journey and be a part of unleashing the power of innovation.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"http:\/\/blogs.mathworks.com\/finance\/files\/2023\/10\/paper.png\" onError=\"this.style.display ='none';\" \/><\/div>\n<p>The following blog was written by Leslie Zhang, a Northeastern graduate who recently joined MathWorks Engineering Development program. This post aims to highlight the collaboration opportunities&#8230; <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/finance\/2023\/10\/31\/the-path-to-carbon-neutrality-a-time-series-approach\/\">read more >><\/a><\/p>\n","protected":false},"author":201,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,4],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/posts\/608"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/users\/201"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/comments?post=608"}],"version-history":[{"count":5,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":647,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/posts\/608\/revisions\/647"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/media?parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/categories?post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/finance\/wp-json\/wp\/v2\/tags?post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}