SlideShare ist ein Scribd-Unternehmen logo
1 von 40
Downloaden Sie, um offline zu lesen
Rob J Hyndman
Joint work with Shu Fan
MEFM: long-term probabilistic demand forecasting 1
MEFM: An R package for
long-term probabilistic
forecasting of electricity demand
South Australian demand data
MEFM: long-term probabilistic demand forecasting 2
South Australian demand data
MEFM: long-term probabilistic demand forecasting 3
SA State wide demand (summer 2015)
SAStatewidedemand(GW)
1.01.52.02.53.0
Oct Nov Dec Jan Feb Mar
South Australian demand data
MEFM: long-term probabilistic demand forecasting 3
Temperature data (Sth Aust)
MEFM: long-term probabilistic demand forecasting 4
Temperature data (Sth Aust)
MEFM: long-term probabilistic demand forecasting 5
10 20 30 40
1.01.52.02.53.03.5
Time: 12 midnight
Temperature (deg C)
Demand(GW)
Workday
Non−workday
Predictors
calendar effects
prevailing and recent weather conditions
climate changes
economic and demographic changes
changing technology
Modelling framework
Semi-parametric additive models with
correlated errors.
Each half-hour period modelled separately for
each season.
MEFM: long-term probabilistic demand forecasting 6
Predictors
calendar effects
prevailing and recent weather conditions
climate changes
economic and demographic changes
changing technology
Modelling framework
Semi-parametric additive models with
correlated errors.
Each half-hour period modelled separately for
each season.
MEFM: long-term probabilistic demand forecasting 6
Monash Electricity Forecasting Model
y∗
t = yt/ÂŻyi
yt denotes per capita demand at time t
(measured in half-hourly intervals);
ÂŻyi is the average demand for quarter i where t
is in quarter i.
y∗
t is the standardized demand for time t.
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
MEFM: long-term probabilistic demand forecasting 7
Monash Electricity Forecasting Model
y∗
t = yt/ÂŻyi
yt denotes per capita demand at time t
(measured in half-hourly intervals);
ÂŻyi is the average demand for quarter i where t
is in quarter i.
y∗
t is the standardized demand for time t.
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
MEFM: long-term probabilistic demand forecasting 7
Monash Electricity Forecasting Model
MEFM: long-term probabilistic demand forecasting 8
Monash Electricity Forecasting Model
MEFM: long-term probabilistic demand forecasting 8
Annual sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
log(¯yi) = log(¯yi−1) +
j
cj(zj,i − zj,i−1) + Δi
First differences modelled to avoid
non-stationary variables.
Predictors: Per-capita GSP, Price, Summer CDD,
Winter HDD.
MEFM: long-term probabilistic demand forecasting 9
Annual sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
log(¯yi) = log(¯yi−1) +
j
cj(zj,i − zj,i−1) + Δi
First differences modelled to avoid
non-stationary variables.
Predictors: Per-capita GSP, Price, Summer CDD,
Winter HDD.
MEFM: long-term probabilistic demand forecasting 9
Annual sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
log(¯yi) = log(¯yi−1) +
j
cj(zj,i − zj,i−1) + Δi
First differences modelled to avoid
non-stationary variables.
Predictors: Per-capita GSP, Price, Summer CDD,
Winter HDD.
MEFM: long-term probabilistic demand forecasting 9
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Calendar effects
“Time of summer” effect (a regression spline)
Day of week factor (7 levels)
Public holiday factor (4 levels)
MEFM: long-term probabilistic demand forecasting 10
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Calendar effects
“Time of summer” effect (a regression spline)
Day of week factor (7 levels)
Public holiday factor (4 levels)
MEFM: long-term probabilistic demand forecasting 10
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Calendar effects
“Time of summer” effect (a regression spline)
Day of week factor (7 levels)
Public holiday factor (4 levels)
MEFM: long-term probabilistic demand forecasting 10
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Half-hourly sub-model
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Temperature effects
Ave temp across two sites, plus lags for previous 3
hours and previous 3 days.
Temp difference between two sites, plus lags for
previous 3 hours and previous 3 days.
Max ave temp in past 24 hours.
Min ave temp in past 24 hours.
Ave temp in past seven days.
Each function estimated using boosted regression splines.
MEFM: long-term probabilistic demand forecasting 11
Ensemble forecasting
log(yt) = log(¯yi) + log(y∗
t )
log(¯yi) = f(GSP, price, HDD, CDD) + Δi
log(y∗
t ) = f(calendar effects, temperatures) + et
Multiple alternative futures created:
Calendar effects known;
Future temperatures simulated
(taking account of climate change);
Assumed values for GSP, population and price;
Residuals simulated (preserving
autocorrelations)
MEFM: long-term probabilistic demand forecasting 12
MEFM package for R
Available on github:
install.packages("devtools")
library(devtools)
install_github("robjhyndman/MEFM-package")
Package contents:
seasondays The number of days in a season
sa.econ Historical demographic & economic data for
South Australia
sa Historical data for model estimation
maketemps Create lagged temperature variables
demand_model Estimate the electricity demand models
simulate_ddemand Temperature and demand simulation
simulate_demand Simulate the electricity demand for the next
season
MEFM: long-term probabilistic demand forecasting 13
MEFM package for R
Available on github:
install.packages("devtools")
library(devtools)
install_github("robjhyndman/MEFM-package")
Package contents:
seasondays The number of days in a season
sa.econ Historical demographic & economic data for
South Australia
sa Historical data for model estimation
maketemps Create lagged temperature variables
demand_model Estimate the electricity demand models
simulate_ddemand Temperature and demand simulation
simulate_demand Simulate the electricity demand for the next
season
MEFM: long-term probabilistic demand forecasting 13
MEFM package for R
Usage
library(MEFM)
# Number of days in each "season"
seasondays
# Historical economic data
sa.econ
# Historical temperature and calendar data
head(sa)
tail(sa)
dim(sa)
# create lagged temperature variables
salags <- maketemps(sa,2,48)
dim(salags)
head(salags)
MEFM: long-term probabilistic demand forecasting 14
MEFM package for R
# formula for annual model
formula.a <- as.formula(anndemand ~ gsp + ddays + resiprice)
# formulas for half-hourly model
# These can be different for each half-hour
formula.hh <- list()
for(i in 1:48) {
formula.hh[[i]] <- as.formula(log(ddemand) ~ ns(temp, df=2)
+ day + holiday
+ ns(timeofyear, df=9) + ns(avetemp, df=3)
+ ns(dtemp, df=3) + ns(lastmin, df=3)
+ ns(prevtemp1, df=2) + ns(prevtemp2, df=2)
+ ns(prevtemp3, df=2) + ns(prevtemp4, df=2)
+ ns(day1temp, df=2) + ns(day2temp, df=2)
+ ns(day3temp, df=2) + ns(prevdtemp1, df=3)
+ ns(prevdtemp2, df=3) + ns(prevdtemp3, df=3)
+ ns(day1dtemp, df=3))
}
MEFM: long-term probabilistic demand forecasting 15
MEFM package for R
# Fit all models
sa.model <- demand_model(salags, sa.econ, formula.hh, formula.a)
# Summary of annual model
summary(sa.model$a)
# Summary of half-hourly model at 4pm
summary(sa.model$hh[[33]])
# Simulate future normalized half-hourly data
simdemand <- simulate_ddemand(sa.model, sa, simyears=50)
# economic forecasts, to be given by user
afcast <- data.frame(pop=1694, gsp=22573, resiprice=34.65,
ddays=642)
# Simulate half-hourly data
demand <- simulate_demand(simdemand, afcast)
MEFM: long-term probabilistic demand forecasting 16
MEFM package for R
plot(ts(demand$demand[,sample(1:100, 4)], freq=48, start=0),
xlab="Days", main="Simulated demand futures")
MEFM: long-term probabilistic demand forecasting 17
MEFM package for R
plot(ts(demand$demand[,sample(1:100, 4)], freq=48, start=0),
xlab="Days", main="Simulated demand futures")0.61.01.4
Series52
0.51.52.5
Series49
0.51.52.5
Series88
0.61.21.8
0 50 100 150
Series53
Days
Simulated demand futures
MEFM: long-term probabilistic demand forecasting 17
MEFM package for R
plot(demand$annmax, main="Simulated seasonal maximums",
ylab="GW")
MEFM: long-term probabilistic demand forecasting 18
MEFM package for R
plot(demand$annmax, main="Simulated seasonal maximums",
ylab="GW")
0 20 40 60 80 100
1.52.02.53.0
Simulated seasonal maximums
Index
GW
MEFM: long-term probabilistic demand forecasting 18
MEFM package for R
boxplot(demand$annmax, main="Simulated seasonal maximums",
xlab="GW", horizontal=TRUE)
rug(demand$annmax)
MEFM: long-term probabilistic demand forecasting 19
MEFM package for R
boxplot(demand$annmax, main="Simulated seasonal maximums",
xlab="GW", horizontal=TRUE)
rug(demand$annmax)
1.5 2.0 2.5 3.0
Simulated seasonal maximums
GW
MEFM: long-term probabilistic demand forecasting 19
MEFM package for R
plot(density(demand$annmax, bw="SJ"), xlab="Demand (GW)",
main="Density of seasonal maximum demand")
rug(demand$annmax)
MEFM: long-term probabilistic demand forecasting 20
MEFM package for R
plot(density(demand$annmax, bw="SJ"), xlab="Demand (GW)",
main="Density of seasonal maximum demand")
rug(demand$annmax)
1.5 2.0 2.5 3.0 3.5
0.00.40.81.2
Density of seasonal maximum demand
Demand (GW)
Density
MEFM: long-term probabilistic demand forecasting 20
References
ÂŻ Hyndman, R.J. & Fan, S. (2010)
“Density forecasting for long-term peak electricity demand”,
IEEE Transactions on Power Systems, 25(2), 1142–1153.
¯ Fan, S. & Hyndman, R.J. (2012) “Short-term load forecasting
based on a semi-parametric additive model”.
IEEE Transactions on Power Systems, 27(1), 134–141.
¯ Ben Taieb, S. & Hyndman, R.J. (2013) “A gradient boosting
approach to the Kaggle load forecasting competition”,
International Journal of Forecasting, 29(4).
ÂŻ Hyndman, R.J., & Fan, S. (2015).
“Monash Electricity Forecasting Model”. Technical paper.
robjhyndman.com/working-papers/mefm/
¯ Fan, S., & Hyndman, R.J. (2015). “MEFM: An R package imple-
menting the Monash Electricity Forecasting Model.”
github.com/robjhyndman/MEFM-package
MEFM: long-term probabilistic demand forecasting 21

Weitere Àhnliche Inhalte

Andere mochten auch

Academia sinica jan-2015
Academia sinica jan-2015Academia sinica jan-2015
Academia sinica jan-2015Rob Hyndman
 
Visualization and forecasting of big time series data
Visualization and forecasting of big time series dataVisualization and forecasting of big time series data
Visualization and forecasting of big time series dataRob Hyndman
 
Advances in automatic time series forecasting
Advances in automatic time series forecastingAdvances in automatic time series forecasting
Advances in automatic time series forecastingRob Hyndman
 
Exploring the boundaries of predictability
Exploring the boundaries of predictabilityExploring the boundaries of predictability
Exploring the boundaries of predictabilityRob Hyndman
 
SimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsSimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsRob Hyndman
 
R tools for hierarchical time series
R tools for hierarchical time seriesR tools for hierarchical time series
R tools for hierarchical time seriesRob Hyndman
 
Coherent mortality forecasting using functional time series models
Coherent mortality forecasting using functional time series modelsCoherent mortality forecasting using functional time series models
Coherent mortality forecasting using functional time series modelsRob Hyndman
 
Automatic time series forecasting
Automatic time series forecastingAutomatic time series forecasting
Automatic time series forecastingRob Hyndman
 
Forecasting Hierarchical Time Series
Forecasting Hierarchical Time SeriesForecasting Hierarchical Time Series
Forecasting Hierarchical Time SeriesRob Hyndman
 
