SlideShare a Scribd company logo
1 of 13
Download to read offline
UNIVERSIDAD CUAUHTÉMOC
PLANTEL AGUASCALIENTES
EDUCACIÓN A DISTANCIA
Maestría en Ciencia de los Datos y
Procesamiento de Datos Masivos
(Big-Data)
Segundo Cuatrimestre
Sergio Andrés Fonseca Chitiva
MODELOS ESTADÍSTICOS DINÁMICOS
Nombre del profesor
Jonás Velasco Alvares
Fecha de entrega
Noviembre 01 2015
“EXCELENTES PROFESIONISTAS, MEJORES SERES HUMANOS”
Descripción de la Actividad(es):
El alumno deberá realizar el ejercicio 1 y 7 del capítulo 3 dentro del MATERIAL
II 1. Para realizar los ejercicios, los datos se encuentran en el recurso DATOS
III 2. Enviar en un archivo PDF el desarrollo de los ejercicios.
Desarrollo de la actividad(es):
3.6 Exercises
1. a) Describe the association and calculate the ccf between x and y for k equal
to 1, 10, and 100.
> w <- 1:100
> x <- w + k * rnorm(100)
> y <- w + k * rnorm(100)
> ccf(x, y)
Nombre de la Unidad.
Ejercicio de la unidad 3
Objetivo de la Unidad.
Realizar los ejercicios indicados para este
capitulo.
Respecto a x,y están relacionadas de una forma lineal puesto que respeto al
tiempo esta sustrayendo
el t, donde la variable de correlación disminuye a medida que aumenta la
variable k
b) Describe the association between x and y, and calculate the ccf.
> Time <- 1:370
> x <- sin(2 * pi * Time / 37)
> y <- sin(2 * pi * (Time + 4) / 37)
Investigate the effect of adding independent random variation to x
and y.
Las variables x y ondas sinusoidales Y tanto seguir de período de 37 veces
unidades, con x la zaga y por 4 unidades de tiempo. La relación entre las
variables se pueden ver usando plot (x, y) que muestra x,y tienen una relación
no lineal dispersa sobre una elíptica camino.
7. Continue the following exploratory time series analysis using the global
temperature series from §1.4.5.
a) Produce a time plot of the data. Plot the aggregated annual mean series
and a boxplot that summarises the observed values for each season,
and comment on the plots.
www <- "C:/global.dat"
Global <- scan(www)
Global.ts <- ts(Global, st = c(1856, 1), end = c(2005, 12),fr = 12)
plot(Global.ts)
plot(aggregate(Global.ts))
boxplot(Global.ts ~ cycle(Global.ts))
www <- "C:/global.dat"
b) Decompose the series into the components trend, seasonal effect, and
residuals, and plot the decomposed series. Produce a plot of the trend with a
superimposed seasonal effect.
plot(decompose(Global.ts))
Global.decom <- decompose(Global.ts, type = "mult")
plot(Global.decom)
Trend <- Global.decom$trend
Seasonal <- Global.decom$seasonal
ts.plot(cbind(Trend, Trend * Seasonal), lty = 1:2)
b) Plot the correlogram of the residuals from question 7b. Comment on the
plot, explaining any ‘significant’ correlations at significant lags.
acf(Global.ts, xlab = 'lag (months)', main="")
c) Fit an appropriate Holt-Winters model to the monthly data. Explain why
you chose that particular Holt-Winters model, and give the parameter
estimates.
www <- "C:/global.dat"
Global.dat <- read.table(www, header = T); attach(Global.dat)
Global.ts <- ts(Global, st = c(1856, 1), end = c(2005, 12),fr = 12)
plot(Global.ts, xlab = "Time / months", ylab = "Complaints")
> Comp.hw1 <- HoltWinters(Global.ts, beta = 0, gamma = 0) ; Comp.hw1
Holt-Winters exponential smoothing with trend and additive seasonal component.
Call:
HoltWinters(x = Global.ts, beta = 0, gamma = 0)
Smoothing parameters:
alpha: 0.2739402
beta : 0
gamma: 0
Coefficients:
[,1]
a 0.455717898
b -0.011593386
s1 0.005628472
s2 0.301878472
s3 -0.067454861
s4 -0.217163194
s5 -0.141163194
s6 0.117961806
s7 0.146878472
s8 0.147295139
s9 -0.016538194
s10 -0.046079861
s11 -0.270329861
s12 0.039086806
>
d) Using the fitted model, forecast values for the years 2005–2010. Add
these forecasts to a time plot of the original series. Under what
circumstances would these forecasts be valid? What comments of
caution would you make to an economist or politician who wanted to use
these forecasts to make statements about the potential impact of global
warming on the world economy?
> sweetw.hw ; sweetw.hw$coef ; sweetw.hw$SSE
Holt-Winters exponential smoothing with trend and multiplicative seasonal compone
nt.
Call:
HoltWinters(x = sweetw.ts, seasonal = "mult")
Smoothing parameters:
alpha: 0.1318678
beta : 0.01806184
gamma: 0.2098766
Coefficients:
[,1]
a -0.454634140
b -0.004121177
s1 0.905377892
s2 0.604204844
s3 0.920640265
s4 0.992255863
s5 0.938399013
s6 0.529044547
s7 0.536223475
s8 0.492175735
s9 0.836452811
s10 0.846716956
s11 1.389375941
s12 0.876335635
a b s1 s2 s3 s4
-0.454634140 -0.004121177 0.905377892 0.604204844 0.920640265 0.992255863
s5 s6 s7 s8 s9 s10
0.938399013 0.529044547 0.536223475 0.492175735 0.836452811 0.846716956
s11 s12
1.389375941 0.876335635
[1] 5.064764
>
www <- "C:/global.dat"
Global.dat <- read.table(www, header = T); attach(Global.dat)
sweetw.ts <- ts(global, start = c(2005,1), end = c(2010, 12),freq = 12)
plot(sweetw.ts, xlab= "Time (months)", ylab = "sales (1000 litres)")
sweetw.hw <- HoltWinters (sweetw.ts, seasonal = "mult")
sweetw.hw ; sweetw.hw$coef ; sweetw.hw$SSE
sqrt(sweetw.hw$SSE/length(Global))
sd(Global)
plot (sweetw.hw$fitted)
plot (sweetw.hw)

