Skip to content

suzannepk/power_outages_socioeconomics-

Repository files navigation

Power Outages and Socioeconomics

ECP Bootcamp

Welcome!!

This README will guide you through the stages of this project, and by the end, we will have explored and identified correlations both using visual plots and statistical tests. It is full of tips that will help you.

The Challenge

In June of 2016, a heatwave swept across the Southwestern United States, causing severe loads on the power grid and leading to a large number of power outages across several counties. We are going to be exploring correlations between temperature and power outages, energy burden, and poverty.

Energy justice in the United States means making sure that people have access to energy and are also not being charged disproportionately to their income for the basic energy services that are standardly provided. An energy burden is the fraction of a person’s income that goes toward paying for their electrical power.

The ability to effectively respond to and facilitate the restoration of energy systems during disasters relies on the ability of local and federal agencies and first responders to have timely, accurate, and actionable information about the status and potential impacts of energy sector disruptions. The US Department of Energy (DOE) provides information about these disruptions via its Environment for Analysis of Geo-Located Energy Information (EAGLE-I) system run by Oak Ridge National Laboratory. EAGLE-I provides capabilities for monitoring energy infrastructure assets, reporting energy outages, displaying potential threats to energy infrastructure, and coordinating emergency response and recovery.

We want you to help us start to build tools and processes that will help us understand if underserved populations and people dealing with larger levels of poverty get the same access and service for energy for the same energy burden as more severed and wealthy populations. We have data sets with a resolution at the county level. One gives the average fraction of the population that lives below 100% and 200% of the federal poverty level in each county as well as energy burden and demographic data. There is another set that shows how many customers were without power in 15-minute intervals from 2015-2021. We have another set that tracks the June 2016 heat wave temperatures that we will be using to explore what happens to energy justice when the power grid is under stress. Use this data to help us begin to monitor and better understand energy justice in the United States!

EAGLE-I Background

EAGLE-I is the US Department of Energy’s data and information platform for real-time wide-area situational awareness of the energy sector, sponsored by the DOE Office of Cybersecurity, Energy Security, and Emergency Response. It is developed and run from Oak Ridge National Laboratory in Tennessee.

The EAGLE-I system allows local, state, and federal government agencies, and private sector electricity and fuel providers to have access to timely, accurate, and actionable information about the status and potential impacts of energy sector disruptions and provides a modernized framework for the next set of capabilities in emergency response support.

Developed by the Office of Electricity Delivery and Energy Reliability’s (OE) Infrastructure Security and Energy Restoration (ISER) division, EAGLE-I uses data science approaches to provide a centralized platform for monitoring power distribution outages for over 133 million customers, with just over 90% coverage of the US and Territories. Oak Ridge National Laboratory provides EAGLE-I as a service to other Federal, State, and local agencies and departments and first responders aligning with DOE’s Emergency Support Function-12 (ESF-12) mission, and users come from DOE, DHS, NGA, DOD, FEMA, USDA, and state emergency responders, among others.

Goals:

  • Discuss access to electrical power and the cost burden for that access, and how those issues relate to poverty.
  • Understand how to use statistical tests to justify correlations.
  • Understand how to create and use visualizations to show connections and correlations in big data.
  • Utilize Python and Excel to explore large data frames.
  • Discuss how doing tasks in parallel is more efficient than doing them in series.
  • Explain the assumptions you made in your analysis. For example, if you use “total customers” for a given region to represent relative total populations between counties, acknowledge that while the members of one household are all counted as one customer and businesses are a customer too, "total customers" is still a measure of the relative size of the populations of customers living in each county.

The Big Questions for this Project:

  1. Which counties were hit with the highest temperatures during the heatwave between June 17 to 24, 2016? Can you show it visually? (Datasets: CtyAvTemp62016.csv)

  2. Can you show the average number of customers without power per county during the heatwave? Can you visualize it for the whole US? (Data sets: eaglei_outages_2016.csv, CtyAvTemp62016.csv)

  3. Do counties with many people living below the poverty line have more power outages on average than wealthier counties? (Data sets: CtyAvDemog2010, eaglei_outages_2016.csv) Can you use statistical tests to justify your answer? Is what you found true generally for all counties in the study? Is it still true for the counties hardest hit by the heatwave during the heatwave? Are there any other factors expressed in the data that correlate with large numbers of outages per county?

  4. Do citizens living below the poverty level bear a greater share of the energy burden in most counties? Can you use statistical tests to justify your answer? What does this look like for the counties that you identified as impacted most by the heatwave? (Datasets: CtyAvDemog2010 data, eaglei_outages_2016.csv)

You are doing super well if you get through question 4! 5 and 6 are stretch goals.

  1. Can you tell if the number of customers without power is correlated with the highest temperatures? (Datasets: eaglei_outages_2016.csv and ones you find!)

  2. Done with time to spare? How is the region you are from doing with energy justice? How does it compare to other regions of the US? Defend how you define "Region". And/Or

Look for data on the internet about another natural disaster that happened between 2015 and 2021 and see if you can repeat the analysis for it.

Note You do not have to tackle the Big Questions with the exercises given in this guide if you have another plan in mind to work with. These are here to help you get started and are not mandatory.

The Final Product:

You will combine your visualizations and insights from answering the big questions into a presentation that you will give on the last day of the workshop.

Important Notes on the Big Questions:

  • Not all team members need to work on all exercises and questions. It would be best to split up the work. It is fine if you cannot answer all the big questions or all their parts.

  • You will need to answer the basics of the first four questions to meet the first goal of this project completely.

  • You will need to answer questions 1 and 2 to answer questions 3.

  • Question 4 can be mostly answered by using just the CtyAvDemog2010.csv data.

  • Question 5 will require you to find more data than we have provided and do a lot of interpolation. I suggest you start by googling “Hourly temperature for LA for June 20, 2016”. Remember that your EAGLE-I data's time is given in UTC.

