SlideShare a Scribd company logo
1 of 19
CLIMATE CHANGE
IN PORTUGAL
Programming Techniques
Group number 2
Catarina Pereira, 52919
Cristiana Correia, 48576
Mariana Canavarro, 48809
Tiago Pires, 48816
SUMMARY
1. Literature review
2. Empirical work
4. Conclusion
2.1. Data context
2.2. Data collection
2.3. Data preparation
2.4. Exploring data
2.5. Data modelling
3. Results and discussing
2.6. Evaluation
2.7. Deployment
1. LITERATURE
REVIEW
• We studied the average temperature in Portugal
for the past 50 years in Beja, Lisbon and Porto.
• The increase in temperature is one of the most
controversial issues in nowadays.
• As climate slowly and gradually changes human
race as a high capacity to adapt, but it’s not
possible to predict the impact that it will have on
our daily life’s, said Zivin and Neidell (2014).
2. EMPIRICAL WORK
2.1. Data context
1
Stationary Time Series Model
(ARMA Model)
Time process where mean, variance
and autocorrelation remain
constant over time.
2
Non Stationary Time Series
Model (ARIMA Model)
Time Series with trend and
seasonality. Have no constant
mean over time (average depends
on time) or constant variance over
time.
3
Seasonal Time Series Models
(S-ARIMA Model)
Time Series that contains
seasonal phenomena that
repeats itself over a regular
period of time.
2.2. Data collection
2. EMPIRICAL WORK
• Our sample were collected from the Climate Portal
• We obtain data on the average temperature in 3 cities in Portugal: Beja, Lisboa and Porto
• From January 1971 to December 2018
• In total 576 observations
• The data came in a file in Excel format
2.3. Data preparation
2. EMPIRICAL WORK
1
2
3
Create 3 Python files, corresponding to the 3 cities we studied: Porto, Lisbon
and Beja.
Import the libraries we wanted to use, such as numpy, pandas,
statsmodels.api, statsmodels.tsa and also matplotlib.pyplot.
Define the variables: “dataset”, our main variable; “Data70” is the variable
that represents the observations up to the last year (excluding).
Define a correlation function (acf_pacf (x)) that will allow us to evaluate the
stationarity of our model.
4
2.4. Exploring data
2. EMPIRICAL WORK
We started plotting the original series chart to get a first visual idea of the behavior of the series.
So we essentially check if it has a tendency, if the variance is constant and if it has seasonality.
We can already see that the series does not have a marked trend and the variance does not
seem constant. Right here we suspect that the series is not stationary.
Figure 1. Original Serie
2.4. Exploring data
2. EMPIRICAL WORK
Figure 2. ACF/PACF from original series
Analyzing Figure 2 we can verify that the autocorrelation of the series does not slowly decay
to zero nor disappear after a certain delay. The same goes for PACF. We conclude that the
series is not stationary, so it needs transformations to become stationary and therefore can
be modeled.
2.4. Exploring data
2. EMPIRICAL WORK
Given the problems that make the series
non-stationary, the non-constant
variance and the seasonal component,
we applied two usual techniques:
• Logarithmization, so that the variance
becomes constant;
• Differentiation of order 12, to remove
the autocorrelations caused by
seasonality.
Figure 3. Logarithmization and differentiation (order 12)
Figure 4. ACF and PACF of figure 3
2.5. Data modelling
2. EMPIRICAL WORK
• Since we have already made the necessary
transformations so that our series is stationary, we now
need to know the number of optimal parameters
associated with seasonal and non-seasonal parts MA
and AR, which best fit our data. Consequently we run
the auto-arima function in python.
• The model with the best
information criterion is an
S-ARIMA (1,0,2) * (0,1,1)12.
2.5. Evaluation
2. EMPIRICAL WORK
The estimation of the model coefficients was performed based on the observations
collected up to the last year of the sample, that is, with the variable we created
“data70”. The model estimation result is given by the following output.
Figure 5. Model estimation output
1 − 0,9732𝐵 (1 − 𝐵12
)𝑍𝑡 = (1 − 0,7088𝐵 − 0,1695𝐵2
)(1 − 0,8303𝐵12
)𝑎𝑡
2.6. Evaluation
2. EMPIRICAL WORK
After estimating the model, we need to check if it has statistical properties that allow a
good prediction.
Figure 6. Model Residue Analysis
2.6. DEPLOYMENT
2. EMPIRICAL WORK
Ex-post forecasting, which consists of “predicting” what has already happened to analyze
forecasting behavior, a kind of training phase before we try to predict the future.
Figure 7. Ex post forecasting for the last 12 sample
observations
Figure 8. Absolute error percentage
2.6. DEPLOYMENT
2. EMPIRICAL WORK
Ex-Ante Forecasting, which consists of forecasting the data of the variable under study for a future
moment.
Figure 9. Ex-ante forecasting: predict the next 12 upcoming future
3. RESULTS AND DISCUSSING
Figure 10. Porto’s Original Series Figure 11. Lisbon’s Original Series Figure 12. Beja’s Original Series
Beja is the city with higher amplitude and higher temperatures, compared with Porto and Lisbon.
Figure 13. Porto’s moving average
(MA) and moving standard
deviation (MSD)
Figure 14. Lisbon’s MA and MSD Figure 15. Beja’s MA and MSD
In all three cities the average temperature has been increasing, the average and the standard deviation
have demonstrated a small but noticeable raise during our time frame.
3. RESULTS AND DISCUSSING
Analysing the three cities in
discussion we can say the S-ARIMA
(1,1,1)(0,1,1,12) did a good
prediction of all time series.
Figure 16. Porto’s Ex-post forecasting
Figure 17. Lisbon’s Ex-post forecasting Figure 18. Beja’s Ex-post forecasting
3. RESULTS AND DISCUSSING
The amplitude of temperature will continue to decrease,
especially in Porto city, despite the increase in average
temperature. Lisbon will apparently maintain its
amplitude of temperate and average temperature. And
finally, Faro will remain the city with the most observed
amplitude followed by the slight increase of minimum
temperatures.
Figure 19. Porto’s Ex-ante forecasting Figure 20. Lisbon’s Ex-ante forecasting
Figure 21. Beja’s Ex-ante forecasting
4. CONCLUSION
All models are wrong,
but some are useful.
George E. P. Box
“
”

