SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
The Hodrick-Prescott (HP) filter is defined as minimizer mˆ = (mˆ1, . . . , mˆT )′
of
Ψ (m; λ) =
T∑
t=1
(yt − mt)2
+ λ
T∑
t=3
(mt − 2mt−1 + mt−2)2
with respect to m = (m1, . . . , mT )′
. Rewrite this penalized least squares criterion in ma-
trix notation and show that the HP filter is a linear filter, i.e. that it may be represented
as
ˆm = A(λ)y
for some non-stochastic matrix A(λ) depending on the smoothing parameter λ > 0.
Solution When
we mark
y =



y1
...
yT


, m =



m1
...
mT


 and B =







1 −2 1 0 · · · 0
0 1 −2 1 0 · · · 0
... ... ...
...
...
...
...
... 0
0 · · · 1 −2 1







we can rewrite Hodric-Precsott filter as:
min
m
Ψ (m; λ) = (y − m)T
(y − m) + λ (Bm)T
(Bm) .
We can find minimum ˆm of equation when we derive that and set this derivative equal
to zero:
∂Ψ (m; λ)
∂m
= 2m − 2y + λ.2.BT
Bm= 0
When we prove that the second derivative is positive definite, we know that ˆm for
which
ˆm + λBT
Bm = y
is really minimimum for which we search.
2www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
Because for any vector c ̸= 0 we have:
cT
(
I + λBT
B
)
c = cT
c
>0
+ λ (Bc)T
(Bc)
≥0
we know that the second derivative is positive definite i.e:
∂2
Ψ(m; λ)
∂m∂m
= 2
(
I + λBT
B
)
> 0.
Therefore we can say that our ˆm is
ˆm =
(
I + λBT
B
)−1
A(λ)
y = A(λ)y.
3www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
Suppose that a time series {yt} can be decomposed into deterministic trend mt, a
seasonal component st and irregular (random) fluctuations ut such that yt = mt+st+ut
for t = 1, . . . , T. Show that the weighted moving average filter
y∗
t =
1
9
(−yt−2 + 4yt−1 + 3yt + 4yt+1 − yt+2) t = 3, . . . , T − 2
has the following properties:
a) A cubic time trend, mt =
∑3
j=0 βjtj
, passes the filter without distortion,
i.e. m∗
t = mt. (3 points)
b) A seasonal component st with period 3 (i.e. st = st+3 for all t) is eliminated by the
filter, that is s∗
t = const. (3 points)
Solution
We are only interested in what happens when we pass our series through filter consid-
ering separate somponents.
yt = mt + st + ut
weighted moving average filter
; ; ; ; ; y∗
t = m∗
t + s∗
t + u∗
t
So we will try to explain separate new components by using old ones.
a)
m∗
t = 1
9
(−mt−2 + 4mt−1 + 3mt + 4mt+1 − mt+2)
=
1
9
(
−
∑3
j=0 βj(t − 2)j
+ 4
∑3
j=0 βj(t − 1)j
+ 3
∑3
j=0 βjtj
+
+4
∑3
j=0 βj(t + 1)j
−
∑3
j=0 βj(t + 2)j
)
=
−β0 −β1(t − 2) −β2(t − 2)2
−β3(t − 2)3
+4β0 +4β1(t − 1) +4β2(t − 1)2
+4β3(t − 1)3
+3β0 +3β1(t) +3β2(t)2
+3β3(t)3
+4β0 +4β1(t + 1) +4β2(t + 1)2
+4β3(t + 1)3
−β0 −β1(t + 2) −β2(t + 2)2
−β3(t + 2)3
.
We sum all coeficients which belong to t1
, . . . , t3
respectively. (It’s easier to look
at that column by column.) And we get:
m∗
t =
1
9
(−9mt−2 + 36mt−1 + 27mt + 36mt+1 − 9mt+2) = mt.
4www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
b)
s∗
t = 1
9
(−st−2 + 4st−1 + 3st + 4st+1 − st+2)
= 1
9
(−st+1 + 4st+2 + 3st + 4st+1 − st+2)
= 1
3
(st + st+1 + st+2) .
But also
s∗
t+1 = 1
3
(st+1 + st+2 + st+3)
= 1
3
(st+1 + st+2 + st )
and identical for next ones too. So it is obvious that s∗
t is the same for all
t ∈ {3, . . . T − 2}, thus constant.
5 Burdejov´a P., Strejc P.www. statisticsassignmentexperts.com
email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215

