ElectricDemand: Predicting electricity demand in Adelaide from temperature

ElectricDemandR Documentation

Predicting electricity demand in Adelaide from temperature

Description

The data sets used in this demonstration analysis consist of half-hourly electricity demands from Sunday to Saturday in Adelaide, Australia, between July 6, 1976 and March 31, 2007. Also provided in the same format and times are the temperatures in degrees Celsius at the Adelaide airport. The shapes of the demand curves for each day resemble those for temperature, and the goal is to see how well a concurrent functional regress model fit by function fRegress can fit the demand curves.

Format

There is a data object for each day of the week, and in each object, the member y, such as mondaydemand$y, is a 48 by 508 matrix of electricity demand values, one for each of 48 half-hourly points, and for each of 508 weeks.

Details

The demonstration is designed to show how to use the main functional regression function fRegress in order to fit a functional dependent variable (electricity demand) from an obviously important input or covariate functional variable (temperature). In the texts cited, this model is referred to as a concurrent functional regression because the model assumes that changes in the input functional variable directly and immediately change the dependent functional variable.

Also illustrated is the estimation of pointwise confidence intervals for the regression coefficient functions and for the fitting functions that approximate electricity demand. These steps involve functons fRegress.stderr and predict.fRegress.

The data are supplied through the CRAN system by package fds, and further information as well as many other datasets are to be found there.

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.


fda documentation built on Sept. 30, 2024, 9:19 a.m.