More Related Content

Similar to Climate Change in Portugal

Climate Change Model
Climate Change ModelClimate Change Model
Climate Change ModelGaetan Lion
 
Forecasting_CO2_Emissions.pptx
Forecasting_CO2_Emissions.pptxForecasting_CO2_Emissions.pptx
Forecasting_CO2_Emissions.pptxMOINDALVS
 
Statitical consulting project report
Statitical consulting project reportStatitical consulting project report
Statitical consulting project reportZhaoqiu Luo
 
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...IRJET Journal
 
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...StatsCommunications
 
R language Project report
R language Project reportR language Project report
R language Project reportTianyue Wang
 
Objectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxObjectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxamit657720
 
Objectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxObjectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxvannagoforth
 
MFBLP Method Forecast for Regional Load Demand System
MFBLP Method Forecast for Regional Load Demand SystemMFBLP Method Forecast for Regional Load Demand System
MFBLP Method Forecast for Regional Load Demand SystemCSCJournals
 
Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...Bulbul Agrawal
 
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURON
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURONA PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURON
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURONijdpsjournal
 
Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1csandit
 
16 ch ken black solution
16 ch ken black solution16 ch ken black solution
16 ch ken black solutionKrunal Shah
 
Statistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorStatistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorXuanhua(Peter) Yin
 
Dimensionality reduction
Dimensionality reductionDimensionality reduction
Dimensionality reductionShatakirti Er
 

Similar to Climate Change in Portugal (20)

Climate Change Model
Climate Change ModelClimate Change Model
Climate Change Model
 
Forecasting_CO2_Emissions.pptx
Forecasting_CO2_Emissions.pptxForecasting_CO2_Emissions.pptx
Forecasting_CO2_Emissions.pptx
 
Statitical consulting project report
Statitical consulting project reportStatitical consulting project report
Statitical consulting project report
 
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
IRJET- Analysis of Crucial Oil Gas and Liquid Sensor Statistics and Productio...
 
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...
IAOS 2018 - Seasonal Adjustment of Daily Data, D. Ladiray, J. Palate, G.L. Ma...
 
Lemh1a2
Lemh1a2Lemh1a2
Lemh1a2
 
Lemh1a2
Lemh1a2Lemh1a2
Lemh1a2
 
R language Project report
R language Project reportR language Project report
R language Project report
 
Objectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxObjectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docx
 
Objectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docxObjectives ApproachExpected Results.docx
Objectives ApproachExpected Results.docx
 
