scieee AI-readable full text Open interactive document viewer

Data Mining of United States Greenhouse Gas Emission Inventory for Visualization and Analysis of Emission Trends

Galassi, Andrea Nicole

Abstract

La ciència de dades o "Data Science" és una disciplina emergent on l'aplicació de les eines de mineria de dades és una poderosa tècnica utilitzada per descobrir tendències i relacions subjacents en volums de dades complexos que poden no haver estat evidents a l’observació de les dades en conjunt (Gibert, et al., 2018). La mineria de dades i la ciència de dades tenen el poder de revelar les complexitats de les dades on sorgeixen relacions entre variables i ajuden a comprendre fenòmens complexos. D'altra banda, el canvi climàtic s'està convertint en una amenaça existencial per als sistemes de vida de la Terra i és causat principalment per l'alliberament de gasos amb efecte d’hivernacle (GEH) a l'atmosfera. Comprendre les complexitats de les emissions de GEH i les relacions i tendències a les emissions industrials de GEH pot conduir a la utilització de pràctiques i polítiques més ecològiques. Estats Units és responsable de la majoria de les emissions de GEH del planeta des de la revolució industrial; per tant, conèixer les tendències i relacions entre indústries i sectors en termes d'emissions de GEH és fonamental per al desenvolupament i impuls de polítiques efectives orientades a la reducció d'emissions. Aquest informe presenta una conceptualització del poder de la ciència de dades a la qual són analitzats els inventaris d'emissions de GEH del Programa d'Informes de GEH (GHGRP) de l'Agència de Protecció Ambiental dels Estats Units (USEPA) a la recerca de tendències i relacions. Els inventaris d'emissions de GEH dels informes dels anys (RY) 2012, RY2015 i RY2018 van ser pre-processats, es va fer una extracció de dades i posteriorment es van processar amb la finalitat d’obtenir 10 perfils de classe únics i estadísticament significatius mitjançant tècniques de agrupació jeràrquica d’on emergeixen tendències i relacions a les dades

Full text