Forecasting without forecasters
Forecasting without forecastersForecasting without forecasters
Forecasting without forecastersRob Hyndman
 
Data analytics for agriculture
Data analytics for agricultureData analytics for agriculture
Data analytics for agricultureData Portal India
 

Andere mochten auch (12)

Academia sinica jan-2015
Academia sinica jan-2015Academia sinica jan-2015
Academia sinica jan-2015
 
Visualization and forecasting of big time series data
Visualization and forecasting of big time series dataVisualization and forecasting of big time series data
Visualization and forecasting of big time series data
 
Advances in automatic time series forecasting
Advances in automatic time series forecastingAdvances in automatic time series forecasting
Advances in automatic time series forecasting
 
Exploring the boundaries of predictability
Exploring the boundaries of predictabilityExploring the boundaries of predictability
Exploring the boundaries of predictability
 
Feinberg
FeinbergFeinberg
Feinberg
 
SimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsSimpleR: tips, tricks & tools
SimpleR: tips, tricks & tools
 
R tools for hierarchical time series
R tools for hierarchical time seriesR tools for hierarchical time series
R tools for hierarchical time series
 
Coherent mortality forecasting using functional time series models
Coherent mortality forecasting using functional time series modelsCoherent mortality forecasting using functional time series models
Coherent mortality forecasting using functional time series models
 