MFBLP Method Forecast for Regional Load Demand System
MFBLP Method Forecast for Regional Load Demand SystemMFBLP Method Forecast for Regional Load Demand System
MFBLP Method Forecast for Regional Load Demand System
 
Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...Standard Statistical Feature analysis of Image Features for Facial Images usi...
Standard Statistical Feature analysis of Image Features for Facial Images usi...
 
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURON
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURONA PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURON
A PERFORMANCE EVALUATION OF A PARALLEL BIOLOGICAL NETWORK MICROCIRCUIT IN NEURON
 
Pca seminar final report
Pca seminar final reportPca seminar final report
Pca seminar final report
 
Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1
 
16 ch ken black solution
16 ch ken black solution16 ch ken black solution
16 ch ken black solution
 
Statistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorStatistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for Semiconductor
 
Six sigma pedagogy
Six sigma pedagogySix sigma pedagogy
Six sigma pedagogy
 
Six sigma
Six sigma Six sigma
Six sigma
 
Dimensionality reduction
Dimensionality reductionDimensionality reduction
Dimensionality reduction
 

More from eurosigdoc acm

Blockchain e o Futuro do Setor Financeiro
Blockchain e o Futuro do Setor FinanceiroBlockchain e o Futuro do Setor Financeiro
Blockchain e o Futuro do Setor Financeiroeurosigdoc acm
 
No code – Caso Prático no App Inventor - BroTrip
No code – Caso Prático no App Inventor - BroTripNo code – Caso Prático no App Inventor - BroTrip
No code – Caso Prático no App Inventor - BroTripeurosigdoc acm
 
The oracle problem nos smart contracts
The oracle problem nos smart contractsThe oracle problem nos smart contracts
The oracle problem nos smart contractseurosigdoc acm
 
Robotic process automation
Robotic process automation Robotic process automation
Robotic process automation eurosigdoc acm
 
Robotic Process Automation: caso de estudo Delloite
Robotic Process Automation: caso de estudo DelloiteRobotic Process Automation: caso de estudo Delloite
Robotic Process Automation: caso de estudo Delloiteeurosigdoc acm
 
Projeção do Crowdfunding em Portugal: a plataforma ppl
Projeção do Crowdfunding em Portugal: a plataforma pplProjeção do Crowdfunding em Portugal: a plataforma ppl
Projeção do Crowdfunding em Portugal: a plataforma ppleurosigdoc acm
 
Implementação de uma aplicação em Power Apps – Low Code
Implementação de uma aplicação em Power Apps – Low CodeImplementação de uma aplicação em Power Apps – Low Code
Implementação de uma aplicação em Power Apps – Low Codeeurosigdoc acm
 
Proteção de dados e redes sociais
Proteção de dados e redes sociaisProteção de dados e redes sociais
Proteção de dados e redes sociaiseurosigdoc acm
 
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIAL
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIALCLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIAL
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIALeurosigdoc acm
 
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDING
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDINGCROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDING
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDINGeurosigdoc acm
 
Low code: O futuro do desenvolvimento de aplicações
Low code: O futuro do desenvolvimento de aplicaçõesLow code: O futuro do desenvolvimento de aplicações
Low code: O futuro do desenvolvimento de aplicaçõeseurosigdoc acm
 
Robotic Process Automation
Robotic Process AutomationRobotic Process Automation
Robotic Process Automationeurosigdoc acm
 
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDE
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDECrowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDE
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDEeurosigdoc acm
 
Business Intelligence e o Desporto
Business Intelligence e o DesportoBusiness Intelligence e o Desporto
Business Intelligence e o Desportoeurosigdoc acm
 
Blockchain: viável ou em luta com o meio ambiente?
Blockchain: viável ou em luta com o meio ambiente?Blockchain: viável ou em luta com o meio ambiente?
Blockchain: viável ou em luta com o meio ambiente?eurosigdoc acm
 
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...eurosigdoc acm
 
Viabilidade das NFT’s a Longo Prazo
Viabilidade das NFT’s a Longo Prazo Viabilidade das NFT’s a Longo Prazo
Viabilidade das NFT’s a Longo Prazo eurosigdoc acm
 
Outsystems e o Universo do Low-Code
Outsystems e o Universo do Low-CodeOutsystems e o Universo do Low-Code
Outsystems e o Universo do Low-Codeeurosigdoc acm
 

More from eurosigdoc acm (20)

Blockchain e o Futuro do Setor Financeiro
Blockchain e o Futuro do Setor FinanceiroBlockchain e o Futuro do Setor Financeiro
Blockchain e o Futuro do Setor Financeiro
 
No code – Caso Prático no App Inventor - BroTrip
No code – Caso Prático no App Inventor - BroTripNo code – Caso Prático no App Inventor - BroTrip
No code – Caso Prático no App Inventor - BroTrip
 
The oracle problem nos smart contracts
The oracle problem nos smart contractsThe oracle problem nos smart contracts
The oracle problem nos smart contracts
 
Robotic process automation
Robotic process automation Robotic process automation
Robotic process automation
 
Robotic Process Automation: caso de estudo Delloite
Robotic Process Automation: caso de estudo DelloiteRobotic Process Automation: caso de estudo Delloite
Robotic Process Automation: caso de estudo Delloite
 
Projeção do Crowdfunding em Portugal: a plataforma ppl
Projeção do Crowdfunding em Portugal: a plataforma pplProjeção do Crowdfunding em Portugal: a plataforma ppl
Projeção do Crowdfunding em Portugal: a plataforma ppl
 
Implementação de uma aplicação em Power Apps – Low Code
Implementação de uma aplicação em Power Apps – Low CodeImplementação de uma aplicação em Power Apps – Low Code
Implementação de uma aplicação em Power Apps – Low Code
 
Proteção de dados e redes sociais
Proteção de dados e redes sociaisProteção de dados e redes sociais
Proteção de dados e redes sociais
 
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIAL
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIALCLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIAL
CLOUD COMPUTING E SUSTENTABILIDADE EMPRESARIAL
 
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDING
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDINGCROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDING
CROWDFUNDING: IMPACTO DA GAMIFICAÇÃO NAS PLATAFORMAS DE CROWDFUNDING
 
Low code: O futuro do desenvolvimento de aplicações
Low code: O futuro do desenvolvimento de aplicaçõesLow code: O futuro do desenvolvimento de aplicações
Low code: O futuro do desenvolvimento de aplicações
 
Robotic Process Automation
Robotic Process AutomationRobotic Process Automation
Robotic Process Automation
 
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDE
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDECrowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDE
Crowdsourcing: DEFINIÇÕES E APLICAÇÕES NA ÁREA DA SAÚDE
 
Business Intelligence e o Desporto
Business Intelligence e o DesportoBusiness Intelligence e o Desporto
Business Intelligence e o Desporto
 
Blockchain
Blockchain Blockchain
Blockchain
 
Blockchain: viável ou em luta com o meio ambiente?
Blockchain: viável ou em luta com o meio ambiente?Blockchain: viável ou em luta com o meio ambiente?
Blockchain: viável ou em luta com o meio ambiente?
 
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...
Cloud Computing e a sua Implementação na Educação no Contexto de Pandemia COV...
 
Viabilidade das NFT’s a Longo Prazo
Viabilidade das NFT’s a Longo Prazo Viabilidade das NFT’s a Longo Prazo
Viabilidade das NFT’s a Longo Prazo
 
Outsystems e o Universo do Low-Code
Outsystems e o Universo do Low-CodeOutsystems e o Universo do Low-Code
Outsystems e o Universo do Low-Code
 
Erp
ErpErp
Erp
 

Recently uploaded

Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...Call Girls in Nagpur High Profile
 
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...SUHANI PANDEY
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedDelhi Call girls
 
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...SUHANI PANDEY
 
CSR_Tested activities in the classroom -EN
CSR_Tested activities in the classroom -ENCSR_Tested activities in the classroom -EN
CSR_Tested activities in the classroom -ENGeorgeDiamandis11
 
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000Sapana Sha
 
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...SUHANI PANDEY
 
Cyclone Case Study Odisha 1999 Super Cyclone in India.
Cyclone Case Study Odisha 1999 Super Cyclone in India.Cyclone Case Study Odisha 1999 Super Cyclone in India.
Cyclone Case Study Odisha 1999 Super Cyclone in India.cojitesh
 
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...Call Girls in Nagpur High Profile
 
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
CSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting DayCSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting DayGeorgeDiamandis11
 
DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024itadmin50
 
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...SUHANI PANDEY
 
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...tanu pandey
 
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...Anamikakaur10
 

Recently uploaded (20)

Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...Book Sex Workers Available Pune Call Girls Kondhwa  6297143586 Call Hot India...
Book Sex Workers Available Pune Call Girls Kondhwa 6297143586 Call Hot India...
 
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Chakan ( Pune ) Call ON 8005736733 Starting From 5K to 2...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Wagholi ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...
VVIP Pune Call Girls Moshi WhatSapp Number 8005736733 With Elite Staff And Re...
 
