Applied Time Series Notebook
  • Master
  • Projects
    • Overview
    • Applied Time Series Projects

    • Project 1
    • Time Series: China Export Commodities

    • Project 2
    • Time Series Project 2: Consumer Credit

    • Project 3
    • Project title here
  • Ch 1
    • Overview
    • Chapter overview and Task
    • Time Series Homework: Chapter 1 Lesson 1
    • Time Series Homework: Chapter 1 Lesson 2
    • Time Series Homework: Chapter 1 Lesson 3
    • Time Series Homework: Chapter 1 Lesson 4
    • Time Series Homework: Chapter 1 Lesson 5
  • Ch 2
    • Overview
    • Autocorrelation Concepts
    • Time Series Homework: Chapter 2 Lesson 1
    • Time Series Homework: Chapter 2 Lesson 2
    • Time Series Homework: Chapter 2 Lesson 3
  • Ch 3
    • Overview
    • Chapter overview and Task
    • Time Series Homework: Chapter 3 Lesson 2
    • Time Series Homework: Chapter 3 Lesson 3
    • Time Series Homework: Chapter 3 Lesson 4
    • Time Series Homework: Chapter 3 Lesson 5

    • r code Models draft
    • Chapter 3 r code examples and practice

    • Lesson 1
    • White Noise and Random Walks - Part 1
    • Time Series Homework: Chapter 3 Lesson 1
  • Ch 4
    • Overview
    • Chapter overview and Task

    • r code Models draft
    • Chapter 4 r code examples and practice

    • Lesson 1
    • White Noise and Random Walks - Part 1
    • Ch 4.1 Code Notes

    • Lesson 2
    • White Noise and Random Walks - Part 2
    • Time Series Homework: Chapter 4 Lesson 2

    • Lesson 3
    • Autoregressive (AR) Models
    • Time Series Homework: Chapter 4 Lesson 3

    • Lesson 4
    • Fitted AR Models
    • Ch 4.4 Code Notes
  • Ch 5
    • Overview
    • Chapter overview and Task

    • Lesson 1
    • White Noise and Random Walks - Part 1

    • Lesson 1 Notes
    • Linear Models, GLS, and Seasonal Indicator Variables
  • Tools
    • Tools, Help & Ideas
    • Tools, Resources and Help Ideas
    • Markdown Visuals
    • Git and Terminal Commands
    • Steps for formatting Date and Creating Index
    • Functions & Formulas
    • test
  • Outcomes
  • def
  1. Tools, Help & Ideas
  2. Markdown Visuals
  • Tools, Help & Ideas
    • Tools, Resources and Help Ideas
    • Markdown Visuals
    • Git and Terminal Commands
    • Steps for formatting Date and Creating Index
    • Functions & Formulas
    • test

On this page

  • Callout notes
  • Color words
  1. Tools, Help & Ideas
  2. Markdown Visuals

Markdown Visuals

commonly use visuals

Callout notes

Type I Errors

This is a note callout with:

  • icon enabled

  • default appearance

  • a custom title

Check Your Understanding

This is a tip callout with: - icon disabled - minimal appearance - a custom title

Critical Info

This is an important callout with: - icon enabled - default appearance - a custom title

Warning Alert

This is a warning callout with: - icon disabled - minimal appearance - a custom title

Code
print("can also have code chunks inside")
[1] "can also have code chunks inside"

This is a caution callout with: - icon disabled - minimal appearance - no title

can do collapse and within

Second-Order Properties of a Random Walk

If \(\{x_t\}_{t=1}^n\) is a random walk, then the population has the following properties.

\[ \mu_x = 0 \] and \[ cov(x_t, x_{t+k}) = t \sigma^2 \]

Click here for a proof of the equation for \(cov(x_t,x_{t+k})\)

Why is \(cov(x_t, x_{t+k}) = t \sigma^2\)?

First, note that that since the terms in the white noise series are independent,

\[ cov ( w_i, w_j ) = \begin{cases} \sigma^2, & \text{if } ~ i=j \\ 0, & \text{otherwise} \end{cases} \]

Also, when random variables are independent, the covariance of a sum is the sum of the covariance.

Hence, \[\begin{align*} cov(x_t, x_{t+k}) &= cov ( \sum_{i=1}^t w_i, \sum_{j=1}^{t+K} w_j ) \\ &= \sum_{i=j} cov ( w_i, w_j ) \\ &= \sum_{i=1}^t \sigma^2 \\ &= t \sigma^2 \end{align*}\]

If \(k>0\) and \(t>0\), the correlation function is

\[ \rho_k = \frac{ cov(x_t, x_{t+k}) }{ \sqrt{var(x_t)} \sqrt{var(x_{t+k})} } = \frac{t \sigma^2}{\sqrt{t \sigma^2} \sqrt{(t+k) \sigma^2}} = \frac{1}{\sqrt{1+\frac{k}{t}}} \]

Color words

This is a normal text and this is purple text in the same line.

purtle text will then be in purple

Back to top

Eduardo Ramirez 2024©