More Related Content

What's hot

Parallel transport additional explorations part1&amp;2 sqrd
Parallel transport additional explorations part1&amp;2 sqrdParallel transport additional explorations part1&amp;2 sqrd
Parallel transport additional explorations part1&amp;2 sqrdfoxtrot jp R
 
1 s2.0-0272696386900197-main
1 s2.0-0272696386900197-main1 s2.0-0272696386900197-main
1 s2.0-0272696386900197-mainZulyy Astutik
 
Towards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum controlTowards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum controlAlejandro Díaz-Caro
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & DimensionManikanta satyala
 
Types of Analysis for Association
Types of Analysis for AssociationTypes of Analysis for Association
Types of Analysis for AssociationEdelson Bohol
 
GATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusGATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusParthDave57
 

What's hot (9)

principal of equal priori probility Muskan tiwari bsc i 2018
principal of equal priori probility Muskan tiwari bsc i 2018 principal of equal priori probility Muskan tiwari bsc i 2018
principal of equal priori probility Muskan tiwari bsc i 2018
 
Parallel transport additional explorations part1&amp;2 sqrd
Parallel transport additional explorations part1&amp;2 sqrdParallel transport additional explorations part1&amp;2 sqrd
Parallel transport additional explorations part1&amp;2 sqrd
 
1 s2.0-0272696386900197-main
1 s2.0-0272696386900197-main1 s2.0-0272696386900197-main
1 s2.0-0272696386900197-main
 
Towards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum controlTowards a quantum lambda-calculus with quantum control
Towards a quantum lambda-calculus with quantum control
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Aq4201280292
Aq4201280292Aq4201280292
Aq4201280292
 
Calculus
CalculusCalculus
Calculus
 
Types of Analysis for Association
Types of Analysis for AssociationTypes of Analysis for Association
Types of Analysis for Association
 
GATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector CalculusGATE Engineering Maths : Vector Calculus
GATE Engineering Maths : Vector Calculus
 

Similar to Dynamic Statistical Models

Comparison GUM versus GUM+1
Comparison GUM  versus GUM+1Comparison GUM  versus GUM+1
Comparison GUM versus GUM+1Maurice Maeck
 
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docx
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docxSWOT AnalysisHCS499 Version 32University of Phoenix Mater.docx
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docxssuserf9c51d
 
M2_L6 (TSF Exponential Smoothing Holt Winter).pptx
M2_L6 (TSF Exponential Smoothing Holt Winter).pptxM2_L6 (TSF Exponential Smoothing Holt Winter).pptx
M2_L6 (TSF Exponential Smoothing Holt Winter).pptxPrakharDwivedi51
 
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdf
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdfCalculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdf
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdfCONSTRUCTION WORLD SOLUTION
 
Matlab solved tutorials 2017 june.
Matlab solved tutorials  2017 june.Matlab solved tutorials  2017 june.
Matlab solved tutorials 2017 june.musadoto
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxinfantsuk
 
MATLAB review questions 2014 15
MATLAB review questions 2014 15MATLAB review questions 2014 15
MATLAB review questions 2014 15chingtony mbuma
 
1 FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx
1  FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx1  FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx
1 FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docxmercysuttle
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxanhlodge
 