Automatic time series forecasting
Automatic time series forecastingAutomatic time series forecasting
Automatic time series forecasting
 
Forecasting Hierarchical Time Series
Forecasting Hierarchical Time SeriesForecasting Hierarchical Time Series
Forecasting Hierarchical Time Series
 
Forecasting without forecasters
Forecasting without forecastersForecasting without forecasters
Forecasting without forecasters
 
Data analytics for agriculture
Data analytics for agricultureData analytics for agriculture
Data analytics for agriculture
 

Ähnlich wie MEFM: An R package for long-term probabilistic forecasting of electricity demand

JGrass-NewAge LongWave radiation Balance
JGrass-NewAge LongWave radiation BalanceJGrass-NewAge LongWave radiation Balance
JGrass-NewAge LongWave radiation BalanceMarialaura Bancheri
 
Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2IAEME Publication
 
Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2IAEME Publication
 
Nonlinear Weather Forecasting-ORSIS.pdf
Nonlinear Weather Forecasting-ORSIS.pdfNonlinear Weather Forecasting-ORSIS.pdf
Nonlinear Weather Forecasting-ORSIS.pdfGal Zahavi
 
Application of differentiation
Application   of   differentiationApplication   of   differentiation
Application of differentiationDhanush Kumar
 
Results from WZ, Higgs and Top for the Summer Conferences
Results from WZ, Higgs and Top for the Summer ConferencesResults from WZ, Higgs and Top for the Summer Conferences
Results from WZ, Higgs and Top for the Summer ConferencesMedicineAndHealthNeurolog
 
Feinberg.ppt
Feinberg.pptFeinberg.ppt
Feinberg.pptBakriBuga
 
Forecast2007
Forecast2007Forecast2007
Forecast2007Herisanpio
 
Short-term Load Forecasting based on Neural network and Local Regression
Short-term Load Forecasting based on Neural network and Local RegressionShort-term Load Forecasting based on Neural network and Local Regression
Short-term Load Forecasting based on Neural network and Local RegressionJie Bao
 
Performance analysis of a second order system using mrac
Performance analysis of a second order system using mracPerformance analysis of a second order system using mrac
Performance analysis of a second order system using mracIAEME Publication
 
Performance analysis of a second order system using mrac
Performance analysis of a second order system using mracPerformance analysis of a second order system using mrac
Performance analysis of a second order system using mraciaemedu
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIREditor IJMTER
 
Optimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
Optimal Budget Allocation: Theoretical Guarantee and Efficient AlgorithmOptimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
Optimal Budget Allocation: Theoretical Guarantee and Efficient AlgorithmTasuku Soma
 
Annual precipitation data processing and interpolation for the weather statio...
Annual precipitation data processing and interpolation for the weather statio...Annual precipitation data processing and interpolation for the weather statio...
Annual precipitation data processing and interpolation for the weather statio...Alexander Mkrtchian
 
IJSRED-V2I5P35
IJSRED-V2I5P35IJSRED-V2I5P35
IJSRED-V2I5P35IJSRED
 
Modal Analysis Basic Theory
Modal Analysis Basic TheoryModal Analysis Basic Theory
Modal Analysis Basic TheoryYuanCheng38
 
Climate Analysis Workshop for weather files
Climate Analysis Workshop for weather filesClimate Analysis Workshop for weather files
Climate Analysis Workshop for weather filesAPSanyal1
 
Abdel1
Abdel1Abdel1
Abdel1maryamho
 
A General Framework for Enhancing Prediction Performance on Time Series Data
A General Framework for Enhancing Prediction Performance on Time Series DataA General Framework for Enhancing Prediction Performance on Time Series Data
A General Framework for Enhancing Prediction Performance on Time Series DataHopeBay Technologies, Inc.
 

Ähnlich wie MEFM: An R package for long-term probabilistic forecasting of electricity demand (20)

JGrass-NewAge LongWave radiation Balance
JGrass-NewAge LongWave radiation BalanceJGrass-NewAge LongWave radiation Balance
JGrass-NewAge LongWave radiation Balance
 
Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2
 
Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2Robust model reference adaptive control for a second order system 2
Robust model reference adaptive control for a second order system 2
 
Nonlinear Weather Forecasting-ORSIS.pdf
Nonlinear Weather Forecasting-ORSIS.pdfNonlinear Weather Forecasting-ORSIS.pdf
Nonlinear Weather Forecasting-ORSIS.pdf
 
Application of differentiation
Application   of   differentiationApplication   of   differentiation
Application of differentiation
 
Results from WZ, Higgs and Top for the Summer Conferences
Results from WZ, Higgs and Top for the Summer ConferencesResults from WZ, Higgs and Top for the Summer Conferences
Results from WZ, Higgs and Top for the Summer Conferences
 
Feinberg.ppt
Feinberg.pptFeinberg.ppt
Feinberg.ppt
 
Forecast2007
Forecast2007Forecast2007
Forecast2007
 
Short-term Load Forecasting based on Neural network and Local Regression
Short-term Load Forecasting based on Neural network and Local RegressionShort-term Load Forecasting based on Neural network and Local Regression
Short-term Load Forecasting based on Neural network and Local Regression
 
Performance analysis of a second order system using mrac
Performance analysis of a second order system using mracPerformance analysis of a second order system using mrac
Performance analysis of a second order system using mrac
 
Performance analysis of a second order system using mrac
Performance analysis of a second order system using mracPerformance analysis of a second order system using mrac
Performance analysis of a second order system using mrac
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
 
Optimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
Optimal Budget Allocation: Theoretical Guarantee and Efficient AlgorithmOptimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
Optimal Budget Allocation: Theoretical Guarantee and Efficient Algorithm
 
Annual precipitation data processing and interpolation for the weather statio...
Annual precipitation data processing and interpolation for the weather statio...Annual precipitation data processing and interpolation for the weather statio...
Annual precipitation data processing and interpolation for the weather statio...
 
IJSRED-V2I5P35
IJSRED-V2I5P35IJSRED-V2I5P35
IJSRED-V2I5P35
 
Modal Analysis Basic Theory
Modal Analysis Basic TheoryModal Analysis Basic Theory
Modal Analysis Basic Theory
 
Climate Analysis Workshop for weather files
Climate Analysis Workshop for weather filesClimate Analysis Workshop for weather files
Climate Analysis Workshop for weather files
 