Some reading resources:

Research Project Resources:

Python:

General:

Datasets

First things first, let's look at our data. We're going to be looking at our data using Excel (or Google Sheets) just so you're familiar with what the data should look like. You can access the data in this Google Drive folder: https://drive.google.com/drive/folders/1fAaBPgWWaA_9VB2iYUAWeW8biTXJQFwZ?usp=sharing

We are going to be working with these datasets:

  • eaglei_outages/eaglei_outages_2016.csv - a series of .csv files providing the breakdown of the number of customers by county who were out of power from 2014 to 2022. The number of power outages by county is recorded in 15-minute increments across a given year. The file name indicates which year the eagle-i data was recorded, for example, eaglei_outages_2016.csv represents the data for 2016.

    • There is an additional dataset in this folder, eaglei_outages/eaglei_outages_July_17to20_2023.csv that contains county data in 15 minute intervals for July 17-23, a recent week in the US with high heat and storms.
  • temperaturedata/CtyAvTemp62016.csv - in the temperaturedata folder, each .csv file is the average temperature of the day for each county in the US and its territories. The numbers in the file name represent the date. For example, CtyAvTemp61716.csv is the data for June 17 2016.

  • CtyAvDemog2010.csv - 2010 census data with socioeconomic measures, including energy burden, health, and age demographics, averaged by county. You may need to use Google to understand what each of the headers in this data set mean.

  • fips-by-state.csv - Federal Information Processing System (FIPS) Codes with county and state names. Fips codes are unique geographical identifiers of geographical areas.

If you want to look at the relative fraction of customers impacted per county, you need a measure of how many customers are in each county. We don't have data on the exact number of customers per county in 2016, but we do have the estimate for 2023. We also have included an estimate of the total population for each county. You can choose either of these to estimate the fraction of customers per county impacted by power outages, but you will need to explain your choice.

  • county_customers_2023.csv - estimated number of eagle-i customers by county as of 2023

  • county_population_by_year.csv - population of US county by year, from 2010 to 2019, together with its fips code. If you want to use population to a fraction of population that was impacted, refer to this dataset. This dataset was extracted from the 2010-2019 census data, and combined with the fips-by-state.csv dataset to include the county's fips code.

(2010-2019 Population totals by county: https://www.census.gov/data/datasets/time-series/demo/popest/2010s-counties-total.html)

(Refer here for a tutorial on how the data was cleaned using Excel: https://docs.google.com/document/d/1WGkfoKchXMT7JDb3f5qwuVnwfbSDrPb506LQ8CHUG6k/edit?usp=sharing)

  • NOTE: Something you'll find as you work with these datasets is that there might be some data missing here and there e.g. There might not be power outage information for some county for some given day. That's just the nature of data science sometimes, that the data you have isn't perfect. So you have to make sure that you're using the data you have and making sure you're accounting for any missing data when before you make any conclusions. You may need to use Excel or your favorite method to "Clean" some of the data sets. Cleaning is the process of removing problematic data, such as ASCII letters or punctuation characters that appear where numbers should be, or reformatting one set of data, so it can be compared to another set.

Jupyter Notebooks

The exercises and tutorials linked below are in Jupyter notebooks and will familiarize you with the provided data and prepare you to answer the big questions.

  1. Exploring Data

This notebook may be useful to help you understand what the data looks like for all of the big questions and if you need to capture clean a small data set for question 5.

  * Analyzing data using Google Sheets
  1. Python Intro

This notebook will teach you how to use Python and Pandas and how to make simple plots, and how to filter and merge dataframes- a skill that will be key to answering some of the big questions.

  * Reading Excel Files, Filtering Data (Movie Dataset)
  * Plotting Data using Pandas & Matplotlib (Movie Dataset)
  * Practice with Real Data (Temperature Data)
  * Merging dataframes
  1. Time-Series Data

This notebook may be particularly helpful for questions 5 and for any time you want to study and compare the length of time that the power was out for a set of counties.

  * Representing time-series data with line-charts
  * Up-sampling data with numpy
  * Calculating average and median number of power outages
  * Merging aggregated data with regular dataframe 
  1. Visualizations using Maps

This notebook sets you up nicely to do visualizations to support the first 4 big questions.

  * Pandas map plot
  * Geopandas interactive map
  1. Correlation Analysis

This will allow you to put quantitative power behind the insights you get from your visualizations and may be particularly helpful for answering parts of big question 3.

  * Correlation vs Causation
  * Pearson Correlation
  * Spearman Correlation
  * P-value
  * Histogram
  * Scatterplot
  * Correlation Test
  * Interpreting Spearman Rank Score & p-value
  * Interpreting statistically significant p-value
  * Correlation Matrix
  1. MPI Intro

This may help you do your work faster if you are looking at all the years of data provided. This is the HPC part of the project and is a good tutorial for mpi4py even if you don't use it to answer any of the big questions.

  * Introduction to Message Passing Interface (MPI)
  * Load and pre-process the power outage data
  * Divide the data into chunks to distribute among MPI processes
  * Implement parallel processing using MPI
  * Analyze and interpret the results    
  1. Big Questions Working Notebook
  • Working space for addressing the Big Questions & Project Goals

Acknowledgements:

Data and scientific inspiration, and guidance for this project were developed by ORNL Scientists Melissa Dumas and Sarah Tennille.

About

ECP Bootcamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published