1.0 Physical Quantities and Measurement
1.0 Physical Quantities and Measurement1.0 Physical Quantities and Measurement
1.0 Physical Quantities and MeasurementYusri Yusop
 
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docx
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docxATT00001ATT00002ATT00003ATT00004ATT00005CARD.docx
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docxikirkton
 
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...MaxineBoyd
 
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...Eesti Pank
 
3010l8.pdf
3010l8.pdf3010l8.pdf
3010l8.pdfdawitg2
 

Similar to Dynamic Statistical Models (20)

Comparison GUM versus GUM+1
Comparison GUM  versus GUM+1Comparison GUM  versus GUM+1
Comparison GUM versus GUM+1
 
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docx
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docxSWOT AnalysisHCS499 Version 32University of Phoenix Mater.docx
SWOT AnalysisHCS499 Version 32University of Phoenix Mater.docx
 
Tai lieu ve khu mua vu x11.x12
Tai lieu ve khu mua vu x11.x12Tai lieu ve khu mua vu x11.x12
Tai lieu ve khu mua vu x11.x12
 
M2_L6 (TSF Exponential Smoothing Holt Winter).pptx
M2_L6 (TSF Exponential Smoothing Holt Winter).pptxM2_L6 (TSF Exponential Smoothing Holt Winter).pptx
M2_L6 (TSF Exponential Smoothing Holt Winter).pptx
 
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdf
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdfCalculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdf
Calculus_Early_Transcendentals,_second_Edition,_by_Sullivan_and.pdf
 
Matlab solved tutorials 2017 june.
Matlab solved tutorials  2017 june.Matlab solved tutorials  2017 june.
Matlab solved tutorials 2017 june.
 
Climate Extremes Workshop - The Dependence Between Extreme Precipitation and...
Climate Extremes Workshop -  The Dependence Between Extreme Precipitation and...Climate Extremes Workshop -  The Dependence Between Extreme Precipitation and...
Climate Extremes Workshop - The Dependence Between Extreme Precipitation and...
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
 
MATLAB review questions 2014 15
MATLAB review questions 2014 15MATLAB review questions 2014 15
MATLAB review questions 2014 15
 
ECE611 Mini Project2
ECE611 Mini Project2ECE611 Mini Project2
ECE611 Mini Project2
 
Forecast2007
Forecast2007Forecast2007
Forecast2007
 
Master's thesis
Master's thesisMaster's thesis
Master's thesis
 
1 FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx
1  FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx1  FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx
1 FACULTY OF SCIENCE AND ENGINEERING SCHOOL OF COMPUT.docx
 
Section 2-4
Section 2-4Section 2-4
Section 2-4
 
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docxSAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
SAMPLE QUESTIONExercise 1 Consider the functionf (x,C).docx
 
1.0 Physical Quantities and Measurement
1.0 Physical Quantities and Measurement1.0 Physical Quantities and Measurement
1.0 Physical Quantities and Measurement
 
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docx
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docxATT00001ATT00002ATT00003ATT00004ATT00005CARD.docx
ATT00001ATT00002ATT00003ATT00004ATT00005CARD.docx
 
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...
Introduction to Probability and Statistics 13th Edition Mendenhall Solutions ...
 
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...
The Shifting Seasonal Mean Autoregressive Model and Seasonality in the Centra...
 
3010l8.pdf
3010l8.pdf3010l8.pdf
3010l8.pdf
 

Recently uploaded

Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 

Recently uploaded (20)

Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 