CSR_Tested activities in the classroom -EN
CSR_Tested activities in the classroom -ENCSR_Tested activities in the classroom -EN
CSR_Tested activities in the classroom -EN
 
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000
Call Girls In Okhla DELHI ~9654467111~ Short 1500 Night 6000
 
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...
VVIP Pune Call Girls Wagholi WhatSapp Number 8005736733 With Elite Staff And ...
 
(Anamika) VIP Call Girls Jammu Call Now 8617697112 Jammu Escorts 24x7
(Anamika) VIP Call Girls Jammu Call Now 8617697112 Jammu Escorts 24x7(Anamika) VIP Call Girls Jammu Call Now 8617697112 Jammu Escorts 24x7
(Anamika) VIP Call Girls Jammu Call Now 8617697112 Jammu Escorts 24x7
 
(NEHA) Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts 24x7
(NEHA) Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts 24x7(NEHA) Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts 24x7
(NEHA) Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts 24x7
 
Cyclone Case Study Odisha 1999 Super Cyclone in India.
Cyclone Case Study Odisha 1999 Super Cyclone in India.Cyclone Case Study Odisha 1999 Super Cyclone in India.
Cyclone Case Study Odisha 1999 Super Cyclone in India.
 
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...Booking open Available Pune Call Girls Budhwar Peth  6297143586 Call Hot Indi...
Booking open Available Pune Call Girls Budhwar Peth 6297143586 Call Hot Indi...
 
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Kondhwa ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Kondhwa ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
CSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting DayCSR_Module5_Green Earth Initiative, Tree Planting Day
CSR_Module5_Green Earth Initiative, Tree Planting Day
 
DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024DENR EPR Law Compliance Updates April 2024
DENR EPR Law Compliance Updates April 2024
 
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Talegaon Dabhade Call Me 7737669865 Budget Friendly No Advance Boo...
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 8005736733 Cal...
 
Green Marketing
Green MarketingGreen Marketing
Green Marketing
 
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...Verified Trusted Kalyani Nagar Call Girls  8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
Verified Trusted Kalyani Nagar Call Girls 8005736733 𝐈𝐍𝐃𝐄𝐏𝐄𝐍𝐃𝐄𝐍𝐓 Call 𝐆𝐈𝐑𝐋 𝐕...
 
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
Call Now ☎️🔝 9332606886 🔝 Call Girls ❤ Service In Muzaffarpur Female Escorts ...
 

