SlideShare uma empresa Scribd logo
1 de 40
Baixar para ler offline
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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Semelhante a 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
 
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
 
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.
 

Semelhante a 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
 

Último

Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Valters Lauzums
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
Data Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdfData Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdftheeltifs
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Klinik kandungan
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制vexqp
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制vexqp
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.pptibrahimabdi22
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格q6pzkpark
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制vexqp
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...gajnagarg
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...Bertram Ludäscher
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1ranjankumarbehera14
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
SR-101-01012024-EN.docx  Federal Constitution  of the Swiss ConfederationSR-101-01012024-EN.docx  Federal Constitution  of the Swiss Confederation
SR-101-01012024-EN.docx Federal Constitution of the Swiss ConfederationEfruzAsilolu
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 

Último (20)

Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
Data Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdfData Analyst Tasks to do the internship.pdf
Data Analyst Tasks to do the internship.pdf
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
怎样办理纽约州立大学宾汉姆顿分校毕业证(SUNY-Bin毕业证书)成绩单学校原版复制
 
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
怎样办理圣路易斯大学毕业证(SLU毕业证书)成绩单学校原版复制
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
一比一原版(曼大毕业证书)曼尼托巴大学毕业证成绩单留信学历认证一手价格
 
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
怎样办理旧金山城市学院毕业证(CCSF毕业证书)成绩单学校原版复制
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...Reconciling Conflicting Data Curation Actions:  Transparency Through Argument...
Reconciling Conflicting Data Curation Actions: Transparency Through Argument...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
SR-101-01012024-EN.docx  Federal Constitution  of the Swiss ConfederationSR-101-01012024-EN.docx  Federal Constitution  of the Swiss Confederation
SR-101-01012024-EN.docx Federal Constitution of the Swiss Confederation
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 

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