Full text
FINAL DEGREE THESIS Bachelor’s Degree in Electrical Engineering STUDY OF STATISTICAL TECHNIQUES TO ANALYZE THE CLIMATE Report and Annex Author: David Jiménez Morán Supervisor: Pablo Buenestado Caballero Co-supervisor: Luis Eduardo Mujica Delgado Department: Mathematics Call: 2023, June
Study of statistical techniques to analyze the climate i Abstract The climate is a term that is heard daily in different fields, but the study of it is not so well known. In addition, it is generally known that, to carry out climatic studies, mathematics, and more specifically statistics, is present in different sections, but it is not so common to have knowledge of the relationship between these two concepts. Therefore, describing each step to follow when carrying out a climate study, or climate projection, and explaining the relationship of the statistics found with each phase and the techniques used to carry them out, is a good summary to describe in what does this job consist of. It should be noted that when talking about a climate study, it refers to studies carried out by important scientific institutions based on climate models. These models have a very important role in the work, since from these the expected results can be achieved, so to understand the study it is crucial to know and understand the climate models. In addition, the steps before and after the use of these models are also essential for the correct development of the study. It is in these steps where more statistics can be appreciated, since they are characterized by the control, management and adaptation of a large set of climatic data, where various techniques are necessary to carry out these actions. Finally, once the study or the different climatic studies to be taken into account have been carried out, it is essential to evaluate them using different statistical methods that help to fulfill this purpose.
Memory ii Resum El clima és un terme molt escoltat diàriament en diferents àmbits, però el seu estudi no és tan conegut. A més, generalment se sap que, per a la realització d'estudis climàtics, les matemàtiques, i més concretament l'estadística, és present en diferents seccions, però no és tan comú tenir el coneixement de la relació entre aquests dos conceptes. Per tant, descriure cada pas a seguir a l'hora de fer un estudi climàtic, o de projecció climàtica, i explicar la relació de l'estadística trobada amb cada fase i les tècniques utilitzades per dur-les a terme, és un bon resum per descriure en què consisteix aquest treball. Cal destacar que quan es parla d’un estudi climàtic es refereix als estudis realitzats per institucions científiques importants a partir de models climàtics. Aquests models tenen un paper molt important al treball, ja que a partir d'aquests es poden aconseguir els resultats esperats, per tant, per entendre l'estudi és determinant conèixer i comprendre els models climàtics. A més, els passos previs i posteriors a l'ús d'aquests models també són fonamentals per al desenvolupament correcte de l'estudi. En aquests passos és on es pot apreciar més estadística, ja que es caracteritzen pel control, maneig i adaptació d'un gran conjunt de dades climàtiques, on diverses tècniques per dur a terme aquestes accions són necessàries. Finalment, un cop ja s'ha realitzat l'estudi o els diferents estudis climàtics que cal tenir en compte, és imprescindible avaluar-los a partir de diferents mètodes estadístics que ajuden a complir aquest propòsit.
Study of statistical techniques to analyze the climate iii Resumen El clima es un término muy escuchado diariamente en diferentes ámbitos, pero el estudio de este no es tan conocido. Además, generalmente es sabido que, para la realización de estudios climáticos, las matemáticas, y más concretamente la estadística, está presente en distintas secciones, pero no es tan común tener el conocimiento de la relación entre estos dos conceptos. Por lo tanto, describir cada paso a seguir a la hora de realizar un estudio climático, o de proyección climática, y explicar la relación de la estadística encontrada con cada fase y las técnicas utilizadas para llevarlas a cabo, es un buen resumen para describir en qué consiste este trabajo. Cabe destacar que cuando se habla de un estudio climático se refiere a los estudios realizados por instituciones científicas importantes a partir de modelos climáticos. Estos modelos tienen un papel muy importante en el trabajo, ya que a partir de estos se pueden conseguir los resultados esperados, por lo que para entender el estudio es determinante conocer y comprender los modelos climáticos. Además, los pasos previos y posteriores al uso de estos modelos también son fundamentales para el correcto desarrollo del estudio. En estos pasos es donde más estadística se puede apreciar, ya que se caracterizan por el control, manejo y adaptación de un gran conjunto de datos climáticos, donde diversas técnicas para llevar a cabo estas acciones son necesarias. Por último, una vez ya se ha realizado el estudio o los distintos estudios climáticos a tener en cuenta, es imprescindible la evaluación de estos a partir de diferentes métodos estadísticos que ayudan a cumplir este propósito.
Memory iv
Study of statistical techniques to analyze the climate v Appreciations Thanks to my family and partner for their support in this work and for putting up with me in my moments of stress. Thank you, Pablo, for your time and dedication. Dedicated to my grandfather, rest in peace, I love you.
Memory vi
Study of statistical techniques to analyze the climate vii Glossary: • BMA: Bayesian Model Average • CDF: Cumulative Distribution Functions • Climate model: Mathematical or computational representation of the Earth's climate system. These models are complex tools that simulate and predict the physical, chemical, and biological processes that influence climate over time. • Climatic variable: Quantitative or qualitative measure that represents some aspect of the Earth's climate system. These variables are used to characterize and analyze different climate components, such as temperature, precipitation, humidity, atmospheric pressure, wind speed and direction, among others. • Covariance: The covariance is the value through which it is reflected in what amount any variables vary jointly with respect to their arithmetic means. • Downscaling: Technique used to obtain climate projections on a finer and more detailed scale than those provided by global climate models. • ECDIS: European Climate Data and Information System • External forcing: In the context of climate science, external forcing refers to any disturbance of the climate system that is not caused by internal processes in the system, but by external factors, such as changes in solar radiation, volcanic activity, carbon emissions, etc. greenhouse gases and the variability of the Earth's orbit. These forcings can be natural or anthropogenic and can have both short- and long-term effects on climate. • GCM: General Circulation Models • IDW: Inverse Distance Weighting Interpolation • IPCC: Intergovernmental Panel on Climate Change • MAE: Mean Average Error • MBE: Mean Bias Error • NASA: National Aeronautics and Space Administration) • NOAA: National Oceanic and Atmospheric Administration) • PCA: Principal Component Analysis • PDF: Predictive Probability Density Function • QDM: Quantile Delta Mapping • QM: Quantile Mapping • QM: Quantile Mapping • RCM: Regional Circulation Models • RCP: Representative Concentration Pathway • RMSE: Root Mean Square Error
Memory 14 2 Climate description 2.1 Climate definition To describe why we study the climate first of all it’s important to explain what we understand about climate. According to the World Meteorological Organization (WMO), climate refers to the average atmospheric conditions of a given region over a period of at least 30 years. These conditions include temperature, humidity, precipitation, wind, and other meteorological factors. The climate can be classified into different types, such as tropical, subtropical, temperate, continental, etc. and these climate types are characterized by different patterns of temperature and precipitation, as well as the presence or absence of distinct seasons. It is important to understand the difference between climate and weather for the purpose of this paper. The main difference between climate and weather is the time scale to which they refer, since time is expressed through specific conditions in a short space of time and climate, as defined above, is the average of this time in a long period of time, taking into account variables such as temperature or rainfall. As defined by the article extracted from the Maldita.es (2023), the mathematical methods for estimating and making future projections of both will be totally different. To predict the weather, you need to know very specific variables, very accurately and in a short period of time. In short, today's weather depends on what has happened in the atmosphere previously. On the other hand, to predict the climate, a problem of boundary conditions must be taken into account, it is mandatory to previously know the general conditions that will mark its evolution, and from here, one can work to know the trend that it will experience within several decades. 2.2 Why we study the climate The study of climate is a critically significant endeavor, particularly in today's world where the profound impact of climate change has become undeniable. Across various domains, ranging from politics, economics, and health to tourism and agriculture, scientific knowledge about future climate patterns is essential for informed decision-making. These sectors require accurate and reliable information to anticipate and address the potential effects of climate change, while also taking actions that can contribute positively towards mitigating its adverse consequences (European Comission, n.d.). Consequently, there exists a substantial community of dedicated scientists who specialize in the comprehensive study and projection of climate, working tirelessly to unravel its complexities and provide invaluable insights for the benefit of society at large.
Study of statistical techniques to analyze the climate 15 2.3 Necessary elements to describe the climate As Núñez (2020) analyzes, the main climatic elements necessary to describe the climate are different atmospheric phenomena or properties of the atmosphere, which govern what the climate will be like in a specific place over a long period of time. The most important elements are: • Atmospheric temperature: It’s the heat energy of the air on a specific place and moment. The radiation of the sun is the determining phenomenon on which the atmospheric temperature depends. • Precipitations: All the water coming from the atmosphere which falls to the earth's surface either in the form of liquid water, snow... are considered precipitation. There are also other elements that are useful for studying the climate since they can also describe it. Some of these elements are: • Atmospheric pressure: It is the force applied by the atmospheric air on the surface of the earth and the bodies that are on it. • Wind: It’s the movement of air in the atmosphere relative to the earth's surface. • Humidity: It’s the quantity of vapor in the air. • Solar radiation: It’s the amount of energy that reaches the earth's surface in the form of sunlight. Those agents that act directly modifying the elements of the climate, accentuating or limiting them, are known as "climate factors". These factors are latitude, altitude, relief... (Núñez, 2020). In addition to these described elements, others must also be taken into account that are not directly related to the atmosphere but also help to describe the climate, such as ocean currents, which have a significant influence on the distribution of heat and humidity in the atmosphere, geography and topography and even human activity. 2.4 Necessary equations to describe the climate The climate, as a complex and dynamic phenomenon, is made up of a diversity of fundamental elements that give it its identity, as already explained. These elements emerge through physical interactions that intertwine in the various layers of our planet, such as the atmosphere, the hydrosphere, the biosphere, the cryosphere and the lithosphere (Rose, 2015). Through rigorous analysis, these interactions can be broken down and expressed in physical and thermodynamic equations, which provide an accurate description of climate behavior. These equations constitute a
Memory 16 diverse and extensive set, ranging from equation of state to atmospheric circulation and ocean motion patterns (Earth Exploration Toolbook, 2022). Below are just a few of the many equations needed to describe climate. 2.4.1 Equation of state This equation relates the pressure, volume and temperature of a gas, and can be used to study the behavior of the atmosphere, which is composed mainly of gases. By examining the variation of these parameters in different regions and altitudes of the atmosphere, we can better understand climate phenomena and the interactions between air, solar radiation, and water vapor. The equation of State- Ideal Gas Law that can represent for example dry air is expressed mathematically as follows (Stull, 2020): 𝑃=𝜌·𝑅𝑑·𝑇 (Eq. 1) Where: • 𝑃: Is the pressure. • 𝜌: Is the density. • 𝑅𝑑: Is the gas constant. • 𝑇: Is the temperature. 2.4.2 Navier-Stokes equations The Navier-Stokes equations are a set of partial differential equations that describe the motion of fluids (Schneiderbauer, 2014). These equations are widely used in fluid mechanics to model a variety of phenomena, including climate. The first Navier-Stokes equation referring to the description of climate that will be explained is the continuity equation. This equation states that the rate of change of the density of a fluid at a given point is equal to the negative of the divergence of the mass flow at that point (Hutten, 2007). The mathematical expression of this equation is as follows: 𝝏𝝆 𝝏𝒕+𝛁·(𝝆𝒗) (Eq. 2) Where: • 𝜌 = It is the density, in a climatic context, of the air.
Study of statistical techniques to analyze the climate 17 • 𝑡 = It's the time. • 𝑣 = It is the velocity vector of the flow, in a climatic context, of the wind. • ∇·(𝜌𝑣) = is the divergence of the product of the density (𝝆) and the flow velocity vector (𝒗), which represents the rate of change of mass within an infinitesimal volume. Due to the mathematical and physical complexity to understand and describe these equations, and taking into account that this is not the objective of the work, an image made by NASA is presented below, which summarizes the main Navier Stokes equations to take into account, so that the reader appreciates the complexity of these equations, where the equation of continuity just explained but developed, the equation of the conservation of momentum in the three dimensions and the equation of the conservation of energy are found: Figure 1. Image where the main equations of Navier Stokes are collected: The equation of continuity, conservation of momentum and energy (Source: NASA, 2021). 2.4.3 Energy balance equation As indicated by their name, energy balance equations provide a comprehensive framework that enables us to estimate and understand the intricate changes occurring within the climate system. These equations allow for a meticulous analysis of the energy budget of the Earth, considering various
Memory 18 factors and interactions, ultimately facilitating a deeper comprehension of the complex mechanisms driving our planet's climate dynamics (Goosse, n.d.): 𝑪𝑬𝝏𝑻𝒔 𝝏𝒕=((𝟏−𝜶𝒑)𝑺𝟎 𝟒−𝑨↑) (Eq. 3) Where: • 𝐶𝐸: Is the effective heat capacity of the media. • 𝜕𝑇𝑠: Is the surface temperature. • 𝑡: Is the time. • 𝛼𝑝= Is the planetary albedo. • 𝑆0= Is the Total Solar Irradiance • 𝐴↑= Is the total amount of energy that is emitted by a 1 m2 surface of the Earth. 2.4.4 Beer-Lambert’s law The attenuation of electromagnetic radiation as it travels through an absorbing material, such the atmosphere, is frequently measured using the Beer-Lambert Law. Although the original application of this equation was to the absorption of light by a substance in solution, it can be modified to determine how much solar radiation is attenuated in the atmosphere. The Beer-Lambert law states that the intensity of radiation decreases exponentially as it passes through an absorbing medium. Mathematically, it is expressed by the following equation (Grover, 2021): 𝑰=𝑰𝟎·𝒆−𝜶𝒙 (Eq. 4) Where: • 𝐼 is the intensity of the radiation after traversing a distance x. • 𝐼0 is the intensity of the incident radiation. • 𝛼 is the absorption coefficient, which represents the ability of the medium to absorb radiation. • 𝑥 is the distance that radiation has traveled through the medium. 2.4.5 The equations problem As it has been observed, some of the equations that have been shown or the development of these are of a high mathematical complexity. In addition, it must be taken into account that these equations are a tiny part of the totality of mathematical equations that define the climate entirely. In general, it can be said that the number of equations necessary to fully describe the climate is very large, but there
Study of statistical techniques to analyze the climate 19 is no specific number that can be determined with precision, it means that a comprehensive and accurate climate model that takes into account all relevant factors is practically impossible. However, there are numerical climate models that use the previous equations and many others fluid, thermodynamics, atmospheric dynamics, among other areas equations, to simulate climate at a global or regional level. These models can include anywhere from tens of thousands to millions of equations, depending on the complexity of the model and the desired spatial and temporal resolution. This fact it is explained in the 3.2 Climate Model point.
Study of statistical techniques to analyze the climate 21 3 The structure to analyze the climate Today, the most robust climate studies are primarily based on obtaining the most accurate climate prediction possible taking into account various scenarios and variables from climate models. This study can be divided into different phases until reaching understandable results which can tell us about future climate change. The objective of this work will be to describe each determining point of the structure to be taken into account in a study where climate projections are sought. In addition, the different statistical techniques necessary to complete each step will be highlighted and explained. A good flowchart to represent the phases mentioned above can be the following: Figure 2. Flowchart of the different steps to follow in a study where the objective of this is the climate projection from historical climate data taken from different databases using different climate models and statistical techniques. (Source: Own elaboration based on Daniels et al., 2012)
Memory 22 3.1 Climate data Handling climate data and ensuring their accuracy is of utmost importance in understanding and studying the Earth's climate system. Scientific institutions, including government agencies, international organizations, and universities, play a crucial role in collecting, storing, and analyzing historical climate data. Climate data is collected from diverse sources, including terrestrial meteorological stations, ocean buoys, satellites, and other observation platforms. These sources utilize a range of meteorological instruments to measure various climate variables such as temperature, precipitation, wind speed, humidity, and solar radiation. The data collected from these sources provide valuable insights into the Earth's climate patterns, trends, and changes over time. However, the process of handling climate data is not without challenges. It involves meticulous quality control procedures to identify and correct errors or inconsistencies that may arise during data collection, transmission, or storage. Errors can occur due to instrument malfunctions, calibration issues, human errors in data entry, or changes in observation practices over time. It is crucial to identify and rectify these errors to ensure the reliability and integrity of the climate data (World Meteorological Organization, 2016). Scientific institutions employ rigorous protocols and methodologies to process and analyze climate data. Data validation and quality assurance procedures are implemented to detect and correct errors, ensure data consistency, and enhance data accuracy. These institutions also collaborate with international networks and organizations to exchange data, conduct peer reviews, and ensure data interoperability across different regions and disciplines. Accurate and reliable climate data serve as the foundation for climate research, modelling, and decision-making processes. They enable scientists and policymakers to assess climate trends, understand the drivers of climate change, and develop strategies to mitigate its impacts. Robust data management practices, including error detection and correction, are crucial for maintaining the credibility and transparency of climate research and facilitating informed decision-making at local, regional, and global levels (World Meteorological Organization, 2016). 3.1.1 Main climatic variables to be measured The main climatic variables that are measured and modeled to carry out a climate projection study are exactly the same elements described in the point 2.3 Necessary elements to describe the climate. Since these elements have already been described at this point, the different units of measurement used for each climatic variable will be expressed below:
Study of statistical techniques to analyze the climate 23 • Temperature: Temperature is measured in degrees Celsius (°C) or Fahrenheit (°F). • Precipitation: Precipitation is measured in millimeters (mm) or inches (in). • Atmospheric pressure: Atmospheric pressure is measured in hectopascals (hPa) or millibars (mb). • Wind: Wind is measured in kilometers per hour (km/h) or miles per hour (mph). • Solar radiation: Solar radiation is measured in watts per square meter (W/m²). • Relative Humidity: Relative humidity is measured in percentage. 3.1.2 Measuring stations There are several sources responsible for providing different climatic data, each one equipped with specific instrumentation capable of measuring the different climatic variables defined in section 3.1.1 Main climatic variables to be measured. The most commonly used sources will be explained below. 3.1.2.1 Terrestrial Meteorological Stations Meteorological stations are installations equipped with instruments and technology that are used to measure and record various climate variables for various purposes, including climate research, such as air temperature, atmospheric pressure, rainfall, relative humidity, and wind direction (Meteorological network, n.d.). The location of these facilities is an important element to take into account, because it must be an optimal place for the specific instruments in charge of measuring the climatic variable in question to be able to do their job well. Also, normally the weather stations are distributed to throughout a certain area to establish a network of stations. Meteorological stations can be manual or automated. Manual stations are operated by human intervention, which means that data is recorded at regular intervals, usually daily, and manually transferred to a database. On the other hand, automated stations are built with electronic sensors to continuously measure and record data. This information is immediately sent to a main database. (Ying, n.d.).
Memory 30 Because of this, it is advisable to perform additional analysis of the data before deciding whether or not to delete it (Rumsey and Espada, 2017). The elimination of anomalous data is carried out using different statistical techniques, such as the standard deviation method, the boxplot method or the time series analysis method. 3.1.4.1.1 Standard deviation method The standard deviation method is a simple method to implement. To do this, first, the mean of the climatic data set to be studied must be calculated. To calculate the mean, the following expression can be used: 𝑥=1𝑛·∑𝑥𝑖 𝑛 𝑖=1 (Eq. 5) Where: • 𝑥: is the mean of the data set. • 𝑥𝑖: are the values of the data set. • 𝑛: is the amount of data in the data set Next, it is necessary to calculate the standard deviation. For this, the following expression is used: 𝑠=√∑(𝑥𝑖−𝑥) 𝑛𝑖=1𝑛−1 (Eq. 6) Where: • 𝑠: is the standard deviation. The standard deviation is a statistical measure that indicates how far the values in a data set differ from their mean or average. In other words, it is a measure of the dispersion or variability of the data (Hargrave, 2023). A threshold for the removal of outliers can be established once the mean and standard deviation have been computed. Three times the standard deviation above and below the mean is a typical cutoff point. Outliers are defined as values that are outside of this range and are eliminated from the data set (Dhadse, 2021).
Study of statistical techniques to analyze the climate 31 In addition to this limit, there are different tests that also use the standard deviation to distinguish outliers within a data set in order to eliminate them. One of them is the Grubbs test, which is based on calculating the distance between the maximum or minimum value of a data set and the mean, and compares this distance with the standard deviation of the data (Outlier calculator, n.d. ) The equation for the Grubbs test is: 𝐺=|𝑥𝑖−𝑥| 𝑠 (Eq. 7) Where: • G: is is the Grubbs test statistic The absence of outliers in the data is the Grubbs test's null hypothesis. For a certain significance level and sample size, the null hypothesis is rejected and it is determined that there is at least one outlier in the data if the value of G is higher than the critical Grubbs value. The critical Grubbs value used to determine whether a value is an outlier is based on the significance level and the sample size. Generally, a significance level of 0.05 (5%) is used and the Grubbs test is applied to detect individual outliers in a sample of size n. The critical value is determined using a Student's t-distribution (Grubbs’ test for outliers, n.d.). Although this technique is straightforward and simple to use, it has significant drawbacks. It does not take into consideration the spatial and temporal variance in climate data, making it potentially unsuitable for data sets with non-normal distributions. Therefore, it is advised to combine this strategy with other methods to find and eliminate outliers in climate data. 3.1.4.1.2 Boxplot method This method consists of analyzing the distribution of climatic data from a graphical representation of them. As defined in Box plots (n.d.) to create a boxplot, you must first draw a rectangle that will represent approximately the central 50% of the data, which will be known as a 'box'. The first quartile (25th percentile) marks one end of the box and the third quartile (75th percentile) marks the other end of the box, usually the bottom edge indicates the first quartile and the top edge the third. The median is shown inside the box as a horizontal line. Two vertical lines known as "whiskers" are drawn beginning at the box's edges. The box's edges up to the last data point that fits inside a given range are marked by whiskers. This range is applied to the distance between the bottom and top edges of the box and is determined by multiplying the standard deviation by a factor (often 1.5 or 3) (Agarwal, 2019).
Memory 32 Figure 9. Example of rendering the boxplot method for removing anomalous data. It can be seen how in this example a factor of 1.5 is applied. (Source: Agarwal, 2019). Note that the effectiveness of this method depends on how the data are distributed, so it is important to note that this technique may not be suitable for all data sets. 3.1.4.2 Error correction Climate data collection and analysis are subject to a variety of problems, including measurement errors, coding errors, transcription errors, data entry errors, and processing faults. Different methods can be used to fix these mistakes (Barr et.al., 2012). To ensure that the data is accurate and reliable, and thus avoid possible distortion of the analysis results, the correction of these errors is essential to carry out a good climate study. Manual review by analyzing each value in the data set for obvious errors, such as outliers or values that do not make sense, is a viable review depending on the sample size. When we talk about data groups for climate projections from climate models, we are talking about data groups with a considerable size, which is not feasible to manually review them. Therefore, the use of software that allows the detection of errors and anomalies in the data set would be an optimal solution. Another common mistake when we talk about climate data is the existence of missing data due to problems with the measuring instruments or the lack of observations. When this error exists, data interpolation techniques can be applied to estimate missing values from surrounding data using statistical techniques such as linear interpolation or polynomial interpolation (Lee and Kang, 2015).
Study of statistical techniques to analyze the climate 33 The climate data interpolation technique is the process of estimating values for missing data based on observed values and other factors such as geographic location, elevation, and time of year. Depending on the type of data that is missing, the precision desired in the results or the spatial distribution of the observed data, it will be more optimal to perform the interpolation with one statistical technique or another. Before explaining these techniques for the interpolation of missing data, it is important to define the concept of Euclidean distance, since many of these techniques use this concept for their calculation. The Euclidean distance is a measure of the distance between two points in a space with Cartesian coordinates (Distancia euclidiana, n.d.). Depending on the dimension of the space, the expression that defines the Euclidean distance is one or the other. For a space in three dimensions: 𝑑=√(𝑥2−𝑥1)2+(𝑦2−𝑦1)2+(𝑧2−𝑧1)2 (Eq. 8) Where: • (𝑥1, 𝑦1, 𝑧1): First point defined in three dimensions • (𝑥2, 𝑦2 , 𝑧2): Second point defined in three dimensions In some interpolation methods, the Euclidean distances between the points with known data and the points where interpolation is desired are used to estimate the unknown values. The most common interpolation techniques in climate studies are presented below. 3.1.4.2.1 Inverse Distance Weighting (IDW) Interpolation In climate research, missing data are imputed using the Inverse Distance Weighting Interpolation method. This method is predicated on the idea that closest known values can be used to estimate unknown values. As explained by GISGeography (2016) “Inverse Distance Weighting (IDW) interpolation is mathematical (deterministic) assuming closer values are more related than further values with its function.” This means that this technique is based on the assumption that values closer to an unknown point have more influence on the estimate than values farther away. This concept can be easily understood with a climatic example: When it rains, it is more likely that it will rain 1 meter away than 500 meters away (GISGeography, 2016). In addition, a 'neighborhood' must be established, which refers to a set of data points close to a specific point being interpolated. This set of nearby points is used to calculate the interpolated value at the point of interest by weighting the values of the neighboring points by their Euclidean distance from the point of interest. The neighborhood size can be defined based on a set maximum distance or a fixed number of nearby points.
Memory 34 The expression that defines this technique is the following: 𝑧𝑝=∑𝑧𝑖 𝑑𝑖𝑝 𝑛𝑖=1 ∑1 𝑑𝑖𝑝 𝑛𝑖=1 (Eq. 9) Where: • 𝑧𝑝: Is the estimated value of the missing data. • 𝑛: Is the number of observations in the neighborhood. • 𝑑𝑖: Is the Euclidean distance between the location of the missing datum and the location of the ith observation in the neighborhood. • 𝑧𝑖: Is the value of the i-th observation in the neighborhood. • 𝑝: It is a parameter that can be called 'power' and controls the influence of more distant observations. That is, the larger this parameter is, the more the general influence it has on the known values increases. It is significant to note that the neighborhood selection and neighborhood size have a significant impact on the success of inverse distance weighting interpolation. The interpolation could be incorrect if the neighborhood is too tiny because there isn't enough information to go around. On the other hand, if the neighborhood is too big, observations that are irrelevant or unrelated could cause the interpolation to be incorrect (How inverse distance weighted interpolation works, n.d.). 3.1.4.2.2 Kriging The Kriging method is an interpolation method that consists of model-based geostatistical methods that include statistical relationships between the midpoints, that is, autocorrelation. Instead, the IDW method just explained is known as a deterministic interpolation method. (Cómo funciona Kriging, n.d.). The foundation of Kriging is the estimation of a spatial correlation function, which explains the relationships between observations of the variable at various locations in space. When there are no data available, this correlation function is utilized to estimate unknown values. Since it reduces estimate variance and takes into consideration the spatial correlation of the data, kriging is regarded as an optimal interpolation technique (AM-29 - Kriging interpolation, n.d.). The general formula for this interpolator is formed as a weighted sum of the data (Cómo funciona Kriging, n.d.):
Study of statistical techniques to analyze the climate 35 𝑍(𝑠𝑜)=∑𝜆𝑖·𝑍(𝑠𝑖) 𝑛 𝑖=1 (Eq. 10) Where: • 𝑍(𝑠𝑜): is the estimated value at the interpolation point 𝑠𝑜 • 𝜆𝑖: is the weight assigned to the observation 𝑍(𝑠𝑖) • 𝑍(𝑠𝑖): is the value of the variable in observation i • 𝑛: is the number of measured values There are different types of Kriging, which differ in the spatial correlation function, also called variogram, that they use to calculate the weights 𝜆𝑖, which are assigned in such a way that the estimation has the minimum possible variance. Some of the most common types of Kriging are (Gutiérrez et.al., 2011): • Simple Kriging: Stationary variable of known mean. Uses a constant correlation function in space. • Ordinary Kriging: Stationary variable of unknown mean. Uses a constant correlation function in space. • Universal Kriging: Non-stationary variable, incorporates an auxiliary variable that describes the spatial trend of the variable. 3.1.4.3 Consistency check As has been observed so far, the climatic data sets obtained from a previous measurement are not perfect and various processes have to be carried out to improve the quality and homogeneity of these data. Checking the consistency between different climate data sets is another process to follow in handling these data to ensure the accuracy and reliability of the results. As Ribeiro et.al. (2016) explain: “The quality of climate data is of extreme relevance, as these data are used in many different contexts. However, few climate time series are free of unnatural irregularities. These inhomogeneities are related to the process of collecting, digitizing, processing, transferring, storing, and transmitting climate data series. For example, they may be caused by changes in measurement instrumentation, observing practices, or relocation of weather stations. To avoid errors and biases in the results of analyzes using such data, it is particularly important to detect and eliminate such unnatural irregularities before use.” Point errors (resulting from observation to transmission and mechanization processes), breakpoints corresponding to change-points or shifts in the mean (changes of location, instrumentation, observing
Memory 36 practices, or land use of the surroundings), and trends (sensor decalibration or urban growth) are the three main categories of inhomogeneities that can be distinguished (Ribeiro et.al., 2016). To achieve a homogeneous data set it is necessary to carry out various useful analyzes to verify that the consistency between various data sets exists. It is necessary to verify that the data from different weather stations are consistent with each other in temporal and spatial terms. To carry out this verification, the temporal and spatial evolution of the data in different stations can be compared, for this, the variability of the data must be analyzed in the same period of time and in different periods of time in order to analyze the spatial variability and temporary respectively. In addition, an analysis of trends and changes in the data over time to verify that inconsistencies are due to climatic events and not measurement or calibration issues is also optimal. 3.1.4.4 File formats Historical climate data can be lay up in a variety of file formats. Some of the more common formats are (Deser, n.d.): • Text Files: Information is saved in plain text files, where each line contains information for a single record, such as the date, time, and values for climate variables. • Spreadsheet files: Data can be saved in spreadsheet formats, such as Excel, where each row corresponds to a data record and each column to a climatic variable. • Binary Files: Data is saved in a binary format, which is more compact and faster to read than the text format, but more difficult to read and manipulate directly. • netCDF Files: It is a binary format that allows to save multidimensional data and metadata to describe the stored variables. • GRIB Files: It is a binary format that allows the storage and distribution of climate data around the world. GRIB represents climate data in a compressed format that can be downloaded and processed faster. As previously mentioned, the most used formats when introducing climate data to GCMs are the socalled netCDF and GRIB. 3.1.4.5 Main climate databases The National Office of Oceanic and Atmospheric Management (NOAA) is a scientific agency of the United States Department of Commerce whose activities focus on monitoring the conditions of the oceans and atmosphere. This organization provides different climate databases, such as the NCEP/NCAR Reanalysis. This climate database provides global data on atmospheric variables on a grid of approximately 2.5 degrees of resolution. It includes data from 1948 to the present, and the variables
Study of statistical techniques to analyze the climate 37 it provides include temperature, wind, pressure, humidity, among others (NOAA, n.d.). The file format used for the database is the NetCDF4 format. Another database belonging to NOAA is known as the Global Historical Climatology Network daily (GHCNd). This climate database provides temperature and precipitation data on a global and local scale. Includes data from 1880 to the present. It is quite useful for looking up climate data for specific sites. The National Aeronautics and Space Administration (NASA) helps understand and protect the planet, and explores the universe. In addition, it also provides important climate databases, such as MERRA-2 (Modern-Era Retrospective analysis for Research and Applications, version 2): This database provides global climate data, including air temperature, humidity, precipitation, wind speed and direction, solar radiation, and other parameters. The spatial resolution is 0.5 degrees in latitude and longitude, and the temporal resolution is 3 hours. Another database belonging to NASA is known as GPCP (Global Precipitation Climatology Project). This database provides global precipitation data through a combination of satellite and ground observations. The spatial resolution is 1 degree in latitude and longitude, and the temporal resolution is 1 day. The World Meteorological Organization (WMO) is an international organization created in 1950 within the UN whose objective is to ensure and facilitate cooperation between national meteorological services, promote and unify measuring instruments and observation method and also provides different climate databases.
Memory 38 3.2 Climate model (GCM) Today it is a fact that humanity has a deterministic role in the course of the climate system. In order to know the impact of disturbances of human origin that affect the climate, it is interesting to prepare projections from simulations. These simulations are made from complex mathematical calculations, which must be worked from sophisticated computers. These computers are capable of using different programs to reach the goal just described, and these programs are called 'models'. In addition, if these models are made up of different elements that describe the climate system, they are called 'climate models'. The climate system just mentioned is principally made up of the following elements: the atmosphere, the earth's surface, the cryosphere, the oceans, and the terrestrial and marine biospheres (Houghton, 1997). Climate models are mainly used to understand the processes influencing climate and perform global climate simulations for future prediction based on scientific principles. These scientific principles are essentially the processes used in fundamental physics that describe the elements that make up the climate system described above and the interactions between them as dynamics of the atmosphere, land, and ocean; which can be represented in different partial differential equations seen in point 2.4 Necessary Equations to explain the climate that use input data such as solar radiation or temperature. These simulations are useful for understanding the impact of the climate change scenario on different climate properties, such as global temperature or precipitation. Broadly speaking, climate models are complex systems consisting of several components, each representing a part of the climate system. The main components of a global circulation model are detailed below (Randall, et.al 2007): • Atmospheric component: A climate model’s atmospheric component is in charge of simulating atmospheric dynamics. To achieve this, the atmosphere is separated into a number of layers, and atmospheric variables including temperature, pressure, wind speed, and humidity are represented as functions of height and time. • Ocean Component: A climate model’s oceanic component is in charge of simulating the ocean's dynamics. This covers a variety of processes, including as temperature, salinity, ocean currents, and thermohaline circulation. Diverse equations that describe the dynamics of ocean circulation and are integrated over time make up ocean models. • Component of the earth's surface: It is the responsibility of the component of the earth's surface to simulate the processes that take place there, including interactions between the atmosphere and the surface, energy absorption and emission, gas exchange, the water cycle, and other processes.
Study of statistical techniques to analyze the climate 39 • Biogeochemical cycles: Biogeochemical cycle models, which depict the activities that take place in the atmosphere and on the surface of the Earth related to the interaction of life with climate, such as the carbon cycle and the nitrogen cycle, among others, are also included in models of global circulation. The components described above do not work in isolation, but interact with each other. For example, the atmospheric component affects the oceanic component through heat and moisture exchange, while the oceanic component affects atmospheric circulation and climate stability through heat and CO2 transport. The interactions between the components are a crucial aspect of global circulation models, since they allow simulating the behavior of the climate system as a whole. Fortran is commonly used as the programming language in global climate models. Fortran was the first "high-level" programming language, created by IBM in the 1950s. This indicates that the code is written more like a human language than a machine language, which is often just a stream of numbers (McSweeney, 2018). As the years progress, climate models have evolved considerably by incorporating a greater number of processes and phenomena relevant to understanding the climate system. Initially, climate models focused on basic aspects such as atmospheric circulation and surface temperature. However, with scientific and technological progress, more complex processes have gradually been included, such as ocean-atmosphere interactions, biogeochemical cycles, cloud feedbacks, changes in ice cover and vegetation, among others. These advances have enabled a more accurate representation of weather patterns and better simulation of extreme events, which in turn has strengthened the models' ability to project climate change and its future impacts with greater confidence and detail. Global climate models are complex systems that encompass an immense amount of computer code, so much so that it would take approximately 18,000 pages of printed text to document it all. Constructing and refining these models is a collaborative effort involving hundreds of scientists dedicating years of research and development. Furthermore, the computational demands of simulating weather and climate patterns are colossal, necessitating the utilization of supercomputers with extraordinary processing power. In fact, the current generation of climate models rely on massive supercomputers due to their computational requirements. For instance, the Met Office Hadley Centre operates three state-of-the-art Cray XC40 supercomputers, collectively capable of performing an astonishing 14,000 trillion calculations per second. These impressive technological resources enable researchers to delve into intricate climate simulations and advance our understanding of the Earth's complex climate system (McSweeney, 2018).
Memory 46 Figure 13. Flowchart that can be used as an aid in a climate projection study on a regional scale to decide which downscaling technique is most appropriate according to its needs and limitations, such as the desired resolution of the information or the time available to carry it out. the study. (Source: Trzaska and Schnarr, 2014). From the previous scheme, it should be highlighted that the existing limit to rule out the dynamic Downscaling method is a spatial resolution of 20 km, so if the objective of the study is to obtain a spatial resolution lower than this value, the statistical Downscaling method should be used directly. Also, it must be taken into account that once it is clear that the Statistical Downscaling method will be carried out, it is necessary to know how to differentiate if we want to perform Downscaling spatially or temporally, since it depends on how one technique or another will be used. As the object of this work is to define the statistical techniques used for the study of climate, and also, dynamic downscaling is a more complex method to define technically speaking, then the Statistical Downscaling will be deepened.
Study of statistical techniques to analyze the climate 47 3.3.1 Statistical Downscalling As explained in the previous section, statistical downscaling is a technique used to obtain detailed and localized estimates of climate variables from global or regional climate model and since regional climate models (RCM), like GCMs, need a lot of computational and technological power to model various physical processes, statistical downscaling is a more cost-effective alternative. As a result, it can be useful for institutions that lack the necessary computational power and technical know-how to use the dynamic downscaling method. There are several useful statistical techniques for carrying out this method. These can be classified into several subgroups for a better distribution. 3.3.1.1 Linear Methods Linear statistical downscaling techniques play a crucial role in this process by providing a detailed approximation of climate variables at a local scale. These techniques are based on the analysis of statistical relationships between large-scale climate variables and local predictor variables, such as topography, altitude, vegetation, or distance to the sea. Using statistical methods, linear techniques seek to capture and project these relationships to obtain more accurate estimates of climate variables at a finer scale (Sahoo, 2020). 3.3.1.1.1 Multiple linear regression Multiple linear regression is a linear method used to examine the relationship between a variable of interest (also known as the dependent variable) and a number of predictor factors (called the independent variables) (Hayes, 2023). Multiple linear regression can be used to examine the relationships between local climatic variables and global climate variables, such as mean global temperature, atmospheric pressure, and relative humidity (such as mean temperature in a specific location). The first step in multiple linear regression is to select the dependent variable. The dependent variable is the one that you want to predict or explain from other independent variables. The second step to follow is the choice of predictor variables that can influence the dependent variable. These variables must be relevant to the problem at hand. Once the dependent and independent variables have been selected, the necessary data must be collected to carry out the regression analysis. These data should be organized in a table that has one column for the dependent variable and one column for each independent variable (Rodrigo, 2016).
Memory 48 Once the data has been collected, the multiple linear regression is carried out. This is done using statistical software, such as R or Excel. In general, multiple linear regression analysis involves fitting a linear regression equation that describes the relationship between the independent variables and the dependent variable. This general equation is the following (Hayes, 2023): 𝑌=𝑏0+𝑏1·𝑥1+𝑏2·𝑥2+⋯+𝑏𝑝·𝑥𝑝+𝑒 (Eq. 11) Where: • 𝑌 is the dependent variable or response to be predicted. • 𝑥1, 𝑥2, ..., 𝑥𝑝 are the 𝑝 independent or predictor variables used to predict 𝑌. • 𝑏0 is the intercept term, which represents the value of y when all the independent variables are equal to zero. • 𝑏1, 𝑏2, ..., 𝑏𝑝 are the regression coefficients, which represent the relationship between each independent variable and the dependent variable. These coefficients are interpreted as the change in the dependent variable corresponding to a one-unit change in the independent variable, holding all other variables constant. • 𝑒 is the error term, which represents the variability not explained by the independent variables. In multiple linear regression, a straight line (or a hyperplane in higher dimensions) is fitted to the data to find the best combination of regression coefficient values that minimize the sum of the squared residuals. The goal is to find the linear relationship between the independent variables and the dependent variable that has the least amount of error possible (Aggarwal, 2020). The multiple linear regression formula is used to predict values of the dependent variable for new observations using the values of the corresponding independent variables. Once the regression coefficients have been estimated from the training data, they can be used to make predictions on new data. Once multiple linear regression has been performed, the results must be interpreted. This includes examining the coefficient of determination (𝑅²) to assess the goodness of fit of the model, examining the regression coefficients to assess the strength and direction of the relationship between the variables, and examining the residuals to ensure that the assumptions of the model are met (Frost, 2017). The amount of the dependent variable's overall variability that the regression model is able to account for is indicated by the coefficient of determination, or 𝑅². 𝑅² represents the proportion of the
Study of statistical techniques to analyze the climate 49 dependent variable's variability that can be explained by the independent variables in the model, to put it another way. The value of 𝑅² varies between 0 and 1, where 0 indicates that the model does not explain any of the variability in the dependent variable and 1 indicates that the model explains all the variability in the dependent variable. An 𝑅² value close to 1 indicates a good fit of the model to the data. (Gujarati and Porter, 2009). The coefficient of determination is calculated from the total sum of squares (SCT), the regression sum of squares (SCR), and the error sum of squares (SCE) using the following formula (Kumar, 2022): 𝑅² = 1 − (𝑆𝐶𝐸 𝑆𝐶𝑇) (Eq. 12) Where: • SCT represents the total variability of the dependent variable. It is calculated by adding the squared deviations of each value of the dependent variable from its mean. • SCR represents the variability explained by the regression. It is calculated by adding the squared deviations of the dependent variable predicted by the regression model from its mean. • SCE represents the variability not explained by the regression. It is calculated by adding the squared deviations of the observed dependent variable with respect to the dependent variable predicted by the regression model. As says Kutner (2005), in the context of a regression model, the residuals are the difference between the observed values and the values fitted by the model. In other words, the residuals are the error between the model prediction and the actual data. By deducting the observed value of the dependent variable from the value predicted by the model for the same value of the independent variables, the residuals are obtained. The residuals of a successful regression model will be tiny and random, showing that the model well describes the data. The model may not be capturing the link between the variables sufficiently if the residuals are large and not random, or there may be outliers affecting the results if the residuals are large and not random. It is important to analyze the model residuals to assess the quality of fit and to identify any problems or patterns that may exist in the data that were not accounted for in the model. For example, if the residuals have a trend or non-random pattern, this may indicate the presence of an important variable that has not been included in the model.
Memory 50 Then, it is necessary to verify that the principles of multiple linear regression are fulfilled. These principles are the linearity of the relationship between the variables, the normality of the residuals, the homoscedasticity of the residuals and the absence of multicollinearity between the predictor variables. Various tests, including the Shapiro-Wilk normality test, can be used to confirm the normality of the residuals. The data's origin from a normal distribution is the null hypothesis being tested by this statistical test. The null hypothesis is accepted and the residuals are assumed to be normally distributed if the test's p-value is higher than the selected significance threshold (for instance, 0.05). Otherwise, the null hypothesis is rejected and the residuals are not normally distributed if the p value is less than the significance level. (Ghasemi and Zahediasl, 2012) The term "homoscedasticity" describes the residuals' variance being the same for all fitted values. The Breusch-Pagan test can be used to confirm the homoscedasticity of the residuals in a multiple linear regression model. This test determines if the variance of the residuals is constant using statistical analysis. The test's null hypothesis is homoscedasticity, which states that the variance of the residuals is constant. The null hypothesis is accepted and it is determined that the residuals are homoscedastic if the p-value is higher than the set significance level (Zach, 2020). Multiple linear regression is commonly used in the Statistical Downscaling method to model the relationship between climate variables at different scales. An example of the use of multiple linear regression in this context could be the analysis of the relationship between temperatures on a regional and local scale, using temperature data on a global scale. In this case, historical temperature data would be collected on a global and regional scale, along with other relevant variables such as altitude, latitude, and humidity. Next, a multiple linear regression model would be fitted that relates global climate variables to regional climate variables. The fitted model would then be used to make predictions of future regional temperatures based on projected global temperatures. Statistical tests could also be performed to assess the significance of the regression coefficients and to verify whether the necessary assumptions for the model to be valid are met.
Study of statistical techniques to analyze the climate 51 3.3.1.1.2 Delta method One of the simplest statistical downscaling techniques is the delta method. The use of this method is varied according to the study carried out and the climatic variable to be studied. The Delta method is a statistical technique used in Statistical Downscaling to obtain projections of climate variables at local scales from projections of global climate models. The quotient between the future and present simulations generated by the GCM assumption is used as a multiplicative factor (delta) to obtain future regional data, as can be seen in the following expressions (Trzaska and Schnarr, 2014): 𝛿=𝑋𝑓 𝑋𝑐 (Eq. 13) 𝑌𝑓=𝛿·𝑌𝑐 (Eq. 14) Where: • 𝛿: Is the delta, which is the quotient between the future and present variable simulations generated by the GCM assumption. • 𝑋𝑓: Is the future variable simulation generated by the GCM assumption. • 𝑋𝑐: Is the present variable simulation generated by the GCM assumption. • 𝑌𝑓: Is the future regional variable. • 𝑌𝑐: Is the currently observed regional-scale variable. The predictor is the currently observed variable, and the GCM output is used to define the delta by which to multiply the current observed variable to obtain future values. It is important to note that the predictor and predictand need to be the same variable. The biggest flaw of this technique to be aware of is that because the same ratio or relative change is applied to all areas contained inside a single GCM grid point, any changes in the local climate caused by regional characteristics will not be taken into account (Trzaska and Schnarr, 2014).
Memory 52 3.3.1.1.3 Principal component analysis (PCA) Principal Component Analysis (PCA) is a statistical technique used in Statistical Downscaling to reduce the dimension of climate data. PCA seeks to identify underlying patterns and structures in a data set and transform them into a set of new uncorrelated variables, known as principal components. PCA is used in the context of statistical downscaling to identify the primary causes of variability in the data and minimize the dimensionality of high-resolution climate data. PCA can be used, for instance, to determine patterns of seasonal variability and long-term trends in temperature variations across the different seasons of the year. Once the patterns of variability have been identified, the results of the PCA can be used to develop statistical models that allow high-resolution weather patterns to be related to weather patterns at the regional or local level. These models can be used to downscale climate projections from global models and produce more detailed and accurate estimates of future climate at the local level The first step in using the principal component analysis technique is to standardize the data to be analyzed. This means that the values of each variable must be converted into standard deviations from their mean. This standardization is necessary to ensure that all variables have the same scale and that certain variables are not given more weight simply because they have larger values That is, if the variables have different scales or units of measurement, the variance of some variables may dominate over others, which may affect the quality and interpretation of the analysis results. By standardizing the data, you ensure that all variables have the same scale and are given equal weight in the analysis (Takesen, 2022). To standardize the data, the transformation called “z-score” (Takesen, 2022) is used. This manages to obtain values that represent the number of standard deviations that are above or below the mean from the original data. The formula that characterizes this transformation is the following (Jolliffe and Cadima, 2016): 𝑧𝑖𝑗=𝑥𝑖𝑗−𝑥𝑗 𝑠𝑗 (Eq. 15) Where: • 𝑧𝑖𝑗: Is the standardized value. • 𝑥𝑖𝑗: Is the original value of the variable. • 𝑥𝑗: Is the mean of the variable. • 𝑠𝑗: Is the standard deviation of the n observations of variable j
Study of statistical techniques to analyze the climate 53 For each variable, this formula is applied to all original values. This results in a new data table in which each variable has been standardized, and each value represents the number of standard deviations that it is above or below the mean. It is important to standardize the data in the PCA, as the variables may have different units of measurement and value scales, which may affect the interpretation of the analysis results. Standardization allows you to compare and combine variables fairly in the PCA, ensuring that each variable contributes equally to the total variance of the data (Takesen, 2022). Next, the covariance matrix must be calculated. This matrix indicates how the variables are related to each other. For each pair of variables, the covariance between them is calculated, which measures the strength and direction of the relationship. First of all, you have to understand what covariance is. This term is a measure of the linear relationship between two variables. When the linear relationship between two variables is strong, the covariance will be high. If there is no linear relationship between two variables, their covariance will be close to zero. The covariance matrix is a square matrix containing the covariances of all possible combinations of pairs of variables. If we have p variables, the covariance matrix will have p rows and p columns. The diagonal of the covariance matrix will contain the variances of each variable, since the covariance between a variable and itself is its own variance (Shlens, 2014). The covariance matrix can be calculated using the following formula (Janakiev, 2018): 𝑆= 1 𝑚−1·(𝑋−𝑋)(𝑋−𝑋)𝑇 (Eq. 16) Where: • S: is the covariance matrix • 𝑚: is the number of observations in the data • 𝑋: Matrix of a data set with n variables and m observations of size m x n • 𝑋: Is the vector of means of the variables, of size 1 x n. • (𝑋−𝑋): Is the centered matrix, where each column of 𝑋 is subtracted by its respective mean in 𝑋. The formula calculates the covariance between each pair of variables and stores them in the covariance matrix S. It is important to note that the covariance matrix can only be calculated if all the variables are on the same scale and with a significant linear relationship.
Memory 54 Once the covariance matrix has been calculated, the eigenvalues and eigenvectors must be calculated (Jolliffe and Cadima, 2016). These are the main components of the analysis. The eigenvalues indicate the amount of variance that is explained by each principal component, while the eigenvectors indicate the direction of each principal component. The process of calculating eigenvalues and eigenvectors is known as spectral decomposition, which is a method used in linear algebra to diagonalize a matrix. The spectral decomposition is performed by solving the following equation: 𝑆𝑣=𝜆𝑣 (Eq. 17) Where: • S: is the covariance matrix • λ: is the eigenvalue • v: is the eigenvector. The equation must be solved to calculate the eigenvalues and eigenvectors. This can be rewritten as follows (CliffsNotes, n.d.): (𝐴−𝜆𝐼)𝑣=0 (Eq. 18) Where I is the identity matrix. The identity matrix is a square matrix in which all the elements on the main diagonal are equal to 1 and the other elements are equal to zero. For the equation to have nontrivial solutions, the determinant of (A - λI) must be equal to zero, for this reason the following equation can be expressed: det(𝐴−𝜆𝐼)=0 (Eq. 19) This calculation results in a polynomial equation of degree n that can be solved to find the eigenvalues λ. Once the eigenvalues have been found, the corresponding eigenvectors can be computed. Each eigenvalue λ has an associated eigenvector v. To find this eigenvector, the previous equation is used (CliffsNotes, n.d.). Instead of solving this equation directly, the Gauss-Jordan elimination method is often used to solve the system of linear equations that arises by plugging λ into the matrix (A - λI). The result is an upper triangular matrix that can be solved backwards to find the values of the eigenvectors.
Study of statistical techniques to analyze the climate 55 Once the eigenvalues and eigenvectors are obtained, the principal components must be ordered. These principal components are ordered according to the magnitude of their respective eigenvalues. Principal components with larger eigenvalues explain most of the variance in the data, so they are considered the most important. Thus, the first principal component is the one with the largest eigenvalue, the second principal component is the one with the second largest eigenvalue, and so on (Jaadi, 2021). Once the principal components have been ordered according to their eigenvalues, the number of principal components to be taken into account in the analysis must be selected. For this, two useful methods for this selection will be explained below. The first method is known as the scree plot method. A Scree Plot is a simple line segment plot that shows the eigenvalues for each individual Principal Component in descending order. How does Mangale (2020) define: “Most scree plots look broadly similar in shape, starting high on the left, falling rather quickly, and then flattening out at some point. This is because the first component usually explains much of the variability, the next few components explain a moderate amount, and the latter components only explain a small fraction of the overall variability. The scree plot criterion looks for the “elbow” in the curve and selects all components just before the line flattens out. (In the PCA literature, the plot is called a ‘Scree’ Plot because it often looks like a ‘scree’ slope, where rocks have fallen down and accumulated on the side of a mountain.)” The main components that will be taken into account are those that are before the “elbow”. Figure 14. A Scree Plot from a sample PCA study where the principal components are the abscissa axis and the eigenvalues are the ordinate axis. The “elbow” is indicated on the plot. (Source: Mangale, 2020)
Memory 62 4 Evaluation of the results The climate projections obtained from the pertinent study defined so far in the body of the paper are a crucial tool for understanding and forecasting potential future changes in the Earth's climate. In developing policies and making decisions related to adaptation and mitigation to climate change, these projections are essential. However, it is crucial to understand that there are certain uncertainties in these projections, which should be carefully taken into account when interpreting and applying the results. It must be taken into account that the reason for the uncertainties in climate projections can come from different factors, as explained by Reggiani et.al. (2021) “Due to the chaotic nature of the Earth system, model integrations are sensitive to the initial and boundary conditions of slowly evolving components (for example, the state of the ocean or sea ice, which have long memories and, if incorrectly initialized, could also impact multi-year integrations performed in climate studies) used in the simulation, as well as specific pre-defined carbon emission scenarios. They are also sensitive to model approximations, for example, the fact that some key components of the Earth system, such as sea ice, vegetation or the closure of the freshwater cycle, are still simulated in a rather crude way.” Depending on where the resulting uncertainties in the climate projections come from, these can be categorized into internal variability uncertainties, model uncertainties, scenario uncertainties, and finally, baseline uncertainties linked to slowly evolving components. Depending on the duration of the climate projection, different sources of uncertainty will have different degrees of influence. This is why, in the initial decade of the projection, uncertainties arising from internal variability play a major role, while uncertainties introduced by the models themselves become more significant over time. Moreover, uncertainties related to specific scenarios may become dominant in certain regions and for projections extending beyond a few decades. Additionally, uncertainties associated with the initial conditions of slow-onset components only hold importance during the initial years of the integration. (Reggiani et.al., 2021).
Study of statistical techniques to analyze the climate 63 Figure 15. The relative importance of each source of uncertainties in the 10-year mean surface air temperature predictions are shown by the fractional uncertainty (the 90% confidence level divided by the mean prediction), for the global mean, relative to warming since 2000 (Source: Hawkins and Sutton, 2020) One of the most prominent initiatives in the field of climate model assessment is the Coupled Model Intercomparison Project (CMIP), which was established by the World Climate Research Program (WCRP). and the Intergovernmental Panel on Climate Change (IPCC) with the goal of improving understanding of the climate system and providing more accurate projections of climate change. Through CMIP, a global collaboration has been achieved that allows scientists to compare and evaluate climate models developed by different institutions and continually improve their ability to simulate complex climate phenomena. Since its inception in the 1990s, the CMIP has evolved significantly, involving numerous research centers and scientists from around the world. Assessments conducted under the CMIP framework are essential to support the findings of the IPCC and other scientific and policy organizations (WCRP, 2013). The CMIP uses suites of climate models selected from various institutions and research groups. These sets are made up of a variety of climate models developed by different scientific teams from around the world. Using climate model ensembles allows simulations from multiple models to be compared and evaluated, providing a more complete and robust view of the climate system and its possible future projections. By taking advantage of the diversity of models included in the ensembles, CMIP contributes to reducing uncertainties and improving our understanding of climate change and its implications (McSweeney, 2018). The findings and recommendations produced by the CMIP have a direct impact on how well we understand climate change and how we decide on climate-related policies and activities. Additionally,
Memory 64 these evaluations continue to enhance climate models and boost trust in climate projections and their future effects. 4.1 Uncertainties arising from the internal variability of the climate system Today climate projection scientists prioritize scenario-derived uncertainties using projections of multiple future scenarios and model-derived uncertainties using a multi-model ensemble of coupled general circulation model (CGM) projections. By comparison, uncertainties due to internal variability are rarely taken into account, despite evidence that internal variability is an important component of total climate uncertainty for at least the first 50 years of the projections (Schwarzwald and Lenssen, 2022). In a scientific context of the study of different climate projections, the internal variability of the climate system is understood as the natural fluctuations of the climate that occur due to the interaction of different components of the system, such as the atmosphere, oceans, ice and the biosphere on time scales ranging from daily climate to multi-decadal. This interaction of different components can be unpredictable due to the chaotic origin of the laws that govern the climate system, and, therefore, it can be concluded that the uncertainties that are consequences of these processes are irreducible (Schwarzwald and Lenssen, 2022). On the other hand, there are other processes that are predictable with some anticipation, such as the North Atlantic Oscillation (NAO), which is based on a pattern of variability in atmospheric pressure between the region of Iceland and the Azores in the North Atlantic (Met Office, 2018), or El Niño-Southern Oscillation (ENSO) which is a climatic phenomenon characterized by changes in sea surface temperature and atmospheric circulation patterns in the tropical Pacific region (L’Heureux et.al., 2020). Using ensembles analysis, which are collections of simulations with various initial circumstances and settings within a climate model or between different climate models, is a typical method for characterizing uncertainties arising from the internal variability of the climate system. These sets of simulations, called ensembles, make it possible to assess the variability between the results and provide a measure of the uncertainty inherent in climate projections. As explained in the previous paragraph, assemblage analysis can be multi-model, that is, a diverse set of simulations is generated using a set of coupled climate models (CGCM). Therefore, due to the construction and design of each climate model where the initial conditions or the parameters of the set of these will vary, slightly different simulated results will be obtained. Studying and combining these results leads to a more robust estimate of uncertainty and a more complete evaluation of climate
Study of statistical techniques to analyze the climate 65 projections. This type of analysis is known as multimodel ensembles of initial-condition large ensembles (LEs). The drawback of this technique is the large amount of data that is generated and the computational power required to carry it out (Deser et.al., 2020). In addition, this analysis can be carried out with a single climate model, in which the initial conditions or its parameters must be varied in order to obtain a set of different results under the same emissions scenario. This type of analysis is known as member ensemble, which helps to understand the influence of initial conditions and parameters on climate projections (Deser et.al., 2020). Various statistical techniques such as averages, standard deviations, or time series plots are needed to analyze and visualize climatic ensembles and summarize the variability and uncertainty of the ensemble results. From this statistical study, the consistency between the members of the ensemble is evaluated in order to obtain information about the uncertainty in different aspects of the future climate. However, it is important to highlight that ensemble analysis does not entirely eliminate uncertainty; rather, it quantifies it and offers a framework for analyzing its influence on climate projections. Assemblage analysis is crucial for assessing and communicating uncertainty in climate projections. 4.2 Uncertainties raised by climate models It is fair to use climate models to estimate the potential evolution of the Earth's climate, as has been observed in previous points, once they have been sufficiently contrasted with the data. Therefore, before using general circulation models (GCMs) to predict future climate trends, it is imperative to perform as extensive a review as possible (Casado et.al., 2011). As explained in previous points, the most determining point in a climate projection study is the simulation or simulations generated by a climate model, generally a GCM. Therefore, a large part of the uncertainties found in the results of this study will have a direct connection with the climate model(s) used. Due to the technical complexity of these climate models, it is difficult to specify to a certain extent the determining factors that cause most of the uncertainties. Even so, it is possible to highlight general aspects of climate models capable of causing uncertainties in the results. In the first place, one of the determining points origins of the uncertainties of the climatic models is the simplification of the physical processes that describe the climatic system. These models are composed of a large number of complex mathematical equations that describe these processes, but due to computational and time constraints, some of these processes must be simplified or parameterized for the model to be able to represent these processes on a global or regional scale (State of the planet, 2018). These parameterizations are used because the model has limitations when it
Memory 66 comes to solving processes at very small scales. By way of illustration, clouds and rain are complex phenomena that occur on incredibly small spatial and temporal scales. The models employ parameterized schemes that statistically represent the relationship between macroscopic variables, such as humidity and temperature, and cloud formation and precipitation, rather than directly recreating all the details of these phenomena, which would be virtually impossible due to the chaotic nature of the climate system. Although these parameterizations are based on facts and theory, their intrinsic simplifications add uncertainty (McSweeney, 2018). For the same reason for which these parameterizations are made, some important climatic processes may be omitted or underrepresented in the models. Depending on the complexity and computational capacity of the model, more or fewer processes will be omitted. In addition, it must be taken into account that many processes that make up the climate system exhibit non-linear interactions, this implies that changes to one variable may result in non-proportional or even non-linear reactions from changes to other variables (Schneider, 2003). It is difficult to represent these nonlinear interactions in models, and the projections may become imprecise if linear approximations or simplifications are used. Additionally, to accurately model weather patterns, the terrain and land surface must be accurately represented. Grid meshes are used in climate models to describe the Earth's system, and the spatial resolution of these grids can have an impact on how wellknown characteristics like mountains, water bodies, and land use are represented. Finally, it should be noted that these described points, which define a large part of the origins of the uncertainties in the climate model, can feed back into the model simulation process, thus causing an amplification of errors. This fact is due to the direct or indirect connection of many processes that make up the climate system. Therefore, if for example a model underestimates the climate sensitivity to carbon dioxide, that is, the amount of warming produced by a given increase in CO2 concentrations, then it will also underestimate the positive feedback from changes in atmospheric humidity. This can lead to an underestimation of changes in precipitation and other related effects. Once the origins of the uncertainties caused by the climate model have been identified, we can begin to talk about the characterization and evaluation that is carried out today of these uncertainties. A key point when evaluating climate models is the comparison of their simulated results with real observations, in order to validate the ability of climate models to adequately represent the climate system. It must be taken into account that this validation can only be carried out with existing real data, so the observed data from the past or present must be compared with the data simulated by the climate model in question. The historical data used to compare the results of the climate model come from the same databases and measurement stations that have been explained in the 'Climate Data' point, so the inherent
Study of statistical techniques to analyze the climate 67 uncertainties in the data must also be taken into account. observational data when making this comparison. The identification of biases and systematic errors in climate models is possible thanks to this comparison, since if there is a systematic tendency in the results of the climate model to overestimate or underestimate certain climate variables in comparison with the observations, this indicates a bias in the model. These biases, as just mentioned, are systematic and consistent deviations of the models in relation to the observational data. 4.2.1 Statistical techniques to identify biases in climate models To identify these biases belonging to climate models there are a number of useful methods. The assessment of past and present climate trends is an essential to identify biases in the representation of long-term changes. To begin with, a general study of the results can be carried out by comparing the climatic average of a specific variable provided by the model with the observational data. The model is biased if there is a systematic difference in the mean values. Following this line, the average difference between the model outputs and the observed data (mean bias) can be realized. This calculation is defined as follows (Mean bias error calculator, n.d.): 𝑀𝐵𝐸=1𝑛·∑(𝑃𝑖−𝑂𝑖) 𝑛 𝑖=1 (Eq. 21) Where: • 𝑂𝑖: Is the observation value • 𝑃𝑖: Is the forecast value • 𝑛: Is the quantity of values Depending on the result of this calculation, different conclusions can be reached. If the result is zero or a value very close to it, it means that the model results are unbiased, this means that the model has a systematic tendency to approach both above and below the observed values. On the other hand, a positive mean bias means that there is a tendency towards overestimation of the observed values (the values of the predictions are greater than those observed) and a negative bias means that there is a tendency towards the underestimation of the observed values (the values of predictions are lower than observed) (Mean bias error calculator, n.d.). Other methods for analyzing the accuracy and performance of a climate model compared to an observed data set is the mean absolute error (MAE) and the root mean square error (RMSE) (Willmot and Matsuura, 2005). The Mean Absolute Error (MAE) is the average of the differences in absolute
Memory 68 value of the observed values with their corresponding values predicted by the model, as can be seen in the following expression (Hodson, 2022): 𝑀𝐴𝐸=1𝑛·∑|𝑦𝑖−𝑦𝑖| 𝑛 𝑖=1 (Eq. 22) Where: • 𝑛: Is the total number of observations • 𝑦𝑖: Is the observed value • 𝑦𝑖: Is the predicted value The MAE is a useful metric because it provides a measure of the average magnitude of the errors on the same scale as the original data. In addition, the MAE is a statistical measure very similar to the Mean bias error (MBE), with the difference that the absolute value is applied in the subtraction, since the objective of this calculation is not to analyze whether the trend of the model results overestimates or underestimates the observed values, that is, it does not focus on the direction of the systematic bias of the model, but this calculation represents the average of the absolute difference between the predictions and the observations, focusing on the average magnitude of the errors, without consider its direction. On the other hand, the Root Mean Square Error (RMSE) is a measure similar to the MAE, but instead of calculating the absolute difference between the predictions and the observations, the squared difference is calculated. Then, the squares of the differences are averaged and the square root of the result is taken to obtain the RMSE, as can be seen in the following expression (Hodson, 2022): 𝑅𝑀𝑆𝐸=√1𝑛·∑(𝑦𝑖−𝑦𝑖)2 𝑛 𝑖=1 (Eq. 23) Where the variables have exactly the same meaning as the variables described in the MAE expression and also has the same units as the original data. The RMSE offers a measurement of the difference between forecasts and observations, much like the MAE does. The RMSE is more sensitive to outliers or extremes in the data because of the effect of squaring the differences, which penalizes large mistakes more (Root mean squared error (RMSE), n.d.)
Study of statistical techniques to analyze the climate 69 4.2.2 Statistical techniques to correct biases in climate models Biases in climate models can affect how accurate and relevant climate projections are, which in turn has an impact on how decisions are made across a variety of industries, including agriculture, water management, and the prevention of natural disasters. Therefore, addressing these biases and enhancing the precision of climate models is crucial. In this chapter, we will be focus on one technique in particular: "Quantile Mapping". Quantile mapping is a widely used statistical approach to fit model-simulated distributions of climate variables to more closely resemble distributions observed in historical or reference data. From these corrections, a better predictive ability of the models and more precise estimates of future climate conditions will be achieved. It is worth mentioning that Quantile Mapping is not the only technique used to correct bias in climate models, but it is widely used. 4.2.2.1 Quantile Mapping (QM) The technique known as Quantile Mapping (QM) is used to make adjustments or corrections to the projections of different climate variables simulated by different climate models in order to improve their consistency and ability to represent the observed reality in order to reduce the bias found in these models. The fundamental concept behind Quantile Mapping is based on the idea that the distributions of simulated and observed climate variables can be different due to several factors, such as the spatial and temporal resolution of the model, the physical parameterization used, among others. Therefore, quantile mapping seeks to fit the quantiles of the simulated distributions to match the corresponding quantiles in the observed distributions, while maintaining the shape and structure of the original distribution. As Enayati et.al. (2020) explains, in Quantile Mapping statistical transformations are implemented that imply transforming the distribution functions of the modeled variables into those observed from the following mathematical function: 𝑥𝑜=𝑓(𝑥𝑚) (Eq. 24) Where: • 𝑥𝑜: Is the observed variable • 𝑥𝑚: Is the modeled variable
Memory 70 It must be remembered that the cumulative distribution functions (CDF) of the time series of the observed and simulated variables can also be used to determine the quantile relationship because QM methods use the quantile-quantile relationship to converge the distribution function of the simulated variables to the observed one. (Enayati et.al., 2020). Therefore, “the general idea of QM is to equate the CDFs of, respectively, observed data 𝑥𝑜,ℎ, indicated by the subscript o, and modeled data, denoted by the subscript m, in a historical period, denoted by the subscript h” (Fauzi et.al., 2020). This leads to the following transfer function” (Cannon et.al., 2015). 𝑥𝑚,𝑝(𝑡)=𝐹𝑜,ℎ −1{𝐹𝑚,ℎ[𝑥𝑚,𝑝(𝑡)]} (Eq. 25) Where: • 𝐹𝑜,ℎ: Is the CDF of the observations • 𝐹𝑚,ℎ: It is the CDF of the simulations • 𝑥𝑚,𝑝: is the correction bias for the model output projection at time t within some projected period, denoted by the subscript p As explains Qian and Chang (2021): “For a quantile level τ, 0 ≤ τ ≤ 1 the quantile value (also known as the τ-th percentile) is obtained by the inverse CDF: 𝐹𝑜,ℎ −1(τ). Also let 𝑥𝑚,ℎ(𝑡) and 𝑥𝑚,𝑝(𝑡) denote, respectively, climate model data during the historical and the projected future periods, with corresponding CDFs 𝐹𝑚,ℎ(𝑡) and 𝐹𝑚,𝑝(𝑡)”. The method used to create the connection between the observed data distributions and the model projections is the key difference between the various QM techniques. The quantile adjustment procedure and the method that biases are corrected are directly impacted by this discrepancy. One of the most widely used QM methods to correct bias in climate models is Quantile Delta Mapping (QDM). The technique is based on the assumption that future climate changes can be estimated as differences (deltas) between the values of climate variables projected by the models and the values observed in a historical period. The first step to follow in this method is described in the following mathematical expression where the same variables are used as in the expression 28 (Cannon et.al., 2015): 𝜏𝑚,𝑝(𝑡)=𝐹𝑚,𝑝 (𝑡)[𝑥𝑚,𝑝(𝑡)], 𝜏𝑚,𝑝(𝑡)∈ {0,1} (Eq. 26) Where 𝜏𝑚,𝑝 is the no exceedance probability associated with the value at time t. We must calculate the ratio of the inverse CDF of model predicted data applied to the CDF of model predicted data and the inverse CDF of historical observed data applied to model predicted data in order
Study of statistical techniques to analyze the climate 71 to go on to the second phase. In mathematics, this may be expressed as (Khan and Pilz, 2018) (Cannon et.al., 2015): ∆𝑚(𝑡)=𝐹𝑚,𝑝 (𝑡)−1[𝜏𝑚,𝑝(𝑡)] 𝐹𝑚,ℎ −1[𝜏𝑚,𝑝(𝑡)]=𝑥𝑚,𝑝(𝑡) 𝐹𝑚,ℎ −1[𝜏𝑚,𝑝(𝑡)] (Eq. 27) By using the inverse CDF calculated from observed values 𝑥𝑜,ℎ during the historical era, the modeled quantile 𝜏𝑚,𝑝 at time t can subsequently be bias-corrected (Cannon et.al., 2015): 𝑥𝑜:𝑚,ℎ:𝑝(𝑡)=𝐹𝑜,ℎ −1[𝜏𝑚,𝑝(𝑡)] (Eq. 28) Finally, by applying the relative changes to the historical bias adjusted data, the bias corrected future estimates can be obtained (Khan and Pilz, 2018) (Cannon et.al., 2015): 𝑥𝑚,𝑝(𝑡)=𝑥𝑜:𝑚,ℎ:𝑝(𝑡)·∆𝑚(𝑡) (Eq. 29) Eqs. (27) and (29) can be applied additively rather than multiplicatively to retain absolute changes in the data. In QDM, the key difference is that instead of directly fitting the quantiles, the differences (deltas) between the quantiles of the observed data and the quantiles of the model projections are fitted. The differences between the quantiles of the cumulative distribution functions are calculated and these differences are applied to the projections of the models. This strategy seeks to correct for systematic discrepancies between model distributions and observed data, and is based on the assumption that the differences are consistent throughout the distribution. The reader can now comprehend the basics and practical applications of bias correction by fitting quantile distributions thanks to the presentation of the broad concepts and expressions associated with this technique. It is crucial to emphasize that this subject is quite complicated mathematically, and while the foundational elements have been established, the specifics and calculations have not been examined. Despite this, this chapter offers a useful overview and general framework for comprehending and using quantile mapping as a crucial technique for removing bias from climate models. 4.2.3 Methods for evaluate climate models The evaluation of climate models plays a fundamental role in understanding and predicting climate change and its impacts. Robust methods are essential to assess the predictive ability of climate models and their ability to reproduce observed climate features.
Memory 78 The statistical techniques explained in the chapter 'Statistical techniques to identify biases in climate models' such as the MAE or the RMSE, which evaluated the climate models and identified biases in them, are necessary in this section to assess the predictive ability of each base model and ensemble of model projections and evaluate the performance of the results. 4.3 Uncertainties arising from the scenarios The difficult precise anticipation of the socioeconomic factors and technological advances that occur on the planet contribute to the complexity of understanding and predicting the future impact of greenhouse gas emissions. The uncertainty derived from the scenarios is due to this complex cause. Society has a wide range of possibilities to follow in the future as far as different levels of emissions and environmental policies are concerned. Therefore, the number of possible different destinations is innumerable (Dierickx, 2019). As Dierickx (2019) states, various scientists have already taken this uncertainty into account and have reported on the most probable scenarios to be taken into account in the future, to quantify and compare the possible consequences of emissions. One framework widely used by these scientists is the Representative Concentration Pathway (RCP) framework, which provides a set of scenarios describing future greenhouse gas concentrations. To create these scenarios, various assumptions such as population growth, economic development, energy sources and political measures must be taken into account. Scientists can evaluate the possible range of outcomes and examine related hazards and vulnerabilities by evaluating the average impact of different scenarios on the future climate. As explained, the most important factor when talking about the uncertainties derived from the scenarios is the future impact of greenhouse gas emissions and their influence on climate change, but other factors must also be taken into account. social and environmental factors, such as land use patterns, technological innovation, and political decisions. The complexity of these factors makes it even harder to forecast how our planet will evolve in the future. To resolve uncertainty, collaboration and multidisciplinary research are crucial. A comprehensive understanding of complex systems is fostered by bringing together experts from several domains, including engineering, economics, social sciences, and climate science. Researchers can pool their knowledge, explore other viewpoints, and improve models by taking a variety of aspects into account through interdisciplinary collaboration, hence lowering the uncertainties associated with siled techniques.
Study of statistical techniques to analyze the climate 79 Figure 8.3. Differences in RCPs (Representative Concentration Pathways) 4.5 and 8.5 for future time periods. RCPs are greenhouse gas concentration (not emissions) trajectories adopted by the IPCC for its fifth Assessment Report (AR5) in 2014. (Source: Hanna, 2019)
Memory 80 5 Environmental study Throughout the development of the work, different aspects of the climate have been analyzed, studying different parts of it and its study. In addition, in different chapters of the work the importance of the human factor in climate change has been mentioned, where the growing awareness of its effects has led to a general recognition that our individual and collective actions can have a significant impact on the environment that surrounds us. An essential tool for assessing the direct and indirect effects of our activities in the natural environment is the analysis of environmental impact. In the case of this study, a thorough assessment of how our actions have affected CO2 emissions and, consequently, the climate change has been carried out. This work's environmental impact study allowed for a greater understanding of the carbon footprint connected with our activities by identifying and evaluating the elements that contributed to CO2 emissions. The use of energy resources has been considered during the realization of this work. Simplifying this concept, it will focus on the cost of electrical energy to carry out the work, since from the consumption of this energy CO2 emissions are produced that can affect the environment. To begin with, the electrical energy consumed in carrying out this work will be calculated. For this, an approximation of the time used for the execution of this must be taken into account, taking into account that according to Real Decreto 1125/2003 of the BOE, a university credit is equivalent to 25 hours of work, and the equivalent total credits of this work there are 24: 𝐻𝑡=25·24=600 ℎ (Eq. 40) In addition, a relationship of electrical energy consumed by the computer per hour of 0.3 kW will be taken into account. Once the approximate dedication time has been calculated and a relationship of the power consumed per hour has been provided, a coefficient must be found to determine the average CO2 emission per kW hour. Taking the emission factors provided by the ministry for the ecological transition and the demographic challenge as a reference, it was decided to approximate an emission factor of 0.27 kg CO2/kWh. From this data, the approximation of CO2 emissions used to carry out this work based on the consumption of the computer can be calculated: 𝐶𝑒=𝐻𝑡·𝑅𝑒·𝐹𝑒=600 ℎ· 0,3 𝑘𝑊·0,27 𝑘𝑔𝐶𝑂2 𝑘𝑊ℎ=48,6 𝑘𝑔𝐶𝑂2 The environmental impact analysis reveals that carrying out this work has generated approximately 48,6 kg of CO2 emissions, thus contributing to climate change. It is worth mentioning that other resources such as sheets or pens have been used to carry out this work, which also generate CO2 emissions, but compared to the amount (Eq. 41)
Study of statistical techniques to analyze the climate 81 of emissions caused by the consumption of electrical energy, these other resources are ignorable. However, this assessment process has also provided a valuable opportunity to identify areas for improvement and take concrete steps to reduce our carbon footprint.
Study of statistical techniques to analyze the climate 83 6 Conclusions From the research carried out, it has been possible to understand and study various aspects of the climate and its study. Thanks to the first sections of the work, it has been understood which elements are part of the climate and the scientific complexity required to describe it, a feature that will persist throughout a climate projection study. It is important to recognize that the climate is a dynamic and non-linear system, with multiple factors that interact with each other. The atmosphere, oceans, ice sheets, vegetation, and other components of the climate system influence each other in intricate and often unpredictable ways. This presents a considerable scientific challenge to accurately capture all these interactions and model their long-term behavior. Scientists have made great progress in the past few decades in their understanding of climate systems as well as their capacity to model and predict climate behavior. Due to the climate system's inherent complexity and the numerous interactions and feedbacks that make up it, this undertaking is by no means simple, as already described. It is necessary to highlight the importance of climate models today, since as explained in the work, they are in charge of representing in a quantitative and mathematical way the different processes that make up the climate. These models are essential tools that provide valuable information for decision-making in various areas, from infrastructure planning, natural resource management and agriculture, to climate risk assessment and public policy formulation. In addition, they make it possible to assess the potential impacts of climate change on different sectors, such as water availability, agricultural production, air quality, human health, and biodiversity. Besides, powerful supercomputers and complex algorithms, capable of processing and simulating the interplay of various climate components and factors at different temporal and spatial scales, are required to achieve an accurate and detailed picture of the climate. The development and ongoing improvement of climate models have been made possible by technological advancements in the field of computing, which have allowed for simulations that are more accurate and in-depth. The need for computational resources has increased as a result of the rising complexity of these models and the requirement to record weather phenomena at various degrees of precision. In terms of storage capacity, processing speed, and accessibility to the necessary infrastructure, this presents new issues. In a purely statistical approach to the work, several conclusions can be drawn, since the techniques used can vary in terms of difficulty depending on the context of the study. It has been observed that the difficulty of the statistical technique used depends mainly on the objective of each stage of the climate study and the level of precision desired when implementing certain statistical methods. That is, the selection of the appropriate statistical technique is influenced by the need to obtain accurate and reliable results at each step of the climate analysis. Speaking of statistics at work, it has been
Memory 84 possible to appreciate how some of the defined techniques are of a fairly high mathematical level, so it has been decided to explain the concept and the general equations of these methods without going too deep, since that does not is the objective of the work. It is also worth mentioning that in no explanation of the statistical methods have calculation examples been exposed, since it has been considered that, if each technique had to be defined numerically, in which cases the explanation would be unnecessarily lengthened, and it is not the objective of the work either. Currently, the study of climate projections is in an advanced state, driven by the collaboration of various institutions engaged in research and understanding of climate change. At the international level, organizations such as the Intergovernmental Panel on Climate Change (IPCC) play a crucial role in assessing and synthesizing scientific information on climate, providing reports and recommendations based on solid evidence. Additionally, many universities, research institutions, and governmental organizations at the national and regional levels actively contribute to the study of climate forecasts by performing original studies, creating regional climate models, and using in-depth analyzes in regions of interest. Informed decision-making and the implementation of adaptation and mitigation strategies for climate change are now supported by significant advances in our ability to understand and predict future changes in climate thanks to this inter-institutional and multidisciplinary collaboration.
Study of statistical techniques to analyze the climate 85 7 Economic analysis In this chapter, a detailed economic study will be conducted to analyze the costs associated with performing the work. The economic analysis allows us to understand and evaluate the expenses that have been incurred, giving us a clear vision of the financial resources used. To begin with, the resource described in the chapter where the environmental impact of the work has been described will be taken into account: the consumption of electrical energy. It has already been observed in that chapter that the number of hours spent in carrying out this work is 600 hours and the power consumed by the computer used in one hour is 0,3 kW. Therefore, the electrical energy consumed can be represented as follows: 600 ℎ· 0,3 𝑘𝑊=180 𝑘𝑊ℎ (Eq. 42) Taking into account an approximate relationship of the price per kWh in Spain of 0,20 €/kWh: 180 𝑘𝑊ℎ·0,20 € 𝑘𝑊ℎ=36 € (Eq. 43) An expense of 36 € of electricity consumption is obtained by the author of the work. The physical material used for the project must be taken into account, where it is found: Computer (600 €), peripherals (100 €) and small material such as sheets or pens (10 €). For computer parts, an amortization must be taken into account for the budget, taking into account a duration of the project of 4 months and a useful life of these devices of approximately 8 years: 𝐶𝑜𝑚𝑝𝑢𝑡𝑒𝑟 𝑎𝑚𝑜𝑟𝑡𝑖𝑧𝑎𝑡𝑖𝑜𝑛= 600 € 8 𝑦𝑒𝑎𝑟𝑠=75 €/𝑦𝑒𝑎𝑟 (Eq. 44) 𝑃𝑒𝑟𝑖𝑝ℎ𝑒𝑟𝑎𝑙𝑠 𝑎𝑚𝑜𝑟𝑡𝑖𝑧𝑎𝑡𝑖𝑜𝑛= 100 € 8 𝑦𝑒𝑎𝑟𝑠=12,5 €/𝑦𝑒𝑎𝑟 (Eq. 45) The total cost taking into account the time of use (0,33 years) of these devices for work: 𝐶𝑜𝑚𝑝𝑢𝑡𝑒𝑟 𝑐𝑜𝑠𝑡=75 € 𝑦𝑒𝑎𝑟·0,33 𝑦𝑒𝑎𝑟𝑠=24,75 € (Eq. 46) 𝑃𝑒𝑟𝑖𝑝ℎ𝑒𝑟𝑎𝑙𝑠 𝑐𝑜𝑠𝑡=12,5 € 𝑦𝑒𝑎𝑟·0,33 𝑦𝑒𝑎𝑟𝑠=4,13 € (Eq. 47) We must also mention the cost of internet connection during the approximately four months of the project. An approximation of the cost can be 30 €/month, therefore:
Memory 86 30 € 𝑚𝑜𝑛𝑡ℎ·4 𝑚𝑜𝑛𝑡ℎ𝑠=120 € (Eq. 48) Finally, the dedication of the people involved in the work must be taken into account, where a hypothetical price/hour can be approximated for each participant, in which the student is an electrical engineer and the tutor of the work: 𝑆𝑡𝑢𝑑𝑦′𝑠 𝑐𝑜𝑠𝑡:600 ℎ· 12 €ℎ=7.200 €ℎ (Eq. 49) 𝑇𝑢𝑡𝑜𝑟′𝑠 𝑐𝑜𝑠𝑡:30 ℎ·20 €ℎ=600 €ℎ (Eq. 50) To finish, we proceed to add the different calculated costs to know the approximate total cost of carrying out the work: 36 € + 24,75 € + 4,13 € + 10 €+ 120 € + 7.200 €+ 600 €=7.994,88 € (Eq. 51) In addition, taxes must be taken into account at the total cost (IVA of 21%): 7.994,88 € +21% (𝐼𝑉𝐴)=9.673,8 € (Eq. 52) A table can be built that summarizes the different types of costs and the final cost: Budget table 1. Summary table of the costs of the entire budget. Source: Self made Cost types Costs Energy cost 36,00 € Components cost Computer cost 24,75 € Peripherals cost 4,13 € Small material cost 10,00 € Internet cost 120,00 € Worker’s cost Study's cost 7.200,00 € Tutor's cost 600,00 € TOTAL COST (WITHOUT IVA 21%) 7.994,88 € TOTAL COST (WITH IVA 21%) 9.673,80 € The total cost is approximately of 9.673 €. The economic study has allowed obtaining a clear vision of the costs associated with carrying out the work. By carefully analyzing these expenditures, areas where
Study of statistical techniques to analyze the climate 87 financial resources have been used have been identified and the resulting economic impacts have been determined.
Memory 94 • Giorgi, F., & Mearns, L. O. (1991). Approaches to the simulation of regional climate change: A review. Reviews of Geophysics, 29(2), 191. https://doi.org/10.1029/90rg02636 • GISGeography. (2016, May 22). Inverse distance weighting (IDW) interpolation. GIS Geography. https://gisgeography.com/inverse-distance-weighting-idw-interpolation/ • Grover, J. (2021, September 15). Beer-Lambert law: Equation, derivation & applications. Collegedunia. https://collegedunia.com/exams/beer-lambert-law-physics-articleid-792 • Grubbs’ test for outliers. (n.d.). Engineering Statistics Handbook. Retrieved May 12, 2023, from https://www.itl.nist.gov/div898/handbook/eda/section3/eda35h1.htm • Guías Prácticas. (2014, February 28). Instrumentos meteorológicos. Guías Prácticas. https://www.guiaspracticas.com/estaciones-meteorologicas/instrumentosmeteorologicos • Guidelines on best practices for climate data rescue. (2016). • Gutiérrez, A., Ramírez, A. I., Lebel, T., Santillán, O., & Fuentes, C. (2011). El variograma y el correlograma, dos estimadores de la variabilidad de mediciones hidrológicas. • Hanna, J. W. (2019). Figure 2: Differences in rcps (representative concentration pathways)... ResearchGate. https://www.researchgate.net/figure/Differences-in-RCPs- Representative-Concentration-Pathways-45-and-85-for-future-time_fig1_345894999 • Hargrave, M. (2023, May 11). Standard deviation formula and uses vs. variance. Investopedia. https://www.investopedia.com/terms/s/standarddeviation.asp • Hawkins, E., & Sutton, R. (2009). The potential to narrow uncertainty in regional climate predictions. American Meteorological Society. • Hayes, A. (2023, May 9). Multiple linear regression (MLR) definition, formula, and example. Investopedia. https://www.investopedia.com/terms/m/mlr.asp
Study of statistical techniques to analyze the climate 95 • Hodson, T. O. (2022). GMD - Root-mean-square error (RMSE) or mean absolute error (MAE): When to use them or not. Geoscientific Model Development, 15(14), 5481–5487. https://doi.org/https://doi.org/10.5194/gmd-15-5481-2022 • Holton, J. R., & Hakim, G. J. (2013). An introduction to dynamic meteorology. Academic Press. • Hutten, I. M. (2007). Equation of Continuity - An overview. ScienceDirect Topics. https://www.sciencedirect.com/topics/engineering/equation-of-continuity • IPCC, 2013: Climate Change 2013: The Physical Science Basis. Contribution of Working Group I to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change [Stocker, T.F., D. Qin, G.-K. Plattner, M. Tignor, S.K. Allen, J. Boschung, A. Nauels, Y. Xia, V. Bex and P.M. Midgley (eds.)]. Cambridge University Press, Cambridge, United Kingdom and New York, NY, USA, 1535 pp. • Jaadi, Z. (2021, April 1). A step-by-step explanation of principal component analysis (PCA). Built In. https://builtin.com/data-science/step-step-explanation-principal-component- analysis • Janakiev, N. (2018). Understanding the covariance matrix. DataScience+. https://datascienceplus.com/understanding-the-covariance-matrix/ • Jolliffe, I. T., & Cadima, J. (2016). Principal component analysis: a review and recent developments. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 374(2065), 20150202. https://doi.org/10.1098/rsta.2015.0202 • Kenton, W. (2023, March 4). The Basics of Probability Density Function (PDF), with an example. Investopedia. https://www.investopedia.com/terms/p/pdf.asp • Khan, F., & Pilz, J. (2018, November 5). Statistical methodology for evaluating processbased climate models. IntechOpen. https://www.intechopen.com/chapters/63659 • Kumar, A. (2022, February 21). R-squared, R2 in linear regression: Concepts, examples. Data Analytics. https://vitalflux.com/r-squared-explained-machine-learning/
Memory 96 • Kumar, A. (2023, April 14). PCA explained variance concepts with Python example. Data Analytics. https://vitalflux.com/pca-explained-variance-concept-python-example/ • Kutner, M. H. (2005). Applied linear statistical models. McGraw-Hill Education. • L’Heureux, M. L., Levine, A. F. Z., Newman, M., Ganter, C., Luo, J.-J., Tippett, M. K., & Stockdale, T. N. (2020). ENSO prediction. AGU Journals. https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1002/9781119548164.ch10 • Laddimath, R. S., & Patil, N. S. (2016, August 17). STATISTICAL DOWNSCALING OF PRECIPITATION DATA USING ARTIFICIAL NEURAL NETWORK. Unknown. https://www.researchgate.net/publication/318461083_STATISTICAL_DOWNSCALING_OF _PRECIPITATION_DATA_USING_ARTIFICIAL_NEURAL_NETWORK • Lee, H., & Kang, K. (2015). Interpolation of missing precipitation data using kernel estimations for hydrologic modeling. Advances in Meteorology, 2015, 1–12. https://doi.org/10.1155/2015/935868 • López, J. F. (2017, October 2). R Cuadrado (Coeficiente de determinación) - Definición, qué es y concepto. Economipedia. https://economipedia.com/definiciones/r-cuadrado- coeficiente-determinacion.html • Maldita.es. (2023, February 6). Por qué no podemos predecir el tiempo que hará dentro de dos semanas pero sí el clima a largo plazo. Maldita.Es — Periodismo Para Que No Te La Cuelen. https://maldita.es/malditaciencia/20230206/predecir-tiempo-clima/ • Mangale, S. (2020, August 28). Scree plot - SANCHITA MANGALE. Medium. https://sanchitamangale12.medium.com/scree-plot-733ed72c8608 • Marta. (n.d.). Teorema de Bayes. Material Didáctico - Superprof. Retrieved May 24, 2023, from
Study of statistical techniques to analyze the climate 97 https://www.superprof.es/apuntes/escolar/matematicas/probabilidades/combinatoria/t eorema-de-bayes.html • Massoud, E. C., Lee, H., Gibson, P. B., Loikith, P., & Waliser, D. E. (2020). Bayesian model averaging of climate model projections constrained by precipitation observations over the contiguous United States. Journal of Hydrometeorology, 21(10), 2401–2418. https://doi.org/10.1175/JHM-D-19-0258.1 • McSweeney, R. (2018, January 15). Q&A: How do climate models work? Carbon Brief. https://www.carbonbrief.org/qa-how-do-climate-models-work/ • Mean bias error calculator. (n.d.). Retrieved May 17, 2023, from https://agrimetsoft.com/calculators/Mean%20Bias%20Error • Met Office. (2018, June 15). North Atlantic oscillation. Met Office. https://www.metoffice.gov.uk/weather/learn-about/weather/atmosphere/northatlantic-oscillation • Meteonavarra. (n.d.). Meteo Navarra. Retrieved March 25, 2023, from http://meteo.navarra.es/definiciones/diferenciaTiempoClima.cfm • Meteorogical network. (n.d.). Sociedad Ibérica de Construcciones Eléctricas, S.A. • Meteorology and Oceanography. (n.d.-b). Jojoeland. Retrieved May 11, 2023, from http://jojoeland.weebly.com/meteorologyandoceanography.html • Modelos Globales y Regionales de Cambio Climático - App Showcase Wordpress Theme. (2020, April 2). Meteosim. https://meteosim.com/modelos-globales-regionales-cambio- climatico/ • NASA. (2021). Navier-Stokes equations. https://www.grc.nasa.gov/www/k- 12/airplane/nseqs.html
Memory 98 • National Academies of Sciences, Engineering, and Medicine. (2016). Attribution of Extreme Weather Events in the Context of Climate Change. National Academic Press. • Núñez, S. (2020, December 23). Elementos y factores del clima. Ecologiaverde.Com. https://www.ecologiaverde.com/elementos-y-factores-del-clima-3167.html • Outlier calculator. (n.d.). Graphpad. Retrieved May 12, 2023, from https://www.graphpad.com/quickcalcs/grubbs1/ • Portillo, G. (2021, January 14). Satélites meteorológicos. Meteorología En Red. https://www.meteorologiaenred.com/satelites-meteorologicos.html • Punyawansiri, S., & Kwanyuen, B. (2020). Forecasting the future temperature using a downscaling method by LARS-WG stochastic weather generator at the local site of Phitsanulok Province, Thailand. Atmospheric and Climate Sciences, 10(4), 538–552. https://doi.org/10.4236/acs.2020.104028 • Qian, W., & Chang, H. H. (2021). Projecting health impacts of future temperature: A comparison of quantile-mapping bias-correction methods. International Journal of Environmental Research and Public Health, 18(4). https://doi.org/10.3390/ijerph18041992 • Raftery, A. E., Gneiting, T., Balabdaoui, F., & Polakowski, M. (2005). Using Bayesian Model Averaging to Calibrate Forecast Ensembles. • Randall, D. A., et al. (2007). "Climate Models and Their Evaluation." En H. T. Shen, & R. A. Weller (Eds.), Atmospheric Science and Climate in the 21st Century (pp. 15-78). Springer. • Randall, D.A., R.A. Wood, S. Bony, R. Colman, T. Fichefet, J. Fyfe, V. Kattsov, A. Pitman, J. Shukla, J. Srinivasan, R.J. Stouffer, A. Sumi and K.E. Taylor, 2007: Cilmate Models and Their Evaluation. In: Climate Change 2007: The Physical Science Basis. Contribution of Working Group I to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change [Solomon, S., D. Qin, M. Manning, Z. Chen, M. Marquis, K.B. Averyt, M.Tignor and
Study of statistical techniques to analyze the climate 99 H.L. Miller (eds.)]. Cambridge University Press, Cambridge, United Kingdom and New York, NY, USA • Reggiani, P., Todini, E., Boyko, O., & Buizza, R. (2021). Assessing uncertainty for decisionmaking in climate adaptation and risk mitigation. International Journal of Climatology, 41(5), 2891–2912. https://doi.org/10.1002/joc.6996 • Ribeiro, S., Caineta, J., & Costa, A. (2016). Review and discussion of homogenisation methods for climate data. Physics and Chemistry of the Earth, Parts A/B/C, 94, 167–179. https://doi.org/10.1016/j.pce.2015.08.007 • Rockel, B. (2015). The regional downscaling approach: A brief history and recent advances. Current Climate Change Reports, 1(1), 22–29. https://doi.org/10.1007/s40641- 014-0001-3 • Rodrigo, J. A. (2016, July). Introducción a la Regresión Lineal Múltiple. https://www.cienciadedatos.net/documentos/25_regresion_lineal_multiple.html • Root mean squared error (RMSE). (n.d.). OECD.AI. Retrieved May 20, 2023, from https://oecd.ai/Rose, B. E. J. (2015). Climate system components. https://www.atmos.albany.edu/facstaff/brose/classes/ATM623_Spring2015/Notes/Lectu res/Lecture04%20--%20Climate%20system%20components.html • Rumsey, D. J., & Espada, A. G. (2017). Estadística para Dummies. • Russell, R. (2010, November 29). UCAR E&O - Randy Russell. Climate Model Resolution. https://eo.ucar.edu/staff/rrussell/climate/modeling/climate_model_resolution.html • Sahoo, S. P., & Panda, K. C. (2020). Prediction of climate change using statistical downscaling techniques. In New Frontiers in Stress Management for Durable Agriculture (pp. 311–328). Springer Singapore. http://dx.doi.org/10.1007/978-981-15-1322-0_19 • Schneider, S. H. (2003). Abrupt Non-Linear Climate Change, Irreversibility and Surprise .
Memory 100 • Schneiderbauer, S., & Krieger, M. (2014, January 1). What do the Navier-Stokes equations mean ? European Physical Society. https://www.researchgate.net/publication/257941308_What_do_the_Navier- Stokes_equations_mean • Schwarzwald, K., & Lenssen, N. (2022). The importance of internal climate variability in climate impact projections. Proceedings of the National Academy of Sciences, 119(42). https://doi.org/10.1073/pnas.2208095119 • Shlens, J. (2014). A tutorial on principal component analysis. arXiv preprint arXiv:1404.1100. https://arxiv.org/abs/1404.1100 • Singh, P., Shamseldin, A. Y., Melville, B. W., & Wotherspoon, L. (2023). Development of statistical downscaling model based on Volterra series realization, principal components and ridge regression. Modeling Earth Systems and Environment, 1–20. https://doi.org/10.1007/s40808-022-01649-3 • Software DELSOL. (2019, June 20). ▷ Teorema de bayes ¿Qué es? https://www.sdelsol.com/glosario/teorema-de-bayes/ • Solomon, S., Quin, D., Manning, M., Marquis, M., Averyt, K., M.B. Tignor, M., LeRoy Miller, H., & Chen, Z. (2007). Climate Change 2007 The Physical Science Basis. IPCC. • Stack Exchange. (2022). What are principal component scores? Cross Validated. https://stats.stackexchange.com/questions/222/what-are-principal-component-scores • Stamnes, K., Thomas, G. E., & Stamnes, J. J. (2017). Radiative transfer in the atmosphere and ocean. Cambridge University Press. • State of the Planet. (2018, May 18). What are climate models and how accurate are they? Columbia Climate School. https://news.climate.columbia.edu/2018/05/18/climatemodels-accuracy/
Study of statistical techniques to analyze the climate 101 • Stephanie. (2016, April 18). Total probability rule / law of total probability theorem. Statistics How To. https://www.statisticshowto.com/total-probability-rule/ • Stull, R. (2020, January 22). 1.8: Equation of state-ideal gas law. Libretexts. https://geo.libretexts.org/Bookshelves/Meteorology_and_Climate_Science/Practical_Met eorology_(Stull)/01%3A_Atmospheric_Basics/1.08%3A_Equation_of_State- Ideal_Gas_Law • Tan, L. S., Programme, W. C. D. and M., & Organization, W. M. (2004). Guidelines on climate data rescue. • Taskesen, E. (2022). Algorithm — pca pca documentation. https://erdogant.github.io/pca/pages/html/Algorithm.html • Trzaska, S., & Schnarr, E. (2014). A review of downscaling methods for climate change projections. Center for International Earth Science Information Network (CIESIN). • Wallace, J. M., & Hobbs, P. V. (2006). Atmospheric science: An introductory survey. Elsevier. • WCRP. (2013, November 26). CMIP. https://www.wcrp-climate.org/wgcm-cmip • Willmot, C. J., & Matsuura, K. (2005). Advantages of the mean absolute error (MAE) over the root mean square error (RMSE) in assessing average model performance. Center for Climatic Research, Department of Geography, University of Delaware. • Windy Weather World Inc, USA. (n.d.). What are weather buoys and where they are applied. Retrieved May 10, 2023, from https://windy.app/blog/weather-buoys.html • World Meteorological Organization. (2016). Guidelines on Best Practices for Climate Data Rescue. • Yang, K., Kwan, H.-Y., Yu, Z., & Tong, T. (2020). Model selection between the fixed-effects model and the random-effects model in meta-analysis.
Memory 102 • Ying, W., Xiaoning, L., & Xiaohui, J. (n.d.). Differences between Automatic and Manual Meteorological Observation. https://library.wmo.int/pmb_ged/wmotd_1354_en/P3(05)_Wang-Ying-Mrs_China.pdf • Zach. (2020, December 31). The breusch-pagan test: Definition & example. Statology. https://www.statology.org/breusch-pagan-test/ • en/catalogue/metrics/root-mean-squared-error-%28rmse%29
Study of statistical techniques to analyze the climate 103