<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<?covid-19-tdm?>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Energy Res.</journal-id>
<journal-title>Frontiers in Energy Research</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Energy Res.</abbrev-journal-title>
<issn pub-type="epub">2296-598X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">724780</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2021.724780</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Energy Research</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Interpretable Modeling for Short- and Medium-Term Electricity Demand Forecasting</article-title>
<alt-title alt-title-type="left-running-head">Hirose</alt-title>
<alt-title alt-title-type="right-running-head">Interpretable Modeling for Demand Forecasting</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Hirose</surname>
<given-names>Kei</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
<xref ref-type="aff" rid="aff2">
<sup>2</sup>
</xref>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/1137522/overview"/>
</contrib>
</contrib-group>
<aff id="aff1">
<label>
<sup>1</sup>
</label>Institute of Mathematics for Industry, Kyushu University, <addr-line>Fukuoka</addr-line>, <country>Japan</country>
</aff>
<aff id="aff2">
<label>
<sup>2</sup>
</label>RIKEN Center for Advanced Intelligence Project, <addr-line>Tokyo</addr-line>, <country>Japan</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/248609/overview">Fei Teng</ext-link>, Imperial College London, United&#x20;Kingdom</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/782303/overview">Ekanki Sharma</ext-link>, University of Klagenfurt, Austria</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/830933/overview">Md. Abdur Razzak</ext-link>, Independent University, Bangladesh, Bangladesh</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1433055/overview">Chaoyu Dong</ext-link>, Imperial College London, United&#x20;Kingdom</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Kei Hirose, <email>hirose@imi.kyushu-u.ac.jp</email>
</corresp>
<fn fn-type="other">
<p>This article was submitted to Smart Grids, a section of the journal Frontiers in Energy Research</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>14</day>
<month>12</month>
<year>2021</year>
</pub-date>
<pub-date pub-type="collection">
<year>2021</year>
</pub-date>
<volume>9</volume>
<elocation-id>724780</elocation-id>
<history>
<date date-type="received">
<day>14</day>
<month>06</month>
<year>2021</year>
</date>
<date date-type="accepted">
<day>01</day>
<month>11</month>
<year>2021</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2021 Hirose.</copyright-statement>
<copyright-year>2021</copyright-year>
<copyright-holder>Hirose</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these&#x20;terms.</p>
</license>
</permissions>
<abstract>
<p>We consider the problem of short- and medium-term electricity demand forecasting by using past demand and daily weather forecast information. Conventionally, many researchers have directly applied regression analysis. However, interpreting the effect of weather on the demand is difficult with the existing methods. In this study, we build a statistical model that resolves this interpretation issue. A varying coefficient model with basis expansion is used to capture the nonlinear structure of the weather effect. This approach results in an interpretable model when the regression coefficients are nonnegative. To estimate the nonnegative regression coefficients, we employ nonnegative least squares. Three real data analyses show the practicality of our proposed statistical modeling. Two of them demonstrate good forecast accuracy and interpretability of our proposed method. In the third example, we investigate the effect of COVID-19 on electricity demand. The interpretation would help make strategies for energy-saving interventions and demand response.</p>
</abstract>
<kwd-group>
<kwd>basis expansion</kwd>
<kwd>nonnegative least squares (NNLS)</kwd>
<kwd>short-term demand forecasting</kwd>
<kwd>varying coefficient model (VCM)</kwd>
<kwd>COVID-19</kwd>
</kwd-group>
<contract-sponsor id="cn001">Japan Society for the Promotion of Science<named-content content-type="fundref-id">10.13039/501100001691</named-content>
</contract-sponsor>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>Short- and medium-term demand forecasting with high accuracy is essential for decision making during the trade on electricity markets and operation of power systems. Conventionally, several researchers have used previous demand, weather, and other factors as exploratory variables (e.g., <xref ref-type="bibr" rid="B40">Lusis et&#x20;al., 2017</xref>) and directly applied regression analyses to forecast demand. As methodologies for regression analysis, linear regression (<xref ref-type="bibr" rid="B3">Amral et&#x20;al., 2008</xref>; <xref ref-type="bibr" rid="B14">Dudek, 2016</xref>; <xref ref-type="bibr" rid="B46">Saber and Alam, 2017</xref>) and smoothing spline (<xref ref-type="bibr" rid="B15">Engle et&#x20;al., 1986</xref>; <xref ref-type="bibr" rid="B23">Harvey and Koopman, 1993</xref>) have been traditionally used. Recently, several studies have applied functional data analysis, where the daily curves of electricity demand are expressed as functions (<xref ref-type="bibr" rid="B8">Cabrera and Schulz, 2017</xref>; <xref ref-type="bibr" rid="B51">Vilar et&#x20;al., 2018</xref>). It should be noted that most statistical approaches are based on probabilistic forecasts, and the distribution of forecast values is helpful for risk management (<xref ref-type="bibr" rid="B8">Cabrera and Schulz, 2017</xref>). On the other hand, machine learning techniques have attracted attention in recent years, such as support vector machine (SVM); (<xref ref-type="bibr" rid="B10">Chen et&#x20;al., 2017</xref>; <xref ref-type="bibr" rid="B31">Jiang et&#x20;al., 2018</xref>; <xref ref-type="bibr" rid="B55">Yang et&#x20;al., 2019</xref>); neural networks (<xref ref-type="bibr" rid="B26">He, 2017</xref>; <xref ref-type="bibr" rid="B21">Guo et&#x20;al., 2018b</xref>; <xref ref-type="bibr" rid="B34">Kong et&#x20;al., 2018</xref>; <xref ref-type="bibr" rid="B6">Bedi and Toshniwal, 2019</xref>; <xref ref-type="bibr" rid="B53">Wang et&#x20;al., 2019</xref>), gradient boosting (<xref ref-type="bibr" rid="B56">Zhang et&#x20;al., 2019</xref>), and hybrids of multiple forecasting techniques (<xref ref-type="bibr" rid="B42">Miswan et&#x20;al., 2016</xref>; <xref ref-type="bibr" rid="B38">Liu et&#x20;al., 2017</xref>; <xref ref-type="bibr" rid="B12">de Oliveira and Cyrino Oliveira, 2018</xref>; <xref ref-type="bibr" rid="B22">Haq and Ni, 2019</xref>). These techniques capture complex nonlinear structures; therefore, high forecast accuracies are expected.</p>
<p>In practice, the time intervals are different among exploratory variables. For example, assume that the demand is forecasted for a single day that will occur several days in the future, at 30-min intervals; this is a common scenario for market transactions in electricity exchanges (e.g., the day-ahead market in the European Power Exchange, EPEX). In this example, the electricity demand would be collected at 30-min intervals using a smart meter, whereas weather forecast information, such as maximum temperature and average humidity, would typically be observed at intervals of one day. In this study, we use past demand at 30-min or 1-h intervals and daily information (e.g., maximum temperature) on the forecast day as exploratory variables. We note that our proposed model, which will be described in <xref ref-type="sec" rid="s2">Section 2</xref>, is directly applicable to any time resolution of data, such as the demand in 1-min intervals and temperature forecast in 1-h intervals.</p>
<p>From a suppliers&#x2019; point of view, it is crucial to produce an interpretable model to investigate the impact of weather on the demand. For example, estimating the fluctuations of electric power caused by weather would help develop strategies for energy-saving interventions [e.g., (<xref ref-type="bibr" rid="B20">Guo et&#x20;al., 2018a</xref>; <xref ref-type="bibr" rid="B52">Wang et&#x20;al., 2018</xref>)] and demand response [e.g., (<xref ref-type="bibr" rid="B45">Ruiz-Abell&#xf3;n et&#x20;al., 2020</xref>)]. To produce an interpretable model, one can directly add weather forecast information to the exploratory variables in the regression model (<xref ref-type="bibr" rid="B30">Hong et&#x20;al., 2010</xref>) and investigate the estimator of regression coefficients. More generally, techniques for interpreting any type of black-box model, including the deep neural networks, have been recently proposed, such as the Local Interpretable Model-agnostic Explanations (LIME; (<xref ref-type="bibr" rid="B44">Ribeiro et&#x20;al., 2016</xref>)) and SHapley Additive exPlanations (SHAP; (<xref ref-type="bibr" rid="B39">Lundberg and Lee, 2017</xref>)). However, these methods are used for variable selection, i.e.,&#x20;a set of variables that plays an essential role in the forecast is selected. Variable selection cannot estimate the fluctuations in electric power caused by weather.</p>
<p>In contrast to variable selection, decomposition of the electricity demand at time <italic>t</italic>, say <italic>y</italic>
<sub>
<italic>t</italic>
</sub>, into two parts is useful for interpretation:<disp-formula id="e1">
<mml:math id="m1">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2248;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(1)</label>
</disp-formula>where <italic>&#x3bc;</italic>
<sub>
<italic>t</italic>
</sub> and <italic>b</italic>
<sub>
<italic>t</italic>
</sub> are the effects of past demand and weather forecast information, respectively. Typically, we use demand at the same time interval of the previous days as exploratory variables [e.g., (<xref ref-type="bibr" rid="B40">Lusis et&#x20;al., 2017</xref>)], and regression analysis is separately conducted on each time interval. We then construct estimators of <italic>&#x3bc;</italic>
<sub>
<italic>t</italic>
</sub> and <italic>b</italic>
<sub>
<italic>t</italic>
</sub>, say <inline-formula id="inf1">
<mml:math id="m2">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf2">
<mml:math id="m3">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, respectively. The interpretation is carried out by plotting a curve of <inline-formula id="inf3">
<mml:math id="m4">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. However, without elaborate construction and estimation of <italic>b</italic>
<sub>
<italic>t</italic>
</sub>, we face two issues.</p>
<p>The first issue is that the curve of <inline-formula id="inf4">
<mml:math id="m5">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> often becomes non-smooth at any time interval (i.e.,&#x20;every 30&#xa0;min) in our experience. The non-smooth daily curve of <italic>b</italic>
<sub>
<italic>t</italic>
</sub> is unrealistic because it implies the impact of <italic>daily</italic> weather forecast on demand changes non-smoothly every 30&#xa0;min. This problem is caused by the fact that the regression analysis is separately conducted at each time interval. To address this issue, we should estimate parameters under the assumption that <italic>b</italic>
<sub>
<italic>t</italic>
</sub> is smooth.</p>
<p>The second issue is related to the parameter estimation procedure. In many cases, the regression coefficients are estimated through the least squares method. However, in our experience, the estimate of regression coefficients related to <italic>b</italic>
<sub>
<italic>t</italic>
</sub> can be negative, leading to a negative value of <inline-formula id="inf5">
<mml:math id="m6">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. Since <inline-formula id="inf6">
<mml:math id="m7">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is the fluctuations of electric power caused by weather, the interpretation becomes unclear. To alleviate this problem, we need to restrict the regression coefficients associated with <italic>b</italic>
<sub>
<italic>t</italic>
</sub> to nonnegative values.</p>
<p>In this study, we develop a statistical model that elaborately captures the nonlinear structure of daily weather information to address two challenges, as mentioned earlier. We employ the varying coefficient model (<xref ref-type="bibr" rid="B25">Hastie and Tibshirani, 1993</xref>; <xref ref-type="bibr" rid="B16">Fan and Zhang, 1999</xref>) with basis expansion, where the regression coefficients associated with weather are assumed to be different depending on the time intervals. The regression coefficients are expressed by a nonlinear smooth function with basis expansion, which allows us to generate a smooth function of <inline-formula id="inf7">
<mml:math id="m8">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. Furthermore, the weather effect <inline-formula id="inf8">
<mml:math id="m9">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is also expressed as a nonlinear smooth function. To generate nonnegative regression coefficients, we employ the nonnegative least squares (NNLS, e.g., <xref ref-type="bibr" rid="B35">Lawson and Hanson, 1995</xref>) estimation. NNLS estimates parameters under the constraint that all regression coefficients are nonnegative. With the NNLS estimation, the value of <inline-formula id="inf9">
<mml:math id="m10">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is always nonnegative; thus, the interpretation becomes&#x20;clear.</p>
<p>The usefulness of our proposed method is investigated through the application to three real datasets. The results for two of the datasets show that the NNLS can appropriately capture the fluctuations of electric power caused by weather. Furthermore, our proposed method yields better forecast accuracy than the existing machine learning techniques. In the third example, we investigate our proposed method&#x2019;s practical usage when COVID-19 influences the electrical demand (e.g., facility closure or recommendation of telework). Our proposed method is directly applicable in such a situation; in addition to the daily weather forecast, we use the average number of infections in the past several days as exploratory variables. The result shows that our proposed method can adequately capture the effect of COVID-19 and also improve forecast accuracy.</p>
<p>The remainder of this paper is organized as follows: <xref ref-type="sec" rid="s2">Section 2</xref> describes our proposed model based on the varying coefficient model. In <xref ref-type="sec" rid="s3">Section 3</xref>, we present the parameter estimation via nonnegative least squares. <xref ref-type="sec" rid="s4">Section 4</xref> presents the analysis of data from Tokyo Electric Power Company Holdings. In <xref ref-type="sec" rid="s5">Section 5</xref>, we investigate the impact of COVID-19 on electrical demand through the analysis of data from one selected research facility in Japan. Concluding remarks are given in <xref ref-type="sec" rid="s6">Section 6</xref>. Some technical proofs and additional information of the data analysis are deferred to the <xref ref-type="sec" rid="s12">Supplementary Material</xref>.</p>
</sec>
<sec id="s2">
<title>2 Proposed Model</title>
<p>Short- and medium-term forecasting is often used for trading electricity in the market. Among various electricity markets, the day-ahead (or spot) and the intraday markets are popular in electricity exchanges, including the European Power Exchange (EPEX) (<ext-link ext-link-type="uri" xlink:href="https://www.epexspot.com/en/market-data/dayaheadauction">https://www.epexspot.com/en/market-data/dayaheadauction</ext-link>) and Japan Electric Power Exchange (JEPX) (<ext-link ext-link-type="uri" xlink:href="http://www.jepx.org/english/index.html">http://www.jepx.org/english/index.html</ext-link>). In the day-ahead market, contracts for the delivery of electricity on the following day are made. In the intraday market, the power will be delivered several tens of minutes (e.g., 1&#xa0;h in JEPX) after the order is closed. In both markets, transactions are typically made in 30-min intervals; thus, the suppliers must forecast the demand in 30-min intervals. In this study, we consider the problem of forecasting demand that can be applied to both day-ahead and intraday markets.</p>
<p>Let <italic>y</italic>
<sub>
<italic>ij</italic>
</sub> be the electricity demand at <italic>j</italic>th time interval on <italic>i</italic>th date (<italic>i</italic>&#x20;&#x3d; 1, &#x2026; , <italic>n</italic>, <italic>j</italic>&#x20;&#x3d; 1, &#x2026; , <italic>J</italic>). Typically, <italic>J</italic>&#x20;&#x3d; 48, because we usually forecast the demand in 30-min intervals. We consider the following model:<disp-formula id="e2">
<mml:math id="m11">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(2)</label>
</disp-formula>where <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> is the effect of past electricity demand, <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> is the effect of weather, such as temperature and humidity, and <italic>&#x25b;</italic>
<sub>
<italic>ij</italic>
</sub> are error terms with <italic>E</italic>[<italic>&#x25b;</italic>
<sub>
<italic>ij</italic>
</sub>] &#x3d;&#x20;0.</p>
<p>Typically, the error variances in the daytime are larger than those at midnight because of the uncertainty of human behavior in the daytime. Therefore, it would be reasonable to assume that <inline-formula id="inf10">
<mml:math id="m12">
<mml:mi>V</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">]</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, i.e.,&#x20;the error variances depend on the time interval. One may assume the correlation of errors for different time intervals, i.e.,&#x20;Cor(<italic>&#x25b;</italic>
<sub>
<italic>ij</italic>
</sub>, <italic>&#x25b;</italic>
<sub>
<italic>ij</italic>&#x2032;</sub>) &#x2260; 0 for some <italic>j</italic>&#x20;&#x2260; <italic>j</italic>&#x2032;; however, the number of parameters becomes large. For this reason, we consider only the case where the errors are uncorrelated. Note that the final implementation of our proposed procedure described later is independent of the assumption of the correlation structure in errors.</p>
<p>One can express <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> and <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> as linear or nonlinear functions of predictors and conduct the linear regression analysis. With this procedure, however, we face two issues, as mentioned in the introduction; thus, we carefully construct appropriate functions of <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> and <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub>.</p>
<sec id="s2-1">
<title>2.1 Expression of <italic>b</italic>
<sub>
<italic>ij</italic>
</sub>
</title>
<p>Weather forecast information is typically observed at intervals of one day and not 30&#xa0;min (e.g., the maximum temperature or average humidity). For this reason, we assume that the weather forecast information does not depend on <italic>j</italic>. Let a vector of weather information be <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>. We express <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> as a function of <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>. Here, we assume two structures as follows:<list list-type="simple">
<list-item>
<p>&#x2022; It is well known that the relationship between weather variables and consumption is nonlinear. For example, the relationship between maximum temperature and consumption is approximated by a quadratic function (e.g., 30) because air conditioners are used on both hot and cold days. For this reason, it is assumed that <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> is expressed as some nonlinear function of&#x20;<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>.</p>
</list-item>
<list-item>
<p>&#x2022; Although <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub> does not depend on <italic>j</italic>, the effect of weather, <italic>b</italic>
<sub>
<italic>ij</italic>
</sub>, may depend on <italic>j</italic>. For example, consumption in the daytime is affected by the maximum temperature more than that at midnight. In this case, the regression coefficients associated with <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub> change according to the time interval <italic>j</italic>. However, if we assume different parameters at each time interval, the number of parameters can be large, resulting in poor forecast accuracy. To decrease the number of parameters, we use the varying coefficient model, in which the coefficients are expressed as a smooth function of the time interval.</p>
</list-item>
</list>
</p>
<p>Under the above considerations, we propose expressing <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> as follows:<disp-formula id="e3">
<mml:math id="m13">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(3)</label>
</disp-formula>where <italic>g</italic>
<sub>
<italic>m</italic>
</sub>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>) (<italic>m</italic>&#x20;&#x3d; 1, &#x2026; , <italic>M</italic>) are basis functions given beforehand, <italic>&#x3b2;</italic>
<sub>
<italic>m</italic>
</sub>(<italic>j</italic>) are functions of regression coefficients, and <italic>M</italic> is the number of basis functions.</p>
<p>We also use the basis expansion for <italic>&#x3b2;</italic>
<sub>
<italic>m</italic>
</sub>(<italic>j</italic>):<disp-formula id="e4">
<mml:math id="m14">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:math>
<label>(4)</label>
</disp-formula>where <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>) (<italic>q</italic>&#x20;&#x3d; 1, &#x2026; , <italic>Q</italic>) are basis functions given beforehand and <italic>&#x3b3;</italic>
<sub>
<italic>qm</italic>
</sub> are the elements of the coefficient matrix <bold>&#x393;</bold> &#x3d; (<italic>&#x3b3;</italic>
<sub>
<italic>qm</italic>
</sub>). Substituting (4) into (3) results in the following:<disp-formula id="e5">
<mml:math id="m15">
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:math>
<label>(5)</label>
</disp-formula>
</p>
<p>Because <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>) and <italic>g</italic>
<sub>
<italic>m</italic>
</sub>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>) are known functions, the parameters concerning <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> are <italic>&#x3b3;</italic>
<sub>
<italic>qm</italic>
</sub>.</p>
<p>Since the effect of weather is assumed to be smooth according to both <italic>j</italic> and <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>, we use basis functions <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>) and <italic>g</italic>
<sub>
<italic>m</italic>
</sub>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>), which produce a smooth function, such as B-spline and the radial basis function (RBF). Our numerical study adopts the B-spline and cyclic B-spline functions as basis functions of <italic>g</italic>
<sub>
<italic>m</italic>
</sub>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>) and <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>), respectively. For detail, please refer to <xref ref-type="sec" rid="s4-1">Section 4.1</xref>. The RBF could be used but it includes a tuning parameter that highly affects the forecast error, resulting in low forecast accuracy in our experience.</p>
</sec>
<sec id="s2-2">
<title>2.2 Expression of <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub>
</title>
<p>Since <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> is the effect of past consumption, one can assume that <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> is expressed as a linear combination of past consumption <inline-formula id="inf11">
<mml:math id="m16">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, i.e.,<disp-formula id="e6">
<mml:math id="m17">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
</mml:math>
<label>(6)</label>
</disp-formula>where <italic>T</italic> and <italic>U</italic> are positive integers, which denote how far we trace back through the data and <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> (<italic>t</italic>&#x20;&#x3d; 1, &#x2026; , <italic>T</italic>) and <italic>&#x3b2;</italic>
<sub>
<italic>ju</italic>
</sub> (<italic>u</italic>&#x20;&#x3d; 1, &#x2026; , <italic>U</italic>) are positive values given beforehand. The <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> correspond to the effects of past consumptions for the same time interval on previous days, while <italic>&#x3b2;</italic>
<sub>
<italic>jt</italic>
</sub> are the coefficients for different time intervals on the same day. For the day-ahead market, we assume that <italic>&#x3b2;</italic>
<sub>
<italic>ju</italic>
</sub> &#x2261; 0. Here, <italic>L</italic>
<sub>
<italic>&#x3b1;</italic>
</sub> and <italic>L</italic>
<sub>
<italic>&#x3b2;</italic>
</sub> are nonnegative integers that describe the lags; these values change according to the closing time of transactions. For example, transactions of the day-ahead market in the&#x20;JEPX close at 17:00 on the previous day of the delivery of electricity. Thus, for instance, when the trade of the electricity demand is in the 17:30&#x2013;18:00 interval on Sep 20th, we cannot use the electricity demand in the same time interval on Sep 19th due to the trading hours of the market, resulting in <italic>L</italic>
<sub>
<italic>&#x3b1;</italic>
</sub> &#x3d;&#x20;1.</p>
<p>The design of <italic>T</italic> and <italic>U</italic> depends on the aim of the analysis. For example, if the analyst should use only the latest demand, <italic>T</italic> and <italic>U</italic> are selected as (<italic>T</italic>, <italic>U</italic>) &#x3d; (1, 1). The usage of only one latest demand value could often yield unstable forecast value; in this case, larger <italic>T</italic> and <italic>U</italic> would provide better results. However, too large <italic>T</italic> and <italic>U</italic> can result in overfitting. Thus, we do not generally know the best <italic>T</italic> and <italic>U</italic> to achieve the best forecast accuracy. In our numerical experiments in <xref ref-type="sec" rid="s4">Sections 4 and 5</xref>, all tuning parameters, including <italic>T</italic> and <italic>U</italic>, are selected by cross-validation. In our experience, the cross-validation generally provides good forecast accuracy.</p>
<p>In practice, however, it is assumed that past consumption also depends on past weather, such as daily temperature. For example, suppose that it was exceptionally hot yesterday and it is cooler today. In this case, it is not desirable to directly use past consumption as the predictor; it is better to remove the effect of past temperature from past consumption. In other words, we can use <inline-formula id="inf12">
<mml:math id="m18">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf13">
<mml:math id="m19">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> instead of <inline-formula id="inf14">
<mml:math id="m20">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and <inline-formula id="inf15">
<mml:math id="m21">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, respectively. As a result, <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> is expressed as follows:<disp-formula id="e7">
<mml:math id="m22">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:math>
<label>(7)</label>
</disp-formula>
</p>
<p>Substituting (5) into (7) results in the following:<disp-formula id="e8">
<mml:math id="m23">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left">
<mml:mo>&#x2b;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(8)</label>
</disp-formula>
</p>
<p>The appropriate values of <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> and <italic>&#x3b2;</italic>
<sub>
<italic>ju</italic>
</sub> are chosen by several approaches. A simple method is <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> &#x3d; 1/<italic>T</italic> and <italic>&#x3b2;</italic>
<sub>
<italic>ju</italic>
</sub> &#x3d; 1/<italic>U</italic>, which implies <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> is the sample mean of the past consumption. Another method is based on the AR(1) structure, i.e.,&#x20;<inline-formula id="inf16">
<mml:math id="m24">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> and <inline-formula id="inf17">
<mml:math id="m25">
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, where <italic>&#x3c1;</italic>
<sub>
<italic>&#x3b1;</italic>
</sub> and <italic>&#x3c1;</italic>
<sub>
<italic>&#x3b2;</italic>
</sub> satisfy <inline-formula id="inf18">
<mml:math id="m26">
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> and <inline-formula id="inf19">
<mml:math id="m27">
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msubsup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula>, respectively. Note that <inline-formula id="inf20">
<mml:math id="m28">
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>&#x3c1;</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>/</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, so <inline-formula id="inf21">
<mml:math id="m29">
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msup>
<mml:mrow>
<mml:mi>&#x3c1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> is equivalent to <italic>&#x3c1;</italic>
<sup>
<italic>T</italic>&#x2b;1</sup> &#x2212; 2<italic>&#x3c1;</italic> &#x2b; 1&#x20;&#x3d; 0, whose numerical solution is easily obtained.</p>
</sec>
<sec id="s2-3">
<title>2.3 Proposed Model</title>
<p>By combining the expressions of <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> in <xref ref-type="disp-formula" rid="e5">Eq. 5</xref> and <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> in <xref ref-type="disp-formula" rid="e8">Eq. 8</xref>, the model <xref ref-type="disp-formula" rid="e2">Eq. 2</xref> is expressed as follows:<disp-formula id="equ1">
<mml:math id="m30">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</disp-formula>
<disp-formula id="equ2">
<mml:math id="m31">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left">
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</disp-formula>
<disp-formula id="e9">
<mml:math id="m32">
<mml:mtable class="eqnarray">
<mml:mtr>
<mml:mtd columnalign="right"/>
<mml:mtd columnalign="left"/>
<mml:mtd columnalign="left">
<mml:mo>&#x2b;</mml:mo>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b5;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
<label>(9)</label>
</disp-formula>
</p>
<p>The model <xref ref-type="disp-formula" rid="e9">Eq. 9</xref> is equivalent to the linear regression model<disp-formula id="e10">
<mml:math id="m33">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi mathvariant="italic">&#x3b5;</mml:mi>
<mml:mo>,</mml:mo>
</mml:math>
<label>(10)</label>
</disp-formula>where <bold>
<italic>&#x3b3;</italic>
</bold> &#x3d; vec(<bold>&#x393;</bold>) and <bold>
<italic>&#x25b;</italic>
</bold> &#x3d; vec(<bold>
<italic>E</italic>
</bold>) with <bold>
<italic>E</italic>
</bold> &#x3d; (<italic>&#x25b;</italic>
<sub>
<italic>ij</italic>
</sub>). Here, <bold>
<italic>X</italic>
</bold> and <inline-formula id="inf22">
<mml:math id="m34">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> are considered as the design matrix and the response vector, respectively. The definitions of <inline-formula id="inf23">
<mml:math id="m35">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> and <bold>
<italic>X</italic>
</bold> are given in Section S1 in the <xref ref-type="sec" rid="s12">Supplementary Material</xref>.</p>
</sec>
</sec>
<sec id="s3">
<title>3 Estimation</title>
<sec id="s3-1">
<title>3.1 Nonnegative Least Squares</title>
<p>To estimate the regression coefficient vector <bold>
<italic>&#x3b3;</italic>
</bold>, one can use the least squares estimation (LSE)<disp-formula id="equ3">
<mml:math id="m36">
<mml:msub>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>
</p>
<p>In our experience, however, the elements of least squares estimate <inline-formula id="inf24">
<mml:math id="m37">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> often become negative. In such cases, the estimate of <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> is negative because the basis functions <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>) and <italic>g</italic>
<sub>
<italic>m</italic>
</sub>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>) generally take positive values. When <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> &#x3c; 0, one can interpret the weather effect is negative. Nevertheless, the one-day curve of <inline-formula id="inf25">
<mml:math id="m38">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> turns out to be counterintuitive; the effect of weather negatively increases as the electricity demand increases. In other words, <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> is negatively large at working hours and small at midnight. As a result, <italic>&#x3bc;</italic>
<sub>
<italic>ij</italic>
</sub> becomes extremely large in the working time. We observe this phenomenon on the analysis of three datasets presented in this study; one of them is the well-known Global Energy Forecasting Competition 2014 (GEFCom 2014) data. Therefore, this phenomenon could occur in other datasets.</p>
<p>A clear interpretation is realized when the weather effect <italic>b</italic>
<sub>
<italic>ij</italic>
</sub> is nonnegative. To achieve this, we employ the nonnegative least squares (NNLS) estimation, in which we minimize the loss function under a constraint the regression coefficients are nonnegative:<disp-formula id="e11">
<mml:math id="m39">
<mml:msub>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mspace width="1em"/>
<mml:mi mathvariant="normal">s</mml:mi>
<mml:mi mathvariant="normal">u</mml:mi>
<mml:mi mathvariant="normal">b</mml:mi>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mi mathvariant="normal">e</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mi mathvariant="normal">o</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:mn mathvariant="bold">0</mml:mn>
<mml:mo>.</mml:mo>
</mml:math>
<label>(11)</label>
</disp-formula>
</p>
<p>The optimization problem <xref ref-type="disp-formula" rid="e11">Eq. 11</xref> is a special case of quadratic programming with nonnegativity constraints [e.g., (<xref ref-type="bibr" rid="B17">Franc et&#x20;al., 2005</xref>)]. As a result, the NNLS problem becomes a convex optimization problem. Several efficient algorithms to obtain the solution in <xref ref-type="disp-formula" rid="e11">Eq. 11</xref> have been proposed in the literature [e.g., (<xref ref-type="bibr" rid="B35">Lawson and Hanson, 1995</xref>; <xref ref-type="bibr" rid="B7">Bro and De Jong, 1997</xref>; <xref ref-type="bibr" rid="B49">Timotheou, 2016</xref>)].</p>
<p>We add the ridge penalty (<xref ref-type="bibr" rid="B28">Hoerl and Kennard, 1970</xref>) to the loss function of the NNLS estimation:<disp-formula id="e12">
<mml:math id="m40">
<mml:msub>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mspace width="1em"/>
<mml:mi mathvariant="normal">s</mml:mi>
<mml:mi mathvariant="normal">u</mml:mi>
<mml:mi mathvariant="normal">b</mml:mi>
<mml:mi mathvariant="normal">j</mml:mi>
<mml:mi mathvariant="normal">e</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="normal">t</mml:mi>
<mml:mi mathvariant="normal">o</mml:mi>
<mml:mspace width="0.3333em"/>
<mml:mspace width="0.3333em"/>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
<mml:mo>&#x2265;</mml:mo>
<mml:mn mathvariant="bold">0</mml:mn>
<mml:mo>,</mml:mo>
</mml:math>
<label>(12)</label>
</disp-formula>where <italic>&#x3bb;</italic> &#x3e; 0 is a regularization parameter. In our experience, the ridge penalization improves the forecast accuracy, and also produces a smoother function of <inline-formula id="inf26">
<mml:math id="m41">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> than the unpenalized NNLS, which makes the interpretation of the weather effect easier.</p>
</sec>
<sec id="s3-2">
<title>3.2 Forecast</title>
<p>For the day-ahead forecast, we forecast the demand on the next day, <inline-formula id="inf27">
<mml:math id="m42">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, for the given NNLS estimate <inline-formula id="inf28">
<mml:math id="m43">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> and weather information <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>&#x2b;1</sub>. The forecast value <inline-formula id="inf29">
<mml:math id="m44">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is expressed as follows:<disp-formula id="equ4">
<mml:math id="m45">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>
</p>
<p>Here, <inline-formula id="inf30">
<mml:math id="m46">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>Q</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3b3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>h</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>q</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>g</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> and <inline-formula id="inf31">
<mml:math id="m47">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:msubsup>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>. On the intraday forecast, we may use information about the demand on that day so that <inline-formula id="inf32">
<mml:math id="m48">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is expressed&#x20;as<disp-formula id="inf33">
<mml:math id="m49">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover>
<mml:mi>&#x2211;</mml:mi>
<mml:mrow>
<mml:mi>t</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>T</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b1;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:munderover>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>u</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>U</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mi>u</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>u</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>L</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>.</mml:mo>
</mml:math>
</disp-formula>
</p>
<p>Construction of a forecast interval based on <xref ref-type="disp-formula" rid="e11">Eq. 11</xref> or <xref ref-type="disp-formula" rid="e12">Eq. 12</xref> is not easy due to the constraints of the parameter. To derive the forecast interval, we employ a two-stage procedure; first, we estimate the parameter via NNLS to extract variables that correspond to nonzero coefficients. Then, we employ the least squares estimation based on the variables selected in the first step. With this procedure, we should derive the forecast interval after model selection. To achieve this result, the post-selection inference (<xref ref-type="bibr" rid="B37">Lee and Taylor, 2014</xref>; <xref ref-type="bibr" rid="B36">Lee et&#x20;al., 2016</xref>) is employed. The post-selection inference for the NNLS estimation is detailed in Section S2 in the <xref ref-type="sec" rid="s12">Supplementary Material</xref>.</p>
</sec>
</sec>
<sec id="s4">
<title>4 Application to Demand Data From Tokyo Electric Power Company Holdings</title>
<p>The performance of our proposed method is investigated through the analysis of electricity demand data collected from Tokyo Electric Power Company Holdings, available at <ext-link ext-link-type="uri" xlink:href="https://www.tepco.co.jp/en/forecast/html/download-e.html">https://www.tepco.co.jp/en/forecast/html/download-e.html</ext-link>. The dataset consists of electricity demand from April 1st, 2016, to March 30th, 2020. The demand is shown in MW at 1-h intervals (i.e.,&#x20;<italic>J</italic>&#x20;&#x3d;&#x20;24).</p>
<p>We forecast the demand from April 1st, 2019 to March 30th, 2020 (data in 2016&#x2013;2018 are only used for training). The training data consist of all demand data up to the previous day of the forecast day; for example, when we forecast the demand on February 4th, 2020, the training data are demand from April 1st, 2016, to February 3rd, 2020. For the sake of simplicity, we consider the problem of the day-ahead forecast, that is, <italic>&#x3b2;</italic>
<sub>
<italic>ju</italic>
</sub> &#x2261; 0. Also, we set <italic>L</italic>
<sub>
<italic>&#x3b1;</italic>
</sub> &#x3d;&#x20;0.</p>
<sec id="s4-1">
<title>4.1 Basis Functions</title>
<p>We use maximum temperature in Tokyo as the weather variable <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>, available at Japan Meteorological Agency (<ext-link ext-link-type="uri" xlink:href="https://www.jma.go.jp/jma/indexe.html">https://www.jma.go.jp/jma/indexe.html</ext-link>).</p>
<p>
<xref ref-type="fig" rid="F1">Figure&#x20;1</xref> shows the relationship between the maximum temperature and demand. We depict this relationship in different time intervals for Sunday, Monday, and Wednesday. The curves are depicted by fitting the ordinary least squares estimation with the cubic B-spline function (e.g., <xref ref-type="bibr" rid="B24">Hastie et&#x20;al., 2008</xref>) with equally-spaced knots. The number of basis functions is <italic>M</italic>&#x20;&#x3d; 5. The B-spline function of <italic>k</italic>-degree is constructed by linear combination of <italic>M</italic> basis functions with <italic>M</italic>&#x20;&#x2b; 2<italic>k</italic> knots, say <italic>t</italic>
<sub>1</sub>, <italic>&#x2026;</italic> , <italic>t</italic>
<sub>
<italic>M</italic>&#x2b;2<italic>k</italic>
</sub>. For given <italic>n</italic> data points in increasing order, say <italic>x</italic>
<sub>1</sub>, <italic>&#x2026;</italic> , <italic>x</italic>
<sub>
<italic>n</italic>
</sub>, we set the knots as <italic>t</italic>
<sub>1</sub> &#x2264; <italic>t</italic>
<sub>2</sub> &#x2264; &#x22ef; &#x2264; <italic>t</italic>
<sub>
<italic>k</italic>
</sub> &#x3d; <italic>x</italic>
<sub>1</sub> &#x2264; &#x22ef; &#x2264; <italic>x</italic>
<sub>
<italic>n</italic>
</sub> &#x3d; <italic>t</italic>
<sub>
<italic>M</italic>&#x2b;<italic>k</italic>&#x2b;1</sub> &#x2264; &#x22ef; &#x2264; <italic>t</italic>
<sub>
<italic>M</italic>&#x2b;2<italic>k</italic>
</sub>. The B-spline function is the density function of a convolution of uniform random variables (<xref ref-type="bibr" rid="B24">Hastie et&#x20;al., 2008</xref>), and it is constructed by the following recurrence relation (<xref ref-type="bibr" rid="B11">De Boor, 1972</xref>):<disp-formula id="equ5">
<mml:math id="m50">
<mml:mtable class="align-star" columnalign="left">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>;</mml:mo>
<mml:mn>0</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mn mathvariant="double-struck">1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">[</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="right">
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>;</mml:mo>
<mml:mi>m</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>m</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:msub>
<mml:mrow>
<mml:mi>B</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>,</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</disp-formula>where <inline-formula id="inf34">
<mml:math id="m51">
<mml:msub>
<mml:mrow>
<mml:mn mathvariant="double-struck">1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula> is the indicator function, that is, <inline-formula id="inf35">
<mml:math id="m52">
<mml:msub>
<mml:mrow>
<mml:mn mathvariant="double-struck">1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:math>
</inline-formula> when <italic>x</italic> &#x2208; <italic>A</italic> and <inline-formula id="inf36">
<mml:math id="m53">
<mml:msub>
<mml:mrow>
<mml:mn mathvariant="double-struck">1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>A</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>0</mml:mn>
</mml:math>
</inline-formula> otherwise. We adopt the cubic B-spline (<italic>k</italic>&#x20;&#x3d; 3). The left panel of <xref ref-type="fig" rid="F2">Figure&#x20;2</xref> depicts the cubic B-spline function with <italic>M</italic>&#x20;&#x3d; 10. For all settings, the curve-fitting works well, which implies the usage of the B-spline function as a basis function <italic>g</italic>(<bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>) would be reasonable.</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Relationship between maximum temperature and demand for different time intervals on Sunday, Monday, and Wednesday. The curves are depicted by fitting the ordinary least squares estimation with the cubic B-spline function.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g001.tif"/>
</fig>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>B-spline functions of 3 degree <bold>(left panel)</bold> and cyclic B-spline functions of 3 degree <bold>(right panel)</bold> with M &#x3d;&#x20;10.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g002.tif"/>
</fig>
<p>The curve shape for 9:00&#x2013;10:00 is different from that for 15:00&#x2013;16:00, which suggests that the regression coefficients must be different among time intervals. Meanwhile, the curve shapes for 15:00&#x2013;16:00 and 18:00&#x2013;19:00 are similar. In this case, it is reasonable to assume that the regression coefficients for 15:00&#x2013;16:00 are similar to those for 18:00&#x2013;19:00. The regression coefficients are assumed to change depending on the time interval yet to be smooth according to the time interval. To achieve a smooth function of <italic>&#x3b2;</italic>
<sub>
<italic>m</italic>
</sub>(<italic>j</italic>), we also use the cubic B-spline as a basis function of <italic>h</italic>
<sub>
<italic>q</italic>
</sub>(<italic>j</italic>). As the ordinary B-spline function cannot produce a smooth curve around the boundary (i.e.,&#x20;23:00&#x2013;0:00 and 0:00&#x2013;1:00), we employ the cyclic B-spline function, where the basis functions wrap at the first and last knot locations. The cyclic B-spline function is implemented in the cSplineDes function in the mgcv package in R. The right panel of <xref ref-type="fig" rid="F2">Figure&#x20;2</xref> shows the cyclic B-spline function of degree 3 with <italic>M</italic>&#x20;&#x3d;&#x20;10.</p>
<p>We also observe that the curve shapes are different among each day of the week. Therefore, we construct the statistical models by day of the week separately; seven statistical models are constructed. To forecast the demand, we select a model that matches the day of the week. All national holidays are regarded as Sunday; therefore, the number of observations on Sunday is larger than on other weekdays.</p>
</sec>
<sec id="s4-2">
<title>4.2 Candidates of Tuning Parameters</title>
<p>We employ our proposed method based on two estimation procedures: ridge estimation<disp-formula id="equ6">
<mml:math id="m54">
<mml:munder>
<mml:mrow>
<mml:mi>min</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
</mml:munder>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">y</mml:mi>
</mml:mrow>
<mml:mo>&#x303;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi mathvariant="bold-italic">X</mml:mi>
<mml:mi mathvariant="italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3bb;</mml:mi>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mi mathvariant="italic">&#x3b3;</mml:mi>
<mml:msubsup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>,</mml:mo>
</mml:math>
</disp-formula>and NNLS estimation with the ridge penalty in <xref ref-type="disp-formula" rid="e12">Eq. 12</xref>. We label these estimation procedures as &#x201c;LSE&#x201d; and &#x201c;NNLS,&#x201d; respectively. For both LSE and NNLS, we prepare a wide variety of statistical models by changing the tuning parameters. Here, we review the role of each tuning parameter and present their candidates as follows:<list list-type="simple">
<list-item>
<p>&#x2022; <italic>Q</italic>: the number of basis functions in the varying coefficient model. As <italic>Q</italic> increases, the electricity fluctuations caused by weather becomes large in time interval <italic>j</italic> (<italic>j</italic>&#x20;&#x3d; 1, <italic>&#x2026;</italic> , <italic>J</italic>). As&#x20;we will show in <xref ref-type="sec" rid="s4-3">Section 4.3</xref>, the value of <italic>Q</italic> may not&#x20;highly affect the forecast accuracy. Therefore, it would be sufficient to set the candidates of <italic>Q</italic> as <italic>Q</italic>&#x20;&#x3d; 5,&#x20;10.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>M</italic>: the number of basis functions for the impact of weather on demand. As <italic>M</italic> increases, the electricity fluctuations caused by weather becomes large in temperature <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub>. As shown in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>, <italic>M</italic>&#x20;&#x3d; 5 would be sufficient to express the relationship between weather and demand. Therefore, the candidates of <italic>M</italic> are <italic>M</italic>&#x20;&#x3d; 5,&#x20;10.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>T</italic>: the number of past demands for forecasting. In other words, we use demand in the past <italic>T</italic> days to forecast demand. In this numerical analysis, we construct the statistical models by day of the week separately. Therefore, the forecast is done by using the past <italic>T</italic> weeks on the same day of the week. Consequently, it would be sufficient to set the candidates of <italic>T</italic> as <italic>T</italic>&#x20;&#x3d; 2,&#x20;4.</p>
</list-item>
<list-item>
<p>&#x2022; <italic>&#x3bb;</italic>: regularization parameter for ridge regression. As <italic>&#x3bb;</italic> increases, the regression coefficients become stable. Small <italic>&#x3bb;</italic> prevents the overfitting, but too large <italic>&#x3bb;</italic> leads to large bias. The candidates of <italic>&#x3bb;</italic> are 20 sequences from 10<sup>&#x2013;5</sup> to 1.0 on a log-scale. We note that the log-scale sequence is often used to set the candidates of the regularization parameters (e.g., <xref ref-type="bibr" rid="B18">Friedman et&#x20;al., 2010</xref>). We also set <italic>&#x3bb;</italic> &#x3d; 0 to investigate the impact of the ridge parameter on the forecast accuracy. As we will see in <xref ref-type="sec" rid="s4-3">Section 4.3</xref>, it would be sufficient to set the above candidates of <italic>&#x3bb;</italic> to achieve good accuracy.</p>
</list-item>
</list>
</p>
<p>In addition to the above candidates of models, we consider two types of <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub>: sample mean of the past demand (i.e.,&#x20;<italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> &#x3d; 1/<italic>T</italic>) and AR(1) structure. Details of the AR(1) structure are presented at the end of <xref ref-type="sec" rid="s2-2">Section 2.2</xref>. As a result, the total number of candidates of the models is 336 (&#x3d; 2&#x20;&#xd7; 2&#x20;&#xd7; 2&#x20;&#xd7; (20 &#x2b; 1) &#xd7; 2). These candidates are summarized in <xref ref-type="table" rid="T1">Table&#x20;1</xref>.</p>
<table-wrap id="T1" position="float">
<label>TABLE 1</label>
<caption>
<p>Candidates of tuning parameters for our proposed method.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th colspan="2" align="center">
<italic>Q</italic>
</th>
<th colspan="2" align="center">
<italic>M</italic>
</th>
<th colspan="2" align="center">
<italic>T</italic>
</th>
<th colspan="2" align="center">
<italic>&#x3b1;</italic>
</th>
</tr>
<tr>
<th align="left">5</th>
<th align="center">10</th>
<th align="center">5</th>
<th align="center">10</th>
<th align="center">2</th>
<th align="center">4</th>
<th align="center">AR</th>
<th align="center">mean</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td colspan="8" align="center">
<italic>&#x3bb;</italic>
</td>
</tr>
<tr>
<td align="left">0.0</td>
<td align="left">1.0 &#xd7; 10<sup>&#x2212;5</sup>
</td>
<td align="center">1.8 &#xd7; 10<sup>&#x2212;5</sup>
</td>
<td align="center">3.4 &#xd7; 10<sup>&#x2212;5</sup>
</td>
<td align="center">6.2 &#xd7; 10<sup>&#x2212;5</sup>
</td>
<td align="center">1.1 &#xd7; 10<sup>&#x2212;4</sup>
</td>
<td align="center">2.1 &#xd7; 10<sup>&#x2212;4</sup>
</td>
<td align="center">3.8 &#xd7; 10<sup>&#x2212;4</sup>
</td>
</tr>
<tr>
<td align="left">7.0 &#xd7; 10<sup>&#x2212;4</sup>
</td>
<td align="left">1.3 &#xd7; 10<sup>&#x2212;3</sup>
</td>
<td align="center">2.3 &#xd7; 10<sup>&#x2212;3</sup>
</td>
<td align="center">4.3 &#xd7; 10<sup>&#x2212;3</sup>
</td>
<td align="center">7.8 &#xd7; 10<sup>&#x2212;3</sup>
</td>
<td align="center">1.4 &#xd7; 10<sup>&#x2212;2</sup>
</td>
<td align="center">2.6 &#xd7; 10<sup>&#x2212;2</sup>
</td>
<td align="center">4.8 &#xd7; 10<sup>&#x2212;2</sup>
</td>
</tr>
<tr>
<td align="left">8.8 &#xd7; 10<sup>&#x2212;2</sup>
</td>
<td align="left">1.6 &#xd7; 10<sup>&#x2212;1</sup>
</td>
<td align="center">3.0 &#xd7; 10<sup>&#x2212;1</sup>
</td>
<td align="center">5.5 &#xd7; 10<sup>&#x2212;1</sup>
</td>
<td align="center">1.0</td>
<td align="left"/>
<td align="left"/>
<td align="left"/>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s4-3">
<title>4.3 Impact of Tuning Parameters on Forecast Accuracy</title>
<p>The forecast accuracy of our proposed method depends on the tuning parameters presented above. We investigate the impact of tuning parameters on the mean absolute percentage error (MAPE) defined as<disp-formula id="e13">
<mml:math id="m55">
<mml:mi mathvariant="normal">M</mml:mi>
<mml:mi mathvariant="normal">A</mml:mi>
<mml:mi mathvariant="normal">P</mml:mi>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mfrac>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>J</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:mfrac>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="false">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>J</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:mfrac>
<mml:mrow>
<mml:mo stretchy="false">&#x7c;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo stretchy="false">&#x7c;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:mfrac>
<mml:mo>.</mml:mo>
</mml:math>
<label>(13)</label>
</disp-formula>
</p>
<p>
<xref ref-type="fig" rid="F3">Figure&#x20;3</xref> shows the relationship between regularization parameter <italic>&#x3bb;</italic> and MAPE. The relationships are investigated for all combinations of (<italic>Q</italic>, <italic>M</italic>,&#x20;<italic>T</italic>).</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Impact of regularization parameter &#x3bb; on the MAPE, investigated for all combinations of (Q, M, T). The dashed line indicates &#x3b1;<sub>jt</sub> &#x3d; 1/T and the solid line corresponds to the AR(1) structure.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g003.tif"/>
</fig>
<p>The result shows that the AR(1) structure on <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> produces smaller MAPE than the mean structure (<italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub> &#x3d; 1/<italic>T</italic>) for all candidates of ridge parameter <italic>&#x3bb;</italic>. For AR(1) model, the performance for <italic>T</italic>&#x20;&#x3d; 4 is better than that for <italic>T</italic>&#x20;&#x3d; 2. We observe that a large value of <italic>&#x3bb;</italic> may result in poor forecast accuracy; meanwhile, a small amount of <italic>&#x3bb;</italic> generally results in good accuracy. The result for <italic>&#x3bb;</italic> &#x3d; 0 is not displayed here because the MAPE can be extremely large due to the non-convergence of parameters; the ridge penalty helps avoid such a non-convergence. In summary, the AR(1) structure on <italic>&#x3b1;</italic>
<sub>
<italic>jt</italic>
</sub>, <italic>T</italic>&#x20;&#x3d; 4, and a small value of <italic>&#x3bb;</italic> will result in a small MAPE for this dataset.</p>
</sec>
<sec id="s4-4">
<title>4.4 Forecast Accuracy</title>
<p>We compare the performance of our proposed method with the following popular machine learning techniques: random forest (RF), support vector machine (SVM), Least absolute shrinkage and selection operator (Lasso), LightGBM (LGBM; (<xref ref-type="bibr" rid="B33">Ke et&#x20;al., 2017</xref>)), and Long Short Term Memory [LSTM; (<xref ref-type="bibr" rid="B27">Hochreiter and Schmidhuber, 1997</xref>; <xref ref-type="bibr" rid="B50">Van Houdt et&#x20;al., 2020</xref>)]. The RF, SVM, LGBM, and LSTM involve nonlinear functions, allowing us to capture complex structures. We use R packages randomForest, ksvm, glmnet, and lgbm to implement RF, SVM, Lasso, and LGBM, respectively. The LSTM is implemented by tensorflow.keras library in python. The LGBM is based on the gradient boosting decision tree and achieves good forecast accuracy in various fields of research, including energy (e.g., (<xref ref-type="bibr" rid="B32">Ju et&#x20;al., 2019</xref>)). The LSTM is the state-of-the-art technique for analyzing time series data using artificial neural networks (ANN). For these machine learning techniques, the forecast is made by the electricity demand of past <italic>T</italic> days and maximum temperature, that is, <inline-formula id="inf37">
<mml:math id="m56">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>f</mml:mi>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mo>&#x2026;</mml:mo>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>T</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>.</p>
<p>The characteristics of our proposed method and the machine learning techniques are compared in <xref ref-type="table" rid="T2">Table&#x20;2</xref>.</p>
<table-wrap id="T2" position="float">
<label>TABLE 2</label>
<caption>
<p>Characteristics of our proposed method (NNLS) and the state-of-the-art machine learning techniques in terms of forecast accuracy, interpretation, and computational&#x20;speed.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="right"/>
<th align="center">NNLS</th>
<th align="center">SVM</th>
<th align="center">RF</th>
<th align="center">Lasso</th>
<th align="center">LGBM</th>
<th align="center">LSTM</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="right">Accuracy with small <italic>n</italic>
</td>
<td align="center">Good</td>
<td align="center">Good</td>
<td align="center">Good</td>
<td align="center">Average</td>
<td align="center">Good</td>
<td align="center">Poor</td>
</tr>
<tr>
<td align="right">Accuracy with large <italic>n</italic>
</td>
<td align="center">Good</td>
<td align="center">Good</td>
<td align="center">Good</td>
<td align="center">Average</td>
<td align="center">Excellent</td>
<td align="center">Excellent</td>
</tr>
<tr>
<td align="right">Interpretation</td>
<td align="center">Good</td>
<td align="center">Poor</td>
<td align="center">Poor</td>
<td align="center">Average</td>
<td align="center">Poor</td>
<td align="center">Poor</td>
</tr>
<tr>
<td align="right">Speed with small <italic>n</italic>
</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
</tr>
<tr>
<td align="right">Speed with large <italic>n</italic>
</td>
<td align="center">Fast</td>
<td align="center">Slow</td>
<td align="center">Medium</td>
<td align="center">Fast</td>
<td align="center">Fast</td>
<td align="center">Medium</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>A detailed description of <xref ref-type="table" rid="T2">Table&#x20;2</xref> is as follows:<list list-type="simple">
<list-item>
<p>&#x2022; With small sample sizes, the machine learning methods that capture nonlinear structure provide good accuracy except for the LSTM; in general, the ANN can often yield poor accuracy with small sample sizes (e.g., <xref ref-type="bibr" rid="B48">Tange et&#x20;al., 2017</xref>). The accuracy of the lasso is not sufficiently but relatively high because the lasso cannot capture the nonlinear structure. When the number of observations is large, the LGBM and LSTM will perform perfectly well because these methods capture complex nonlinear structures. However, the sample sizes of the dataset used in this Section (and also other Sections) may not be&#x20;large.</p>
</list-item>
<list-item>
<p>&#x2022; Our proposed method is interpretable thanks to the nonlinear regression modeling with basis expansions. The lasso may also be interpretable, but it only captures the linear structure. The other machine learning techniques might not be suitable for interpretation purposes; please refer to <xref ref-type="sec" rid="s4-5">Section 4.5</xref> for the numerical results.</p>
</list-item>
<list-item>
<p>&#x2022; The computational speed of our proposed method turns out to be fast thanks to the efficient NNLS algorithm of Lawson and Hanson (<xref ref-type="bibr" rid="B35">Lawson and Hanson, 1995</xref>). The lasso algorithm (<xref ref-type="bibr" rid="B18">Friedman et&#x20;al., 2010</xref>) is also extremely fast. The RF is a little bit slow with large sample sizes due to the resampling procedure. The LGBM is very fast regardless of sample sizes in our experience. The SVM becomes extremely slow with large <italic>n</italic> (e.g., <italic>n</italic>&#x20;&#x3d; 100,000) because we must compute the Kernel function for each pair of observations, which requires <italic>O</italic>(<italic>n</italic>
<sup>2</sup>) operations.</p>
</list-item>
</list>
</p>
<p>In practice, we need to select a set of tuning parameters among candidates. The candidates of the tuning parameters for the proposed method are presented in <xref ref-type="sec" rid="s4-3">Section 4.3</xref>. For machine learning methods, the candidates are detailed in Section S3 in the <xref ref-type="sec" rid="s12">Supplementary Material</xref>. For all methods, we must select an appropriate set of tuning parameters. These tuning parameters are generally selected with cross-validation. In this study, we choose these tuning parameters to minimize the MAPE in the past year. The values of tuning parameters are changed every&#x20;month.</p>
<p>
<xref ref-type="table" rid="T3">Table&#x20;3</xref> shows the monthly MAPE for our proposed method and existing methods from April 2019 to March 2020. The result shows that the proposed method performs better than existing machine learning techniques in total. The SVM achieves the best performance in specific months but sometimes provides much larger MSE than other methods, resulting in worse performance than our proposed method in total. The RF and LGBM yield similar performance, and these methods produce larger MAPE than our proposed method. The lasso cannot capture the nonlinear relationship between temperature and demand as in <xref ref-type="fig" rid="F1">Figure&#x20;1</xref>, resulting in poor performance in total. The LSTM provides the worst performance, probably due to the small number of observations: it is from <italic>n</italic>&#x20;&#x3d; 132 to <italic>n</italic>&#x20;&#x3d; 302. In general, the ANN does not perform well with such small sample sizes; (<xref ref-type="bibr" rid="B48">Tange et&#x20;al., 2017</xref>) showed that the ANN performed worse than SVM for small sample sizes, and several similar numerical results are found in the literature (<xref ref-type="bibr" rid="B5">Be&#x107;irovi&#x107; and &#x106;osovi&#x107;, 2016</xref>; <xref ref-type="bibr" rid="B13">Dehalwar et&#x20;al., 2016</xref>; <xref ref-type="bibr" rid="B41">Maldonado et&#x20;al., 2019</xref>). We observe that the NNLS and LSE result in similar values of MAPE. These similar results are obtained probably due to the identifiability of the parameter. Our proposed procedure decomposes <italic>y</italic>
<sub>
<italic>t</italic>
</sub> as <italic>y</italic>
<sub>
<italic>t</italic>
</sub> &#x2248; <italic>&#x3bc;</italic>
<sub>
<italic>t</italic>
</sub> &#x2b; <italic>b</italic>
<sub>
<italic>t</italic>
</sub>, and this decomposition is not unique. Therefore, the NNLS and LSE produce different values of <inline-formula id="inf38">
<mml:math id="m57">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf39">
<mml:math id="m58">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> but similar values of <inline-formula id="inf40">
<mml:math id="m59">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>t</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>.</p>
<table-wrap id="T3" position="float">
<label>TABLE 3</label>
<caption>
<p>Monthly MAPE for our proposed methods (NNLS and LSE) and existing machine learning techniques (SVM, RF, Lasso, LGBM, and LSTM) on the dataset from Tokyo Electric Power Company Holdings from April 2019 to March 2020. The smallest MAPE is written in&#x20;bold.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th align="left"/>
<th align="center">Apr</th>
<th align="center">May</th>
<th align="center">Jun</th>
<th align="center">Jul</th>
<th align="center">Aug</th>
<th align="center">Sep</th>
<th align="center">Oct</th>
<th align="center">Nov</th>
<th align="center">Dec</th>
<th align="center">Jan</th>
<th align="center">Feb</th>
<th align="center">Mar</th>
<th align="center">total</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">NNLS</td>
<td align="center">
<bold>4.0</bold>
</td>
<td align="center">3.7</td>
<td align="center">3.3</td>
<td align="center">3.9</td>
<td align="center">
<bold>4.5</bold>
</td>
<td align="center">
<bold>4.8</bold>
</td>
<td align="center">3.3</td>
<td align="center">3.2</td>
<td align="center">
<bold>4.4</bold>
</td>
<td align="center">4.2</td>
<td align="center">
<bold>4.7</bold>
</td>
<td align="center">
<bold>4.9</bold>
</td>
<td align="center">
<bold>4.1</bold>
</td>
</tr>
<tr>
<td align="left">LSE</td>
<td align="center">4.0</td>
<td align="center">3.7</td>
<td align="center">3.3</td>
<td align="center">
<bold>3.9</bold>
</td>
<td align="center">4.5</td>
<td align="center">4.8</td>
<td align="center">
<bold>3.3</bold>
</td>
<td align="center">
<bold>3.2</bold>
</td>
<td align="center">4.4</td>
<td align="center">
<bold>4.2</bold>
</td>
<td align="center">4.8</td>
<td align="center">4.9</td>
<td align="center">4.1</td>
</tr>
<tr>
<td align="left">SVM</td>
<td align="center">5.2</td>
<td align="center">
<bold>3.0</bold>
</td>
<td align="center">
<bold>2.9</bold>
</td>
<td align="center">5.4</td>
<td align="center">7.8</td>
<td align="center">6.3</td>
<td align="center">4.1</td>
<td align="center">4.2</td>
<td align="center">5.4</td>
<td align="center">4.8</td>
<td align="center">5.4</td>
<td align="center">5.9</td>
<td align="center">5.0</td>
</tr>
<tr>
<td align="left">RF</td>
<td align="center">5.6</td>
<td align="center">3.4</td>
<td align="center">3.6</td>
<td align="center">6.4</td>
<td align="center">7.2</td>
<td align="center">5.9</td>
<td align="center">4.3</td>
<td align="center">4.2</td>
<td align="center">5.5</td>
<td align="center">5.3</td>
<td align="center">5.6</td>
<td align="center">5.9</td>
<td align="center">5.2</td>
</tr>
<tr>
<td align="left">Lasso</td>
<td align="center">7.3</td>
<td align="center">3.9</td>
<td align="center">4.0</td>
<td align="center">8.3</td>
<td align="center">8.2</td>
<td align="center">9.2</td>
<td align="center">6.2</td>
<td align="center">4.8</td>
<td align="center">5.6</td>
<td align="center">6.4</td>
<td align="center">7.7</td>
<td align="center">8.0</td>
<td align="center">6.6</td>
</tr>
<tr>
<td align="left">LGBM</td>
<td align="center">5.6</td>
<td align="center">3.8</td>
<td align="center">3.4</td>
<td align="center">6.2</td>
<td align="center">7.4</td>
<td align="center">5.8</td>
<td align="center">4.3</td>
<td align="center">4.4</td>
<td align="center">5.4</td>
<td align="center">5.0</td>
<td align="center">5.5</td>
<td align="center">5.9</td>
<td align="center">5.2</td>
</tr>
<tr>
<td align="left">LSTM</td>
<td align="center">7.0</td>
<td align="center">7.6</td>
<td align="center">7.3</td>
<td align="center">8.2</td>
<td align="center">7.2</td>
<td align="center">8.2</td>
<td align="center">8.3</td>
<td align="center">6.6</td>
<td align="center">6.2</td>
<td align="center">6.3</td>
<td align="center">5.8</td>
<td align="center">6.7</td>
<td align="center">7.1</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We also compute the MAPE for well-known Global Energy Forecasting Competition 2014 (GEFCom 2014) data (<xref ref-type="bibr" rid="B29">Hong and Fan, 2016</xref>), and obtain a similar result as that shown in <xref ref-type="table" rid="T3">Table&#x20;3</xref>. For detail, please refer to Section S4 in the <xref ref-type="sec" rid="s12">Supplementary Material</xref>.</p>
</sec>
<sec id="s4-5">
<title>4.5 Interpretation</title>
<p>With our proposed method, the estimated model can be interpreted by decomposing the forecast value by the effects of temperature and past demand: <inline-formula id="inf41">
<mml:math id="m60">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. The values, <inline-formula id="inf42">
<mml:math id="m61">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> and <inline-formula id="inf43">
<mml:math id="m62">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, for NNLS and LSE from October 1st to 14th, 2019, are depicted in <xref ref-type="fig" rid="F4">Figure&#x20;4</xref>.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>The values, <inline-formula id="inf934">
<mml:math id="m951">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>
<sub>ij</sub> and <inline-formula id="inf935">
<mml:math id="m952">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>
<sub>ij</sub> , for NNLS <bold>(upper panel)</bold> and LSE <bold>(lower panel)</bold> from October 1st to 14th,&#x20;2019.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g004.tif"/>
</fig>
<p>Although the forecast accuracy of the LSE estimation is similar to that of the NNLS estimation, as shown in <xref ref-type="table" rid="T3">Table&#x20;3</xref>, the results of the decomposition <inline-formula id="inf44">
<mml:math id="m63">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> for these two methods are unalike in terms of values. The LSE often results in negative values of <inline-formula id="inf45">
<mml:math id="m64">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, and then <inline-formula id="inf46">
<mml:math id="m65">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> becomes substantially larger than the actual demand. In particular, the value of <inline-formula id="inf47">
<mml:math id="m66">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> at working hours is negatively larger than that at midnight; on the other hand, the electricity is used primarily during working hours. As a result, the behavior of <inline-formula id="inf48">
<mml:math id="m67">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is counterintuitive; <inline-formula id="inf49">
<mml:math id="m68">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> becomes negatively larger as <inline-formula id="inf50">
<mml:math id="m69">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> increases. Thus, interpreting the effect of weather turns out to be difficult with LSE. This issue occurs because there are no restrictions on the sign of <inline-formula id="inf51">
<mml:math id="m70">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. We observe a similar behavior of <inline-formula id="inf52">
<mml:math id="m71">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> on other datasets, including GEFCom&#x20;2014.</p>
<p>In contrast, the effect of weather is appropriately captured by the NNLS estimation. Indeed, in many cases, the value of <inline-formula id="inf53">
<mml:math id="m72">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> at working hours is positively larger than that at midnight. The constraint on nonnegativeness of <bold>
<italic>&#x3b3;</italic>
</bold> significantly improves the interpretation of the weather effect while still maintaining excellent forecast accuracy.</p>
<p>To further investigate the effect of temperature, we depict <inline-formula id="inf54">
<mml:math id="m73">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> on Tuesday when maximum temperatures are 5&#xb0;C (cold day), 20&#xb0;C (cool day), and 35&#xb0;C (hot day), which is shown in <xref ref-type="fig" rid="F5">Figure&#x20;5</xref>. For existing methods, it is difficult to depict <inline-formula id="inf55">
<mml:math id="m74">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> because these methods do not assume the existence of <inline-formula id="inf56">
<mml:math id="m75">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>. For existing methods, instead of <inline-formula id="inf57">
<mml:math id="m76">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, the weather effect is calculated depending on the input: we forecast the demand with specific temperature (5&#xb0;C, 20&#xb0;C, and 35&#xb0;C) and average annual temperature (21.7&#xb0;C in this case), and subtract the forecast value with average annual temperature from that with a specific temperature. We depict the weather effect on October 8th, 2019, and October 15th, 2019, for existing methods; both of these days are Tuesday.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Estimate of the weather effect bij on Tuesday for the proposed method and existing methods. For existing methods, the weather effect depends on the input. We depict the weather effect on October 8th, 2019, and October 15th, 2019, for existing methods; both of these days of week are Tuesday</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g005.tif"/>
</fig>
<p>The results of our proposed procedure show that <inline-formula id="inf58">
<mml:math id="m77">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> is highly dependent on the temperature: the weather effect may be substantial for cold and hot days due to air conditioner use. For NNLS, the weather effect is always positive, which allows clear interpretation compared with LSE. Both NNLS and LSE result in smooth curves due to the smooth basis function of the regression coefficients. We observe that the weather effect is stable unless <italic>M</italic> is large and <italic>&#x3bb;</italic> is excessively&#x20;small.</p>
<p>The existing machine learning methods, RF, SVM, LGBM, and LSTM, are unstable and highly depend on the input. With the Lasso, the impact of temperature is almost zero, which implies that the weather effect cannot be captured. Our proposed method results in smoother curves than existing methods thanks to the B-spline basis expansion of regression coefficients in <xref ref-type="disp-formula" rid="e4">Eq. 4</xref>. As a result, our proposed method is more suitable for interpreting the weather effect than existing methods.</p>
</sec>
</sec>
<sec id="s5">
<title>5 Application to Data From One Selected Research Facility in Japan</title>
<p>In the second real data example, we apply our proposed method to the demand data from one selected research facility in Japan. The raw data cannot be published due to confidentiality. This dataset consists of demand from January 1st, 2017 to May 30th, 2020. At certain times, demand is either not observed or include outliers due to electricity meter failures or blackouts. The daily data that contain such missing values and outliers are removed, resulting in 1,164&#x20;days of complete data. The demand is shown in kW at 1-h intervals (<italic>J</italic>&#x20;&#x3d;&#x20;24).</p>
<p>We observe that COVID-19 greatly influences the usage of this research facility&#x2019;s electricity pattern due to the recommendation of telework. In present times, it is essential to forecast the demand for this extraordinary situation. To this end, our proposed method is directly applicable to the input of daily data related to COVID-19, and we focus our attention on the forecast accuracy in March, April, and May&#x20;2020.</p>
<sec id="s5-1">
<title>5.1 Input of COVID-19 Information</title>
<p>In Japan, the most frequently-used daily information about COVID-19 is the daily number of infections, available at <ext-link ext-link-type="uri" xlink:href="https://www3.nhk.or.jp/news/special/coronavirus/data-all/">https://www3.nhk.or.jp/news/special/coronavirus/data-all/</ext-link>. However, this variable turns out to be relatively unstable. In order to use more stable information about COVID-19, we may use the moving average of the number of infections; that is, the average number of infections in the past several&#x20;days.</p>
<p>The research facility used in this study promotes the staff to work from home to prevent the spread of COVID-19. We expect that the electricity usage of the research facility decreases as the number of infected people of the COVID-19 increases; therefore, the COVID-19 information may affect the forecast results. <xref ref-type="fig" rid="F6">Figure&#x20;6</xref> shows the relationship between the number of daily infections and demand, and between the average number of infections in the past 14&#xa0;days and demand. We depict these plots on working days. The curve fitting is done by polynomial regression with cubic function. The B-spline may not be suitable in this case due to the limited number of observations.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Relationship between the number of daily infections and demand <bold>(upper panels)</bold>, and between the average number of infections in the past 14&#xa0;days and demand <bold>(lower panels)</bold>. We depict these plots on working days. The curve fitting is done by polynomial regression with cubic function.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g006.tif"/>
</fig>
<p>The number of daily infections includes outliers; thus resulting in unstable curve fitting. For example, when the number of infections is relatively large, the demand increases as the number of infections increases. This phenomenon is counterintuitive because this facility encourages working at home as much as possible to prevent infections. On the other hand, the average number of infections in the past 14&#xa0;days is negatively correlated with the demand, and the curve fitting of the cubic function works well. For this reason, we use the average number of infections in the past 14&#xa0;days as daily information about COVID-19. As a result, the daily variable <bold>
<italic>s</italic>
</bold>
<sub>
<italic>i</italic>
</sub> becomes a two-dimensional vector that consists of the maximum temperature and the average number of infections in the past 14&#xa0;days. We use the cubic B-spline function as a basis function of maximum temperature, and the cubic function as a basis function of the average number of infections in the past 14&#xa0;days.</p>
</sec>
<sec id="s5-2">
<title>5.2 Forecast Accuracy</title>
<p>In the previous real data example, we construct the statistical models by day of the week separately. However, in this case, the number of observations affected by COVID-19 is excessively small. Thus, only two statistical models are constructed based on working days (from Monday to Friday) and holidays (Saturday, Sunday, and national holidays). We consider the problem of the day-ahead forecast from March 1st, 2020 to May 30th, 2020 (data in 2017&#x2013;2019 are only used for training). The training data consist of all demand data up to the previous day of the forecast&#x20;day.</p>
<p>We investigate how the input of COVID-19 information improves the forecast accuracy. The NNLS does not produce negative regression coefficients but we observe that the electricity usage decreases as the average number of infections in the past 14&#xa0;days increases, as shown in <xref ref-type="fig" rid="F6">Figure&#x20;6</xref>. Thus, the electricity fluctuation caused by COVID-19, say <inline-formula id="inf59">
<mml:math id="m78">
<mml:msubsup>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula>, should be negative. As the basis function, we use the cubic function of <italic>negative</italic> number of infections in the past 14&#xa0;days; that is, <inline-formula id="inf60">
<mml:math id="m79">
<mml:msubsup>
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>1</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3b2;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mn>3</mml:mn>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msubsup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
</mml:math>
</inline-formula>, where <inline-formula id="inf61">
<mml:math id="m80">
<mml:msubsup>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mtext>covid</mml:mtext>
<mml:mn>19</mml:mn>
</mml:mrow>
</mml:msubsup>
</mml:math>
</inline-formula> is the number of infections in the past 14&#xa0;days.</p>
<p>
<xref ref-type="fig" rid="F7">Figure&#x20;7</xref> shows the forecast values with our proposed method using NNLS and the actual demand. We depict two forecast values: one uses the information about COVID-19 and the other does not. The result shows that the usage of the COVID-19 data slightly improves the accuracy; for example, on the 10th and&#x20;13th.</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Actual demand and forecast values from April 1st, 2020 to April 20th,&#x20;2020.</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g007.tif"/>
</fig>
<p>
<xref ref-type="fig" rid="F8">Figure&#x20;8</xref> shows <inline-formula id="inf62">
<mml:math id="m81">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula> of both temperature and COVID-19. The results show that after April 10th, the negative effect of COVID-19 is observed. The government declared a state of emergency on April 7th, and following this, the usage pattern of the electricity changed. The change in electricity pattern on the 8th and 9th may not be captured due to excessively small sample sizes related to the number of infections. However, after the 9th, the effect of COVID-19 is captured. (insert <xref ref-type="fig" rid="F8">Figure&#x20;8</xref> here).</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>
<inline-formula id="inf936">
<mml:math id="m953">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula>ij for temperature (dotted line) and COVID-19 (dashed line).</p>
</caption>
<graphic xlink:href="fenrg-09-724780-g008.tif"/>
</fig>
<p>
<xref ref-type="table" rid="T4">Table&#x20;4</xref> shows MAPE for our proposed method and existing methods on March, April, and May 2020. We also compare the performance of two estimation procedures: one uses the information about COVID-19 and the other does not. In March, the result shows that the proposed method performs the best and Lasso yields the worst performance. This is because the effect of temperature can be appropriately captured as shown in the previous example. The effect of COVID-19 is not crucial in March because the performance becomes worse when the COVID-19 information is included.</p>
<table-wrap id="T4" position="float">
<label>TABLE 4</label>
<caption>
<p>Monthly MAPE for our proposed methods (NNLS and LSE) and existing machine learning techniques (SVM, RF, Lasso, LGBM, and LSTM) on the dataset from one selected research facility in March, April, and May 2020. The smallest MAPE is written in&#x20;bold.</p>
</caption>
<table>
<thead valign="top">
<tr>
<th rowspan="2" align="left"/>
<th colspan="6" align="center">Including COVID-19 information</th>
<th colspan="6" align="center">Not including COVID-19 information</th>
</tr>
<tr>
<th align="center">NNLS</th>
<th align="center">SVM</th>
<th align="center">RF</th>
<th align="center">Lasso</th>
<th align="center">LGBM</th>
<th align="center">LSTM</th>
<th align="center">NNLS</th>
<th align="center">SVM</th>
<th align="center">RF</th>
<th align="center">Lasso</th>
<th align="center">LGBM</th>
<th align="center">LSTM</th>
</tr>
</thead>
<tbody valign="top">
<tr>
<td align="left">Mar</td>
<td align="center">3.5</td>
<td align="center">5.6</td>
<td align="center">4.0</td>
<td align="center">4.3</td>
<td align="center">3.9</td>
<td align="center">24.9</td>
<td align="center">
<bold>3.4</bold>
</td>
<td align="center">3.8</td>
<td align="center">3.9</td>
<td align="center">4.1</td>
<td align="center">4.2</td>
<td align="center">16.1</td>
</tr>
<tr>
<td align="left">Apr</td>
<td align="center">4.0</td>
<td align="center">5.0</td>
<td align="center">4.3</td>
<td align="center">
<bold>3.9</bold>
</td>
<td align="center">6.0</td>
<td align="center">69.2</td>
<td align="center">5.2</td>
<td align="center">5.3</td>
<td align="center">6.5</td>
<td align="center">6.0</td>
<td align="center">7.7</td>
<td align="center">33.3</td>
</tr>
<tr>
<td align="left">May</td>
<td align="center">3.1</td>
<td align="center">3.1</td>
<td align="center">3.4</td>
<td align="center">
<bold>2.9</bold>
</td>
<td align="center">3.4</td>
<td align="center">48.4</td>
<td align="center">3.5</td>
<td align="center">3.2</td>
<td align="center">3.5</td>
<td align="center">3.4</td>
<td align="center">3.4</td>
<td align="center">28.8</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>In April and May, the information about COVID-19 significantly improves the performance for almost all methods. In particular, our proposed method and Lasso both produce small MAPE values, and interestingly, Lasso performs slightly better than our proposed method. There are two reasons to explain the superiority of Lasso. First, the relationship between the number of infections and the demand is approximated by a linear function, as shown in <xref ref-type="fig" rid="F6">Figure&#x20;6</xref>. Second, the temperature effect is not crucial because the temperature does not change much in April and May. The nonlinear machine learning techniques, that is, SVM, RF, LGBM, and LSTM yield large MAPE in April, probably due to the small number of observations related to COVID-19; these techniques result in overfitting. In particular, LSTM produces much worse MAPE than other methods. Such poor results may be due to the instability of the electricity demand; the neural networks can be highly sensitive to noise [e.g., (<xref ref-type="bibr" rid="B19">Goodfellow et&#x20;al., 2014</xref>)]. Indeed, we observe that the electricity demand of this dataset turns out to be unstable compared with the datasets from Tokyo electric power company holdings and Global Energy Forecasting Competition 2014. To improve the accuracy of the LSTM, we need to change the input/output by incorporating much more information of the data (e.g., not daily but hourly weather and hourly COVID-19 data).</p>
</sec>
</sec>
<sec id="s6">
<title>6 Concluding Remarks</title>
<p>We have constructed a statistical model for forecasting future electricity demand. To capture the nonlinear effect of weather information, we employed the varying coefficient model. With the ordinary least squares estimation (LSE), the estimate of <italic>b</italic>
<sub>
<italic>ij</italic>
</sub>, say <inline-formula id="inf63">
<mml:math id="m82">
<mml:msub>
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi>b</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:math>
</inline-formula>, became negative because some of the elements of regression coefficients <inline-formula id="inf64">
<mml:math id="m83">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> were negative. The negative weather effect led to the difficulty in the interpretation of the weather effect. To address this issue, we employed the NNLS estimation; this estimation is performed under the constraint that all of the elements of <inline-formula id="inf65">
<mml:math id="m84">
<mml:mrow>
<mml:mover accent="true">
<mml:mrow>
<mml:mi mathvariant="bold-italic">&#x3b3;</mml:mi>
</mml:mrow>
<mml:mo stretchy="false">&#x302;</mml:mo>
</mml:mover>
</mml:mrow>
</mml:math>
</inline-formula> are nonnegative. The practicality is illustrated through three real data examples. Two of these examples showed that our method performed better than the existing machine learning techniques. In the third example, our proposed method adequately captured the impact of COVID-19. Estimating the fluctuations of electric power caused by weather and COVID-19 would help make strategies for energy-saving interventions and demand response.</p>
<p>The proposed method is carried out under the assumption that the errors are uncorrelated. In practice, however, the errors among near time intervals may be correlated. As a future research topic, it would be interesting to assume a correlation among time intervals and estimate a regression model that includes the correlation parameter. Another important point is to incorporate the weather effects other than temperature and humidity; we may use cloud cover (<xref ref-type="bibr" rid="B4">Apadula et&#x20;al., 2012</xref>), rainfall, and wind speed (<xref ref-type="bibr" rid="B9">Chapagain and Kittipiyakul, 2018</xref>). However, incorporating too many variables can often result in low forecast accuracy due to overfitting (<xref ref-type="bibr" rid="B54">Xie et&#x20;al., 2016</xref>). The selection of an appropriate combination of variables is essential but beyond the scope of this study; we would like to take this as a future research&#x20;topic.</p>
<p>Recently, demand response has been becoming one of the most important topics in the research field of energy. In particular, the machine learning techniques have been recently used for residential demand response (<xref ref-type="bibr" rid="B57">Zhou et&#x20;al., 2016</xref>; <xref ref-type="bibr" rid="B43">Pallonetto et&#x20;al., 2019</xref>; <xref ref-type="bibr" rid="B1">Afzalan and Jazizadeh, 2020</xref>). These techniques are based on the deterministic approaches. On the other hand, our proposed statistical model will lead to the demand response by the probabilistic approach (<xref ref-type="bibr" rid="B47">Schachter and Mancarella, 2015</xref>; <xref ref-type="bibr" rid="B2">Alipour et&#x20;al., 2017</xref>). The probabilistic approach will allow the decision based on the probabilistic risk evaluation. Such demand response would be essential in practice, and we would like to work on this topic in the future.</p>
</sec>
</body>
<back>
<sec id="s7">
<title>Data Availability Statement</title>
<p>Publicly available datasets were analyzed in this study. This data&#x20;can be found here: <ext-link ext-link-type="uri" xlink:href="https://www.tepco.co.jp/en/forecast/html/download-e.html">https://www.tepco.co.jp/en/forecast/html/download-e.html</ext-link> <ext-link ext-link-type="uri" xlink:href="https://www.jma.go.jp/jma/indexe.html">https://www.jma.go.jp/jma/indexe.html</ext-link> <ext-link ext-link-type="uri" xlink:href="https://www3.nhk.or.jp/news/special/coronavirus/data-all/">https://www3.nhk.or.jp/news/special/coronavirus/data-all/</ext-link> <ext-link ext-link-type="uri" xlink:href="http://blog.drhongtao.com/2017/03/gefcom2014-load-forecasting-data.html">http://blog.drhongtao.com/2017/03/gefcom2014-load-forecasting-data.html</ext-link>.</p>
</sec>
<sec id="s8">
<title>Author Contributions</title>
<p>The author confirms being the sole contributor of this work and has approved it for publication.</p>
</sec>
<sec id="s9">
<title>Funding</title>
<p>This work was partially supported by the Japan Society for the Promotion of Science KAKENHI Grant Number JP19K11862 and the Center of Innovation Program (COI) from JST Grant Number JPMJCE1318, Japan.</p>
</sec>
<sec sec-type="COI-statement" id="s10">
<title>Conflict of Interest</title>
<p>The author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s11">
<title>Publisher&#x2019;s Note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ack>
<p>The author would like to thank reviewers for the constructive and helpful comments that improved the quality of the paper considerably. The author also thanks Professor Hiroki Masuda and Maiya Hori for helpful comments and discussions.</p>
</ack>
<sec id="s12">
<title>Supplementary Material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fenrg.2021.724780/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fenrg.2021.724780/full&#x23;supplementary-material</ext-link>
</p>
<supplementary-material xlink:href="DataSheet1.PDF" id="SM1" mimetype="application/PDF" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Afzalan</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Jazizadeh</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>A Machine Learning Framework to Infer Time-Of-Use of Flexible Loads: Resident Behavior Learning for Demand Response</article-title>. <source>IEEE Access</source> <volume>8</volume>, <fpage>111718</fpage>&#x2013;<lpage>111730</lpage>. <pub-id pub-id-type="doi">10.1109/access.2020.3002155</pub-id> </citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Alipour</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Zare</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Abapour</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Minlp Probabilistic Scheduling Model for Demand Response Programs Integrated Energy Hubs</article-title>. <source>IEEE Trans. Ind. Inform.</source> <volume>14</volume>, <fpage>79</fpage>&#x2013;<lpage>88</lpage>. </citation>
</ref>
<ref id="B3">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Amral</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Ozveren</surname>
<given-names>C. S.</given-names>
</name>
<name>
<surname>King</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2008</year>). &#x201c;<article-title>Short Term Load Forecasting Using Multiple Linear Regression</article-title>,&#x201d; in <conf-name>2007 42nd International Universities Power Engineering Conference</conf-name> (<publisher-name>IEEE</publisher-name>), <fpage>1192</fpage>&#x2013;<lpage>1198</lpage>. </citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Apadula</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Bassini</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Elli</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Scapin</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2012</year>). <article-title>Relationships between Meteorological Variables and Monthly Electricity Demand</article-title>. <source>Appl. Energ.</source> <volume>98</volume>, <fpage>346</fpage>&#x2013;<lpage>356</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2012.03.053</pub-id> </citation>
</ref>
<ref id="B5">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Be&#x107;irovi&#x107;</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>&#x106;osovi&#x107;</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Machine Learning Techniques for Short-Term Load Forecasting</article-title>,&#x201d; in <conf-name>2016 4th International Symposium on Environmental Friendly Energies and Applications (EFEA)</conf-name> (<publisher-name>IEEE</publisher-name>), <fpage>1</fpage>&#x2013;<lpage>4</lpage>. <pub-id pub-id-type="doi">10.1109/efea.2016.7748789</pub-id> </citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bedi</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Toshniwal</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Deep Learning Framework to Forecast Electricity Demand</article-title>. <source>Appl. Energ.</source> <volume>238</volume>, <fpage>1312</fpage>&#x2013;<lpage>1326</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2019.01.113</pub-id> </citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bro</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>De Jong</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>1997</year>). <article-title>A Fast Non-negativity-constrained Least Squares Algorithm</article-title>. <source>J.&#x20;Chemometrics</source> <volume>11</volume>, <fpage>393</fpage>&#x2013;<lpage>401</lpage>. <pub-id pub-id-type="doi">10.1002/(sici)1099-128x(199709/10)11:5&#x3c;393:aid-cem483&#x3e;3.0.co;2-l</pub-id> </citation>
</ref>
<ref id="B8">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cabrera</surname>
<given-names>B. L.</given-names>
</name>
<name>
<surname>Schulz</surname>
<given-names>F.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Forecasting Generalized Quantiles of Electricity Demand: A Functional Data Approach</article-title>. <source>J.&#x20;Am. Stat. Assoc.</source> <volume>112</volume>, <fpage>127</fpage>&#x2013;<lpage>136</lpage>. <pub-id pub-id-type="doi">10.1080/01621459.2016.1219259</pub-id> </citation>
</ref>
<ref id="B9">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chapagain</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Kittipiyakul</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Performance Analysis of Short-Term Electricity Demand with Atmospheric Variables</article-title>. <source>Energies</source> <volume>11</volume>, <fpage>818</fpage>. <pub-id pub-id-type="doi">10.3390/en11040818</pub-id> </citation>
</ref>
<ref id="B10">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chen</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Xu</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Chu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Wu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Ni</surname>
<given-names>L.</given-names>
</name>
<etal/>
</person-group> (<year>2017</year>). <article-title>Short-term Electrical Load Forecasting Using the Support Vector Regression (SVR) Model to Calculate the Demand Response Baseline for Office Buildings</article-title>. <source>Appl. Energ.</source> <volume>195</volume>, <fpage>659</fpage>&#x2013;<lpage>670</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2017.03.034</pub-id> </citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>De Boor</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>1972</year>). <article-title>On Calculating with B-Splines</article-title>. <source>J.&#x20;Approximation Theor.</source> <volume>6</volume>, <fpage>50</fpage>&#x2013;<lpage>62</lpage>. <pub-id pub-id-type="doi">10.1016/0021-9045(72)90080-9</pub-id> </citation>
</ref>
<ref id="B12">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>de Oliveira</surname>
<given-names>E. M.</given-names>
</name>
<name>
<surname>Cyrino Oliveira</surname>
<given-names>F. L.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Forecasting Mid-long Term Electric Energy Consumption through Bagging ARIMA and Exponential Smoothing Methods</article-title>. <source>Energy</source> <volume>144</volume>, <fpage>776</fpage>&#x2013;<lpage>788</lpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2017.12.049</pub-id> </citation>
</ref>
<ref id="B13">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Dehalwar</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Kalam</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Kolhe</surname>
<given-names>M. L.</given-names>
</name>
<name>
<surname>Zayegh</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Electricity Load Forecasting for Urban Area Using Weather Forecast Information</article-title>,&#x201d; in <conf-name>2016 IEEE International Conference on Power and Renewable Energy (ICPRE)</conf-name> (<publisher-name>IEEE</publisher-name>), <fpage>355</fpage>&#x2013;<lpage>359</lpage>. <pub-id pub-id-type="doi">10.1109/icpre.2016.7871231</pub-id> </citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Dudek</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Pattern-based Local Linear Regression Models for Short-Term Load Forecasting</article-title>. <source>Electric Power Syst. Res.</source> <volume>130</volume>, <fpage>139</fpage>&#x2013;<lpage>147</lpage>. <pub-id pub-id-type="doi">10.1016/j.epsr.2015.09.001</pub-id> </citation>
</ref>
<ref id="B15">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Engle</surname>
<given-names>R. F.</given-names>
</name>
<name>
<surname>Granger</surname>
<given-names>C. W. J.</given-names>
</name>
<name>
<surname>Rice</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Weiss</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>1986</year>). <article-title>Semiparametric Estimates of the Relation between Weather and Electricity Sales</article-title>. <source>J.&#x20;Am. Stat. Assoc.</source> <volume>81</volume>, <fpage>310</fpage>&#x2013;<lpage>320</lpage>. <pub-id pub-id-type="doi">10.1080/01621459.1986.10478274</pub-id> </citation>
</ref>
<ref id="B16">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fan</surname>
<given-names>J.&#x20;Q.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>W. Y.</given-names>
</name>
</person-group> (<year>1999</year>). <article-title>Statistical Estimation in Varying Coefficient Models</article-title>. <source>Ann. Stat.</source> <volume>27</volume>, <fpage>1491</fpage>&#x2013;<lpage>1518</lpage>. <pub-id pub-id-type="doi">10.1214/aos/1017939139</pub-id> </citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Franc</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Hlav&#xe1;&#x10d;</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Navara</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2005</year>). <article-title>Sequential Coordinate-wise Algorithm for the Non-negative Least Squares Problem</article-title>. <source>Comp. Anal. Images Patterns, Proc.</source> <volume>3691</volume>, <fpage>407</fpage>&#x2013;<lpage>414</lpage>. <pub-id pub-id-type="doi">10.1007/11556121_50</pub-id> </citation>
</ref>
<ref id="B18">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Friedman</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Hastie</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Tibshirani</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Regularization Paths for Generalized Linear Models via Coordinate Descent</article-title>. <source>J.&#x20;Stat. Softw.</source> <volume>33</volume>, <fpage>1</fpage>&#x2013;<lpage>22</lpage>. <pub-id pub-id-type="doi">10.18637/jss.v033.i01</pub-id> </citation>
</ref>
<ref id="B19">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Goodfellow</surname>
<given-names>I. J.</given-names>
</name>
<name>
<surname>Shlens</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Szegedy</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2014</year>). <source>Explaining and Harnessing Adversarial Examples</source>. <comment>arXiv preprint arXiv:1412.6572</comment>. </citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Lu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Residential Electricity Consumption Behavior: Influencing Factors, Related Theories and Intervention Strategies</article-title>. <source>Renew. Sustain. Energ. Rev.</source> <volume>81</volume>, <fpage>399</fpage>&#x2013;<lpage>412</lpage>. <pub-id pub-id-type="doi">10.1016/j.rser.2017.07.046</pub-id> </citation>
</ref>
<ref id="B21">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Guo</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>K.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>A Deep Learning Model for Short-Term Power Load and Probability Density Forecasting</article-title>. <source>Energy</source> <volume>160</volume>, <fpage>1186</fpage>&#x2013;<lpage>1200</lpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2018.07.090</pub-id> </citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Haq</surname>
<given-names>M. R.</given-names>
</name>
<name>
<surname>Ni</surname>
<given-names>Z.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A New Hybrid Model for Short-Term Electricity Load Forecasting</article-title>. <source>IEEE Access</source> <volume>7</volume>, <fpage>125413</fpage>&#x2013;<lpage>125423</lpage>. <pub-id pub-id-type="doi">10.1109/access.2019.2937222</pub-id> </citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Harvey</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Koopman</surname>
<given-names>S. J.</given-names>
</name>
</person-group> (<year>1993</year>). <article-title>Forecasting Hourly Electricity Demand Using Time-Varying Splines</article-title>. <source>J.&#x20;Am. Stat. Assoc.</source> <volume>88</volume>, <fpage>1228</fpage>&#x2013;<lpage>1236</lpage>. <pub-id pub-id-type="doi">10.1080/01621459.1993.10476402</pub-id> </citation>
</ref>
<ref id="B24">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Hastie</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Tibshirani</surname>
<given-names>R.</given-names>
</name>
<name>
<surname>Friedman</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2008</year>). <source>The Elements of Statistical Learning</source>. <edition>2nd edn.</edition> <publisher-loc>New York</publisher-loc>: <publisher-name>Springer</publisher-name>. </citation>
</ref>
<ref id="B25">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hastie</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Tibshirani</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>1993</year>). <article-title>Varying-Coefficient Models</article-title>. <source>J.&#x20;R. Stat. Soc. Ser. B (Methodological)</source> <volume>55</volume>, <fpage>757</fpage>&#x2013;<lpage>779</lpage>. <pub-id pub-id-type="doi">10.1111/j.2517-6161.1993.tb01939.x</pub-id> </citation>
</ref>
<ref id="B26">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>He</surname>
<given-names>W.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Load Forecasting via Deep Neural Networks</article-title>. <source>Proced. Comp. Sci.</source> <volume>122</volume>, <fpage>308</fpage>&#x2013;<lpage>314</lpage>. <pub-id pub-id-type="doi">10.1016/j.procs.2017.11.374</pub-id> </citation>
</ref>
<ref id="B27">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hochreiter</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Schmidhuber</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>1997</year>). <article-title>Long Short-Term Memory</article-title>. <source>Neural Comput.</source> <volume>9</volume>, <fpage>1735</fpage>&#x2013;<lpage>1780</lpage>. <pub-id pub-id-type="doi">10.1162/neco.1997.9.8.1735</pub-id> </citation>
</ref>
<ref id="B28">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hoerl</surname>
<given-names>A. E.</given-names>
</name>
<name>
<surname>Kennard</surname>
<given-names>R. W.</given-names>
</name>
</person-group> (<year>1970</year>). <article-title>Ridge Regression: Biased Estimation for Nonorthogonal Problems</article-title>. <source>Technometrics</source> <volume>12</volume>, <fpage>55</fpage>&#x2013;<lpage>67</lpage>. <pub-id pub-id-type="doi">10.1080/00401706.1970.10488634</pub-id> </citation>
</ref>
<ref id="B29">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hong</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Fan</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Probabilistic Electric Load Forecasting: A Tutorial Review</article-title>. <source>Int. J.&#x20;Forecast.</source> <volume>32</volume>, <fpage>914</fpage>&#x2013;<lpage>938</lpage>. <pub-id pub-id-type="doi">10.1016/j.ijforecast.2015.11.011</pub-id> </citation>
</ref>
<ref id="B30">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hong</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Gui</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Baran</surname>
<given-names>M. E.</given-names>
</name>
<name>
<surname>Willis</surname>
<given-names>H. L.</given-names>
</name>
</person-group> (<year>2010</year>). <article-title>Modeling and Forecasting Hourly Electric Load by Multiple Linear Regression with Interactions</article-title>. <source>IEEE PES Gen. Meet.</source>, <fpage>1</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1109/pes.2010.5589959</pub-id> </citation>
</ref>
<ref id="B31">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jiang</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Muljadi</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>J.&#x20;J.</given-names>
</name>
<name>
<surname>Gao</surname>
<given-names>D. W.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>A Short-Term and High-Resolution Distribution System Load Forecasting Approach Using Support Vector Regression with Hybrid Parameters Optimization</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>9</volume>, <fpage>3341</fpage>&#x2013;<lpage>3350</lpage>. <pub-id pub-id-type="doi">10.1109/tsg.2016.2628061</pub-id> </citation>
</ref>
<ref id="B32">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ju</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Zhu</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Rehman</surname>
<given-names>M. U.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A Model Combining Convolutional Neural Network and Lightgbm Algorithm for Ultra-short-term Wind Power Forecasting</article-title>. <source>IEEE Access</source> <volume>7</volume>, <fpage>28309</fpage>&#x2013;<lpage>28318</lpage>. <pub-id pub-id-type="doi">10.1109/access.2019.2901920</pub-id> </citation>
</ref>
<ref id="B33">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Ke</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Meng</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Finley</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Ma</surname>
<given-names>W.</given-names>
</name>
<etal/>
</person-group> (<year>2017</year>). &#x201c;<article-title>Lightgbm: A Highly Efficient Gradient Boosting Decision Tree</article-title>,&#x201d; in <source>Advances in Neural Information Processing Systems</source>, <fpage>3146</fpage>&#x2013;<lpage>3154</lpage>. </citation>
</ref>
<ref id="B34">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Kong</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Dong</surname>
<given-names>Z. Y.</given-names>
</name>
<name>
<surname>Jia</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Hill</surname>
<given-names>D. J.</given-names>
</name>
<name>
<surname>Xu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Short-Term Residential Load Forecasting Based on LSTM Recurrent Neural Network</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>10</volume>, <fpage>841</fpage>&#x2013;<lpage>851</lpage>. </citation>
</ref>
<ref id="B35">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lawson</surname>
<given-names>C. L.</given-names>
</name>
<name>
<surname>Hanson</surname>
<given-names>R. J.</given-names>
</name>
</person-group> (<year>1995</year>). <source>Solving Least Squares Problems</source>. <publisher-loc>Philadelphia, PA</publisher-loc>: <publisher-name>Society for Industrial and Applied Mathematics</publisher-name>. <pub-id pub-id-type="doi">10.1137/1.9781611971217</pub-id> <article-title>Solving Least Squares Problems.</article-title> </citation>
</ref>
<ref id="B36">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lee</surname>
<given-names>J.&#x20;D.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>D. L.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Taylor</surname>
<given-names>J.&#x20;E.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Exact post-selection Inference, with Application to the Lasso</article-title>. <source>Ann. Stat.</source> <volume>44</volume>, <fpage>907</fpage>&#x2013;<lpage>927</lpage>. <pub-id pub-id-type="doi">10.1214/15-aos1371</pub-id> </citation>
</ref>
<ref id="B37">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lee</surname>
<given-names>J.&#x20;D.</given-names>
</name>
<name>
<surname>Taylor</surname>
<given-names>J.&#x20;E.</given-names>
</name>
</person-group> (<year>2014</year>). <source>Exact Post Model Selection Inference for Marginal Screening</source>. <comment>arXiv.1402</comment>, <fpage>5596</fpage>. </citation>
</ref>
<ref id="B38">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Liu</surname>
<given-names>B.</given-names>
</name>
<name>
<surname>Nowotarski</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Hong</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Weron</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Probabilistic Load Forecasting via Quantile Regression Averaging on Sister Forecasts</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>8</volume>, <fpage>730</fpage>&#x2013;<lpage>737</lpage>. </citation>
</ref>
<ref id="B39">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Lundberg</surname>
<given-names>S. M.</given-names>
</name>
<name>
<surname>Lee</surname>
<given-names>S.-I.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>A Unified Approach to Interpreting Model Predictions</article-title>,&#x201d; in <source>Advances in Neural Information Processing Systems</source>, <fpage>4765</fpage>&#x2013;<lpage>4774</lpage>. </citation>
</ref>
<ref id="B40">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lusis</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Khalilpour</surname>
<given-names>K. R.</given-names>
</name>
<name>
<surname>Andrew</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Liebman</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Short-term Residential Load Forecasting: Impact of Calendar Effects and Forecast Granularity</article-title>. <source>Appl. Energ.</source> <volume>205</volume>, <fpage>654</fpage>&#x2013;<lpage>669</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2017.07.114</pub-id> </citation>
</ref>
<ref id="B41">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Maldonado</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Gonz&#xe1;lez</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Crone</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Automatic Time Series Analysis for Electric Load Forecasting via Support Vector Regression</article-title>. <source>Appl. Soft Comput.</source> <volume>83</volume>, <fpage>105616</fpage>. <pub-id pub-id-type="doi">10.1016/j.asoc.2019.105616</pub-id> </citation>
</ref>
<ref id="B42">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Miswan</surname>
<given-names>N. H.</given-names>
</name>
<name>
<surname>Said</surname>
<given-names>R. M.</given-names>
</name>
<name>
<surname>Anuar</surname>
<given-names>S. H. H.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>ARIMA with Regression Model in Modelling Electricity Load Demand</article-title>. <source>J.&#x20;Telecommunication, Electron. Comp. Eng.</source> <volume>8</volume>, <fpage>113</fpage>&#x2013;<lpage>116</lpage>. </citation>
</ref>
<ref id="B43">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pallonetto</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>De Rosa</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Milano</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Finn</surname>
<given-names>D. P.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Demand Response Algorithms for Smart-Grid Ready Residential Buildings Using Machine Learning Models</article-title>. <source>Appl. Energ.</source> <volume>239</volume>, <fpage>1265</fpage>&#x2013;<lpage>1282</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2019.02.020</pub-id> </citation>
</ref>
<ref id="B44">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Ribeiro</surname>
<given-names>M. T.</given-names>
</name>
<name>
<surname>Singh</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Guestrin</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>&#x201c;Why Should I Trust You?&#x201d; Explaining the Predictions of Any Classifier</article-title>,&#x201d; in <conf-name>Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining</conf-name>, <fpage>1135</fpage>&#x2013;<lpage>1144</lpage>. </citation>
</ref>
<ref id="B45">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ruiz-Abell&#xf3;n</surname>
<given-names>M. C.</given-names>
</name>
<name>
<surname>Fern&#xe1;ndez-Jim&#xe9;nez</surname>
<given-names>L. A.</given-names>
</name>
<name>
<surname>Guillam&#xf3;n</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Falces</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Garc&#xed;a-Garre</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Gabald&#xf3;n</surname>
<given-names>A.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Integration of Demand Response and Short-Term Forecasting for the Management of Prosumers&#x2019; Demand and Generation</article-title>. <source>Energies</source> <volume>13</volume>, <fpage>11</fpage>. </citation>
</ref>
<ref id="B46">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Saber</surname>
<given-names>A. Y.</given-names>
</name>
<name>
<surname>Alam</surname>
<given-names>A. K. M. R.</given-names>
</name>
</person-group> (<year>2017</year>). &#x201c;<article-title>Short Term Load Forecasting Using Multiple Linear Regression for Big Data</article-title>,&#x201d; in <conf-name>2017 IEEE Symposium Series on Computational Intelligence (SSCI)</conf-name>, <fpage>1</fpage>&#x2013;<lpage>6</lpage>. <pub-id pub-id-type="doi">10.1109/SSCI.2017.8285261</pub-id> </citation>
</ref>
<ref id="B47">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Schachter</surname>
<given-names>J.&#x20;A.</given-names>
</name>
<name>
<surname>Mancarella</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2015</year>). <article-title>Demand Response Contracts as Real Options: a Probabilistic Evaluation Framework under Short-Term and Long-Term Uncertainties</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>7</volume>, <fpage>868</fpage>&#x2013;<lpage>878</lpage>. <pub-id pub-id-type="doi">10.1109/tsg.2015.2405673</pub-id> </citation>
</ref>
<ref id="B48">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Tange</surname>
<given-names>R. I.</given-names>
</name>
<name>
<surname>Rasmussen</surname>
<given-names>M. A.</given-names>
</name>
<name>
<surname>Taira</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Bro</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2017</year>). <article-title>Benchmarking Support Vector Regression against Partial Least Squares Regression and Artificial Neural Network: Effect of Sample Size on Model Performance</article-title>. <source>J.&#x20;Near Infrared Spectrosc.</source> <volume>25</volume>, <fpage>381</fpage>&#x2013;<lpage>390</lpage>. <pub-id pub-id-type="doi">10.1177/0967033517734945</pub-id> </citation>
</ref>
<ref id="B49">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Timotheou</surname>
<given-names>S.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Fast Non-negative Least-Squares Learning in the Random Neural Network</article-title>. <source>Prob. Eng. Inf. Sci.</source> <volume>30</volume>, <fpage>379</fpage>&#x2013;<lpage>402</lpage>. <pub-id pub-id-type="doi">10.1017/s0269964816000061</pub-id> </citation>
</ref>
<ref id="B50">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Van Houdt</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Mosquera</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>N&#xe1;poles</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>A Review on the Long Short-Term Memory Model</article-title>. <source>Artif. Intell. Rev.</source> <volume>53</volume>, <fpage>5929</fpage>&#x2013;<lpage>5955</lpage>. <pub-id pub-id-type="doi">10.1007/s10462-020-09838-1</pub-id> </citation>
</ref>
<ref id="B51">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Vilar</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Aneiros</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Ra&#xf1;a</surname>
<given-names>P.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>Prediction Intervals for Electricity Demand and price Using Functional Data</article-title>. <source>Int. J.&#x20;Electr. Power Energ. Syst.</source> <volume>96</volume>, <fpage>457</fpage>&#x2013;<lpage>472</lpage>. <pub-id pub-id-type="doi">10.1016/j.ijepes.2017.10.010</pub-id> </citation>
</ref>
<ref id="B52">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>F.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Shafie-Khah</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2018</year>). <article-title>Impact Analysis of Customized Feedback Interventions on Residential Electricity Load Consumption Behavior for Demand Response</article-title>. <source>Energies</source> <volume>11</volume>, <fpage>770</fpage>. <pub-id pub-id-type="doi">10.3390/en11040770</pub-id> </citation>
</ref>
<ref id="B53">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wang</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Gan</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Lu</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Kang</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Probabilistic Individual Load Forecasting Using Pinball Loss Guided Lstm</article-title>. <source>Appl. Energ.</source> <volume>235</volume>, <fpage>10</fpage>&#x2013;<lpage>20</lpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2018.10.078</pub-id> </citation>
</ref>
<ref id="B54">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Xie</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Hong</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Laing</surname>
<given-names>T. D.</given-names>
</name>
</person-group> (<year>2016</year>). <article-title>Relative Humidity for Load Forecasting Models</article-title>. <source>IEEE Trans. Smart Grid</source> <volume>9</volume>, <fpage>191</fpage>&#x2013;<lpage>198</lpage>. </citation>
</ref>
<ref id="B55">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yang</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Yang</surname>
<given-names>X.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Short-term Electricity Load Forecasting Based on Feature Selection and Least Squares Support Vector Machines</article-title>. <source>Knowledge-Based Syst.</source> <volume>163</volume>, <fpage>159</fpage>&#x2013;<lpage>173</lpage>. <pub-id pub-id-type="doi">10.1016/j.knosys.2018.08.027</pub-id> </citation>
</ref>
<ref id="B56">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname>
<given-names>N.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Zou</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Quiring</surname>
<given-names>S. M.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>Comparison of Three Short-Term Load Forecast Models in Southern california</article-title>. <source>Energy</source> <volume>189</volume>, <fpage>116358</fpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2019.116358</pub-id> </citation>
</ref>
<ref id="B57">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Zhou</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Balandat</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Tomlin</surname>
<given-names>C.</given-names>
</name>
</person-group> (<year>2016</year>). &#x201c;<article-title>Residential Demand Response Targeting Using Machine Learning with Observational Data</article-title>,&#x201d; in <conf-name>2016 IEEE 55th conference on decision and control (CDC)</conf-name> (<publisher-name>IEEE</publisher-name>), <fpage>6663</fpage>&#x2013;<lpage>6668</lpage>. <pub-id pub-id-type="doi">10.1109/cdc.2016.7799295</pub-id> </citation>
</ref>
</ref-list>
</back>
</article>