Abdel1
Abdel1Abdel1
Abdel1
 
Climate Extremes Workshop - The Dependence Between Extreme Precipitation and...
Climate Extremes Workshop -  The Dependence Between Extreme Precipitation and...Climate Extremes Workshop -  The Dependence Between Extreme Precipitation and...
Climate Extremes Workshop - The Dependence Between Extreme Precipitation and...
 
A General Framework for Enhancing Prediction Performance on Time Series Data
A General Framework for Enhancing Prediction Performance on Time Series DataA General Framework for Enhancing Prediction Performance on Time Series Data
A General Framework for Enhancing Prediction Performance on Time Series Data
 

KĂŒrzlich hochgeladen

Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...amitlee9823
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectBoston Institute of Analytics
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsJoseMangaJr1
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...amitlee9823
 
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Standamitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Standamitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 

KĂŒrzlich hochgeladen (20)

Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
âž„đŸ” 7737669865 đŸ”â–» malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Probability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter LessonsProbability Grade 10 Third Quarter Lessons
Probability Grade 10 Third Quarter Lessons
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 đŸ„” Book Your One night Stand
 
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 đŸ„” Book Your One night Stand
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 

MEFM: An R package for long-term probabilistic forecasting of electricity demand

  • 1. Rob J Hyndman Joint work with Shu Fan MEFM: long-term probabilistic demand forecasting 1 MEFM: An R package for long-term probabilistic forecasting of electricity demand
  • 2. South Australian demand data MEFM: long-term probabilistic demand forecasting 2
  • 3. South Australian demand data MEFM: long-term probabilistic demand forecasting 3 SA State wide demand (summer 2015) SAStatewidedemand(GW) 1.01.52.02.53.0 Oct Nov Dec Jan Feb Mar
  • 4. South Australian demand data MEFM: long-term probabilistic demand forecasting 3
  • 5. Temperature data (Sth Aust) MEFM: long-term probabilistic demand forecasting 4
  • 6. Temperature data (Sth Aust) MEFM: long-term probabilistic demand forecasting 5 10 20 30 40 1.01.52.02.53.03.5 Time: 12 midnight Temperature (deg C) Demand(GW) Workday Non−workday
  • 7. Predictors calendar effects prevailing and recent weather conditions climate changes economic and demographic changes changing technology Modelling framework Semi-parametric additive models with correlated errors. Each half-hour period modelled separately for each season. MEFM: long-term probabilistic demand forecasting 6
  • 8. Predictors calendar effects prevailing and recent weather conditions climate changes economic and demographic changes changing technology Modelling framework Semi-parametric additive models with correlated errors. Each half-hour period modelled separately for each season. MEFM: long-term probabilistic demand forecasting 6
  • 9. Monash Electricity Forecasting Model y∗ t = yt/ÂŻyi yt denotes per capita demand at time t (measured in half-hourly intervals); ÂŻyi is the average demand for quarter i where t is in quarter i. y∗ t is the standardized demand for time t. log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et MEFM: long-term probabilistic demand forecasting 7
  • 10. Monash Electricity Forecasting Model y∗ t = yt/ÂŻyi yt denotes per capita demand at time t (measured in half-hourly intervals); ÂŻyi is the average demand for quarter i where t is in quarter i. y∗ t is the standardized demand for time t. log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et MEFM: long-term probabilistic demand forecasting 7
  • 11. Monash Electricity Forecasting Model MEFM: long-term probabilistic demand forecasting 8
  • 12. Monash Electricity Forecasting Model MEFM: long-term probabilistic demand forecasting 8
  • 13. Annual sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et log(ÂŻyi) = log(ÂŻyi−1) + j cj(zj,i − zj,i−1) + Δi First differences modelled to avoid non-stationary variables. Predictors: Per-capita GSP, Price, Summer CDD, Winter HDD. MEFM: long-term probabilistic demand forecasting 9
  • 14. Annual sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et log(ÂŻyi) = log(ÂŻyi−1) + j cj(zj,i − zj,i−1) + Δi First differences modelled to avoid non-stationary variables. Predictors: Per-capita GSP, Price, Summer CDD, Winter HDD. MEFM: long-term probabilistic demand forecasting 9
  • 15. Annual sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et log(ÂŻyi) = log(ÂŻyi−1) + j cj(zj,i − zj,i−1) + Δi First differences modelled to avoid non-stationary variables. Predictors: Per-capita GSP, Price, Summer CDD, Winter HDD. MEFM: long-term probabilistic demand forecasting 9
  • 16. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Calendar effects “Time of summer” effect (a regression spline) Day of week factor (7 levels) Public holiday factor (4 levels) MEFM: long-term probabilistic demand forecasting 10
  • 17. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Calendar effects “Time of summer” effect (a regression spline) Day of week factor (7 levels) Public holiday factor (4 levels) MEFM: long-term probabilistic demand forecasting 10
  • 18. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Calendar effects “Time of summer” effect (a regression spline) Day of week factor (7 levels) Public holiday factor (4 levels) MEFM: long-term probabilistic demand forecasting 10
  • 19. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 20. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 21. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 22. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 23. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 24. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 25. Half-hourly sub-model log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Temperature effects Ave temp across two sites, plus lags for previous 3 hours and previous 3 days. Temp difference between two sites, plus lags for previous 3 hours and previous 3 days. Max ave temp in past 24 hours. Min ave temp in past 24 hours. Ave temp in past seven days. Each function estimated using boosted regression splines. MEFM: long-term probabilistic demand forecasting 11
  • 26. Ensemble forecasting log(yt) = log(ÂŻyi) + log(y∗ t ) log(ÂŻyi) = f(GSP, price, HDD, CDD) + Δi log(y∗ t ) = f(calendar effects, temperatures) + et Multiple alternative futures created: Calendar effects known; Future temperatures simulated (taking account of climate change); Assumed values for GSP, population and price; Residuals simulated (preserving autocorrelations) MEFM: long-term probabilistic demand forecasting 12
  • 27. MEFM package for R Available on github: install.packages("devtools") library(devtools) install_github("robjhyndman/MEFM-package") Package contents: seasondays The number of days in a season sa.econ Historical demographic & economic data for South Australia sa Historical data for model estimation maketemps Create lagged temperature variables demand_model Estimate the electricity demand models simulate_ddemand Temperature and demand simulation simulate_demand Simulate the electricity demand for the next season MEFM: long-term probabilistic demand forecasting 13
  • 28. MEFM package for R Available on github: install.packages("devtools") library(devtools) install_github("robjhyndman/MEFM-package") Package contents: seasondays The number of days in a season sa.econ Historical demographic & economic data for South Australia sa Historical data for model estimation maketemps Create lagged temperature variables demand_model Estimate the electricity demand models simulate_ddemand Temperature and demand simulation simulate_demand Simulate the electricity demand for the next season MEFM: long-term probabilistic demand forecasting 13
  • 29. MEFM package for R Usage library(MEFM) # Number of days in each "season" seasondays # Historical economic data sa.econ # Historical temperature and calendar data head(sa) tail(sa) dim(sa) # create lagged temperature variables salags <- maketemps(sa,2,48) dim(salags) head(salags) MEFM: long-term probabilistic demand forecasting 14
  • 30. MEFM package for R # formula for annual model formula.a <- as.formula(anndemand ~ gsp + ddays + resiprice) # formulas for half-hourly model # These can be different for each half-hour formula.hh <- list() for(i in 1:48) { formula.hh[[i]] <- as.formula(log(ddemand) ~ ns(temp, df=2) + day + holiday + ns(timeofyear, df=9) + ns(avetemp, df=3) + ns(dtemp, df=3) + ns(lastmin, df=3) + ns(prevtemp1, df=2) + ns(prevtemp2, df=2) + ns(prevtemp3, df=2) + ns(prevtemp4, df=2) + ns(day1temp, df=2) + ns(day2temp, df=2) + ns(day3temp, df=2) + ns(prevdtemp1, df=3) + ns(prevdtemp2, df=3) + ns(prevdtemp3, df=3) + ns(day1dtemp, df=3)) } MEFM: long-term probabilistic demand forecasting 15
  • 31. MEFM package for R # Fit all models sa.model <- demand_model(salags, sa.econ, formula.hh, formula.a) # Summary of annual model summary(sa.model$a) # Summary of half-hourly model at 4pm summary(sa.model$hh[[33]]) # Simulate future normalized half-hourly data simdemand <- simulate_ddemand(sa.model, sa, simyears=50) # economic forecasts, to be given by user afcast <- data.frame(pop=1694, gsp=22573, resiprice=34.65, ddays=642) # Simulate half-hourly data demand <- simulate_demand(simdemand, afcast) MEFM: long-term probabilistic demand forecasting 16
  • 32. MEFM package for R plot(ts(demand$demand[,sample(1:100, 4)], freq=48, start=0), xlab="Days", main="Simulated demand futures") MEFM: long-term probabilistic demand forecasting 17
  • 33. MEFM package for R plot(ts(demand$demand[,sample(1:100, 4)], freq=48, start=0), xlab="Days", main="Simulated demand futures")0.61.01.4 Series52 0.51.52.5 Series49 0.51.52.5 Series88 0.61.21.8 0 50 100 150 Series53 Days Simulated demand futures MEFM: long-term probabilistic demand forecasting 17
  • 34. MEFM package for R plot(demand$annmax, main="Simulated seasonal maximums", ylab="GW") MEFM: long-term probabilistic demand forecasting 18
  • 35. MEFM package for R plot(demand$annmax, main="Simulated seasonal maximums", ylab="GW") 0 20 40 60 80 100 1.52.02.53.0 Simulated seasonal maximums Index GW MEFM: long-term probabilistic demand forecasting 18
  • 36. MEFM package for R boxplot(demand$annmax, main="Simulated seasonal maximums", xlab="GW", horizontal=TRUE) rug(demand$annmax) MEFM: long-term probabilistic demand forecasting 19
  • 37. MEFM package for R boxplot(demand$annmax, main="Simulated seasonal maximums", xlab="GW", horizontal=TRUE) rug(demand$annmax) 1.5 2.0 2.5 3.0 Simulated seasonal maximums GW MEFM: long-term probabilistic demand forecasting 19
  • 38. MEFM package for R plot(density(demand$annmax, bw="SJ"), xlab="Demand (GW)", main="Density of seasonal maximum demand") rug(demand$annmax) MEFM: long-term probabilistic demand forecasting 20
  • 39. MEFM package for R plot(density(demand$annmax, bw="SJ"), xlab="Demand (GW)", main="Density of seasonal maximum demand") rug(demand$annmax) 1.5 2.0 2.5 3.0 3.5 0.00.40.81.2 Density of seasonal maximum demand Demand (GW) Density MEFM: long-term probabilistic demand forecasting 20
  • 40. References ÂŻ Hyndman, R.J. & Fan, S. (2010) “Density forecasting for long-term peak electricity demand”, IEEE Transactions on Power Systems, 25(2), 1142–1153. ÂŻ Fan, S. & Hyndman, R.J. (2012) “Short-term load forecasting based on a semi-parametric additive model”. IEEE Transactions on Power Systems, 27(1), 134–141. ÂŻ Ben Taieb, S. & Hyndman, R.J. (2013) “A gradient boosting approach to the Kaggle load forecasting competition”, International Journal of Forecasting, 29(4). ÂŻ Hyndman, R.J., & Fan, S. (2015). “Monash Electricity Forecasting Model”. Technical paper. robjhyndman.com/working-papers/mefm/ ÂŻ Fan, S., & Hyndman, R.J. (2015). “MEFM: An R package imple- menting the Monash Electricity Forecasting Model.” github.com/robjhyndman/MEFM-package MEFM: long-term probabilistic demand forecasting 21