Giter VIP home page Giter VIP logo

electricity_load_forecasting's Introduction

Time Series Project

For this project, three years of hourly electricity load data was scraped from the UC Berkeley open data source and used to forecast a month of electricity use for over 70 buildings on the UC Berkeley campus.

The electricity data was collected for days between January 2016 and November 2019. The dataset was split into training and test sets, missing data was imputed, then the hourly data was summed into daily observations.

A baseline SARIMA model was used to forecast the electricity load for a single building for November 2019. ACF and PACF plots were used in addition to a GridSearch to find the ideal parameters for the SARIMA model. The model was validated through both train-test split validation and walk forward validation. Then, the model was applied to the rest of the buildings.

The mean absolute percent error was calculated for all buildings' forecasts, and then a new model was created that included exogenous variables (specifically for holidays, i.e. whether a day was a holiday or not). Mean absolute percent errors were re-calculated and compared to the first models' MAPE's. Finally, the best model was selected for each building.

All relevant information was exported to Tableau to display the forecasts in a dashboard (see "Load_Forecasting_Dashboard.twb" in Presentation folder).

See blog post published on Towards Data Science for more details (along with the notebooks listed in the outline below): Time Series Forecasting with a SARIMA Model

Jupyter Notebook Organization/Project Process

  1. Scrape data from UC Berkeley open data source
    • Web_Scraping.ipynb
  2. Impute missing data
    • Meter_Reading_Imputing.ipynb
    • Meter_Reading_Imputing_R1.ipynb
  3. SARIMA baseline model with walk forward validation
    • New_SARIMA_Modeling_Validation.ipynb
  4. SARIMA model applied to rest of buildings
    • New_SARIMA_More_Buildings_Validation.ipynb
  5. Prepare prediction and MAPE data to be exported and used in Tableau dashboard
    • New_SARIMA_Presentation_Prep.ipynb

electricity_load_forecasting's People

Contributors

gravesa333 avatar steguess avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.