{"id":3502,"date":"2023-08-31T11:12:58","date_gmt":"2023-08-31T11:12:58","guid":{"rendered":"https:\/\/neuraldesigner.com\/learning\/inflation-prediction\/"},"modified":"2025-09-17T11:08:00","modified_gmt":"2025-09-17T09:08:00","slug":"inflation-prediction","status":"publish","type":"learning","link":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/","title":{"rendered":"Predict a country&#8217;s inflation through machine learning"},"content":{"rendered":"<p>This example aims to predict inflation from the macroeconomic data of a country using machine learning.<\/p>\n<p>Inflation is the rate of increase in the cost of goods and services over a given period of time.<\/p>\n<section>\n<h3>Contents<\/h3>\n<ol>\n<li><a href=\"#ApplicationType\">Application type<\/a>.<\/li>\n<li><a href=\"#DataSet\">Data set<\/a>.<\/li>\n<li><a href=\"#NeuralNetwork\">Neural network<\/a>.<\/li>\n<li><a href=\"#TrainingStrategy\">Training strategy<\/a>.<\/li>\n<li><a href=\"#ModelSelection\">Model selection<\/a>.<\/li>\n<li><a href=\"#TestingAnalysis\">Testing analysis<\/a>.<\/li>\n<li><a href=\"#ModelDeployment\">Model deployment<\/a>.<\/li>\n<\/ol>\n<p>We solve this example with the data science and machine learning platform <a href=\"https:\/\/www.neuraldesigner.com\/\">Neural Designer<\/a>.<\/p>\n<p>To follow this example step by step, you can use the <a href=\"https:\/\/www.neuraldesigner.com\/free-trial\">free trial<\/a>.<\/p>\n<\/section>\n<section id=\"ApplicationType\">\n<h2>1. Application type<\/h2>\n<p>This is a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications#Forecasting\">forecasting<\/a> project since the variable to predict is the future inflation.<\/p>\n<p>The goal is to model the inflation rate for the next month based on various macroeconomic features from the past three months.<\/p>\n<\/section>\n<section id=\"DataSet\">\n<h2>2. Data set<\/h2>\n<p>The data set contains information to create our model. We need to configure three things:<\/p>\n<ul>\n<li>Data source.<\/li>\n<li>Variables.<\/li>\n<li>Instances.<\/li>\n<\/ul>\n<h3>Data source<\/h3>\n<p>The data file used for this example is <a href=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/10\/macroeconomics.csv\">macroeconomics.csv<\/a>, which contains monthly information about 16 features for 19 years.<\/p>\n<h3>Variables<\/h3>\n<p>The data set includes the following <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Variables\">variables<\/a>:<\/p>\n<\/section>\n<h4 data-start=\"121\" data-end=\"135\"><strong data-start=\"125\" data-end=\"133\">Time<\/strong><\/h4>\n<ul data-start=\"136\" data-end=\"198\">\n<li data-start=\"136\" data-end=\"198\">\n<p data-start=\"138\" data-end=\"198\"><strong data-start=\"138\" data-end=\"146\">Date<\/strong>: Monthly data from January 2001 to November 2019.<\/p>\n<\/li>\n<\/ul>\n<h4 data-start=\"200\" data-end=\"237\"><strong data-start=\"204\" data-end=\"235\">Monetary Policy &amp; Inflation<\/strong><\/h4>\n<ul>\n<li data-start=\"240\" data-end=\"317\"><strong data-start=\"240\" data-end=\"264\">Reference rate (NBP)<\/strong>: Central Bank of Poland\u2019s reference interest rate.<\/li>\n<li data-start=\"320\" data-end=\"390\"><strong data-start=\"320\" data-end=\"338\">Core inflation<\/strong>: Inflation rate excluding food and energy prices.<\/li>\n<li data-start=\"393\" data-end=\"473\"><strong data-start=\"393\" data-end=\"423\">Consumer Price Index (CPI)<\/strong>: Measure of average changes in consumer prices.<\/li>\n<li data-start=\"476\" data-end=\"534\"><strong data-start=\"476\" data-end=\"488\">WIBOR 3M<\/strong>: Three-month Warsaw Interbank Offered Rate.<\/li>\n<\/ul>\n<h4 data-start=\"536\" data-end=\"558\"><strong data-start=\"540\" data-end=\"556\">Labor Market<\/strong><\/h4>\n<ul>\n<li data-start=\"561\" data-end=\"661\"><strong data-start=\"561\" data-end=\"607\">Average monthly salary (enterprise sector)<\/strong>: Growth rate of gross nominal wages in enterprises.<\/li>\n<li data-start=\"664\" data-end=\"751\"><strong data-start=\"664\" data-end=\"706\">Average employment (enterprise sector)<\/strong>: Growth rate of employment in enterprises.<\/li>\n<li data-start=\"754\" data-end=\"833\"><strong data-start=\"754\" data-end=\"775\">Unemployment rate<\/strong>: Registered unemployment rate at the end of each month.<\/li>\n<\/ul>\n<h4 data-start=\"835\" data-end=\"866\"><strong data-start=\"839\" data-end=\"864\">Industry &amp; Production<\/strong><\/h4>\n<ul>\n<li data-start=\"869\" data-end=\"952\"><strong data-start=\"869\" data-end=\"900\">Sold production of industry<\/strong>: Growth rate of total industrial production sold.<\/li>\n<li data-start=\"955\" data-end=\"1039\"><strong data-start=\"955\" data-end=\"982\">Price index of industry<\/strong>: Growth rate of the industrial production price index.<\/li>\n<\/ul>\n<h4 data-start=\"1041\" data-end=\"1067\"><strong data-start=\"1045\" data-end=\"1065\">External Balance<\/strong><\/h4>\n<ul data-start=\"1068\" data-end=\"1145\">\n<li data-start=\"1068\" data-end=\"1145\">\n<p data-start=\"1070\" data-end=\"1145\"><strong data-start=\"1070\" data-end=\"1089\">Account balance<\/strong>: Poland\u2019s current account balance (in million euros).<\/p>\n<\/li>\n<\/ul>\n<h4 data-start=\"1147\" data-end=\"1171\"><strong data-start=\"1151\" data-end=\"1169\">Exchange Rates<\/strong><\/h4>\n<ul>\n<li><strong data-start=\"1174\" data-end=\"1185\">EUR\/PLN<\/strong>: Monthly average of daily closing exchange rates (euro to zloty).<\/li>\n<li><strong data-start=\"1256\" data-end=\"1267\">USD\/PLN<\/strong>: Monthly average of daily closing exchange rates (US dollar to zloty).<\/li>\n<li><strong data-start=\"1343\" data-end=\"1354\">CHF\/PLN<\/strong>: Monthly average of daily closing exchange rates (Swiss franc to zloty).<\/li>\n<\/ul>\n<h4 data-start=\"1431\" data-end=\"1453\"><strong data-start=\"1435\" data-end=\"1451\">Stock Market<\/strong><\/h4>\n<ul>\n<li data-start=\"1456\" data-end=\"1549\"><strong data-start=\"1456\" data-end=\"1465\">WIG20<\/strong>: Monthly average of the Warsaw Stock Exchange index for the 20 largest companies.<\/li>\n<li data-start=\"1552\" data-end=\"1619\"><strong data-start=\"1552\" data-end=\"1559\">WIG<\/strong>: Monthly average of the Warsaw Stock Exchange main index.<\/li>\n<\/ul>\n<section id=\"DataSet\">\n<h3>Instances<\/h3>\n<p>On the other hand, the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Instances\">instances<\/a> are divided sequentially into training, selection, and testing subsets, containing 60%, 20%, and 20% of the cases, respectively.<\/p>\n<h3>Inputs-targets correlations<\/h3>\n<p>We can calculate the input-target correlations. These indicate which macroeconomic factors have the most significant influence on inflation.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_correlations.webp\" \/><\/p>\n<p>In this example, there are a few variables that correlate highly with the target variable. They are <i>WIBOR_3M<\/i>, <i>consumer_price_index<\/i>, and <i>reference_rate_NBP<\/i>.<\/p>\n<h3>Time series charts<\/h3>\n<p>We can also check the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#TimeSeriesPlots\">time series charts<\/a> for these variables.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_time_series.webp\" \/><\/p>\n<p>Looking at the time series plot for the target variable, we can see that core inflation has been in the same range for the past 15 years.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_WIBOR_3M_time_series.webp\" \/><\/p>\n<p>We can also look at the <i>WIBOR_3M<\/i> chart. If we compare the two previous plots, we see the correlation between the two variables.<\/p>\n<\/section>\n<section>\n<h2 id=\"NeuralNetwork\">3. Neural network<\/h2>\n<p>The next step is to set the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\">neural network<\/a> parameters. In our case, it is composed of:<\/p>\n<ul>\n<li>Scaling layer.<\/li>\n<li>Perceptron layer.<\/li>\n<li>Probabilistic layer.<\/li>\n<\/ul>\n<p>We could have also used an <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#LongShortTermMemoryLayer\">LSTM layer<\/a>.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#MeanStandardDeviationScalingMethod\">mean and standard deviation scaling method<\/a> has been set for the scaling layer.<\/p>\n<p>Next, we set one <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#PerceptronsLayers\">perceptron layer<\/a> with 3 neurons that have the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#HyperbolicTangentActivationFunction\">hyperbolic tangent activation function<\/a>. This layer has 45 inputs, which are the 15 variables of the dataset for three months. The output is one, the <i>core inflation<\/i>\u00a0for the next month.<\/p>\n<h3>Neural network graph<\/h3>\n<p>The neural network for this example can be represented with the following diagram:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_nn.webp\" \/><\/p>\n<\/section>\n<section id=\"TrainingStrategy\">\n<h2>4. Training strategy<\/h2>\n<p>The fourth step is to set the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\">training strategy<\/a>, defining\u00a0what the neural network will learn.<\/p>\n<p>A general training strategy for classification is composed of two terms:<\/p>\n<ul>\n<li>A loss index.<\/li>\n<li>An optimization algorithm.<\/li>\n<\/ul>\n<h3>Loss index<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#LossIndex\">loss index<\/a> chosen for this problem is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#NormalizedSquaredError\">normalized squared error<\/a>\u00a0between the outputs from the neural network and the targets in the data set with L1 regularization.<\/p>\n<h3>Optimization algorithm<\/h3>\n<p>The selected <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#OptimizationAlgorithm\">optimization algorithm<\/a> is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#QuasiNewtonMethod\">Quasi-Newton method<\/a>.<\/p>\n<h3>Training<\/h3>\n<p>The following chart shows how the training error develops with the epochs during the training process.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_training.webp\" \/><\/p>\n<p>The final value is <b>training error = 0.006 NSE<\/b> and <b>selection error = 0.289 NSE<\/b>.<\/p>\n<\/section>\n<section id=\"ModelSelection\">\n<h2>5. Model selection<\/h2>\n<p>The objective of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection\">model selection<\/a> is to improve the neural network&#8217;s generalization capabilities or, in other words, to reduce the selection error.<\/p>\n<p>First, we perform the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#NeuronsSelection\">neuron selection<\/a>. We want a model whose complexity is the most appropriate to produce an adequate fit of the data. The optimal value for this example is one neuron.<\/p>\n<p>Next, we will apply an <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#InputSelection\">input selection<\/a> algorithm. This reduces our inputs to six: the <i>consumer_price_index<\/i> and the <i>core_inflation<\/i> for the past three months.<\/p>\n<p>The resulting neural network is as follows.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_growing_inputs.webp\" \/><\/p>\n<p>With it, the selection error decreases to <b>0.057 NSE<\/b>. It is a significant improvement compared to the previous value.<\/p>\n<\/section>\n<section id=\"TestingAnalysis\">\n<h2>6. Testing analysis<\/h2>\n<p>The objective of the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis\">testing analysis<\/a> is to validate the generalization performance of the trained neural network.<\/p>\n<p>To validate a forecasting technique, we need to compare the values provided by this technique to the observed values.<\/p>\n<h3>Goodnes-of-fit<\/h3>\n<p>We can use <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#LinearRegressionAnalysis\">linear regression analysis<\/a> as the standard testing method for these projects.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_linear_regression.webp\" \/><\/p>\n<p>The correlation value for this example is <b>R2 = 0.977<\/b>, which is close to 1.<\/p>\n<p>This means that we have a good predictive model.<\/p>\n<h3>Error statistics<\/h3>\n<p>We can also calculate the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#ErrorsStatistics\">error statistics<\/a>.<\/p>\n<p>The mean absolute error obtained by using the previous value as the prediction is 0.320. Using the model, it lowers to 0.186.<\/p>\n<p>Therefore, we are improving the prediction of the core inflation with respect to the baseline.<\/p>\n<h3>Output plot<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#OutputsPlot\">output plot<\/a> shows the real values (blue) and the predicted values (orange) over time.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/core_inflation_output_plot.webp\" \/><\/p>\n<\/section>\n<section id=\"ModelDeployment\">\n<h2>Conclusions<\/h2>\n<p>In this post, we have built a machine learning model to predict the inflation of a country.<\/p>\n<\/section>\n<section>\n<h2>References<\/h2>\n<ul>\n<li>The data for this problem has been taken from <a href=\"https:\/\/www.kaggle.com\/denychaen\/macroeconomic-pl\">Kaggle<\/a>.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Related posts<\/h2>\n<\/section>\n","protected":false},"author":13,"featured_media":2391,"template":"","categories":[29],"tags":[47],"class_list":["post-3502","learning","type-learning","status-publish","has-post-thumbnail","hentry","category-examples","tag-finance"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Predict a country&#039;s inflation through machine learning<\/title>\n<meta name=\"description\" content=\"Build a machine learning model to predict core inflation for the next month from the macroeconomic data of a country.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Inflation prediction machine learning example\" \/>\n<meta property=\"og:description\" content=\"Inflation is the rate of increase in the cost of goods and benefits over a given period of time. Core inflation excludes food and energy prices because of their variability. This example aims to predict core inflation from the macroeconomic data of a country.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-17T09:08:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Inflation prediction machine learning example\" \/>\n<meta name=\"twitter:description\" content=\"Inflation is the rate of increase in the cost of goods and benefits over a given period of time. Core inflation excludes food and energy prices because of their variability. This example aims to predict core inflation from the macroeconomic data of a country.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/\",\"name\":\"Predict a country's inflation through machine learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp\",\"datePublished\":\"2023-08-31T11:12:58+00:00\",\"dateModified\":\"2025-09-17T09:08:00+00:00\",\"description\":\"Build a machine learning model to predict core inflation for the next month from the macroeconomic data of a country.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp\",\"width\":2560,\"height\":1340},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learning\",\"item\":\"https:\/\/www.neuraldesigner.com\/learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Predict a country&#8217;s inflation through machine learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explanable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Predict a country's inflation through machine learning","description":"Build a machine learning model to predict core inflation for the next month from the macroeconomic data of a country.","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:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/","og_locale":"en_US","og_type":"article","og_title":"Inflation prediction machine learning example","og_description":"Inflation is the rate of increase in the cost of goods and benefits over a given period of time. Core inflation excludes food and energy prices because of their variability. This example aims to predict core inflation from the macroeconomic data of a country.","og_url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/","og_site_name":"Neural Designer","article_modified_time":"2025-09-17T09:08:00+00:00","og_image":[{"width":2560,"height":1340,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_title":"Inflation prediction machine learning example","twitter_description":"Inflation is the rate of increase in the cost of goods and benefits over a given period of time. Core inflation excludes food and energy prices because of their variability. This example aims to predict core inflation from the macroeconomic data of a country.","twitter_image":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/","url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/","name":"Predict a country's inflation through machine learning","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp","datePublished":"2023-08-31T11:12:58+00:00","dateModified":"2025-09-17T09:08:00+00:00","description":"Build a machine learning model to predict core inflation for the next month from the macroeconomic data of a country.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/core_inflation-scaled.webp","width":2560,"height":1340},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/inflation-prediction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Learning","item":"https:\/\/www.neuraldesigner.com\/learning\/"},{"@type":"ListItem","position":3,"name":"Predict a country&#8217;s inflation through machine learning"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explanable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/learning"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/13"}],"version-history":[{"count":0,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3502\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2391"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}