Dynamic Statistical Models

  • 1. UNIVERSIDAD CUAUHTÉMOC PLANTEL AGUASCALIENTES EDUCACIÓN A DISTANCIA Maestría en Ciencia de los Datos y Procesamiento de Datos Masivos (Big-Data) Segundo Cuatrimestre Sergio Andrés Fonseca Chitiva MODELOS ESTADÍSTICOS DINÁMICOS Nombre del profesor Jonás Velasco Alvares Fecha de entrega Noviembre 01 2015 “EXCELENTES PROFESIONISTAS, MEJORES SERES HUMANOS”
  • 2. Descripción de la Actividad(es): El alumno deberá realizar el ejercicio 1 y 7 del capítulo 3 dentro del MATERIAL II 1. Para realizar los ejercicios, los datos se encuentran en el recurso DATOS III 2. Enviar en un archivo PDF el desarrollo de los ejercicios. Desarrollo de la actividad(es): 3.6 Exercises 1. a) Describe the association and calculate the ccf between x and y for k equal to 1, 10, and 100. > w <- 1:100 > x <- w + k * rnorm(100) > y <- w + k * rnorm(100) > ccf(x, y) Nombre de la Unidad. Ejercicio de la unidad 3 Objetivo de la Unidad. Realizar los ejercicios indicados para este capitulo.
  • 3. Respecto a x,y están relacionadas de una forma lineal puesto que respeto al tiempo esta sustrayendo el t, donde la variable de correlación disminuye a medida que aumenta la variable k b) Describe the association between x and y, and calculate the ccf. > Time <- 1:370 > x <- sin(2 * pi * Time / 37) > y <- sin(2 * pi * (Time + 4) / 37) Investigate the effect of adding independent random variation to x and y.
  • 4. Las variables x y ondas sinusoidales Y tanto seguir de período de 37 veces unidades, con x la zaga y por 4 unidades de tiempo. La relación entre las variables se pueden ver usando plot (x, y) que muestra x,y tienen una relación no lineal dispersa sobre una elíptica camino. 7. Continue the following exploratory time series analysis using the global temperature series from §1.4.5.
  • 5. a) Produce a time plot of the data. Plot the aggregated annual mean series and a boxplot that summarises the observed values for each season, and comment on the plots. www <- "C:/global.dat" Global <- scan(www) Global.ts <- ts(Global, st = c(1856, 1), end = c(2005, 12),fr = 12) plot(Global.ts) plot(aggregate(Global.ts)) boxplot(Global.ts ~ cycle(Global.ts))
  • 7. b) Decompose the series into the components trend, seasonal effect, and residuals, and plot the decomposed series. Produce a plot of the trend with a superimposed seasonal effect. plot(decompose(Global.ts)) Global.decom <- decompose(Global.ts, type = "mult") plot(Global.decom) Trend <- Global.decom$trend Seasonal <- Global.decom$seasonal ts.plot(cbind(Trend, Trend * Seasonal), lty = 1:2)
  • 8. b) Plot the correlogram of the residuals from question 7b. Comment on the plot, explaining any ‘significant’ correlations at significant lags. acf(Global.ts, xlab = 'lag (months)', main="")
  • 9. c) Fit an appropriate Holt-Winters model to the monthly data. Explain why you chose that particular Holt-Winters model, and give the parameter estimates. www <- "C:/global.dat" Global.dat <- read.table(www, header = T); attach(Global.dat) Global.ts <- ts(Global, st = c(1856, 1), end = c(2005, 12),fr = 12) plot(Global.ts, xlab = "Time / months", ylab = "Complaints") > Comp.hw1 <- HoltWinters(Global.ts, beta = 0, gamma = 0) ; Comp.hw1 Holt-Winters exponential smoothing with trend and additive seasonal component.
  • 10. Call: HoltWinters(x = Global.ts, beta = 0, gamma = 0) Smoothing parameters: alpha: 0.2739402 beta : 0 gamma: 0 Coefficients: [,1] a 0.455717898 b -0.011593386 s1 0.005628472 s2 0.301878472 s3 -0.067454861 s4 -0.217163194 s5 -0.141163194 s6 0.117961806 s7 0.146878472 s8 0.147295139 s9 -0.016538194 s10 -0.046079861 s11 -0.270329861 s12 0.039086806 > d) Using the fitted model, forecast values for the years 2005–2010. Add these forecasts to a time plot of the original series. Under what circumstances would these forecasts be valid? What comments of caution would you make to an economist or politician who wanted to use these forecasts to make statements about the potential impact of global warming on the world economy?
  • 11. > sweetw.hw ; sweetw.hw$coef ; sweetw.hw$SSE Holt-Winters exponential smoothing with trend and multiplicative seasonal compone nt. Call: HoltWinters(x = sweetw.ts, seasonal = "mult") Smoothing parameters: alpha: 0.1318678 beta : 0.01806184 gamma: 0.2098766 Coefficients: [,1] a -0.454634140 b -0.004121177 s1 0.905377892 s2 0.604204844 s3 0.920640265 s4 0.992255863 s5 0.938399013 s6 0.529044547 s7 0.536223475 s8 0.492175735 s9 0.836452811 s10 0.846716956 s11 1.389375941 s12 0.876335635 a b s1 s2 s3 s4 -0.454634140 -0.004121177 0.905377892 0.604204844 0.920640265 0.992255863 s5 s6 s7 s8 s9 s10 0.938399013 0.529044547 0.536223475 0.492175735 0.836452811 0.846716956 s11 s12 1.389375941 0.876335635 [1] 5.064764 >
  • 12. www <- "C:/global.dat" Global.dat <- read.table(www, header = T); attach(Global.dat) sweetw.ts <- ts(global, start = c(2005,1), end = c(2010, 12),freq = 12) plot(sweetw.ts, xlab= "Time (months)", ylab = "sales (1000 litres)") sweetw.hw <- HoltWinters (sweetw.ts, seasonal = "mult") sweetw.hw ; sweetw.hw$coef ; sweetw.hw$SSE