catalyst-cooperative / electricity-demand-mapping

Tools for geographic reallocation of estimated hourly US electricity demand.
MIT License
15 stars 2 forks source link

Develop Visual Allocation Comparisons #7

Closed zaneselvans closed 4 years ago

zaneselvans commented 4 years ago

We need some way to understand how different demand allocations compare to each other, and how that varies across both time and space.

Correlation and regression for selected regions

Periodic error profiles

Regional demand profiles

Demand area coverage

24 x 365 heat map

zaneselvans commented 4 years ago

Next steps

zaneselvans commented 4 years ago

Hey @yashkumar1803, on the heatmap plot, what is the geographic area being covered, and how? This is all 8760 hours for a year, so if it's just two areas being compared to each other (i.e. two individual hourly time series for one year) then what does R^2 mean? There would only be a single point at each hour in each time series? Or is this looking at the correlation between all of the data points for a given hour-of-year in the NREL data (across all the REEDS BAs) and all of the data points for a given hour-of-year for our allocation?

yashkumar1803 commented 4 years ago

@zaneselvans, you are right. Maybe, R2 may not be the best metric for a heatmap. R2 over here means what you mentioned at the end i.e. correlation between all of the data points for a given hour-of-year in the NREL data (across all the REEDS BAs) and all of the data points for a given hour-of-year for our allocation. It was just an example metric.

yashkumar1803 commented 4 years ago

Changes Required

Correlation and Regression

  1. Plot all regions if select_regions is None separately, or plot them on the same axis (check)
  2. Better labels instead of alloc and actual (check)
  3. Adjust suptitle. Right now, the top adjustment is set at 0.95. It needs to be dynamic based on plotting heuristics. Can be improved using tight_layout (still needs fixing. curve fitting required to adjust suptitle)
  4. Add units on the labels. (check)

Periodic error profiles:

  1. Remove NA figures columns (check)
  2. Add units on the labels (check)
  3. Add a select_regions argument to analyze the error for a region subset (check)

Regional demand profile

  1. Units on the Y-axis (check)
  2. If select_region is None, plot demand profile for the whole of US or plot separate charts for all regions (check)

Demand area coverage

  1. Different colors for demand completely absent (check)
  2. Gradient scale for the number of times an area is covered (check)
  3. Only allocated and disaggregated geometries to be used for demand to show maximum information (check)

24 X 365 Heat Map

  1. Unit spacing improve (probably label at every 7 days)
  2. Add axis labels
  3. Add select_region option in the label to plot for a subset of the regions
yashkumar1803 commented 4 years ago

Completed changes in the error visualization functions