Climate Change in Portugal

  • 1. CLIMATE CHANGE IN PORTUGAL Programming Techniques Group number 2 Catarina Pereira, 52919 Cristiana Correia, 48576 Mariana Canavarro, 48809 Tiago Pires, 48816
  • 2. SUMMARY 1. Literature review 2. Empirical work 4. Conclusion 2.1. Data context 2.2. Data collection 2.3. Data preparation 2.4. Exploring data 2.5. Data modelling 3. Results and discussing 2.6. Evaluation 2.7. Deployment
  • 3. 1. LITERATURE REVIEW • We studied the average temperature in Portugal for the past 50 years in Beja, Lisbon and Porto. • The increase in temperature is one of the most controversial issues in nowadays. • As climate slowly and gradually changes human race as a high capacity to adapt, but it’s not possible to predict the impact that it will have on our daily life’s, said Zivin and Neidell (2014).
  • 4. 2. EMPIRICAL WORK 2.1. Data context 1 Stationary Time Series Model (ARMA Model) Time process where mean, variance and autocorrelation remain constant over time. 2 Non Stationary Time Series Model (ARIMA Model) Time Series with trend and seasonality. Have no constant mean over time (average depends on time) or constant variance over time. 3 Seasonal Time Series Models (S-ARIMA Model) Time Series that contains seasonal phenomena that repeats itself over a regular period of time.
  • 5. 2.2. Data collection 2. EMPIRICAL WORK • Our sample were collected from the Climate Portal • We obtain data on the average temperature in 3 cities in Portugal: Beja, Lisboa and Porto • From January 1971 to December 2018 • In total 576 observations • The data came in a file in Excel format
  • 6. 2.3. Data preparation 2. EMPIRICAL WORK 1 2 3 Create 3 Python files, corresponding to the 3 cities we studied: Porto, Lisbon and Beja. Import the libraries we wanted to use, such as numpy, pandas, statsmodels.api, statsmodels.tsa and also matplotlib.pyplot. Define the variables: “dataset”, our main variable; “Data70” is the variable that represents the observations up to the last year (excluding). Define a correlation function (acf_pacf (x)) that will allow us to evaluate the stationarity of our model. 4
  • 7. 2.4. Exploring data 2. EMPIRICAL WORK We started plotting the original series chart to get a first visual idea of the behavior of the series. So we essentially check if it has a tendency, if the variance is constant and if it has seasonality. We can already see that the series does not have a marked trend and the variance does not seem constant. Right here we suspect that the series is not stationary. Figure 1. Original Serie
  • 8. 2.4. Exploring data 2. EMPIRICAL WORK Figure 2. ACF/PACF from original series Analyzing Figure 2 we can verify that the autocorrelation of the series does not slowly decay to zero nor disappear after a certain delay. The same goes for PACF. We conclude that the series is not stationary, so it needs transformations to become stationary and therefore can be modeled.
  • 9. 2.4. Exploring data 2. EMPIRICAL WORK Given the problems that make the series non-stationary, the non-constant variance and the seasonal component, we applied two usual techniques: • Logarithmization, so that the variance becomes constant; • Differentiation of order 12, to remove the autocorrelations caused by seasonality. Figure 3. Logarithmization and differentiation (order 12) Figure 4. ACF and PACF of figure 3
  • 10. 2.5. Data modelling 2. EMPIRICAL WORK • Since we have already made the necessary transformations so that our series is stationary, we now need to know the number of optimal parameters associated with seasonal and non-seasonal parts MA and AR, which best fit our data. Consequently we run the auto-arima function in python. • The model with the best information criterion is an S-ARIMA (1,0,2) * (0,1,1)12.
  • 11. 2.5. Evaluation 2. EMPIRICAL WORK The estimation of the model coefficients was performed based on the observations collected up to the last year of the sample, that is, with the variable we created “data70”. The model estimation result is given by the following output. Figure 5. Model estimation output 1 − 0,9732𝐵 (1 − 𝐵12 )𝑍𝑡 = (1 − 0,7088𝐵 − 0,1695𝐵2 )(1 − 0,8303𝐵12 )𝑎𝑡
  • 12. 2.6. Evaluation 2. EMPIRICAL WORK After estimating the model, we need to check if it has statistical properties that allow a good prediction. Figure 6. Model Residue Analysis
  • 13. 2.6. DEPLOYMENT 2. EMPIRICAL WORK Ex-post forecasting, which consists of “predicting” what has already happened to analyze forecasting behavior, a kind of training phase before we try to predict the future. Figure 7. Ex post forecasting for the last 12 sample observations Figure 8. Absolute error percentage
  • 14. 2.6. DEPLOYMENT 2. EMPIRICAL WORK Ex-Ante Forecasting, which consists of forecasting the data of the variable under study for a future moment. Figure 9. Ex-ante forecasting: predict the next 12 upcoming future
  • 15. 3. RESULTS AND DISCUSSING Figure 10. Porto’s Original Series Figure 11. Lisbon’s Original Series Figure 12. Beja’s Original Series Beja is the city with higher amplitude and higher temperatures, compared with Porto and Lisbon. Figure 13. Porto’s moving average (MA) and moving standard deviation (MSD) Figure 14. Lisbon’s MA and MSD Figure 15. Beja’s MA and MSD In all three cities the average temperature has been increasing, the average and the standard deviation have demonstrated a small but noticeable raise during our time frame.
  • 16. 3. RESULTS AND DISCUSSING Analysing the three cities in discussion we can say the S-ARIMA (1,1,1)(0,1,1,12) did a good prediction of all time series. Figure 16. Porto’s Ex-post forecasting Figure 17. Lisbon’s Ex-post forecasting Figure 18. Beja’s Ex-post forecasting
  • 17. 3. RESULTS AND DISCUSSING The amplitude of temperature will continue to decrease, especially in Porto city, despite the increase in average temperature. Lisbon will apparently maintain its amplitude of temperate and average temperature. And finally, Faro will remain the city with the most observed amplitude followed by the slight increase of minimum temperatures. Figure 19. Porto’s Ex-ante forecasting Figure 20. Lisbon’s Ex-ante forecasting Figure 21. Beja’s Ex-ante forecasting
  • 19. All models are wrong, but some are useful. George E. P. Box “ ”