1 of 29

Economics 148 - Time Series

Data Science for Economics

Spring 2024 - UC Berkeley

Eric Van Dusen

1

LECTURE 23

Econ 148 - UC Berkeley

2 of 29

Outline

Lecture 23, Econ 148, Spring 2024

Project

Prophet

Emily Aitken

2

Econ 148 - UC Berkeley

3 of 29

Announcements

Midterm - still being graded - like half way through

Project 3 - was released this week

Group Project - 3 / 4 people

Fill out the Google Form

3

Econ 148 - UC Berkeley

4 of 29

Fill out Google Form !

Please fill out this form with who all you would like to be in your group.

4

Econ 148 - UC Berkeley

5 of 29

Project - Latex

5

Econ 148 - UC Berkeley

6 of 29

Why LaTeX?

  • We want to be able to write math equations
  • We want to format documents beautifully and ‘academically’
  • Open source, shareable, and cross platform software
  • We think it’s a good thing for you to know about
  • If you are in Econ - you’ve been seeing HW and midterms

  • Economists use it
  • Economics grad students use it
  • Upper Div CS classes use it

Econ 148 - UC Berkeley

7 of 29

There are easier approaches - hostmath.com

Econ 148 - UC Berkeley

8 of 29

Let’s go make an overleaf account

https://www.overleaf.com/

“Sign in with Google”

Use UC Berkeley Account

Econ 148 - UC Berkeley

9 of 29

Econ 148 - UC Berkeley

10 of 29

Econ 148 - UC Berkeley

11 of 29

Overleaf - start a new file

Copy and paste text into new document on Overleaf

Or… download file and upload to Overleaf

You can upload a template

You can import other folks files

You can do all of the formatting of the file

  • Sections, Headers, Tables
  • Journal Article templates
  • Quiz and Homework templates

Econ 148 - UC Berkeley

12 of 29

Good things to know about LaTeX

Language uses \ a lot to denote actions or unique characters

Everything that’s part of a symbol or function is wrapped within {}

E.g. \frac{5}{8} == ⅝

E.g. \section{This is a section header}

Econ 148 - UC Berkeley

13 of 29

Titles and Imports

TLDR: don’t worry about these

Econ 148 - UC Berkeley

14 of 29

Sections and Subsections

\section{<SECTION NAME>}

Without numbers: \section*{<SECTION NAME>}

Econ 148 - UC Berkeley

15 of 29

Making a List

\begin{enumerate}

\item …

\item …

\end{enumerate}

Econ 148 - UC Berkeley

16 of 29

Adding Images

Put this in the title/imports:

\usepackage{graphicx}

\graphicspath{ {./images/} }

To add an image:

Make sure an images folder is created, then to include image.png:

\includegraphics{image.png}

Econ 148 - UC Berkeley

17 of 29

Typesetting Equations

In-line: $<LATEX FORMULA>$

As its own block: there are a few ways to do this. Two of my most commonly used:

  • $$<LATEX FORMULA>$$
  • \begin{align*}�<LHS> &<OP> <RHS> \\�etc.

\end{align*}

Econ 148 - UC Berkeley

18 of 29

Project - Reproduce a Journal Article

18

Econ 148 - UC Berkeley

19 of 29

19

Econ 148 - UC Berkeley

20 of 29

20

Econ 148 - UC Berkeley

21 of 29

Have to fill out Dataverse form!

21

Econ 148 - UC Berkeley

22 of 29

Open the dataset!

22

Econ 148 - UC Berkeley

23 of 29

23

Econ 148 - UC Berkeley

24 of 29

A little more on Prophet! -

24

https://ryxcommar.com/2021/11/06/zillow-prophet-time-series-and-prices/

Econ 148 - UC Berkeley

25 of 29

Python on top - Stan underneath

25

Econ 148 - UC Berkeley

26 of 29

https://ryxcommar.com/2021/11/06/zillow-prophet-time-series-and-prices/

Data Scientists

Easy to Use Model

AI - ML algorithms

Domain Knowledge

Finance

Local Knowledge

26

Econ 148 - UC Berkeley

27 of 29

27

Econ 148 - UC Berkeley

28 of 29

Zillow drops in Nov 21

28

Econ 148 - UC Berkeley

29 of 29

29

Econ 148 - UC Berkeley