Más contenido relacionado

Último

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Time Series Homework Help

  • 1. The Hodrick-Prescott (HP) filter is defined as minimizer mˆ = (mˆ1, . . . , mˆT )′ of Ψ (m; λ) = T∑ t=1 (yt − mt)2 + λ T∑ t=3 (mt − 2mt−1 + mt−2)2 with respect to m = (m1, . . . , mT )′ . Rewrite this penalized least squares criterion in ma- trix notation and show that the HP filter is a linear filter, i.e. that it may be represented as ˆm = A(λ)y for some non-stochastic matrix A(λ) depending on the smoothing parameter λ > 0. Solution When we mark y =    y1 ... yT   , m =    m1 ... mT    and B =        1 −2 1 0 · · · 0 0 1 −2 1 0 · · · 0 ... ... ... ... ... ... ... ... 0 0 · · · 1 −2 1        we can rewrite Hodric-Precsott filter as: min m Ψ (m; λ) = (y − m)T (y − m) + λ (Bm)T (Bm) . We can find minimum ˆm of equation when we derive that and set this derivative equal to zero: ∂Ψ (m; λ) ∂m = 2m − 2y + λ.2.BT Bm= 0 When we prove that the second derivative is positive definite, we know that ˆm for which ˆm + λBT Bm = y is really minimimum for which we search. 2www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 2. Because for any vector c ̸= 0 we have: cT ( I + λBT B ) c = cT c >0 + λ (Bc)T (Bc) ≥0 we know that the second derivative is positive definite i.e: ∂2 Ψ(m; λ) ∂m∂m = 2 ( I + λBT B ) > 0. Therefore we can say that our ˆm is ˆm = ( I + λBT B )−1 A(λ) y = A(λ)y. 3www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 3. Suppose that a time series {yt} can be decomposed into deterministic trend mt, a seasonal component st and irregular (random) fluctuations ut such that yt = mt+st+ut for t = 1, . . . , T. Show that the weighted moving average filter y∗ t = 1 9 (−yt−2 + 4yt−1 + 3yt + 4yt+1 − yt+2) t = 3, . . . , T − 2 has the following properties: a) A cubic time trend, mt = ∑3 j=0 βjtj , passes the filter without distortion, i.e. m∗ t = mt. (3 points) b) A seasonal component st with period 3 (i.e. st = st+3 for all t) is eliminated by the filter, that is s∗ t = const. (3 points) Solution We are only interested in what happens when we pass our series through filter consid- ering separate somponents. yt = mt + st + ut weighted moving average filter ; ; ; ; ; y∗ t = m∗ t + s∗ t + u∗ t So we will try to explain separate new components by using old ones. a) m∗ t = 1 9 (−mt−2 + 4mt−1 + 3mt + 4mt+1 − mt+2) = 1 9 ( − ∑3 j=0 βj(t − 2)j + 4 ∑3 j=0 βj(t − 1)j + 3 ∑3 j=0 βjtj + +4 ∑3 j=0 βj(t + 1)j − ∑3 j=0 βj(t + 2)j ) = −β0 −β1(t − 2) −β2(t − 2)2 −β3(t − 2)3 +4β0 +4β1(t − 1) +4β2(t − 1)2 +4β3(t − 1)3 +3β0 +3β1(t) +3β2(t)2 +3β3(t)3 +4β0 +4β1(t + 1) +4β2(t + 1)2 +4β3(t + 1)3 −β0 −β1(t + 2) −β2(t + 2)2 −β3(t + 2)3 . We sum all coeficients which belong to t1 , . . . , t3 respectively. (It’s easier to look at that column by column.) And we get: m∗ t = 1 9 (−9mt−2 + 36mt−1 + 27mt + 36mt+1 − 9mt+2) = mt. 4www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215
  • 4. b) s∗ t = 1 9 (−st−2 + 4st−1 + 3st + 4st+1 − st+2) = 1 9 (−st+1 + 4st+2 + 3st + 4st+1 − st+2) = 1 3 (st + st+1 + st+2) . But also s∗ t+1 = 1 3 (st+1 + st+2 + st+3) = 1 3 (st+1 + st+2 + st ) and identical for next ones too. So it is obvious that s∗ t is the same for all t ∈ {3, . . . T − 2}, thus constant. 5 Burdejov´a P., Strejc P.www. statisticsassignmentexperts.com email us at info@ statisticsassignmentexperts.com or call us at +1 520 8371215