1 Treball de fi de màster Data Mining of United States Greenhouse Gas Emission Inventory for Visualization and Analysis of Emission Trends Cognoms: Galassi Nom: Andrea Titulació: Màster en Ciència i Tecnologia de la Sostenibilitat Director: Karina Gibert Data de lectura: julio 2020 2 Data Mining of United States Greenhouse Gas Emission Inventory for Visualization and Analysis of Emission Trends Andrea Galassi Trabajo Final de Master 3 Table of Contents 1. Abstract .............................................................................................................................. 5 1.1 Summary ..................................................................................................................... 5 1.2 Resumen ..................................................................................................................... 5 1.3 Resum ......................................................................................................................... 6 2. Introduction ......................................................................................................................... 8 2.2 Structure of the report ....................................................................................................... 8 3. Background and Context ..................................................................................................... 9 3.1 GHG Emissions Inventory in the United States ................................................................. 9 3.2 Current Global Challenges ............................................................................................... 9 3.3 United States Demographics ...........................................................................................14 4. Description of Database .....................................................................................................15 5. Objectives ..........................................................................................................................18 6. Methodology ......................................................................................................................19 6.1 Preprocessing of Data ................................................................................................20 6.1.1 Creation of Working Data Matrix ..........................................................................20 6.1.2 Expert Based Variable Selection ..........................................................................20 6.1.3 Missing data ........................................................................................................21 6.1.4 Treatment of Outliers ...........................................................................................22 6.1.5 Derivation of New Variables: Indicator variables ..................................................23 6.2 Data Mining.................................................................................................................23 6.2.1 Hierarchical clustering ..........................................................................................24 6.2.2 Class Profiling ......................................................................................................25 6.2.3 Inferential tests associated to profiling process ....................................................25 6.2.4 Principal Component Analysis .............................................................................26 6.2.5 Post Processing: Territorial Visualizations ...........................................................27 7 Development and analysis of results ..................................................................................28 7.1 Evolution of GHG Emissions over Time ......................................................................28 7.1.1 Fluorinated GHG Analysis....................................................................................30 7.2 Evolution of Geographic Distribution over Time ..........................................................32 7.3 Evolution of NAICS Industries over Time ....................................................................35 7.4 Evolution of Sectors over Time ...................................................................................36 7.5 Evolution of Regulatory Subparts Industries over Time ...............................................40 7.6 Hierarchical Clustering and Class Profiling Conceptualization ....................................43 4 7.6.1 Temporal Analysis and Territorial Visualizations of Discovered Class Profiles .....44 7.6.2 Profiling of Emissions for Classes ........................................................................55 7.6.3 Profiling of NAICS Industry for Classes ................................................................58 7.6.4 Profiling of Sectors for Classes ............................................................................62 7.6.5 Profiling of Regulatory Subpart Industry for Classes ............................................64 7.6.6 Inferential tests associated to profiling process ....................................................67 7.7 Summary of Discovered Profiles .................................................................................69 7.8 Principal Component Analysis ....................................................................................74 7.8.1 PC1 vs PC2 .........................................................................................................77 7.8.2 PC1 vs PC3 .........................................................................................................79 7.8.3 PC1 vs PC4 .........................................................................................................81 8 Discussion of Results .........................................................................................................84 8.1 Class profiles relating to the oil and gas segment .......................................................85 8.2 Class profiles relating to domestic activities ................................................................86 8.3 Class profiles relating industry and manufacturing ......................................................87 9 Conclusions .......................................................................................................................89 10. References..........................................................................................................................91 Appendix A ...............................................................................................................................93 Appendix B ...............................................................................................................................95 9.1 Hierarchical Clustering R Code ...................................................................................95 9.2 Class Profiling R Code ................................................................................................95 9.3 PCA R Code ...............................................................................................................99 5 1. Abstract 1.1 Summary Data Science is an emergent discipline in which the application of Data Mining tools is a powerful technique used to uncover underlying trends and relationships in complex datasets which may not have been apparent when observing the dataset as a whole (Gibert, et al., 2018). Data mining and data science have the power to disclose the complexities in data in which relationships between and among variables emerge which can lead to insight and understanding when dealing with complex phenomenon. Climate change is becoming in existential threat to Earth’s life systems and is caused by releasing greenhouse gases (GHGs) to the atmosphere. Understanding the complexities of GHG emissions and the relationships and trends industries and sectors have with GHG emissions can lead to greener practices and policies. The United States is responsible for the majority of the planet’s GHG emissions since the industrial revolution; therefore, understanding the trends and relationships between industries and sectors in terms of GHG emissions is pivotal for creating and influencing effective emission reduction policies (Ritchie & Roser, 2017). This report shows the power of data science in a conceptualization where GHG emission inventories from the United States Environmental Protection Agency’s (USEPA) GHG Reporting Program (GHGRP) are analyzed for trends and relationships (USEPA, 2020).. GHG emission inventories from reporting years (RY) 2012, RY2015 and RY2018 are preprocessed, data mined, and post processed in order to obtain 10 unique and statistically significant profiles of industries through hierarchical clustering and post-processing techniques in which trends and relationships in the data emerge. The discovered profiles are described and territorial visualizations are made to add further clarity into the geographical distribution of similar industrial facilities over time. Principal component analysis (PCA) is carried out which further deepens the understanding of the relationships between industries, sectors and types of GHG emissions which can then be related back to the discovered class profiles which can add another layer of depth in understanding (Gibert, Sànchez–Marrè, & Izquierdo, 2016). Based on the insight gained from data mining the United States GHG emission inventories, avenues for further research and development can be uncovered which can add deeper understanding for decision makers who influence environmental policy or industry. 1.2 Resumen La ciencia de datos o “Data Science” es una disciplina emergente en la que la aplicación de las herramientas de minería de datos es una poderosa técnica utilizada para descubrir tendencias y relaciones subyacentes en conjuntos de datos complejos que pueden no haber sido evidentes al observar los datos en su conjunto (Gibert, et al., 2018). La minería de datos y la ciencia de datos 6 tienen el poder de revelar las complejidades de los datos donde cuyas relaciones entre variables conducen y ayudan a comprender fenómenos complejos. Por otro lado, el cambio climático se está convirtiendo en una amenaza existencial para los sistemas de vida de la Tierra y es causado principalmente por la liberación de gases de efecto invernadero (GEI) a la atmósfera. Comprender las complejidades de las emisiones de GEI y las relaciones y tendencias en las emisiones industriales de GEI puede conducir a la utilización de prácticas y políticas más ecológicas. Estados Unidos es responsable de la mayoría de las emisiones de GEI del planeta desde la revolución industrial; por lo tanto, conocer las tendencias y relaciones entre industrias y sectores en términos de emisiones de GEI es fundamental para el desarrollo e impulso de políticas efectivas orientadas a la reducción de emisiones. Este informe presenta una conceptualización del poder de la ciencia de datos en la cual son analizados los inventarios de emisiones de GEI del Programa de Informes de GEI (GHGRP) de la Agencia de Protección Ambiental de los Estados Unidos (USEPA) en busca de tendencias y relaciones. Los inventarios de emisiones de GEI de los informes de los años (RY) 2012, RY2015 y RY2018 fueron pre-procesados, se hizo una extracción de datos y posteriormente se procesaron para obtener 10 perfiles de clase únicos y estadísticamente significativos a través de técnicas de agrupación jerárquica de las que emergen tendencias y relaciones en los datos. Se describen los perfiles de clase descubiertos y se realizan visualizaciones territoriales para agregar mayor claridad a la distribución geográfica de instalaciones industriales similares a lo largo del tiempo. Además, se llevó a cabo un análisis de componentes principales (PCA) con el fin de profundizar aún más la comprensión de las relaciones entre industrias, sectores y tipos de emisiones de GEI que se relacionan con los perfiles de clase descubiertos agregando otra capa de profundidad a la comprensión (Gibert, Sánchez –Marrè e Izquierdo, 2016). Con base en la información obtenida de la extracción de datos de los inventarios de emisiones de GEI de los Estados Unidos, se pueden generar nuevas vías que faciliten futuras investigaciones y puedan agregar una comprensión más profunda para los responsables de las decisiones que influyen en la política ambiental o la industria. 1.3 Resum La ciència de dades o "Data Science" és una disciplina emergent on l'aplicació de les eines de mineria de dades és una poderosa tècnica utilitzada per descobrir tendències i relacions subjacents en volums de dades complexos que poden no haver estat evidents a l’observació de les dades en conjunt (Gibert, et al., 2018). La mineria de dades i la ciència de dades tenen el poder de revelar les complexitats de les dades on sorgeixen relacions entre variables i ajuden a comprendre fenòmens complexos. D'altra banda, el canvi climàtic s'està convertint en una amenaça existencial per als sistemes de vida de la Terra i és causat principalment per l'alliberament de gasos amb efecte d’hivernacle (GEH) a l'atmosfera. Comprendre les complexitats de les emissions de GEH i les relacions i tendències a les emissions industrials de GEH pot conduir a la utilització de pràctiques i polítiques més ecològiques. Estats Units és responsable de la majoria de les emissions de GEH del planeta 7 des de la revolució industrial; per tant, conèixer les tendències i relacions entre indústries i sectors en termes d'emissions de GEH és fonamental per al desenvolupament i impuls de polítiques efectives orientades a la reducció d'emissions. Aquest informe presenta una conceptualització del poder de la ciència de dades a la qual són analitzats els inventaris d'emissions de GEH del Programa d'Informes de GEH (GHGRP) de l'Agència de Protecció Ambiental dels Estats Units (USEPA) a la recerca de tendències i relacions. Els inventaris d'emissions de GEH dels informes dels anys (RY) 2012, RY2015 i RY2018 van ser pre-processats, es va fer una extracció de dades i posteriorment es van processar amb la finalitat d’obtenir 10 perfils de classe únics i estadísticament significatius mitjançant tècniques de agrupació jeràrquica d’on emergeixen tendències i relacions a les dades. Es descriuen els perfils de classe descoberts i es realitzen visualitzacions territorials a fi d’afegir més claredat a la distribució geogràfica d'instal·lacions industrials similars al llarg del temps. A més, es va dur a terme una anàlisi de components principals (PCA) per tal d'aprofundir encara més la comprensió de les relacions entre indústries, sectors i tipus d'emissions de GEH que es relacionen amb els perfils de classe descoberts afegint una altra capa de profunditat a la comprensió (Gibert, Sánchez -Marrè i Izquierdo, 2016). Amb base a la informació obtinguda de l'extracció de dades dels inventaris d'emissions de GEH dels Estats Units, es poden generar noves vies que facilitin futures investigacions i puguin afegir una comprensió més profunda pels responsables de les decisions que influeixen a la política ambiental o la indústria. 8 2. Introduction The United States of America is the largest cumulative emitter of greenhouse gas (GHG) emissions throughout history. With the growing risks of climate change threatening Earth’s life systems there is a growing importance to understand, manage, and decrease GHG emissions on a global scale. In order to implement effective policies and practices which can manage and regulate GHG emissions, a need exists to understand which industries and sectors may be the largest contributors of GHG emissions as well as understand relationships and correlations between industries and sectors in terms of their GHG emissions. The United States of American’s GHG inventory was chosen to be investigated in terms of data mining as the United States is the country historically most responsible for GHG emissions and therefore most responsible for climate change (Ritchie & Roser, 2017). The GHG reporting inventories for three separate reporting years (RY) were chosen to be analyzed in order to understand if there were any trends in GHG emissions over time. The GHG reporting inventories from RY2012, RY2015, RY2018 were analyzed throughout this report in which data mining techniques were used to uncover and reveal underlying trends and relationships in the dataset. The GHG inventory is open source dataset which is published annually for the previous year’s emissions in the United States and is published by the United States Environmental Protection Agency (USEPA) in which the first published year of GHG emissions was RY2010 (USEPA, 2020). The creation and implementation of the GHG reporting inventory was to provide information to decision makers in order to inform decisions on policy and regulation for managing GHG emissions throughout the United States. Use of open source data is of interest as it can be used for data mining analysis on a university level which ultimately will lead to better understanding of GHG emissions throughout the United States and may even add an extra layer of insight which could help inform decision makers. Data science and data mining are powerful tools which can uncover meaningful relationships within the dataset (Gibert, et al., 2018). Relationships between GHG emissions, industries and sectors, as well as geographical location can be uncovered which can add another layer of meaning and understanding to the GHG reporting inventories. 2.2 Structure of the report The structure of the proceeding sections in this document are as follows:  Section 3 provides background and contextual information on the GHG emission Inventory in the United States, current global challenges with climate change and information about demographics in the United States.  Section 4 provides information on the description of the database used and the interpretation of the variables and database.  Section 5 briefly discusses the objectives of this report. 9  Section 6 explains the methodology used in which the creation of the working data matrix, pre-processing of data, and data mining techniques are discussed in further detail  Section 7 provides analysis and results of applying data mining to the working data matrix in which analysis techniques, class profiling and conceptualization, temporal analysis and territorial visualizations results and analysis are presented  Section 8 discusses the results and analysis of this paper  Section 9 provides conclusions and proposals of future works  Section 10 provides a list of references uses in compiling this report 3. Background and Context 3.1 GHG Emissions Inventory in the United States The United States Environmental Protection Agency (USEPA) establishes a Federal set of codes and regulations under Title 40 Code of Federal Register (CFR) Part 98 a mandatory Greenhouse Gas Reporting Program (GHGRP) for all United States facilities which emit greater than a total of 25,000 tons per year of greenhouse gases (GHGs) reported in carbon dioxide equivalence (CO2eq) per reporting year. A reporting year is considered to be from January 1st until December 31st of that calendar year in which the GHGRP was designed as a recordkeeping, monitoring, and reporting requirement for all applicable facilities in order for the United States to inform regulation for managing greenhouse gas emissions. The USEPA defines a greenhouse gas as “carbon dioxide (CO2), methane (CH4), nitrous oxide (N2O), sulfur hexafluoride (SF6), hydrofluorocarbons (HFCs), perfluorocarbons (PFCs), nitrogen trifluoride (NF3) and other fluorinated greenhouse gases” (40 CFR 98.6). The global warming potential (GWPs) for each GHG were accounted for in the reported emissions as each emissions constituent was reported in carbon dioxide equivalent (CO2eq) according to the GHGRP calculation methodologies required. All emissions data is presented in units of metric tonnes of carbon dioxide equivalents using GWPs from the IPCC's AR4 (Forster, et al., 2007) The GWP of a particular chemical constituent is determined by the emissions’ longevity in the atmosphere as well as its intensity to contribute to global warming; the higher the molecule’s ability to hold heat in the atmosphere, the larger the global warming potential will be. Additionally, the average amount of time of a GHG will remain in the atmosphere before it is sequestered in the biosphere is considered as well. For example, methane has a 100-year GWP of 25, meaning it is 25 times more powerful a GHG than carbon dioxide over a 100-year time frame. The GWP determined by the USEPA for GHG reporting is multiplied by the mass of emissions in tonnes per year (tpy) to determine the total contribution an emission will have in CO2-eq. CO2eq= (mass emission) * GWP 16 Table 4.1 GHGRP Parameters of interest of GHGRP Variable Name/ Description Type Abbreviation Unit State factor State -- Latitude numeric Lat N/A Longitude numeric Long N/A Primary NAICS Industry factor NAICS_Ind -- Waste Sector factor Sec_Waste -- Other Sector factor Sec_Other -- Natural Gas and Natural Gas Liquids Suppliers Sector factor Sec_NatGas -- Power Plants Sector factor Sec_PowPl -- Minerals Sector factor Sec_Minerals -- Petroleum and Natural Gas Systems Sector factor Sec_PetNat -- Industrial Gas Suppliers Sector factor Sec_IndGas -- Pulp and Paper Sector factor Sec_Puland -- Chemicals Sector factor Sec_Chemicals -- Metals Sector factor Sec_Metals -- Suppliers of CO2 Sector factor Sec_SupP2 -- Petroleum Product Suppliers Sector factor Sec_PetProduct -- Injection of CO2 Sector factor Sec_InjP2 -- Import and Export of Equipment Containing Fluorinated GHGs Sector factor Sec_Impand -- Refineries Sector factor Sec_Refineries -- Coal-based Liquid Fuel Supply Sector factor Sec_CoaNiq -- Total reported direct emissions numeric CO2eq tpy of CO2-eq CO2 emissions (non-biogenic) numeric CO2_fossil tpy of CO2-eq Methane (CH4) emissions numeric CH4 tpy of CO2-eq Nitrous Oxide (N2O) emissions numeric N2O tpy of CO2-eq HFC emissions numeric HCF tpy of CO2-eq PFC emissions numeric PFC tpy of CO2-eq SF6 emissions numeric SF6 tpy of CO2-eq NF3 emissions numeric NF3 tpy of CO2-eq Other Fully Fluorinated GHG emissions numeric Other_HFCs tpy of CO2-eq HFE emissions numeric HFE tpy of CO2-eq Very Short-lived Compounds emissions numeric short_lived tpy of CO2-eq Other GHGs (metric tons CO2e) numeric other tpy of CO2-eq Biogenic CO2 emissions (metric tons) numeric CO2_bio tpy of CO2-eq One of the most prevalent subparts which can be found ubiquitously throughout the United States is Subpart C which regulates Stationary Fuel Combustion Sources which includes fossil fuel burning generators which are generally used to produce energy in the form of electricity, heat, or steam for industrial purposes. Therefore, Stational Fuel Combustion Sources can be found in almost all industrial facilities in the United States, as apart from a facility’s sector which they belong to, most facilities also need combustion engines and generators to produce energy in order to support their industrial practices. Subpart D Electricity Generation is also prevalent subpart which can be found ubiquitously throughout the United States. This subpart regulates all electricity generating units apart from combustion engines and therefore it is expected that many facilities apart from their industrial practice, will also be subject to Subpart D electricity generation is often needed to support their industrial practices. 17 The Mandatory Greenhouse Gas Reporting Program enforced through Title 40 Part 98 of the Code of Federal Regulations also has several sets of codes and regulations to regulate the oil and gas industry which has become an important industry in the United States with the rise of domestic oil and gas production. Subpart W—Petroleum and Natural Gas Systems is the principle code which regulates petroleum and natural gas systems and can be broken down into several sub-sections which include regulation of onshore oil and gas production which includes hydraulic fracturing, offshore oil and gas production which includes offshore oil and gas rigs, and transportation pipelines of the oil and gas. Subpart MM—Suppliers of Petroleum Products and Subpart NN—Natural Gas and Natural Gas Liquid Supply are the two subparts which regulates the supply chain emissions from petroleum products and natural gas. Subpart Y—Petroleum Refining regulates emissions from petroleum refineries. Table 4.2 CFR Title 40 Part 98 Industry Subparts of interest (USEPA, 2020) Regulatory Subpart Letter Name of industry Subpart Regulates Abbreviation C Stationary Combustion Stat_Comb D Electricity Generation Elec_Gen E Adipic Acid Production Adip_Produc F Aluminum Production Alum_Produc G Ammonia Manufacturing Ammo_Manufac H Cement Production Cement_Produc I Electronics Manufacture Electonic_Manu L Fluorinated GHG Production FluoGHG_Produc O HCFC–22 Production and HFC–23 Destruction HCFC_Prod_Destruc P Hydrogen Production H2_Produc Q Iron and Steel Production Iron_Produc R Lead Production Lead_Produc S Lime Production Lime_Produc T Magnesium Production Magn_Produ V Nitric Acid Production Nitr_Produc W-TRANS Petroleum and Natural Gas Systems – Transmission Pipelines Petr_Trans_Pipe W-UNSTG Petroleum and Natural Gas Systems – Underground Natural Gas Storage Petr_NatGas_Stor W-LDC Petroleum and Natural Gas Systems – Natural Gas Local Distribution Company Petr_Natgas_Dist X Petrochemical Production Petr_Produ BB Silicon Carbide Production Silicon_Produc CC Soda Ash Manufacturing Soda_Manufa EE Titanium Dioxide Production Tita_Produc GG Zinc Production Zinc_Production HH Municipal Landfills Muni_Landf II Industrial Wastewater Treatment Indu_WW_Treatm LL Suppliers of Coal Based Liquids Fuels Supp_Coal_Fuels NN-FRAC Natural Gas Liquids Fractionator NatGas_Fract NN-LDC Natural Gas Local Distribution Company (supply) NatGas_Dist PP Carbon Dioxide (CO2) Supply CO2_Supp RR Geologic Sequestration of Carbon Dioxide Geo_Seq_CO2 SS Manufacture of Electric Transmission and Distribution Equipment Manu_Elec TT Industrial Waste Landfills Ind_WastLandf UU Injection of Carbon Dioxide Inj_CO2 18 5. Objectives This report’s main objective is to add another layer of comprehension to the GHG reporting inventories of the United States with the aim to uncover relationships between industries, sectors, or location in terms of GHG emissions which may have previously been unknown or uncertain. With this layer of comprehension, avenues for further investigation could be uncovered which could help inform policy makers as well as individuals who may have decision making power over industry or individual facilities with the ultimate hope to lead to emission reduction practices. This report will focus solely on the data science approach to better understand the GHG reporting industries where the datasets from the three reporting years, RY2012, RY2015 and RY2018, will be preprocessed, classified, profiled, and further analyzed in order to reveal underlying trends and relationships in the dataset. Further analysis in terms of territorial visualizations of the different analysis steps will be used to bolster and identify the uncovered trends and relationships. The underlying trends and relationships in the data will be uncovered as follows: 1. Clustering and class profiling: Clustering and class profiling of the dataset will help determine correlations and relationships between and among variables in the GHG reporting inventories in order to add insight on how GHG emissions from different facilities can be grouped together. 2. Territorial visualizations of analysis: Territorial visualization of the GHG reporting inventories will be used to determine trends in GHG emissions in terms of location as well as over time in order to better understand tendencies in emissions and the relationships of different types of emissions in regards to industries and sectors and geographical location. 3. Global relationships between and among variables in the dataset: The interactions and influence of the variables available will be further investigated through Principle Component Analysis in which underlying trends and relationships between and among variables can be uncovered which may not have been apparent previously. 19 6. Methodology Data science (Gibert, Horsburgh, Athanasiadis, & Homes, 2018) (and statistical analysis were performed on the annual greenhouse gas (GHG) emissions report for reporting years (RY) 2012 (RY2012), 2015 (RY2015) and 2018 (RY2018) for the United States of America in order to discover underlying emission trends between industries and sectors in relation to emission type as well as over time. This report analyzes the United States industrial sector´s facilities by dividing and regrouping the facility classification by industry type and sector in order to understand relationships between and among the primary activities which are being realized by each sector within the scope of their GHG emissions. According to the preprocessing methodology presented in journal article, A Survey on Pre- Processing Techniques: Relevant Issues in the Context of Environmental Data Mining, in order to effectively employ datamining and analysis on the raw data the following steps were implemented (Gibert, Sànchez–Marrè, & Izquierdo, 2016):  Creation of working data matrix  Data preprocessing  Expert Based Variable Selection, Missing Data, Treatment of Outliers, Derivation of New Variables: Indicator Variables  Data Mining  Hierarchical Clustering, Class profiling, Inferential Statistical Tests  Principle Component Analysis  Post processing  Territorial visualizations The flowchart presented in Figure 6.1 outlines the pre-processing process which was applied in this report and will be explained in further detail throughout this section (Gibert, Sànchez–Marrè, & Izquierdo, 2016). Figure 6.1 pre-processing process (Gibert, Sànchez–Marrè, & Izquierdo, 2016). 20 6.1 Preprocessing of Data Data pre-processing techniques were employed on the working data matrix derived from the metadata. First data cleaning and data preparation was carried out in which the working data matrix was further cleaned during an expert based variable selection process. Then identification and treatment of missing data and outliers was carried out in order to create a complete working data matrix in which further data preprocessing could be employed (Gibert, Sànchez–Marrè, & Izquierdo, 2016) 6.1.1 Creation of Working Data Matrix The GHG reporting inventories were downloaded from the USEPA’s GHGRP website in which the metadata obtained was found on separate Excel spreadsheets for each of the three years and within those spreadsheets, multiple sheets contained different types of data. Data from RY2010 until RY2018 was available, therefore the most recent reporting year, RY2018 was chosen. In order to not exceed the amount of allowable data which RStudio could process, it was decided that the data would be analyzed on a three year-basis therefore choosing RY2015 and RY2012. The data from RY2012, RY2015, and RY2018 was compiled and joined in order to create one working data matrix (USEPA, 2020). 6.1.2 Expert Based Variable Selection During the creation of the working data matrix phase, the metadata was analyzed in order to determine which rows and columns will be kept for pre-processing and then the variables which were chosen were classified in three major types: geographical location, emissions, and industries/sectors (Gibert, Sànchez–Marrè, & Izquierdo, 2016) The meta data was downloaded from USEPA’s GHGRP website in which the attributes pertaining to facility location, facility emissions and facility industry segment and sector were preserved and chosen to be analyzed for each reporting year, RY2012, RY2015 and RY2018. Emissions totals were reported in two ways where the total GHG emissions were represented by the chemical constituents reported in CO2-eq of each constituent as well as by total GHG emissions by sector type as a large majority of the facilities were considered in more than one sector. As the total emissions were reported in two different ways, this information was considered redundant and it was decided that the total emissions by chemical constituent would be considered for analysis. The only geographic information which was preserved for analysis was State, Longitude and Latitude of the facility, while miscellaneous geographic information such as address, city, and zip code were disregarded. 21 6.1.3 Missing data In order to preform accurate analysis on the data, identification of missing data within the dataset must be determined. Missing data can be of three types: random missing, non-random missing, and non-applicable values. It is important to treat missing data before further data processing in order to avoid systematic errors in the results and analysis (Gibert, Sànchez–Marrè, & Izquierdo, 2016) (Gibert, Mixed Intelligent-Multivariate Missing Imputation, 2008). The working data matrix was scanned and analyzed for any missing data values which might appear as an empty space in the Excel matrix. The missing data which was found included no data entry for certain GHG emissions at numerous facilities as well as no entry for geographical coordinates at a few facilities. Further investigation into the missing emission data indicated that when there was no entry for a chemical constituent, these emissions were not reported or nonexistent for various reasons. It was determined that all missing emission data signified no existing emissions for that chemical constituent and the empty entry in the working data matrix was replaced with a “0” to represent non-existent emissions. According to the GHGRP Help Desk, one reason for missing data is that it has not been published due to confidentiality concerns, hence these elements are considered “confidential business information” or CBI (GHGRP, 2015). However, GHG emissions are classified as “Emission Data” and “cannot be afforded the protections of Confidential Business Information” and therefore cannot be excluded in GHG annual reporting and non-entries in emission data signify non-existent emissions or “0” tpy of emissions (USEPA GHGRP, 2018). Furthermore, supporting that the missing emission data is equal to zero emissions is consistent with the data verification process executed by the EPA. “EPA verifies all annual GHG reports submitted under the program through a combination of electronic and manual checks” and shown in Figure 6.2 (GHGRP, 2015). Therefore, the missing data for these attributes are considered as non-applicable values. These attributes are quantitative, meaning that emissions are nonexistent for that chemical constituent and the missing data was treated by substituting empty entries for “0” which in quantitative terms equals zero emissions. Figure 6.2: The GHGRP Report verification process (GHGRP, 2015) 22 Missing data was also found in several facilities in which Latitude and Longitude coordinates were nonexistent and empty entries in the working data matrix were found. An interesting observation was that missing geographic coordinates only existed in the RY2018 data set and therefore the missing data was considered random in this year’s dataset as facilities from various random states were found to have missing geographic coordinates. In each case where missing geographic coordinates were found; the state was reported and therefore could be used to estimate the geographic coordinates of that emission point source. Each state’s average geographic coordinates were found in which geographic coordinates were missing and the average geographic coordinates were substituted where there was missing data. In order to account for this discrepancy in the missing geographical coordinates of RY2018, the average geographical coordinates of each state was replaced where an empty value appeared, therefore the new geographical coordinates of the previously missing data was found to be in the average location of the state where the facility was located in, thus preserving the state of the facility while accounting for the missing geographic coordinates. Here the technique to treat the missing data substituted the value of the geographical coordinate of the global mean of the specific state which the facility was located as the state was reported for each facility where missing geographical data was found (Gibert, Sànchez–Marrè, & Izquierdo, 2016). 6.1.4 Treatment of Outliers Outliers within a dataset must also be identified and treated in order to effectively create a working data matrix which is contains quality data and therefore can yield quality results during the data mining process. Outliers can be detected using univariate analysis tools such as histograms and boxplots in which the data’s distribution is found and outliers can be identified based on their relationship with the majority of the data. An outlier can be found by identifying data points outside of the whiskers of the interquartile range of a boxplot (Gibert, Sànchez–Marrè, & Izquierdo, 2016).. The working data matrix of the USEPA’s GHG emission inventories for RY2012, RY2015 and RY2018 was determined to not follow a normal distribution, instead a distribution which had a strong skew right to higher emission values was found. Based on the skewedness of this distribution, the large majority of facility emissions were found within the interquartile range of each emission boxplot, however numerous outliers were identified outside of the interquartile range whiskers which signified that numerous facilities had large quantities of emissions outside of what was statistically expected. These outliers were identified as extreme values and were important to the overall data set. Furthermore, the working dataset can be considered to have an exponential distribution so therefore removal of a data point would interfere with the data’s exponential nature. As facilities which were found to be the largest polluters were considered outliers, these facilities were most influential in contributing to climate change and analysis of their emissions is fundamental in understanding the GHG emission inventories. 23 As hierarchical clustering was chosen to be applied, outliers were not removed as hierarchical clustering offers a robust method of clustering in terms of presence of outliers, therefore eliminating the need to remove extreme outliers (Gibert, Sànchez–Marrè, & Izquierdo, 2016). Additionally, as the condition of a datapoint observed as an outlier is dependent on whether the data is analyzed in a unidimensional or multidimensional way, therefore outliers which may not have been apparent may be observed during the analysis process, or datapoints which may have been considered outliers are no longer observed as an outlier with further analysis. It was determined throughout the analysis process of emissions that facilities with extreme CO2-eq emission quantities were not considered outliers as the data they provided was fundamental in understanding and analysis the GHG emission profiles of the United States (Gibert, Sànchez– Marrè, & Izquierdo, 2016). 6.1.5 Derivation of New Variables: Indicator variables When a variable’s attributes are presented in a list form, this indicates that this variable cannot be effectively analyzed without further treatment of the list in which each list item can be seen as an attribute and can be presented as an indicator variable through a dummy analysis. Binary indicators of each indicator variables can be created using logical conditions where if the indicator variable contains the list attribute a “Yes” can be substituted, and if not, a “No” can be substituted therefore expanding each list item to a new indicator variable with a binary value (Gibert, Sànchez–Marrè, & Izquierdo, 2016) A dummy analysis was performed on classification attributes when one facility could be assigned more than one classification which occurred when the data presented itself in a list form for each facility. The two attributes which a dummy analysis was performed were Facility Sector as well as the Title 40 Part 98 Regulatory Subpart Industry the facility was subject to reporting under. In both of these cases, one facility could be part of more than one sector and one facility could be subject to reporting under more than one regulatory subpart. Therefore, each list was expanded and each individual sector and subpart became its own individual variable in a “Yes” and “No” format for each facility. Sixteen different sectors types were identified which can be found in Table 4.2 while 54 different subparts which were identified by the industry they regulate were identified and can be found in Appendix A. This indicator variable analysis lead to the creation of 70 new variables which contained binary data consisting of two groups, Sectors and Regulatory Subpart Industries where each group could be analyzed as a whole. 6.2 Data Mining Once the working data matrix was preprocessed, data mining could be applied in which the data matrix was uploaded into the software package RStudio for data mining and analysis where all R code further described in this section can be found in Appendix B (RStudio Team, 2020). 24 Data mining techniques such as hierarchical clustering, class profiling, statistical analysis and principle component analysis were then applied on GHG emission inventory data from RY2012, RY2015 and RY2018 (Gibert, et al., 2018) . 6.2.1 Hierarchical clustering Clustering is an effective data mining tool in which various methodologies exist depending on the dataset used. As the GHG emission inventory data was comprised of mixed data being made up of qualitative and quantitative variables, a clustering method which can be applied on a mixed dataset must be chosen. (Gibert, et al., 2018). Various clustering methodologies exist in which one clustering technique may be suited for certain types of data over others. Hierarchical clustering was chosen as this is a clustering technique which is well suited for large datasets with number of Classes being an output (Gibert, et al., 2018). Hierarchical clustering was performed on the complete data set consisting of RY2012, RY2015, and RY2018 where all attributes were considered including geographical data, sector and industry classification data and emissions data. All variables have been used for the hierarchical clustering in order to find patterns within the dataset, avoiding to make any preconceived conclusions. The software package RStudio was used to perform the hierarchical clustering methodology. To determine the clusters, first Gower’s distance was applied. As the dataset contains mixed variables, both numerical and qualitative data, Gower’s distance metric is used to estimate the distances between entities as this method is robust and has the capability of evaluating mixed data sets. The distances between entities are calculated differently depending whether the attribute is qualitative or quantitative (Gibert, Nonell, Belarde, & Colillas, 2005). Once Gower’s distance was applied, Ward’s method for hierarchical clustering is used which is considered a robust hierarchical clustering method. First, each point in the data set is considered as one cluster, starting with n clusters. For each step, the two clusters that results in the minimum total increase of within variance are merged where like elements, or the error sum of squares is minimized which is considered the minimum variance method. The increase responds to the squared distance between the centers of the clusters. This process is then repeated and the variance within the clusters is minimized (Gibert, et al., 2018). A dendrogram is obtained in which the hierarchical clusters can be visualized. The dendrogram is a diagram that shows the hierarchical relationship, the most similar data are grouped among the closest ones, forming groups. The main use of a dendrogram is to work out the best way to allocate objects to clusters. The dendrogram can then be cut where the longest legs appear which reveals a natural categorization or classification within the dataset. From the cut dendrogram, each cut leg is divided into a class where class profiling can be carried out where each class is analyzed for its attributes which separate it from the rest (Gibert, et al., 2018). 25 6.2.2 Class Profiling Once classes are obtained from hierarchical clustering, the classes themselves can be profiled in which relevant characteristics in each cluster are identified and distinguishing characteristics can be extracted and the statistical significance of each characteristic in the classes can be determined (Gibert, et al., 2019) Visualization and statistical tests were used to determine the characteristics and features in each distinguishing class. Visual assessments with histograms and class panel graphs was performed for each variable in the working data matrix in regards to each class obtained in which the dominance of variables in classes could be observed and further analyzed. For quantitative variables, bar charts of local global and local means were used while for qualitative variables line charts of global and local proportions were used in order to determine the dominating variables of each class (Gibert, et al., 2018). In order to determine the statistical significance of these observations, some statistical tests were performed as well which is further explained in section 6.3.3. 6.2.3 Inferential tests associated to profiling process In order to determine if the observations made during the visual assessments of determine the dominating variable in each determined class were statistically significant, a serious of statistic tests were performed on each variable. Qualitative and quantitative variables were approached differently in terms of statistical analysis. For qualitative variables, a Pearson’s Chi-Squared Test was used while for quantitative variables, a Kruskal–Wallis H test was applied. The Pearson’s Chi-Squared test is a statistical test which can be applied to categorical data, and therefore can be applied on the industries and sectors variables to test their statistical significance on each class in which the likelihood that any observable difference occurred by chance is evaluated (Chachura, 2018). Degree of freedom in the Pearson’s Chi-Squared test is determined by n-1, in which the degree of freedom is one less than the number of categories (Chachura, 2018) (Lebart, Piron, & Morineau, 2000). A null hypothesis and alternative hypothesis can be chosen where the null hypothesis states that the frequency of observations of the variable in a sample is consistent with the population and the alternative hypothesis states that the frequency of observations of a variable in a sample is statistically different than the population. An alpha value can be chosen which can be compared to the p-value output of the Pearson’s Chi-Squared test in order to determine the statistical significance of the result. Generally alpha values of 0.05 or 0.1 are chosen which signify high confidence in the outcome of the test. If the p-value is less than alpha, the null hypothesis can be rejected and the alternative hypothesis can be accepted signifying that there is statistical significance in the distribution in comparison to other classes (Ling UPenn, 2008) (Lebart, Piron, & Morineau, 2000). 32 7.2 Evolution of Geographic Distribution over Time Geographical analysis was performed on the dataset in order to determine the geographic distribution of emissions throughout the United States. First, emissions on a statewide basis was taken into account for each reporting year, RY2012, RY2015, and RY2018. It was found that Texas was the highest polluter with increasing emissions from RY2012 to RY2018 and accounted for 15% of overall United States emissions for years RY2012, RY2015, and RY2018. Although GHG emissions were found to have a decreasing trend from RY2012 to RY2018, it was found that Texas’s GHG emissions increased 10% from RY2012 to RY2018 as seen in Figure 7.6. Figure 7.6: Cumulative CO2-eq Emissions by State in MMTPY The geographical distribution of facilities for the most recent reporting year, RY2018 was found as seen in Figure 7.7. Facilities with a larger amount of CO2-eq emissions are displayed in a darker red and a larger circle while facilities with a smaller amount of CO2-eq emissions are displayed in lighter colors and smaller circles. This visualization can determine where the highest CO2-eq emission potency can be found in the United States. It appears that the majority of the nation’s CO2-eq emissions are concentrated in the South and Midwestern states such as Texas, Georgia, Kentucky, Indiana, and West Virginia. There is a high concentration of smaller emitting facilities in the New England states such as New Jersey, New York, Pennsylvania, and Massachusetts. Western states such as Nevada, Idaho, and Oregon have low concentration of facilities and facilities with low emissions. 0 100 200 300 400 500 600 TX IN LA FL PA OH IL CA KY AL MI OK WV MO GA CO WY NC AZ IA WI TN AR VA MN NY ND KS UT SC MS NM NE NJ MD WA MT AK NV PR MA OR CT HI DE SD ID ME NH RI GU VI VT DC CO2-eq Emissions (MMTPY) Cumulative CO2-eq Emissions by State 2012 2015 2018 33 Figure 7.7: GHG Emissions Potency RY2018 The change in a facility’s emissions was also determined geographically as seen in Figure 7.4. Here, the emission change from RY2012 to RY2018 is represented where an increase in emissions is displayed as a dark red circle while a decrease in emissions is displayed as a green circle, additionally, the larger the change in emissions the larger the circle. As previously discussed, overall emissions in the United States decreased from RY2012 to RY2018 which can be seen by the dominance of green facility markers over red markers. However, Texas was found to have the largest increase of emissions over the 6-year time frame which can be observed in Figure 7.8. Figure 7.8: Changes in GHG emissions from RY2012 to RY2018 A further study of the facilities which were new to operation or retired from operation during RY2012 through RY2018 was also performed. It was determined that 1,654 facilities were retired 34 from operation from RY2012 to RY2018 while 1,409 facilities commenced operation during the same timeframe. Table 7.3: Number of New and Retired Facilities from RY2012 to RY2018 Number of New and Retired Facilities from RY2012 to RY2018 Retired Facilities New Facilities 1,654 1,409 A geographical visualization of the new and retired facilities was performed using QGIS and can be seen in Figure 7.9. The majority of the regions of the United States are dominated by more retired facilities than newly commenced facilities, however there are a few regions which have more new facilities than retired facilities. This can be seen in North Dakota for example, a state which onshore oil and gas in the form of hydraulic fracturing has taken off over the last decade. A high concentration of new facilities can also be found in Texas and the Gulf of Mexico, regions which are also prominent in oil and gas production and related activities. Figure 7.9: New and Retired Facilities from RY2012 to RY2018 35 7.3 Evolution of NAICS Industries over Time The North American Industry Classification System (NAICS) is a classification standard used across all industrial facilities in order to classify the activities carried out at the facility. One facility can only have one NAICS classification therefore making it an effective way to analyze the GHG emission dataset from all industrial facilities on a whole. The count of each NAICS industry was determined for each of the three reporting years. It was found that Solid Waste Landfills was the most common NAICS industry for all three years analyzed, RY2012, RY2015 and RY2018 with a downward trend in the number of facilities reporting under Solid Waste Landfills during this timeframe. The next three most common NAICS industries found within the dataset fell within petroleum and natural gas segments including Crude Petroleum and Natural Gas Extraction, Oil and Gas Activities, and Pipeline Transportation of Natural Gas. The number of facilities classified under NAICS industry Crude Petroleum and Natural Gas Extraction decreased in RY2018, however, there was a steady increasing tread in the number of facilities reporting under NAICS industries Oil and Gas Activities and Pipeline Transportation of Natural Gas as seen in Figure 7.10. Figure 7.10: Count of NAICS Industry Classification A geographical visualization of NAICS industry on the most recent data, RY2018, was performed using QGIS and can be seen in Figure 7.11. The three petroleum and natural gas segments mentioned previously: Crude Petroleum and Natural Gas Extraction, Oil and Gas Activities, and Pipeline Transportation of Natural Gas can be seen as the red markers on the map. A high concentration of facilities with these three petroleum and natural gas segment NAICS industries can be found in North Dakota, Texas and the Gulf of Mexico which is consistent of the locations of high-density new facilities brought on during the time frame in study. The green markers 0 500 1000 1500 2000 2500 3000 Solid waste landfill Crude Petroleum and… Oil and gas activities Pipeline Transportation… Chemical manufacturing Metal and mineral… Food Industry Paper and glass… Natural Gas Liquid… Ethyl Alcohol… Science and medical… Mining activities Petroleum Refineries Electrical power… Equipment manufacturing Waste treatment… Plastic Manufacturing Other manufacturing Other Agriculture Industry HVAC activities Transportation activities Electrical power… Count of Reporting Facilities Under NAICS Category RY2012 RY2015 RY2018 36 represent NIACS industries, Waste Treatment Activities and Solid Waste Landfill which both belong to the waste segment. A high concentration of waste related facilities can be found in higher density population areas of the United States, such as New England, Florida, Michigan and California. Lower population density states such as Montana, Idaho, and Alaska have fewer facilities dedicated to the waste industry. Another trend which was found was a high concentration of Ethyl Alcohol Manufacturing facilities, represented in the white marker as well as Food Industry facilities, represented by the yellow marker, in the midwestern states such as Minnesota, Wisconsin, and Iowa. Figure 7.11: NAICS Industry Classification of RY2018 Facilities 7.4 Evolution of Sectors over Time A sector analysis was performed in order to determine if there were any emission trends among sectors. There was a total of 16 unique sectors, where one facility could be part of more than one sector based on the activities carried out on site. Table 7.4 shows the total number of instances a facility belongs to more than one sector per reporting year, where it was found that there was an average of 772 instances where a facility belongs to more than one sector over the three reporting years analyzed. 37 Table 7.4: Number of Instances a Facility Belongs to More Than One Sector Reporting Year Total Number of Facilities Total Number of Instances a Facility Appears in a Sector Total Number of Instances a Facility Belongs to More Than One Sector RY2012 7,914 8,705 791 RY2015 8,053 8,844 791 RY2018 7,780 8,515 735 The Power Plant Sector was determined to have the largest amount of cumulative emissions in all three reporting years with a downward trend in CO2-eq emissions from RY012 to RY2018. Sectors such as Natural Gas and Natural Gas Liquid Suppliers, Industrial Gas Suppliers, Injection of CO2, Import and Export of Equipment Containing Fluorinated GHGs, and Coal-based Liquid Fuel Supply were found to have the smallest amount of cumulative CO2-eq emissions on a sector wide basis as seen in Figure 7.12. Figure 7.12: Cumulative CO2-eq Emissions Per Sector In order to determine which sectors have the highest amount of CO2-eq emissions on a facility basis, the average amount of emissions per facility in each sector was determined. It was found that the Coal-based Liquid Fuel Supply Sector had the largest amount of CO2-eq emissions per facility, this was because in all three reporting years only one facility reported under this sector meaning that only one facility is responsible for all emissions from the Coal-based Liquid Fuel Supply Sector where emissions increased from RY2012 to RY2018. The Power Plant Sector is responsible for the largest amount of cumulative CO2-eq emissions when looking at the sector as a whole, however when averaging out the GHG emissions per each facility in each sector, the each facility in the Power Plant Sector was responsible for a comparable amount of emissions as each facility in the Refineries Sector, and Petroleum Products Suppliers Sector as seen in Figure 7.13. On a per facility basis, the Import and Export of Equipment Containing Fluorinated GHGs Sector was responsible for the least amount of emissions. 0 500,000,000 1,000,000,000 1,500,000,000 2,000,000,000 2,500,000,000 CO2-eq Emissions (tpy) Cumulative CO2-eq Emissions per Sector 2012 2015 2018 38 Figure 7.13: Average CO2-eq emissions per facility in each sector A geographical analysis was performed on the sectors for the most recent reporting year, RY2018 using QGIS as seen in Figure 7.14. The most interesting sectors based on the cumulative emissions of each sector and average emissions of each facility per sector were highlighted in order to understand the geographical trend of the most important sectors in the United States. The one facility belonging to the Coal-based Liquid Fuel Supply Sector was found in North Dakota and represented by the dark blue circle. The Power Plant sector, which was responsible for the largest amount of cumulative emissions in the United States could be found in every state with a high concentration in the Eastern United States such as New England and Florida as well as the West such as California as seen by the red markers which are regions with a higher density of population. An interesting trend was found when graphing the Refineries Sector and The Petroleum Product Suppliers sector in which the majority of the facilities classified as being part of the Refineries Sector were also part of the Petroleum Product Suppliers Sector 0 500,000 1,000,000 1,500,000 2,000,000 2,500,000 3,000,000 3,500,000 4,000,000 4,500,000 Average CO2-eq Emissions (tpy) Average emissions per facility in each sector 2012 2015 2018 39 Figure 7.14: Geographical Distribution of Sectors Throughout the United States for RY2018 It was determined that the majority of the facilities classified as the Refineries Sector were also classified as the Petroleum Product Suppliers Sector as seen in Table 7.5. There was an average of 144 facilities classified as the Refineries Sector while there was an average of 127 facilities classified as the Petroleum Product Suppliers Sector over all three reporting years analyzed. An average of 23 facilities over the three reporting years were classified as only reporting under the Refineries Sector while an average of 7 facilities over the three reporting years were classified as only reporting under the Petroleum Product Suppliers Sector and an average of 121 facilities reporting under both sectors. This accounted for an average of 84% of facilities classified under the Refinery sector also being classified under the Petroleum Product Suppliers sector and an average of 95% of facilities classified under the Petroleum Product Suppliers Sector also being classified under the Refineries Sector. Table 7.5: Correlation between Refineries Sector and Petroleum Product Suppliers Sector Reporting Year Facility Only Refineries Sector Facility Only Petroleum Product Suppliers Facility Both Sectors % of Refineries also Petroleum Product Suppliers % of Petroleum Product Suppliers also Refineries RY2012 26 8 121 82% 94% RY2015 23 6 121 84% 95% RY2018 20 6 120 86% 95% 40 7.5 Evolution of Regulatory Subparts Industries over Time An analysis the regulatory subpart corresponding to the industry the subpart regulates was performed in order to determine if there were any emission trends among regulatory subpart. Industries. There was a total of 54 unique regulatory subparts which regulates emissions from specific industries relating to that unique subpart, where one facility could be subject to report under more than one subpart based on the activities carried out on site. Table 7.6 shows the total number of instances a facility belongs to more than one subpart per reporting year, where it was found that there was an average of 4,832 instances where a facility belongs to more than one subpart over the three reporting years analyzed with one facility being subject to an average of 1.6 regulatory subparts. Table 7.6: Number of Instances a Facility Belongs to More Than One Regulatory Subpart Reporting Year Total Number of Facilities Total Number of Instances a Facility Appears in a Subpart Total Number of Instances a Facility Belongs to More Than One Subpart RY2012 7,914 12,725 4,811 RY2015 8,053 12,906 4,853 RY2018 7,780 12,613 4,833 It was found that Stationary Combustion and Electricity Generation were the two largest cumulative emitters when looking at the USEPA regulations for each subpart. Stationary Combustion includes all combustion engines which are used across the board in industrial and manufacturing practices and are regulated by Title 40 Subpart C. Electricity generation had the second highest amount cumulative CO2-eq emissions with both Stationary Combustion and Electricity Generation having a downward trend of decreasing emissions from RY2012 to RY2018 as seen in Figure 7.15. Figure 7.15: Cumulative CO2-eq Emissions for Top 8 Regulatory Subparts 0 500,000,000 1,000,000,000 1,500,000,000 2,000,000,000 2,500,000,000 CO2-eq Emissions (tpy) Cumulative Emissions for Top 8 Subparts 2012 2015 2018 41 The average amount of emissions for each facility reporting under each individual subpart were also found in order to determine which subpart regulating industry had the largest amount of emissions on a facility basis. It was determined that Electricity Generation had the largest amount of emissions on average per facility followed by Industrial Waste Landfills and Hydrogen Production. Although Stationary Combustion had the largest cumulative emissions across subparts, when looking at an average emissions per facility basis, Stationary Combustion came in as the 17th largest emitter on a per facility basis as seen in Figure 7.16. Another interesting trend was observed, as mentioned previously, emissions from RY2012 to RY2018 overall decreased, however, there were several industry regulated subparts in which emissions increased during this time frame such as Hydrogen Production, Adipic Acid Production, Titanium Dioxide Production, Nitric Acid Production, Lead Production, Magnesium Production, and Carbon Dioxide (CO2) Supply. There were also a couple of industry regulated subparts which had a large decrease in emissions from RY2012 to RY2018 including Fluorinated GHG Production and Natural Gas Liquids Fractionator. Figure 7.16: Average emissions per facility based on industrial subpart 0 5000000 10000000 15000000 20000000 25000000 Electonic_Manu Cement_Produc Silicon_Produc Ammo_Manufac Petr_NatGas_Stor NatGas_Fract FluoGHG_Produc CO2_Supp Magn_Produ Supp_Coal_Fuels Petr_Trans_Pipe Alum_Produc Petr_Produ Lead_Produc Indu_WW_Treatm Stat_Comb HCFC_Prod_Destruc Zinc_Production Soda_Manufa Muni_Landf Lime_Produc Geo_Seq_CO2 Tita_Produc Nitr_Produc Petr_Natgas_Dist Adip_Produc NatGas_Dist Manu_Elec Inj_CO2 H2_Produc Ind_WastLandf Elec_Gen Average Cummulative Emissions Per Facility for Subpart 2012 2015 2018 48 Class 2 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.22 CO2-eq emissions and changes from RY2012 to RY2018 for Class 2 7.7.1.3 Class 3: Natural Gas Processing and Transportation The changes in CO2-eq emissions for Class 3: Natural Gas Processing and Transportation from RY2012 to RY2018 were visualized in Figure 7. 23. It was observed that the majority of facilities of Natural Gas Processing and Transportation increased emissions from RY2012 to RY2018 was seen by the prevalence of red markers in the change map. The increase in Natural Gas Processing and Transportation activities was especially seen in Texas and the Gulf of Mexico, New England states such as Pennsylvania as well as Ohio and North Dakota. Texas and the Gulf of Mexico are well known oil and gas producing regions while New England states such as Pennsylvania also have known oil and gas reserves. As mentioned previously in this report, North Dakota has been a hot spot for hydraulic fracturing activities which also explains this increase. A decrease in Natural Gas Processing and Transportation emissions was observed in Southern California and the North Slope of Alaska. The geographic locations of Natural Gas Processing and Transportation facilities would be determined where natural gas reserves can be found as seen by the high density of Natural Gas Processing and Transportation facilities in Texas, the Gulf of Mexico, North Dakota and New England where the majority of emissions from Natural Gas Processing and Transportation facilities were found to be in the Gulf of Mexico and Texas. Another interesting observation was that there appeared to be “strings” of Natural Gas Processing and Transportation facilities in which a line of facilities was observed. This was found from North Carolina to Alabama, as well as North Dakota to Iowa. This ordered geographic distribution of Natural Gas Processing and Transportation facilities could be representing the transportation segment of natural gas which would include natural gas transmission and compression which is needed to transport the fuel and an activity found in this class. 49 Class 3 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.23 CO2-eq emissions and changes from RY2012 to RY2018 for Class 3 7.7.1.4 Class 4: Power Plants and Electricity Generation The changes in CO2-eq emissions for Class 4: Power Plants and Electricity Generation from RY2012 to RY2018 were visualized in Figure 7. 24. It was observed that the majority of facilities in Power Plants decreased emissions from RY2012 to RY2018 as seen by the prevalence of darker green markers, however there also were areas where an increase of emissions was observed as seen by the prevalence of red markers in the Southern United States and parts of New England in the Change Map. A similar trend of the location of Power Plant facilities correlating with states with higher population density was observed where emissions were concentrated in higher population density regions of the United States. States with lower populations such as Montana, Idaho and Alaska had less Power Plant facility emissions while more populous states such as Texas, Florida, and New England states such as New York had a larger amount of Class 4 facility emissions. This would be expected as a larger population would have an increase in demand for power generation where lower population areas would have a smaller need for power. 50 Class 4 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.24 CO2-eq emissions and changes from RY2012 to RY2018 for Class 4 7.7.1.5 Class 5: Mineral Activities The changes in CO2-eq emissions for Class 5: Mineral Activities from RY2012 to RY2018 were visualized in Figure 7. 25.It was observed that a larger number of facilities increased emissions than decreased emissions as seen by the prevalence of dark red markers in the Change Map. The geographical location of facilities classified as Mineral Activities seemed to be less correlated with population density in comparison to the previous classes discussed as seen by a more even spread of emissions from Mineral Activities facilities throughout the United States, however there did seem to be a slightly higher density of Mineral Activities facilities in the north eastern United States. No Mineral Activities facilities were found in Alaska or Hawaii. The geographic location of Mineral Activities in the United States would be depended on the location of the minerals processed at the facility opposed to demographics which is why it can be expected that the location of Mineral Activities facilities does not follow the population density trend. Class 5 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.25 CO2-eq emissions and changes from RY2012 to RY2018 for Class 5 51 7.7.1.6 Class 6: Chemical Activities The changes in CO2-eq emissions for Class 6: Chemical Activities from RY2012 to RY2018 were visualized in Figure 7. 26. It was observed that the majority of facilities found in the Chemical Activities class had little change from RY2012 to RY2018 as seen by the prevalence of small tan circles, however there was a region in the coastline of the Gulf of Mexico which an increase of activity from Chemical Activities in the 6 year time frame was observed in the Change Map. Chemical Activities overall observed the largest emissions increase in comparison to all other classes from RY2012 to RY2018. There was a greater amount of Chemical Activities facilities found in the eastern United States in comparison to the western United States with high density pockets of Chemical Activities facilities which were found along the coastline of the Gulf of Mexico, New Jersey, and near the Great Lakes in Illinois, however the geographic distribution of these facilities was more evenly spread out across the United States in compared to other classes. The Gulf of Mexico saw the largest amount of emissions from Chemical Activities. Class 6 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.26 CO2-eq emissions and changes from RY2012 to RY2018 for Class 6 7.7.1.7 Class 7: Metal Activities The changes in CO2-eq emissions for Class 7: Metal Activities from RY2012 to RY2018 were visualized in Figure 7. 27. Metal Activities observed an overall decrease in emissions, however when taking into account individual facilities, the majority of Metal Activities facilities slightly increased emissions as seen by the prevalence of small light red circles. In order to account for the overall decrease of emissions of Metal Activities facilities, one facility was observed to have a substantial decrease in emissions nearly double that of the facilities with the largest increase of emissions. High density regions of Metal Activities facilities could be found in the midwestern states such as Michigan, Indiana, Ohio and Pennsylvania, additionally this is where the largest amount of emissions from this class could be found. These midwestern states are known to be more industrial so it would make sense that chemical activities would be found in regions of the United States with larger amount of industrial activity. No Metal Activities facilities were found in Alaska or Hawaii. 52 Class 7 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.27 CO2-eq emissions and changes from RY2012 to RY2018 for Class 7 7.7.1.8 Class 8: Pulp and Paper Manufacturing The changes in CO2-eq emissions for Class 8: Pulp and Paper Manufacturing from RY2012 to RY2018 were visualized in Figure 7.28. It was observed that Pulp and Paper Manufacturing overall decreased emissions from RY2012 to RY2018, however the majority of facilities in the class had a slight increase of emissions as seen by the small light red marker, however the facilities which decreased emissions did so on a much larger scale outweighing the amount of facilities which increased emissions in Pulp and Paper Manufacturing Pulp and Paper Manufacturing facilities were found in the eastern half of the United States and the west coast, however several western states such as Montana, North Dakota, Wyoming, South Dakota, Nebraska, Colorado and New Mexico did not have any Pulp and Paper Manufacturing facilities present. The majority of emissions from Pulp and Paper Manufacturing were found along the East Coast of the United States with a small pocket of emissions in Washington state and Oregon. No Pulp and Paper Manufacturing facilities were found in Alaska or Hawaii. Class 8 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.28 CO2-eq emissions and changes from RY2012 to RY2018 for Class 8 53 7.7.1.9 Class 9: Petroleum Refineries and Petroleum Products The changes in CO2-eq emissions for Class 9: Petroleum Refineries and Petroleum Products from RY2012 to RY2018 were visualized in Figure 7.29. An overall increase in emissions was observed in Petroleum Refineries from RY2012 to RY2018. Although there was a larger majority of facilities which reported a decrease in emissions on this time frame, the facilities which increased in emissions did so on a much larger scale as seen by the two large dark red markers in Texas and California. The geographic distribution of Petroleum Refineries contrasted that of population density where New England states had a lower density of Petroleum facilities and Western states had a higher density of Class 9 facilities. The most concentrated area of Petroleum Refineries facilities was found in the coastline of the Gulf of Mexico including Texas and Louisiana, which would be expected as the Gulf of Mexico is a known region for oil and gas activities including petroleum refineries. There were a few Petroleum Refineries facilities found in Alaska, however no Petroleum Refineries facilities were found in Hawaii. Class 9 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.29 CO2-eq emissions and changes from RY2012 to RY2018 for Class 9 7.7.1.10 Class 10: Onshore Petroleum and Natural Gas Production and Crude Oil and Gas Extraction The changes in CO2-eq emissions for Class 10: Onshore Petroleum and Natural Gas Production and Crude Oil Gas Extraction from RY2012 to RY2018 were visualized in Figure 7. 30. Onshore Petroleum and Natural Gas Production observed the largest increase of emissions from RY2012 to RY2018 which can be explained by the few facilities which greatly increased emissions at orders of magnitudes larger in comparison to the majority of facilities which slightly decreased emissions. As mentioned, the majority of Onshore Petroleum and Natural Gas Production facilities slightly decreased emissions, however there were a few facilities with very large emission 54 increases which were found throughout Texas as well as Colorado, North Dakota California, and Alaska. The geographic distribution of Onshore Petroleum and Natural Gas Production facilities appeared to be more evenly spread out through the United States with high density regions in New England, Texas, North Dakota, Colorado, Oklahoma and California. As Class 10 includes onshore oil and gas production and extraction, the location of these facilities would be expected where onshore oil wells are located which are also known as hydraulic fracturing facilities. North Dakota saw an oil boom over the last decade due to its underground oil reserves which require hydraulic fracturing to extract which would explain the increase of GHG emissions. Texas is also a state with known underground oil and gas reserves as well. A hydraulically fractured well generally only has a productive lifespan of a few years so therefore the facilities which decreased emissions could be explained by older wells while the facilities which increased emissions can be explained by new hydraulically fractured wells over the timeframe. Class 10 Emissions RY2018 Change from RY2012 to RY2018 Figure 7.30 CO2-eq emissions and changes from RY2012 to RY2018 for Class 10 55 7.6.2 Profiling of Emissions for Classes The cumulative amount of CO2-eq emissions was determined for each class as seen in Figure 7.31. It was determined that Class 4: Power Plants and Electricity Generation had the largest amount of CO2-eq emissions with a decreasing trend in emissions from RY2012 to RY2018 with an being responsible for an average of 62% of nationwide GHG emissions in the United States. Class 8: Pulp and Paper Manufacturing was responsible for the smallest amount of CO2-eq emissions accounting for an average of 1% of CO2-eq across the United States as seen in Table 7.11. Figure 7.31. Cumulative CO2-eq emissions by Class Table 7.11. Percentage of CO2-eq Emissions by Reporting Year for Each Class Percentage of Emissions by Reporting Year in Each Class Class RY2012 RY2015 RY2018 Class 1 5% 5% 5% Class 2 4% 5% 4% Class 3 4% 4% 4% Class 4 64% 63% 59% Class 5 3% 4% 4% Class 6 6% 6% 6% Class 7 4% 3% 3% Class 8 2% 1% 1% Class 9 5% 5% 6% Class 10 3% 4% 7% The average amount of CO2-eq emissions per facility for each class was also determined in order to determine which class on a per facility basis had the largest amount of GHG emissions. It was determined that Class 4: Power Plants and Electricity Generation and Class 9: Petroleum Refineries and Petroleum Products had the largest amount of emissions on a per facility basis, - 500,000,000 1,000,000,000 1,500,000,000 2,000,000,000 2,500,000,000 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 CO2-eq emissions (tpy) Cumulative CO2-eq Emissions by Class RY2012 RY2015 RY2018 56 meaning that one facility in Class 4 has a comparable amount of emissions to one facility in Class 9 accounting for nearly 1,400,000 tpy of CO2-eq for each facility in each class. Class 3: Natural Gas Processing and Transportation had the smallest amount of emissions per facility by class accounting for nearly 100,000 tpy of emissions per facility as seen in Figure 7.32. Figure 7.32 Average CO2-eq Emissions per Facility by Class Fluorinated GHGs were analyzed by class in order to determine which classes were responsible for the majority of fluorinated GHGs as fluorinated GHGs are extremely potent GHGs with GWPs up to 22,000 times that of CO2. It was determined that four classes were responsible for all of the fluorinated GHG emissions for RY2012, RY2015 and RY2018: Class 1: Waste Activities and Solid Waste Landfills, Class 2: Other Industries including Food and Alcohol Manufacturing, and Fluorinated GHG activities, Class 6: Chemical Activities and Class 7: Metal Activities. The five fluorinated GHGs reported in the GHGRP are: HCF, PFC, SF6, NF3 and Other HFCs. Class 1 only consisted of HCF in terms of fluorinated GHGs, with HCF also being a majority emission in Class 6. SF6 and PFC were both found in Class 2, Class 6 and Class 7 while NF3 and Other HFCs were found in Class 2 and Class 6 as seen in Figure 7.33. The industries which fluorinated GHGs are a common pollutant include electronics manufacturing, magnesium manufacturing and refrigeration and HVAC activities. Figure 7.33 Fluorinated GHGs by Class for RY2012, RY2015 and RY2018 - 200,000 400,000 600,000 800,000 1,000,000 1,200,000 1,400,000 1,600,000 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 CO2-eq emissions (tpy) Average CO2-eq Emissions of Facilities in Class 2012 2015 2018 0 2,000,000 4,000,000 6,000,000 8,000,000 10,000,000 12,000,000 14,000,000 16,000,000 Class_1 2012 Class_1 2015 Class_1 2018 Class_2 2012 Class_2 2015 Class_2 2018 Class_6 2012 Class_6 2015 Class_6 2018 Class_7 2012 Class_7 2015 Class_7 2018 CO2-eq Emissions (tpy) Flourinated GHG's by Class for RY2012, RY2015, and RY2018 HFC PFC SF6 NF3 Other_HFCs 57 A comparison between CO2_fossil which is carbon dioxide originated from fossil fuel sources and CO2_bio which is carbon dioxide originating from biological sources was made as seen in Figure 7.34. The majority of CO2_bio was found in Class 8: Pulp and Paper Manufacturing signifying that Class 8 comprises of biogenic CO2 sources and does not have a large presence of fossil fuel sourced emissions. Figure 7.34 Carbon dioxide originated from fossil fuel sources and biogenic sources for RY2018 Further comparison which class was responsible for methane and nitrous oxide emissions was carried out. It was determined that Class 1: Waste Activities and Solid Waste Landfills and Class 10: Onshore Petroleum and Natural Gas Production and Crude Oil and Gas Extraction were the largest contributors of methane emissions. Methane emissions generally come from biodegradation of organic material such as waste or from fugitive emissions from pneumatic devices which are often used in the oil and gas industry segments. Class 6, and Class 1 had the largest amount of nitrous oxide emissions in which nitrous oxide is an emission common to the chemical industry and waste activities as seen in Figure 7.35. Figure 7.35. Methane and Nitrous Oxide Emissions by Class for RY2018 A final analysis was performed on the remaining emission constituents to determine if there were trends within classes as seen in Figure 7.336 It was determined the majority of HFE was found in Class 6: Chemical Activities, with a small amount of the emission found in Class 2: Other Industries. HFE is a partially fluorinated GHG which is found in refrigeration and HVAC (heating, - 500,000 1,000,000 1,500,000 2,000,000 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 CO2-eq emissions (tpy) Carbon Dioxide Fuel Origins RY2018, Average emissions per facility CO2_fossil CO2_bio - 20,000 40,000 60,000 80,000 100,000 120,000 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 CO2-eq emissions (tpy) Methane and Nitrous Oxide by Class RY2018, average emissions per facility CH4 N2O 64 7.6.5 Profiling of Regulatory Subpart Industry for Classes A similar analysis was performed on the regulatory subpart industries which each facility is subject to report under. As previously found, each facility was subject to report under an average of 1.6 regulatory subparts. As seen in Table 7.14, almost all classes, except for Class 10 had a large presence of Stationary Combustion, with Class 3, Class 5, Class 7, Class 8 and Class 9 having at least 95% of their facilities reporting under this subpart. Based on this, it can be assumed that Stationary Combustion is supporting industry. Because of the high prevalence of Stationary Combustion in the majority of the classes, analyzing each Regulatory Subpart Industry for it share among classes may be a more effective way for class profiling. Similar trends were seen when analyzing the subpart regulated industries in comparison to the Sectors and NAICS Industries. Class 1 was consistent with Waste Activities as 92% of the facilities in Class 1 report under Municipal Landfills. Class 2, on the other hand, did not have a Regulatory Subpart Industry which dominated the class besides Stationary Combustion, however when looking at each Regulatory Subpart Industry in its share among classes, the majority of facilities reporting under the following subparts could be found in this class: Manufacture of Electric Transmission and Distribution Equipment, Import and Export of Equipment Containing Fluorinated GHGs, Underground Coal Mines, Electronics Manufacture Class 3, when looking at each Regulatory Subpart Industry in its share among classes, the majority of facilities reporting under the following subparts could be found in this class: Natural Gas Processing, Natural Gas Transmission/Compression, Petroleum Offshore Production Class 4’s most dominating industry subpart was determined to be Electricity Generation with 81% of the facilities in Class 4 reporting under this subpart and 98% of facilities that report under Electricity Generation being found in Class 4. Class 5’s most dominating industry subpart when looking at each Regulatory Subpart Industry in its share among classes, included the following activities which related to the Minerals sector: Cement Production, Glass Production, Lime Production, Soda Manufacturing. Class 6’s most dominating industry subpart when looking at each Regulatory Subpart Industry in its share among classes included chemical activities such as: Ammonia Manufacturing, SF6 from Electrical Equipment, Phosphoric Acid Production, Silicon Production, Titanium Production, Fluorinated GHG Production Class 7 which was dominated by the Metals Sector was found to have 100% of the Iron Production and Ferroalloy Production facilities and 92% of Magnesium Production facilities when considering share among classes. Class 8 was found to have 100% of the Pulp and Paper manufacturing facilities when considering share among classes. 65 An interesting trend emerged in Class 9 in which at least 99% of the facilities in this class reported under the following subparts: Stationary Combustion, Adipic Acid Production, Aluminum Production, Lead Production, Petroleum Refineries, and Suppliers of Petroleum Products indicating that these 6 industrial subparts may be correlated strongly with one another. Class 10 was the only class where no facilities were subject to reporting under Stationary Combustion. Class 10 was defined by a large dominance of 60% of the facilities reporting under Onshore Petroleum and Natural Gas production which includes hydraulic fracturing activities. Other petroleum related industries also held an importance including Petroleum Natural Gas Distribution, Natural Gas Distribution, Petroleum Gathering and Boosting and Petroleum Transmission Pipelines. 66 Table 7.14 Industry Subpart and Class Analysis for Dominating Industry Subpart by Class, percent of Class facilities reporting under subpart: where the first value is % within class and second value is % among classes for each class Subpart Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 Stat_Comb 51% 11% 93% 21% 100% 25% 72% 18% 95% 6% 74% 7% 99% 5% 100% 4% 100% 2% 0% 0% Elec_Gen 0% 0% 0% 0% 0% 0% 81% 98% 0% 0% 2% 1% 0% 0% 0% 0% 3% 0% 0% 0% Adip_Produc 0% 1% 0% 0% 0% 0% 0% 0% 0% 0% 1% 3% 0% 0% 0% 0% 100% 96% 0% 0% Alum_Produc 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 3% 7% 0% 0% 100% 93% 0% 0% Ammo_Manufac 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 5% 100% 0% 0% 0% 0% 0% 0% 0% 0% Cement_Produc 0% 0% 0% 0% 0% 0% 0% 0% 25% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Electonic_Manu 0% 0% 4% 92% 0% 1% 0% 0% 0% 0% 1% 7% 0% 0% 0% 1% 0% 0% 0% 0% Ferro_Produc 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 3% 100% 0% 0% 0% 0% 0% 0% FluoGHG_Produc 0% 2% 0% 0% 0% 0% 0% 0% 0% 0% 3% 98% 0% 0% 0% 0% 0% 0% 0% 0% Glas_Product 0% 0% 0% 0% 0% 0% 0% 0% 28% 99% 0% 1% 0% 0% 0% 0% 0% 0% 0% 0% HCFC_Prod_Destruc 0% 23% 0% 0% 0% 0% 0% 0% 0% 0% 1% 77% 0% 0% 0% 0% 0% 0% 0% 0% Iron_Produc 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 42% 100% 0% 0% 0% 0% 0% 0% Lead_Produc 0% 0% 0% 0% 0% 1% 0% 0% 0% 0% 0% 0% 4% 9% 0% 0% 100% 90% 0% 0% Lime_Produc 0% 0% 0% 0% 0% 0% 0% 0% 20% 99% 0% 0% 0% 1% 0% 0% 0% 0% 0% 0% Magn_Produ 0% 0% 0% 3% 0% 6% 0% 0% 0% 0% 0% 0% 4% 92% 0% 0% 0% 0% 0% 0% Petr_Offshor_Prod 0% 0% 0% 0% 9% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Petr_Onshor_Prod 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 60% 100% Petr_Gath_Boost 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 13% 100% Petr_NatGas_Proc 0% 0% 0% 0% 30% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Petr_NatGas_Trans 0% 0% 0% 0% 35% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Petr_Trans_Pipe 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 6% 100% Petr_NatGas_Stor 0% 0% 0% 0% 3% 96% 0% 0% 0% 0% 0% 4% 0% 0% 0% 0% 0% 0% 0% 0% Petr_LNG_ImpExp 0% 0% 0% 0% 1% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Petr_Natgas_Dist 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 21% 100% Petr_Produ 0% 4% 0% 0% 0% 0% 0% 0% 0% 0% 12% 89% 0% 0% 0% 0% 4% 7% 0% 0% Petr_Refin 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 5% 17% 0% 0% 0% 0% 99% 83% 0% 0% PhosAc_Produc 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 2% 100% 0% 0% 0% 0% 0% 0% 0% 0% PulpPaper_Manufa 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 48% 100% 0% 0% 0% 0% Silicon_Produc 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 100% 0% 0% 0% 0% 0% 0% 0% 0% Soda_Manufa 0% 0% 0% 0% 0% 0% 0% 0% 1% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% SF6._Equipm 0% 0% 0% 0% 0% 0% 1% 8% 0% 0% 20% 92% 0% 0% 0% 0% 1% 1% 0% 0% Tita_Produc 0% 5% 0% 0% 0% 0% 0% 0% 0% 0% 1% 95% 0% 0% 0% 0% 0% 0% 0% 0% Coal_Mines 0% 0% 8% 99% 0% 0% 0% 1% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Zinc_Production 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 2% 100% 0% 0% 0% 0% 0% 0% Muni_Landf 92% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Indu_WW_Treatm 0% 0% 11% 92% 0% 0% 0% 1% 0% 0% 0% 1% 0% 0% 4% 6% 0% 0% 0% 0% Supp_PetProd 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 1% 5% 0% 0% 0% 0% 100% 95% 0% 0% NatGas_Fract 0% 0% 0% 0% 7% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% NatGas_Dist 0% 0% 0% 1% 0% 0% 0% 2% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 20% 97% ImpExp_HFCs 0% 0% 1% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% Manu_Elec 0% 0% 0% 100% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 67 7.6.6 Inferential tests associated to profiling process 7.7.6.1 Inferential tests of Emissions Profiling Kruskal-Wallis one-way analysis of variance tests were performed on the clustering of the emission profiles in each class as seen in Table 7.15 where an alpha of 0.1 was used in order to test statistical significance. The emissions for each class were tested for statistical significance in order to determine if each emission constituent could be considered statistically significant in each class. Class 6 was determined to have the majority of the emissions, Other, Short.Lived, and HFE. As seen in Table 7.15 the null hypothesis can be rejected for these three instances in Class 6 signifying that the median amount of Other, Short.Lived, and HFE emissions in Class 6 is statistically significant in comparison to other clusters. In instances where the null hypothesis is not rejected, indicated by the red fill in Table 7.15, it cannot be assumed that the median emissions of that chemical constituent in that particular class are different than the global median emissions. Table 7.15: P Values for Kruskal Wallis H Test on Emissions P-Values for Kruskal-Wallis One Way Analysis of Variance H Test on Emissions (alpha =0.1) Emission Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 CO2eq 0.000 0.000 0.000 0.000 0.009 0.129 0.135 0.000 0.000 0.000 CO2_fossil 0.000 0.000 0.000 0.000 0.067 0.094 0.284 0.000 0.000 0.000 CH4 0.000 0.012 0.000 0.000 0.000 0.000 0.000 0.169 0.000 0.000 N2O 0.065 0.008 0.002 0.124 0.123 0.000 0.125 0.380 0.487 0.019 HFC 0.007 0.142 0.068 0.066 0.242 0.000 0.309 0.296 0.348 0.138 PFC 0.000 0.000 0.000 0.000 0.043 0.000 0.000 0.093 0.169 0.004 SF6 0.000 0.374 0.000 0.000 0.008 0.000 0.000 0.032 0.089 0.000 NF3 0.020 0.000 0.013 0.012 0.148 0.000 0.175 0.211 0.280 0.052 Other_HFCs 0.024 0.000 0.017 0.016 0.159 0.000 0.186 0.221 0.289 0.060 HFE 0.240 0.400 0.222 0.220 0.360 0.000 0.374 0.391 0.421 0.288 short.lived 0.150 0.154 0.132 0.130 0.300 0.000 0.324 0.343 0.385 0.207 other 0.150 0.149 0.132 0.130 0.300 0.000 0.320 0.343 0.385 0.207 CO2_bio 0.010 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.005 0.000 7.7.6.2 Inferential Tests of NAICS Industry Profiling A Pearson’s chi-squared test was performed on the clustering of the variable NAICS Industry in order to determine if the clustering profile obtained for the NAICS Industry was statistically significant as seen in Table 7.16. It was determined that the distribution of the clustering profile for NAICS Industry within Classes was statistically significant as a p-value of 2.2E-16 was 68 obtained signifying that there is a statistical significance with NAICS Industry’s distribution within Classes. Table 7.16: Chi-Squared Test on Statistical Significance of NAICS Industry Clustering Chi-Squared Test on Statistical Significance of NAICS Industry Clustering Chi-Squared 113,218 Degrees of Freedom 198 alpha 0.05 P-Value 2.2E-16 Null Hypothesis No difference between NAICS Industry distribution in the 10 Classes discovered by the clustering Alternative Hypothesis There is a difference between the distributions Outcome P-value < alpha, so therefore the null hypothesis is rejected and there is a statistical significance between NAICS Industry in the Classes 7.7.6.3 Inferential Tests of Sectors Profiling A Pearson’s chi-squared test was performed on the clustering of each of the 16 Sectors in order to determine if the clustering profile obtained for each of the Sectors was statistically significant as seen in Table 7.17. Table 7.17. Chi-Squared Test of Statistical Significance of Sectors for Clustering of Classes Sector Chi-Squared Degrees of Freedom alpha P-Value Sec_Waste 19,477 9 0.05 2.2E-16 Sec_Other 23,436 9 0.05 2.2E-16 Sec_NatGas 1,260 9 0.05 2.2E-16 Sec_PowPl 23,489 9 0.05 2.2E-16 Sec_Minerals 23,615 9 0.05 2.2E-16 Sec_PetNat 23,473 9 0.05 2.2E-16 Sec_IndGas 554 9 0.05 2.2E-16 Sec_Puland 23,747 9 0.05 2.2E-16 Sec_Chemicals 21,239 9 0.05 2.2E-16 Sec_Metals 23,747 9 0.05 2.2E-16 Sec_SupP2 652 9 0.05 2.2E-16 Sec_PetProduct 22,497 9 0.05 2.2E-16 Sec_InjP2 211 9 0.05 2.2E-16 Sec_Impand 113 9 0.05 2.2E-16 Sec_Refineries 19,832 9 0.05 2.2E-16 Sec_CoaNiq 42 9 0.05 2.67E-06 The null hypothesis states that there is no difference between the particular Sector in clustering profiles for Class while the alternative hypothesis states that there is a statistical difference between the distributions. Using an alpha value of 0.05, it was determined that each of the 16 classes had statistically significant differences in their distributions of their class profiling as each 69 P-value of each sector was less than an alpha of 0.05. Therefore, the class profiling of each of the 16 sectors is statistically different in their distribution in comparison to each of the classes. 7.7.6.4 Inferential Tests of Regulatory Subpart Industry Profiling A Pearson’s chi-squared test was also performed on each of the Regulatory Subpart Industries in order to determine if the Regulatory Subpart Industry had a statistically significant distribution within the class profiling as seen in Table 7.18. Similar to the Sector analysis, the null hypothesis states that there is no difference between the particular Regulatory Subpart Industry in clustering profiles for Class while the alternative hypothesis states that there is a statistical difference between the distributions. Using an alpha value of 0.05, it was determined that all Regulatory Subpart Industries except for two had a statistically significant distribution within the class profiling as their P-values were determined to be less than an alpha value of 0.05.The two Regulatory Subpart Industries’, Petr_LNG_Stor and Geo_Seq_CO2, however, had P-values greater than alpha indicating that there was no statistically significant distribution within the class profiling for these two industries. Table 7.18. Chi-Squared Test of Statistical Significance of Regulatory Subpart Industry for Clustering of Classes Regulatory Subpart Industry Variable Chi-Squared Degrees of Freedom alpha P-Value Stat_Comb, Elec_Gen, Adip_Produc, Alum_Produc, Ammo_Manufac, Cement_Produc, Electonic_Manu, Ferro_Produc, FluoGHG_Produc, Glas_Product, HCFC_Prod_Destruc, H2_Produc, Iron_Produc, Lead_Produc, Lime_Produc, Magn_Produ, Misc_Carbon, Nitr_Produc, Petr_Offshor_Prod, Petr_Onshor_Prod, Petr_Gath_Boost, Petr_NatGas_Proc, Petr_NatGas_Trans, Petr_Trans_Pipe, Petr_NatGas_Stor, Petr_LNG_ImpExp, Petr_Natgas_Dist, Petr_Produ, Petr_Refin, PhosAc_Produc, PulpPaper_Manufa, Silicon_Produc, Soda_Manufa, SF6._Equipm, Tita_Produc, Coal_Mines, Zinc_Production, Muni_Landf, Indu_WW_Treatm, Supp_Coal_Fuels, Supp_PetProd, Petr_Refin_Prod, Petr_Export, Petr_Import, NatGas_Fract, Ind_GasSupp, NatGas_Dist, CO2_Supp, ImpExp_HFCs, Manu_Elec, Ind_WastLandf, Inj_CO2 33.1 - 22,497 (range of chisquared values for all regulatory subpart industries which were statistically significant) 9 (all regulatory subpart industries indicated in this row had DoF =9) 0.05 <0.001 (all regulatory subpart industries indicated in this column had a p-value less than 0.001) Petr_LNG_Stor 13.95 9 0.05 0.1242 Geo_Seq_CO2 6.28 9 0.05 0.7116 7.7 Summary of Discovered Profiles Each of the 10 classes were analyzed and profiled pertaining to the dominating NAICS Industry, Sector, and Regulatory Subpart Industry as well as emissions’ profile. Based on this analysis, 70 each class can be characterized and described based on the emerging trends and characteristics observed as follows: Class 1: Waste Activities and Solid Waste Landfills. Class 1 can be profiled as being dominated by waste activities such as solid waste landfills and municipal waste landfills. Class 1 was the largest cumulative methane emitter among all 10 classes where methane is a common emission in waste activities. Class 1 did have the fluorinated GHG HFC. Class 2: Other Industries including Food and Alcohol Manufacturing, and Fluorinated GHG activities. Class 2's profile was determined to be more varied consisting of multiple sectors and industries being that Sector Other dominated this class. Class 2 had two main segments including food and alcohol industry as well as activities relating to fluorinated GHG emissions such as electronics manufacturing and import and export of equipment containing fluorinated GHGs. Class 2 contained all 5 fluorinated GHGs. Class 3: Natural Gas Processing and Transportation. Class 3 can be profiled as natural gas processing and transportation as the dominating industries and sectors all pertained to natural gas. An emission profile with fossil CO2, methane and N2O was seen as expected by fossil fuel combustion. Class 4: Power Plants and Electricity Generation. Class 4 can be profiled as power plants and electricity generation. Class 4 consisted of the largest cumulative emissions for all 10 classes and also had the second highest (within the same magnitude) amount of emissions on an average per facility basis when compared to other classes. One anomaly which was observed in Class 4 was the dominating NAICS Industry being Solid Waste Landfills while the dominating sector and dominating industry subpart were both consistent with power plants and electricity generation. Class 5: Mineral Activities. Class 5 can be profiled as minerals as the dominating sector in this class was the Minerals Sector. Class 5 also had characteristics of chemical manufacturing which can be related to minerals when considering that the dominating industry subparts contained cement production, lime production and soda manufacturing. Class 6: Chemical Activities. Class 6 was characterized as chemicals with the dominating sector and NAICS industry pertaining to chemicals and chemical manufacturing. As seen by the regulating industry subparts, the chemical industries which this class contains include ammonia, SF6, phosphoric acid, silicon, titanium, and fluorinated GHGs. Class 6 also was an emitter of all five of the fluorinated GHGs which is to be expected considering fluorinated GHG production was a regulatory subpart with high dominance among classes. Class 7: Metal Activities. Class 7 was characterized as metals as the dominating NAICS Industry and Sector both pertained to metals. The dominating regulatory subpart industry among classes consisted of various metal activities such as iron production, ferroalloy production, zinc production and magnesium production. Fluorinated GHGs such as PFC and SF6 were also present in this class. Class 8: Pulp and Paper Manufacturing. Class 8 was profiled as pulp and paper as all dominating industries and sectors pertained to the pulp and paper segment. Class 8 had the 71 largest among of biogenic CO2 emissions which was to be expected as pulp and paper comes from biogenic sources such as timber. Class 9: Petroleum Refineries and Petroleum Products. Class 9 was profiled as petroleum refineries and petroleum products as all dominating industries and sectors pertained to petroleum refineries. An interesting observation made in the regulatory subpart analysis was that in addition to petroleum refineries nearly all facilities (≥99%) in this class also were subject to reporting under adipic acid production, aluminum production, lead production, and suppliers of petroleum products when taking into account the facilities within Class 9. This suggests that there is a correlation between these activities and that they can be carried out within the same facility. As expected, fossil CO2 was the dominating emission in Class 9. Class 10: Onshore Petroleum and Natural Gas Production and Crude Oil and Gas Extraction: Class 10 was classified as onshore petroleum and natural gas production as well as crude oil and gas extraction. The dominating industries and sectors within Class 10 all pertained to petroleum and natural gas activities with an emphasis on extraction and production. The dominating regulatory subpart within the class was Petroleum Onshore Production indicating that the facilities in this class are located onshore instead of offshore. Further details of class profiling for each of the 10 classes in terms of dominating NAICS Industry, Sector, and Regulatory Industry as well as emissions’ profile can be seen in Table 7.19. 72 Table 7.19: Discovered Class Profile Summary Class Discovered Profile Name Dominating NAICS Industry Dominating Sector Dominating Regulatory Industry Subpart Emission Profile 1 Waste Activities and Solid Waste Landfills Within Class: Solid Waste Landfills Among Classes: Waste Treatment Activities Within class: Waste Among classes: Waste Within Class: Municipal Waste Landfills Among Classes: Municipal Waste Landfills Methane, N2O, HFC, and biogenic CO2 largest methane emitter per facility 2 Other Industries including Food and Alcohol Manufacturing, and Fluorinated GHG activities Within Class: Food Industry Among Classes: Ethyl Alcohol Manufacturing, Science and Medical Activities, Equipment Manufacturing Within class: Other Among classes: Other, Import and Export of Equipment Containing Fluorinated GHGs Within Class: Stationary Combustion Among Classes: Manufacture of Electric Transmission and Distribution Equipment, Import and Export of Equipment Containing Fluorinated GHGs, Underground Coal Mines, Electronics Manufacture Methane and fluorinated GHGs 3 Natural Gas Processing and Transportation Within Class: Pipeline Transportation of Natural Gas Among Classes: Natural Gas Liquid Extraction Within Class: Petroleum and Natural Gas Systems Among Classes: Natural Gas and Natural Gas Liquid Suppliers, Injection of CO 2 Within Class: Stationary Combustion Among Classes: Natural Gas Processing, Natural Gas Transmission/Compression, Petroleum Offshore Production Fossil CO2, Methane and N2O, below average emissions per facility 4 Power Plants and Electricity Generation Within Class: Solid Waste Landfills Among Classes: HVAC Activities, Electrical Power Generation (Renewables) Within Class: Power Plants Among Classes: Power Plants Within Class: Electricity Generation Among Classes: Electricity Generation Fossil CO2, Methane and N2O, largest cumulative emissions for classes and per facility 5 Mineral Activities Within Class: Chemical Manufacturing Among Classes: Chemical Manufacturing Within Class: Minerals Among Classes: Minerals Within Class: Stationary Combustion Among Classes: Cement Production, Glass Production, Lime Production, Soda Manufacturing Fossil CO2 and N2O, below average emissions per facility 73 C lass Discovered Profile Name Dominating NAICS Industry Dominating Sector Dominating Regulatory Industry Subpart Emission Profile 6 Chemical Activities Within Class: Chemical Manufacturing Among Classes: Agriculture Industry, Electrical Power Generation Within Class: Chemicals Among Classes: Coalbased Liquid Fuel Supply, Chemicals, Coal-based Liquid Fuel Supply Within Class: Stationary Combustion, SF6 from Electrical Equipment Among Classes: Ammonia Manufacturing, SF6 from Electrical Equipment, Phosphoric Acid Production, Silicon Production, Titanium Production, Fluorinated GHG Production Fluorinated GHGs, N2O, and fossil CO2, largest cumulative fluorinated GHG emitter among classes 7 Metal Activities Within Class: Metal and Mineral Activities Among Class: Metal and Mineral A ctivities Within Class: Metals Among Classes: Metals Within Class: Stationary Combustion, Iron Production Among Classes: Iron Production, Ferroalloy Production, Zinc Production, Magnesium Production PFC and SF6, fossil CO 2 8 Pulp and Paper Manufacturing Within Class: Paper and Glass Manufacturing Among Class: Paper and Glass Manufacturing Within Class: Pulp and Paper Among Classes: Pulp and Paper Within Class: Stationary Combustion, Pulp and Paper Manufacturing Among Classes: Stationary Combustion, Pulp and Paper Manufacturing Biogenic CO2 and methane. Largest amount of biogenic CO2 per facility among classes 9 Petroleum Refineries and Petroleum Products Within Class: Petroleum Refineries Among Class: Petroleum Refineries Within Class: Petroleum Product Suppliers, Refineries Among Classes: Petroleum Product Suppliers, Refineries Within Class: Stationary Combustion, Adipic Acid Production, Aluminum Production, Lead Production, Petroleum Refineries, Suppliers of Petroleum Products Among Classes: Adipic Acid Production, Aluminum Production, Lead Production, Petroleum Refineries, Suppliers of Petroleum Products Fossil CO 2 10 Onshore Petroleum and Natural Gas Production and Crude Oil and Gas Extraction Within Class: Crude Oil and Natural Gas Extraction, Oil and Gas Activities Among Class: Crude Oil and Natural Gas Extraction, Oil and Gas Activities Within Class: Petroleum and Natural Gas Systems Among Classes: Petroleum and Natural Gas Systems Within Class: Petroleum Onshore Production Among Classes: Petroleum Onshore Production, Petroleum Natural Gas Distribution, Natural Gas Distribution, Petroleum Transmission Pipelines, Petroleum Gathering and Boosting Methane, fossil CO2, second largest methane emitter among classes 80 Figure 7.43 PC1 vs PC3 Correlation Circle The supplementary variables were projected on the PC1 vs PC3 plot in order to determine if any qualitative variables were influenced by the quantitative variables as observed in Figure 7.44. It was determined that NAICS Industry Electrical Power Generation, Sector Import and Export of Equipment Containing Fluorinated GHGs and Regulatory Subpart Supplier of Coal Fuels had the strongest correlation with PC3. As PC3’s strongest contributing variable was NF3, these three industries and subparts may have a strong influence on NF3 emissions as seen from the PCA analysis. A few quantitative variables were also strongly negatively correlated with PC3 when projected on the graph including Industrial Waste Landfills, Coal Mines, Pulp and Paper Manufacturing and Mining Activities. As Longitude is the variable with a negative correlation on the PC3 axis, it is suggested that these four qualitative variables are correlated with longitude slightly, and negatively correlated with NF3. As seen in the PC1 vs PC2 analysis, the qualitative variable Chemical Manufacturing had a strong positive correlation with the emission PCF suggesting that Chemical Manufacturing strongly influences PCF emissions. Likewise, Sector Chemicals and Plastic Manufacturing were correlated with the emission Other_HFCs suggesting these two qualitative variables influence this emission. 81 Figure 7.44 Supplementary Variable Projections PC1 vs PC3 7.8.3 PC1 vs PC4 The visualization of the projection of PC1 and PC4 was made as seen in Figure 7.45 in which the contribution of the variables was scaled and variables with larger contribution to the PC were represented by reds while variables with smaller contributions to the PC were represented by blues. One noticeable observation in the PC1 vs PC4 projection in comparison to the previous two analysis was that Latitude and Longitude both had a strong contribution on the PC4 axis with Longitude pointing in the positive Y direction and Latitude pointing in the negative X direction suggesting that there is an inverse relationship between Latitude and Longitude in the data set. As seen before with PC1, emissions PFC, Other_HFCs, Other, and Short.Lived were strong contributors to the PC1 axis with a correlation between the five as the projections for the five emissions were all pointing in the same direction with only slight angles between them. Sector Import and Export of Equipment Containing Fluorinated GHGs Sector Metals Sector Chemicals Sector Others Supplier of Coal Fuels Soda Manufacturing Industrial Waste Landfills Sector Pulp and Paper Manufacturing Coal Miles 82 Figure 7.45 PC1 vs PC4 Correlation Circle The qualitative variables were projected on the PC1 vs PC4 graph as seen in Figure 7.46 and an interesting trend emerged in regards to Latitude and Longitude. It was found that a few qualitative variables had a very strong correlation with Latitude and Longitude respectively. Paper and Glass Manufacturing had the strongest correlation with Longitude. As observed in the territorial analysis of Class 8: Pulp and Paper Manufacturing, the majority of these facilities are located in the Mid- Western states such as Minnesota, Wisconsin, and Indiana which is consistent with the interpretation of the PC1 vs PC4 graph that Longitude is strongly correlated with this industry. A few other qualitative variables were projected in the positive Y direction indicating that they also were correlated with Longitude including: Waste Treatment Activities, Petroleum Offshore Production, Petroleum Products, Petroleum LNG Storage, Phosphoric Acid Production. When analyzing the qualitative variables which correlated with Latitude which was projected in the negative Y direction, it was found that Petroleum Import, Petroleum Export, Geo- Sequestration of CO2, and Ethyl Alcohol Manufacturing all had a strong positive correlation with Latitude as they projects were all in the same negative Y direction. As Ethyl Alcohol Manufacturing is a NAICS Industry, it can be recalled in Section 7.3: Evolution of NAICS Industries Over Time, that Ethyl Alcohol Manufacturing facilities were concentrated in the Mid-Western United States signifying that these types of facilities are influenced by geographical location. A few interesting observations with the projections of qualitative variables in terms of emissions could also be made in the PC1 vs PC4 graph. It was seen that Sec_ImpAnd (Sector Import and Export Equipment of Fluorinated GHGs) and Manufacture Electronics had a strong correlation with the emission NF3 which is a fluorinated GHG. Electronics manufacturing is a known source of fluorinated GHGs and Sec_ImpAnd consists of facilities which deal with fluorinated GHGs which support this observation. Once again, Sector Chemicals and Chemical Manufacturing were strongly correlated with PFC suggesting that the chemicals industry is a polluter of PFC emissions. Qualitative variables, Magnesium Production and Plastics Manufacturing were also 83 projected in the direction of PFC and NF3 emissions suggesting that these two industries may influence these two fluorinated GHG emissions. Figure 7.46 Supplementary Variable Projections PC1 vs PC4 Sector Chemicals Magnesium Production Manufacture Electronics Sec_ImpAnd Sector Other Petroleum Offshore Production Petroleum Products Petroleum LNG Storage Phosphoric Acid Production Petroleum Export Geo Sequestration of CO2 Petroleum Import Sector Refineries Lime Production 84 8 Discussion of Results Open source GHG emission inventory data was used from the USEPA GHGRP in which RY2012, RY2015, and 2018 were analyzed in terms of data science and data mining in order to find underlying trends and relationships within the dataset which could add another layer of understanding to the GHG emissions in the United States. It was determined that there was a downward trend in GHG emissions from RY2012 to RY2018 accounting for a total of 6% decrease of emissions over this timeframe. Texas was found to be the largest statewide GHG polluter with an average of 15% of total nationwide emissions and saw a 10% increase of GHG emissions over the three reporting years studied. In order to find correlations and underlying trends and relationships in the dataset, the GHG inventory data for the three reporting years was clustered using Wards distance and then hierarchically clustered using Growers method in which 10 distinct classes were obtained, analyzed and profiled. The discovered profiles of each class were found to be statistically significant in terms of NAICS Industry, Sectors, Regulatory Subpart Industry and Emissions signifying that each class comprises of a unique set of characteristics differing from one another and giving confidence to each discovered class profile. The 10 discovered class profiles which will further be discussed in this section are as follows: 1. Class profiles relating to the oil and gas segment  Class 3: Natural Gas Processing and Transportation  Class 9 Petroleum Refineries and Petroleum Products  Class 10: Onshore Petroleum and Natural Gas Production 2. Class profiles relating to domestic activities  Class 1: Waste Activities and Solid Waste Landfills  Class 4: Power Plants and Electricity Generation 3. Class profiles relating to industry and manufacturing  Class 2: Other Industries  Class 5: Mineral Activities  Class 6: Chemical Activities:  Class 7: Metal Activities:  Class 8: Pulp and Paper Manufacturing The findings of each of the discovered class profiles can add insight and understanding into the distribution of GHG emissions in the United States as well as offer information on underlying relationships and trends that were not apparent without employing data mining techniques. These findings could be used to uncover further avenues of investigation into trends and relationships of GHG emissions which could help influence and inform decision makers in terms of emissions regulations and environmental policy. 85 8.1 Class profiles relating to the oil and gas segment Three class profiles were found to be related to the oil and gas segment: Class 3: Natural Gas Processing and Transportation, Class 9: Petroleum Refineries and Class 10: Onshore Oil and Gas Production. When analyzing the dataset in terms of NAICS Industry, a large concentration of NAICS Industries relating to the oil and gas segment were found in Texas and the Gulf of Mexico as well as North Dakota. This trend was also apparent during the class analysis, further bolstering the finding that certain industries are found in particular geographic locations. Class 3: Natural Gas Processing and Transportation as well as Class 10: Onshore Petroleum and Natural Gas Production found a concentration of facilities as well as higher amount of GHG emissions throughout Texas and the Gulf of Mexico as well as North Dakota. Class 9: Petroleum Refineries were found to be concentrated in Texas along the Gulf of Mexico. As presented in Section 3.2 Current Global Challenges, the oil reserves Forth Worth Gulf Coast basin is the United States is one of the largest reserves while the Willison basin located in North Dakota has seen a recent hydraulic fracturing shale boom which account for the locations of these facilities related to the oil and gas segment. It was also found that Texas and North Dakota had a large portion of the new facilities brought into operation during the 6-year timeframe studied and both these regions saw an increase of GHG emissions from RY2012 to RY2018 indicating an increase in oil and gas activities in these geographic locations. Further analysis of Class 3: Natural Gas Processing and Transportation revealed an orderly distribution of GHG emissions in which “strings” of facilities in a line were found traversing several states. The most prominent “string” of facilities could be seen traversing from North Dakota to lower Minnesota in which these facilities may be related to the North Dakota oil and gas pipeline. Another “string” of facilities was found traversing down the east coast of the United States which also may be related to a pipeline as Class 3 includes natural gas transmission and compression activities which are required for the transportation of the fuel. Class 3: Natural Gas Processing and Transportation was also determined to be the only class which contained offshore oil and gas activities as seen by the high concentration of facility emissions of Class 3 in the Gulf of Mexico. Class 9: Petroleum Refineries was found to have the largest amount of emissions on a per facility basis and an average of 121 Petroleum Refinery facilities were found throughout the United States. Class 9 was also found to have one of the largest increases in emissions from RY2012 to RY2018 with a concentration of increased activity along the coast of the Gulf of Mexico in Texas and California. The results from the PCA further bolstered the evidence that Petroleum Refineries have a strong correlation with geographic location as observed in the PC1 vs PC4 plot, the projected NAICS Industry and Sector for petroleum refineries revealed that there was a strong correlation with Petroleum Refineries and Latitude. One explanation for the strong geographic correlation is that crude oil cannot be used in its crude form, it must be refined and processed before it is transformed into various fuels and petroleum products which can be consumed, based on the fact that Texas’s gulf coast is where large amounts of crude oil is found, it is logical that 86 refineries are located within a close geographical distance in order to minimize transportation costs. Another insight found within Petroleum Refineries is the close correlation between other activities performed in this class as it was determined that nearly all (99%) of facilities in this class carried out the following activities as well as being part of the Petroleum Refinery sector: Adipic Acid Production, Aluminum Production, Lead Production, Petroleum Refineries, and Suppliers of Petroleum Products. As Lead Production is directly related to Petroleum Refineries, it can be seen from the PCA in the PC1 vs PC2 projection that Lead Production is a qualitative variable with a strong correlation to CO2-eq and CO2 fossil emissions indicating that Lead Production strongly influences CO2 emissions which is to be expected considering Petroleum Refineries have the largest amount of CO2-eq emissions on a per facility basis in comparison to all classes. Class 10: Onshore Petroleum and Natural Gas Production was found to be dominated by the regulatory subpart Onshore Petroleum and Natural Gas Production within the class and among classes which is the regulatory subpart which manages onshore hydraulic fracturing facilities. As seen by the geographic distribution of Class 10 facilities, a high concentration of Onshore Petroleum and Natural Gas Production facilities were found in North Dakota and Texas which are regions with high levels of hydraulic fracturing activities. The large share of methane emissions seen from Class 10 can be explained from the use of pneumatic devices and pneumatic pumps in Onshore Petroleum and Natural Gas Production facilities which are known for fugitive emissions and leaks of methane directly into the atmosphere. 8.2 Class profiles relating to domestic activities The class profiles which were found to be related to domestic activities included Class 1: Waste Activities and Solid Waste Landfills and Class 4: Power Plants and Electricity Generation. The supply and demand of Waste Activities and Power Plants would depend on the population in the region as both of these segments pertain to sectors which directly serve the general population’s basic needs. Class 4: Power Plants was found to have the largest amount of CO2-eq emissions on a per class basis indicating that Power Plants and Electricity Generation are the biggest contributing industries to climate change in the United States which is supported by the fact that this class is responsible for an average of 62% of nationwide GHG emissions. The geographical distribution of Power Plants in the United States closely resembled the population density distribution map presented in Section 3.3 United States Demographics signifying that Power Plants and Electricity Generation activities increase with a larger population in order to meet the needed energy demand. One interesting observation is that although California has a high-density population, the amount of GHG emissions in California broke the trend that more population means more GHG emissions, as the amount of emissions in California were less when compared to similar population density areas in other parts of the United States. One explanation for this could be that 87 California has made a push for cleaner power solutions such as solar, hydroelectric and wind power over the last decade as well as the fact that California is known to implement greener policies and regulations in comparison to the rest of the United States. Further investigation into this phenomenon could add insight into the correlation between population density and GHG emission potency which could help with the decoupling of population growth from GHG emission increases. The distribution of Class 1: Waste Activities and Solid Waste Landfills was also found to closely resemble the population density distribution in the United States which is also to be expected as an increase in population would create a larger demand for waste management and solid waste landfills. Waste Activities were responsible for the largest share of methane emissions which was to be expected as the degradation of biological matter which occurs in solid waste landfills results in methane emissions directly to the atmosphere. 8.3 Class profiles relating industry and manufacturing The class profiles which were found to be related to industry and manufacturing included Class 2: Other Industries, Class 5: Mineral Activities, Class 6: Chemical Activities, Class 7: Metal Activities, and Class 8: Pulp and Paper Manufacturing. The NAICS Industry analysis revealed that there was a high concentration of the Ethyl Alcohol Manufacturing industry in Midwestern states such as Minnesota, Wisconsin and Iowa. Class 2: Other Industries included for 100% of facilities with NAICS Industry Ethyl Alcohol Manufacturing among classes. Here it was found that Class 2: Other Industries had a high concentration of facilities and emissions in the Mid-West. The strong correlation with Ethyl Alcohol Manufacturing and geographic location was further supported by the findings in the PCA where the projection of qualitative variables on the PC1 vs PC4 plot revealed a strong correlation between Ethyl Alcohol Manufacturing and Latitude. Class 2: Other Industries was found to have a large amount of fluorinated GHG emissions which could be explained by the fact that this class contains 92% of Electronics Manufacturing facilities and 100% of Sector Import and Export of Equipment Containing Fluorinated GHGs (Sec_ImpAnd) facilities among classes. Electronics Manufacturing is a known activity which releases fluorinated GHGs. This observation was further supported by the PCA in which the projection of PC1 vs PC3 revealed a strong correlation between Sec_ImpAnd and fluorinated GHG emissions SF6 and NF3. This observation suggests that Sec_ImpAnd greatly influences SF6 and NF3 emissions. This correlation was also observed in the projection of PC1 vs PC4 for Sec_ImpAnd and Manufacture Electronics in terms of NF3 emissions. Class 8: Pulp and Paper Manufacturing was also found to have a strong correlation with geographic location which could be observed through the territorial visualization of Class 8 facilities being concentrated in the eastern half of the United States. This observation was further bolstered by the PCA in which the PC1 vs PC4 projection found a strong correlation between NAICS Industry Glass and Paper Manufacturing, which dominated Class 8, and Longitude. 88 Class 8: Pulp and Paper Manufacturing’s dominating emission was found to be biogenic CO2 which reveals that the carbon emissions from this class do not come from fossil fuel sources, but instead from biogenic sources which generally include timber. Timber is the raw material use to fabricate pulp and paper and therefore a high level of biogenic CO2 emissions would be expected in this class. Class 6: Chemical Activities was found to be dominated by the Chemical Sector and was a large source of fluorinated GHG emissions as well as HFE, Short Lived, and Other emissions. When looking at the PCA, all three projections (PC1 vs PC, PC1 vs PC3, and PC1 vs PC4) revealed a strong correlation between Chemical Sector and Chemical Manufacturing with the following emissions: Short Lived, Other, PCF, and Other HFCs. The strongest correlation was found between Chemical Sector and Chemical Manufacturing and PFC indicating that the Chemical Sector and Chemical Manufacturing strongly influence PFC emissions. Class 7: Metal Activities was found to be dominated by the Metals Sector in which metal activities such as Magnesium Production dominated this class. Magnesium Production was found to be projected on the PC1 vs PC4 PCA in which variables such as Longitude and PFC may be influencing the placement of this projection as PFC was a predominant emission in Class 7 and there was a high concentration of Metal Activities facilities found in mid-western states. Class 5: Mineral Activities was found be dominated by the Minerals Sector and facilities had a more even distribution throughout the United States. 89 9 Conclusions Applying data science and data mining techniques on open source GHG emission inventory data from the USEPA’s GHGRP for RY2012, RY2015, and RY2018 resulted in the discovery of underlying trends and relationships within the dataset which weren’t apparent when the data was observed as a whole. Clustering and profiling of the GHGRP emissions inventories resulted in 10 distinct and statistically significant classes which were profiled and analyzed for their unique characteristics. Correlations between different emission chemical constituents and industries and sectors were found which provided insight to which industries and sectors strongly influence different types of emissions. GHG emissions are the direct cause of climate change in which the IPCC has published numerous reports in regards to the urgency and importance of reducing GHG emissions to a safe and tolerable level to keep global average temperatures below 1.5°C. In order to effectively and efficiently adhere to the climate goals set by the IPCC and ratified by the Paris Agreement, creating and implementing environmental regulations to manage and reduce GHG emissions is of utmost importance. The GHGRP of the USEPA was designed and implemented to be a recordkeeping and inventory tool of the United States’ GHG emissions from all industrial facilities releasing more than 25,000 tonnes/year of CO2-eq to help better inform decision makers who influence environmental and industrial policies As this report used data mining techniques to uncover and understand underlying trends and relationships in the dataset and therefore added a deeper understanding to the relationships between different types of industries, sectors, and GHG emissions which can further aid in the creation of better tailored and more effective regulations to manage GHG emissions for decision makers. The insight gained from data mining the GHG emissions inventories has uncovered emission trends and phenomenon which can be further investigated to aid the reduction of GHG emissions. One important trend which was discovered was visualized in Power Plants and Electricity Generation which were the largest contributing class to annual GHG emissions and therefore climate change. The density distribution of GHG emissions from Power Plants and Electricity Generation closely followed the population density distribution of the United States with one exception, the GHG emission quantities found in California were less than expected when considering population density revealing that California’s energy policies may be leading to a decoupling of GHG emissions from population. Further investigation into the differences of California’s energy policy for electricity generation in comparison to the rest of the United States could be carried out to better understand this decoupling phenomenon which was visualized. Therefore, insight can be added to the measures and steps necessary to decouple GHG emissions from population in for Power Plants and Electricity Generation which could help inform and influence decision makers and lead to a similar decoupling effect in other regions of the United States. Another interesting route for further investigation would be to better understand the relationship between fluorinated GHG emissions, Other, and Short.Lived emissions with Chemical Activities as Chemical Activities accounted for the class with the largest overall increase of emissions over 96 ValorTestXquali <- function(P,Xquali){ taula <- table(P,Xquali); n <- sum(taula); pk <- apply(taula,1,sum)/n; pj <- apply(taula,2,sum)/n; pf <- taula/(n*pk); pjm <- matrix(data=pj,nrow=dim(pf)[1],ncol=dim(pf)[2]); dpf <- pf - pjm; dvt <- sqrt(((1-pk)/(n*pk))%*%t(pj*(1-pj))); #i hi ha divisions iguals a 0 dona NA i no funciona zkj <- dpf zkj[dpf!=0]<-dpf[dpf!=0]/dvt[dpf!=0]; pzkj <- pnorm(zkj,lower.tail=F); for(c in 1:length(levels(as.factor(P)))){for (s in 1:length(levels(Xquali))){if (pzkj[c,s]> 0.5){pzkj[c,s]<-1- pzkj[c,s]}}} return (list(rowpf=pf,vtest=zkj,pval=pzkj)) } #dades contain the dataset dades<-dd #dades<-dd[filtro,] #dades<-df K<-dim(dades)[2] par(ask=TRUE) #P must contain the class variable #P<-c2 P<-dd[,89] nc<-length(levels(factor(P))) pvalk <- matrix(data=0,nrow=nc,ncol=K, dimnames=list(levels(P),names(dades))) nameP<-"Class" n<-dim(dades)[1] for(k in 1:K){ if (is.numeric(dades[,k])){ print(paste("Anàlisi per classes de la Variable:", names(dades)[k])) boxplot(dades[,k]~P, main=paste("Boxplot of", names(dades)[k], "vs", nameP ), horizontal=TRUE) barplot(tapply(dades[[k]], P, mean),main=paste("Means of", names(dades)[k], "by", nameP )) abline(h=mean(dades[[k]])) legend(0,mean(dades[[k]]),"global mean",bty="n") print("Estadístics per groups:") for(s in levels(as.factor(P))) {print(summary(dades[P==s,k]))} o<-oneway.test(dades[,k]~P) print(paste("p-valueANOVA:", o$p.value)) kw<-kruskal.test(dades[,k]~P) 97 print(paste("p-value Kruskal-Wallis:", kw$p.value)) pvalk[,k]<-ValorTestXnum(dades[,k], P) print("p-values ValorsTest: ") print(pvalk[,k]) }else{ if(class(dd[,k])=="Date"){ print(summary(dd[,k])) print(sd(dd[,k])) #decide breaks: weeks, months, quarters... hist(dd[,k],breaks="weeks") }else{ #qualitatives print(paste("Variable", names(dades)[k])) table<-table(P,dades[,k]) # print("Cross-table") # print(table) rowperc<-prop.table(table,1) colperc<-prop.table(table,2) # print("Distribucions condicionades a files") # print(rowperc) #ojo porque si la variable es true o false la identifica amb el tipus Logical i #aquest no te levels, por tanto, coertion preventiva dades[,k]<-as.factor(dades[,k]) marg <- table(as.factor(P))/n print(append("Categories=",levels(as.factor(dades[,k])))) #from next plots, select one of them according to your practical case plot(marg,type="l",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k])) paleta<-rainbow(length(levels(dades[,k]))) for(c in 1:length(levels(dades[,k]))){lines(colperc[,c],col=paleta[c]) } #with legend plot(marg,type="l",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k])) paleta<-rainbow(length(levels(dades[,k]))) for(c in 1:length(levels(dades[,k]))){lines(colperc[,c],col=paleta[c]) } legend("topright", levels(dades[,k]), col=paleta, lty=2, cex=0.6) #condicionades a classes print(append("Categories=",levels(dades[,k]))) plot(marg,type="n",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k])) paleta<-rainbow(length(levels(dades[,k]))) for(c in 1:length(levels(dades[,k]))){lines(rowperc[,c],col=paleta[c]) } #with legend 98 plot(marg,type="n",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k])) paleta<-rainbow(length(levels(dades[,k]))) for(c in 1:length(levels(dades[,k]))){lines(rowperc[,c],col=paleta[c]) } legend("topright", levels(dades[,k]), col=paleta, lty=2, cex=0.6) #amb variable en eix d'abcisses marg <-table(dades[,k])/n print(append("Categories=",levels(dades[,k]))) plot(marg,type="l",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k]), las=3) #x<-plot(marg,type="l",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k]), xaxt="n") #text(x=x+.25, y=-1, adj=1, levels(CountryName), xpd=TRUE, srt=25, cex=0.7) paleta<-rainbow(length(levels(as.factor(P)))) for(c in 1:length(levels(as.factor(P)))){lines(rowperc[c,],col=paleta[c]) } #with legend plot(marg,type="l",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k]), las=3) for(c in 1:length(levels(as.factor(P)))){lines(rowperc[c,],col=paleta[c])} legend("topright", levels(as.factor(P)), col=paleta, lty=2, cex=0.6) #condicionades a columna plot(marg,type="n",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k]), las=3) paleta<-rainbow(length(levels(as.factor(P)))) for(c in 1:length(levels(as.factor(P)))){lines(colperc[c,],col=paleta[c]) } #with legend plot(marg,type="n",ylim=c(0,1),main=paste("Prop. of pos & neg by",names(dades)[k]), las=3) for(c in 1:length(levels(as.factor(P)))){lines(colperc[c,],col=paleta[c])} legend("topright", levels(as.factor(P)), col=paleta, lty=2, cex=0.6) table<-table(dades[,k],P) print("Cross Table:") print(table) print("Distribucions condicionades a columnes:") print(colperc) #diagrames de barres apilades paleta<-rainbow(length(levels(dades[,k]))) barplot(table(dades[,k], as.factor(P)), beside=FALSE,col=paleta ) barplot(table(dades[,k], as.factor(P)), beside=FALSE,col=paleta ) legend("topright",levels(as.factor(dades[,k])),pch=1,cex=0.5, col=paleta) #diagrames de barres adosades barplot(table(dades[,k], as.factor(P)), beside=TRUE,col=paleta ) barplot(table(dades[,k], as.factor(P)), beside=TRUE,col=paleta) legend("topright",levels(as.factor(dades[,k])),pch=1,cex=0.5, col=paleta) 99 print("Test Chi quadrat: ") print(chisq.test(dades[,k], as.factor(P))) print("valorsTest:") print( ValorTestXquali(P,dades[,k])) #calcular els pvalues de les quali } } }#endfor #descriptors de les classes més significatius. Afegir info qualits for (c in 1:length(levels(as.factor(P)))) { if(!is.na(levels(as.factor(P))[c])){ print(paste("P.values per class:",levels(as.factor(P))[c])); print(sort(pvalk[c,]), digits=3) } } 9.3 PCA R Code dd <- read.csv("C:/Users/Andrea/Documents/UPC/TFM/Data_With_Class_AllData_10classes_PCA.csv") attach(dd) names(dd) dcon <- data.frame (Latitude, Longitude,CO2eq,CO2_fossil, CH4, N2O, HCF, PFC, SF6, NF3, Other_HFCs,HFE, short.lived, other, CO2_bio, Year) pc1 <- prcomp(dcon, scale=TRUE) class(pc1) attributes(pc1) print(pc1) dim(dcon) sapply(dcon,class) eigen(dcon, FALSE) fit<-princomp(dcon) screeplot(pc1) eigen(pc1) library(factoextra) #install.packages('factoextra') fviz_eig(pc1, addlabels = TRUE) fviz_pca_var(pc1, col.var = "contrib", # Color by contributions to the PC 100 gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), repel = TRUE # Avoid text overlapping ) eig.val <- get_eigenvalue(pc1) eig.val res.var <- get_pca_var(pc1) res.var$coord # Coordinates res.var$contrib # Contributions to the PCs res.var$cos2 # Quality of representation # WHICH PERCENTAGE OF THE TOTAL INERTIA IS REPRESENTED IN SUBSPACES? pc1$sdev inerProj<- pc1$sdev^2 #inerProj are the eigen values inerProj totalIner<- sum(inerProj) totalIner pinerEix<- 100*inerProj/totalIner pinerEix barplot(pinerEix) #Cummulated Inertia in subspaces, from first principal component to the 11th dimension subspace barplot(100*cumsum(pc1$sdev[1:dim(dcon)[2]]^2)/dim(dcon)[2]) percInerAccum<-100*cumsum(pc1$sdev[1:dim(dcon)[2]]^2)/dim(dcon)[2] percInerAccum # SELECTION OF THE SINGIFICNT DIMENSIONS (keep 80% of total inertia) nd = 11 # STORAGE OF THE EIGENVALUES, EIGENVECTORS AND PROJECTIONS IN THE nd DIMENSIONS lbd<- inerProj[1:nd] lbd pc1$rotation U = pc1$rotation[,1:nd] U #15 by 9 matrix head(dcon,3) #first thre rows in data frame head(pc1$x,3) #x comesfrom PCA Psi= pc1$x[,1:nd] #View(pc1$x) head(Psi,3) Psi[1,] 101 # STORAGE OF LABELS FOR INDIVIDUALS AND VARIABLES iden = row.names(dcon) etiq = names(dcon) ze = rep(0,length(etiq)) # WE WILL NEED THIS VECTOR AFTERWARDS FOR THE GRAPHICS # PLOT OF INDIVIDUALS plot(Psi[,1],Psi[,2]) plot(Psi[,3],Psi[,4]) idict=dd[,1] idict=dd[,13] #select your axis eje1<-1 eje2<-4 plot(Psi[,eje1],Psi[,eje2]) text(Psi[,eje1],Psi[,eje2],labels=iden, cex=0.5) axis(side=1, pos= 0, labels = F, col="cyan") axis(side=3, pos= 0, labels = F, col="cyan") axis(side=2, pos= 0, labels = F, col="cyan") axis(side=4, pos= 0, labels = F, col="cyan") library(rgl) plot3d(Psi[,1],Psi[,2],Psi[,3]) #3d shadow of original data set, maybe not the best thing to use #Projection of variables Phi = cor(dcon,Psi) dd[100,] #alcohol facility is an outlier dd[44,] #hvac facility is an outlier dd[996,] #chemical facility other oil and gas activities, also is an outlier #select your axis X<-Phi[,eje1] Y<-Phi[,eje2] plot(Psi[,eje1],Psi[,eje2],type="n") axis(side=1, pos= 0, labels = F) axis(side=3, pos= 0, labels = F) axis(side=2, pos= 0, labels = F) axis(side=4, pos= 0, labels = F) arrows(ze, ze, X, Y, length = 0.07,col="blue") text(X,Y,labels=etiq,col="darkblue", cex=0.7) #zooms plot(Psi[,eje1],Psi[,eje2],type="n",xlim=c(min(X,0),max(X,0)),ylim=c(min(Y,0),max(Y,0))) axis(side=1, pos= 0, labels = F) 102 axis(side=3, pos= 0, labels = F) axis(side=2, pos= 0, labels = F) axis(side=4, pos= 0, labels = F) arrows(ze, ze, X, Y, length = 0.07,col="blue") text(X,Y,labels=etiq,col="darkblue", cex=0.7) #build a palette with as much colors as qualitative variables #colors<-c("blue","red","green","orange","darkgreen") #alternative colors<-rainbow(length(dcat)) c<-1 partialdcat<-c(5:74) dcat<-partialdcat for(k in dcat){ seguentColor<-colors[c] fdic1 = tapply(Psi[,eje1],dd[,k],mean) fdic2 = tapply(Psi[,eje2],dd[,k],mean) text(fdic1,fdic2,labels=levels(dd[,k]),col=seguentColor, cex=0.6) c<-c+1 }