+ All Categories
Home > Documents > STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI...

STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI...

Date post: 24-Jun-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
37
STAT 153 - Introduction to Time Series with Jared Fisher
Transcript
Page 1: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

STAT 153 - Introduction to Time Series

with Jared Fisher

Page 2: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

My email [email protected] ∗∗ for private concerns, otherwise please use Piazza

Office Hours in Evans 387Tuesday/Thursday 1:30pm - 3:00pmor by appointment

Lectures in Hearst Mining 390Tuesday/Thursday 3:40pm - 4:59pm

Page 3: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

GSI’s and Friday Lab Sections

GSI Alan Aw, email: [email protected] Sections: 9-11am in 334 Evans, 12pm-2pm in 344 EvansOffice hours: TBA

GSI Andrew Do, email: [email protected] Sections: 11am-1pm in 334 Evans, 2-4pm in 344 EvansOffice hours: TBA

Labs start Friday with an optional review of concepts needed forthis course.

Page 4: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Course Description

I An introduction to time series analysis in the time domain(mostly) and frequency domain (some).

I Time series data are data points from a single source atdifferent points in time.

I Independence is unlikely, so we look at ways to deal with howthe data interact with time.

Page 5: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Course Prerequisites

I STAT 101, 134 or consent of instructor. 133 or 135recommended.

I In other words, you’ll need a basic understanding of statistics,probability, and programming in R.

I Also quite helpful, but not required, to be familiar withregression

I I do not enforce these prerequisites as we have students froma variety of majors and backgrounds. However, as you aregraded in this class, it is in your best interest to feel trulycomfortable with that material.

I If you’d rather use a different programming language, such asPython, you are welcome to, but the staff cannot necessarilyanswer questions, and in-class examples will be in R.

Page 6: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Textbook

Time Series Analysis and its Applications by Shumway and Stoffer,fourth edition. It is available for free via the library website.

Page 7: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

bCourses

Needed. bCourses will be the hub for class material, grades, andannouncements. All lecture frames/notes, sample R code,homework, etc. will be posted there.

Page 8: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Piazza

I Optional

I http://piazza.com/berkeley/spring2020/stat153 .

I Questions about the administration and material of the courseshould be asked on Piazza.

I The GSIs and I cannot monitor Piazza 24/7, so please helpyour fellow classmates.

I Do not post your entire homework solutions on Piazza and tryto be specific in your questions.

I Again, personal/private/individual questions should be sentdirectly to me at my email address, while questions about theclass should be on Piazza. If you have a question aboutsomething, you’re probably not the only one!

Page 9: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Grading

I Homework: 30%

I Midterm 1: 15%, date: Thursday, February 27, in class.

I Midterm 2: 15%, date: Thursday, April 9, in class.

I Project: 10%, due date: Friday, April 24

I Final Exam: 30%, assigned time: Friday May 15, 7-10pm,location TBA

Page 10: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Grading

I Gradescope - allows us to provide fast and accurate feedbackon your work.

I As soon as grades are posted, you will be notified immediatelyso that you can log in and see your feedback.

Page 11: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Assignments - Homework

I Due on Thursdays by midnight (but checked Fridays at8:59am... before your lab sessions) most weeks.

I No late homework will be accepted, but the lowest 2homework grades are dropped.

I You are welcome and encouraged to work in small groups onthe assignments. However, as listed in the academic honestysection, you are expected to write up your own solutionsand/or code, and when you are assisted by aclassmate/website/etc., make a simple citation (like a codecomment) to denote where the insight came from.

I Regrade requests must be submitted on Gradescope withintwo weeks of grades being published.

Page 12: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Assignments - Exams

I Two midterms

I One comprehensive final

I If you cannot attend an exam due to an emergency,certification such as a doctor’s note will be required foralternate arrangements.

I If you do not take the final exam, it is policy that you fail thecourse. There is insufficient time after the final to acceptregrade requests.

I Regrade requests must be submitted on Gradescope withinone week of midterm grades being published. Note that wewill (likely) regrade your whole exam for accuracy!

Page 13: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Assignments - Project

I Due April 24. More details to come.

I Please get together in groups of 3-5 students. Groups withless than 3 or more than 5 students will not be accepted.

I There won’t be individual grades for the group project, buteach group will receive a single grade.

Page 14: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Accommodation

Students requesting accommodations due to a disability shouldcontact me (the professor) at the start of the semester (or as soonas they become eligible for accommodations) in order to provideyou with ample time to meet the required accommodations.

Page 15: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Scheduling Conflicts

I Please notify me in writing (I prefer email)

I by the second week of the term about any known or potentialextracurricular conflicts

I e.g. religious observances, graduate or medical schoolinterviews, or team activities

I I will try my best to help you with making accommodations,but cannot promise them in all cases.

I Missing an exam due to a non-emergency conflict that wasnot addressed with me in advance should result in a zero.

Page 16: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Academic Integrity

I Being able to find information is perhaps more important thanknowing the information

I Homework: Groups are encouraged, but you must write upyour own responses! No blatant copying and cite (simple isfine, MLA not needed) your classmate/wikipedia/etc. whenappropriate.

I Project: use formal citations

I Exams: should be your work alone, so no citations!

I Not acceptable: cheating on exams, blatantly copyinghomework, and not participating in the project with yourgroup. These will result in failing grades on said assignmentsand will be reported to the appropriate office.

Page 17: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Academic Integrity

In the event that an exam is disturbed via bomb threat, fire alarm,or other severe classroom disruption, I will announce to the class tograb your belongings and exit silently but immediately, leaving yourexam behind in the classroom unless instructed otherwise. Thedecision on how to proceed with the exam will be made at the timeof the alarm. Any talk about or looking at exam material beforethe exam is finished, without instructor permission, will constitutecheating and your exam will be graded as a zero. Use commonsense and honesty and we’ll all be fine!

Page 18: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Enrollment Issues

I Once enrolled, please only attend the lab section you areactually enrolled in, to make sure we have enough seats.

I Before enrollment, you are welcome to attend Friday labs, butonly if there is room in the lab for the enrolled students.

I If you’d like to switch sections, use CalCentral. If there is noroom in section you’d like to be in, you can add yourself tothe top of waiting list... but this does essentially drop youfrom the course. For add/drop deadlines, seehttps://registrar.berkeley.edu/calendar.

Page 19: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Enrollment Issues

I I must wait to enroll Concurrent Enrollment (CE) studentsuntil after the waiting list gets cleared.

I CE applications will be accepted on two criteria: 1) in orderthat applications were received, and 2) if up to date on allassignments.

I If you are a concurrent enrollment student and a Californiaresident, please let me know.

Page 20: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Any Questions?

Page 21: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

5 minute break, then we’ll talk about time series!

Page 22: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Population Data

Data: US Census Bureau

Page 23: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Financial Data - Apple Stock price

Page 24: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Financial Data - Dow Jones

Apr 202006

Jan 022008

Jan 042010

Jan 032012

Jan 022014

Jan 042016

DJIA 2006−04−20 / 2016−04−20

8000

10000

12000

14000

16000

18000

8000

10000

12000

14000

16000

18000

Page 25: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Financial Data - Dow Jones Returns

Apr 212006

Jan 022008

Jan 042010

Jan 032012

Jan 022014

Jan 042016

DJIA Returns 2006−04−21 / 2016−04−20

−0.05

0.00

0.05

0.10

−0.05

0.00

0.05

0.10

Example 1.4 - note the daily return = Pt−Pt−1

Pt−1≈ log

(Pt

Pt−1

)

Page 26: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Climate Data - El Nino

Data: Australian Government Bureau of Meteorology

Page 27: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Audio Data - Piano

Piano Note - Middle Cwww.youtube.com/watch?v=FtqgqYRDTDg

Page 28: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Audio Data - Piano

Data: ? (Thanks Dr. Behr!)

Page 29: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Google’s Cool Time Series Data

https://trends.google.comhttps://books.google.com/ngrams

Page 30: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Why Time Series?

I Many statistics classes - assume a simple random sample: Nindependent, identically distributed observations (iid)

I Time series classes - N observations taken sequentially overtime, so not independent and/or identically distributed!

Page 31: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Why Time Series?

I Many statistics classes - assume a simple random sample: Nindependent, identically distributed observations (iid)

I Time series classes - N observations taken sequentially overtime, so not independent and/or identically distributed!

Page 32: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Objectives

I Build models that plausibly describe the time series

I Learn how to estimate these models

I Learn how to predict/forecast with these models

Page 33: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Objectives

I Build models that plausibly describe the time series

I Learn how to estimate these models

I Learn how to predict/forecast with these models

Page 34: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Objectives

I Build models that plausibly describe the time series

I Learn how to estimate these models

I Learn how to predict/forecast with these models

Page 35: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Example: Baseball

Data: Lahman Database, Figure: Fellingham and Fisher (2018)

Page 36: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Example: Baseball

20 25 30 35

0.0

00.0

20.0

40.0

60.0

80.1

0

Age

Hom

eru

ns p

er

At−

Bat

Albert Pujols

Data: Lahman Database, Figure: Fellingham and Fisher (2018)

Page 37: STAT 153 - Introduction to Time Series with Jared Fisher · GSI’s and Friday Lab Sections GSI Alan Aw, email: alanaw1@berkeley.edu Friday Sections: 9-11am in 334 Evans, 12pm-2pm

Topics - A Tentative List

I BasicsI Weak and strong stationarity

I Pursuing stationarityI Trend and seasonality modelsI Best linear predictionI Discrete Fourier transform and spectral densityI Time invariant filters and power transfer function

I Modeling stationary processesI Moving average (MA), autoregressive (AR), ARMA modelsI Estimation: method of moments, least squares, maximum

likelihoodI ARIMA and SARIMA modelsI Diagnostics and model selection (AIC/BIC, crossvalidation)


Recommended