logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Bhargav AppasaniEngineering
(/5)

886 Answers

Hire Me
expert
Erlanda AlvesMarketing
(5/5)

509 Answers

Hire Me
expert
Motaz SData mining
(5/5)

860 Answers

Hire Me
expert
Carlos HowardComputer science
(5/5)

713 Answers

Hire Me
Mathematics
(5/5)

this project with anyone besides your group partner the Instructor, or the TA is not permitted.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

INSTRUCTIONS. Failure to follow these instructions may result in points discounted.

Discussing this project with anyone besides your group partner (if any), the Instructor, or the TA is not permitted. By submitting a report, all its participants agree to comply with the CU Honor Code Policy.

Students registered for APPM 4540 may work in groups of up to 2 members, and submit one project report with all participant names on it. Submit a single report in CANVAS. Due to the COVID- 19 (coronavirus) pandemic, avoid meeting in person  and instead  collaborate remotely using some video conferencing such as Facetime, Skype, WhatsApp, or Zoom.

Students registered for APPM 5540 must work on the project on their own.

Your report is limited to 5 pages with a minimum font size of 11 points and 1-inch margins; in particular, please provide complete but brief answers. Appendices do not count toward the page limit!

To receive full credit, you must submit a professional report addressing all the instructions and questions in the same order as requested. Be sure to include all figures or tables and to label them (e.g., Figure 1, Table 2, etc). Also, be sure to cite any sources (textbooks, papers, websites, etc) you consult. Your write-up should include brief but complete answers to all the questions listed below with appropriate references to labeled figures or tables.  At the end of your report, include an appendix with the R code you used to address the project. The code must include annotations. 

In this final project you will partially analyze the following time-series (download the file PRO3DATA.TXT in Canvas for the dataset):

The data was generated as follows:k Xt = a + b • t + cj • cos(ωjt) + Zt,  for t = 0, . . . , 250; j=1

where  a,  b,  k,  the  cj’s,  and  the  ωj’s  are  constants,  and  {Zt} ∼ IDD(0, σ2),  with  σ2 > 0.  All  these constants are fixed but unreported to you!

It  is  assumed  that  0  <  ωj   <  π  for  j  =  1, . . . , k.    The  goal  of  the  project  is  to  estimate these frequencies as well as their total number. (Once we have estimates for these, the other constants may be estimated using standard regression techniques.) For this, it would be ideal if we could get rid of the noise {Zt}. Unfortunately, this is not possible! However, we may use a moving average filter to damp down the noise. So let 0 < l < 125, and consider:

 XJ :=  1   Σ X for t = l, . . . (250 − l). 

1. Using that cos(α±β) = cos(α) cos(β)∓ sin(α) sin(β), show that:

k XtJ  = a + b • t + uJj  • cos(ωj t) + vjJ  • sin(ωj t)   + ZtJ,j=1

for suitable constants uJj   and vjJ , and a weakly stationary mean-zero time series {ZtJ}.

2. Explain why for l large enough:

k XtJ  ≈ a + b • t + uJj  • cos(ωj t) + vjJ  • sin(ωj t),j=1

From now on we will assume that l was chosen large enough so that the above ap- proximation is—for all practical purposes—an identity. Namely:

k XtJ  = a + b • t + uJj  • cos(ωj t) + vjJ  • sin(ωj t)  ,  for t = l, . . . , (250 − l). j=1

Next, to accomplish our goal, we would like to use the Discrete Fourier Transform (DFT). For this we first need to remove the linear trend in {XtJ}.  To do so, consider the (causal)  linear  filter:

XtJJ  := XtJ  − XtJ   1,  for t = (l + 1), . . . , (250 − l).

3.Using that  cos(α − β)  =  cos(α) cos(β) + sin(α) sin(β)  and  sin(α − β)  =  sin(α) cos(β) −

cos(α) sin(β), show that:

k XtJJ  = b + ujJJ  • cos(ωj t) + vjJJ  • sin(ωj t)  , j=1

for suitable constants uJjJ  and vjJJ.  1  2

4.If necessary do a literature search about the so-called Fast Fourier Transform (FFT). Explain— at a high level—what this algorithm does. Also, report what the following R-command re- turns: y = fft(x), when x is an n-dimensional vector.

1In practice, the precise relationship between the constants uj′′ and vj′′ and the original constants uj and vj is not relevant. What matters here is that {Xt′′} is a linear combination of sines and cosines with the same frequencies ωj’s as the original time series {Xt}.

The constant b may be thought of as associated with the frequency ω0 := 0

5.Explain how to use the fft command to determine the following version of the Discrete Fourier Transform (DFT) of x:

6.Observe that the number of observations from {XtJ} becomes smaller as l increases. For instance, if l = 124 then we will have only two observations from this process! So—in practice needs to choose l large enough to effectively damp the noise {ZtJ}, but small enough to have a sufficient number of observations to estimate parameters robustly. Imple- ment in R a code that assumes a fixed but arbitrary l, and then eyeball the smallest value of l for which the plot of {XtJ} looks smooth. Report the value of l you chose, and plot the time series {XtJ}. Comment on any expected or unexpected behaviour!
7. Implement in R a code that computes the linear filter {XtJJ}, and plot this time series in your report. Comment on any expected or unexpected behaviour!
8. Finally, use the fft command to eyeball from the DFT of {XtJJ} a reasonable value for k, and estimate the frequencies ω1, . . . , ωk. Report these values in a Table. Comment on any expected or unexpected behaviour!

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme