avatarHair Parra

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1985

Abstract

re><p id="e355">IID stands for “<b>Independent and Identically Distributed</b>”, i.e., each observation does not depend on any other so that by the definition of independence of probability, the joint distribution is just the product of the independent distributions, or in simpler terms, the probability that all of these happen together is no more than the product of their independent probabilities. In addition, we require this process to be mean zero.</p><h2 id="4c00">White Noise</h2><figure id="9b8a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*iKFw9fW47Jwgw3-11WNP3Q.png"><figcaption></figcaption></figure><p id="8a64">Let’s see what these conditions are saying: 1) says that the process has to have a zero-mean or zero-trend, 2) says that the variance of the process is constant, and less than infinity (indeed, imagine what would happen if the variability explodes!), 3) says that the covariance at every lag h is 0; i.e. observations are no longer dependent when being as far as some lag h.</p><h2 id="a89b">Random Walk</h2><figure id="1a42"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*3gn_YSin3WidDTCx-TjbZg.png"><figcaption></figcaption></figure><p id="be90">As funny as it may sound, as random walk might not be as random as you would think. This is how it’s done:</p><ol><li>Take some white noise process</li><li>At each step, sample one random variable from the WN sequentially, and add all of these together.</li><li>The result is called a random walk</li></ol><p id="aab5">Here’s an interesting question for you to think:</p><figure id="858c"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*mUadrSbg95c67bYeOzpGuQ.png"><figcaption></figcaption></figure><p id="4f49">The answer is <b>no! </b>However, you can verify that this is indeed a mean-zero process.</p><h2 id="bd46">Next time</h2><p id="d256">That’s it for today! Next time we will take a look at <a href="https://medium.com/@hair.parra/a-complete-

Options

introduction-to-time-series-analysis-with-r-models-with-structure-932e20c7d832">models with structure</a>, the trend, and seasonal decomposition models, and some cool plotting with R. Stay tuned!</p><h2 id="a40f">Previous article</h2><div id="a122" class="link-block"> <a href="https://readmedium.com/a-complete-introduction-to-time-series-analysis-with-r-introduction-eef74f8f2ab3"> <div> <div> <h2>A Complete Introduction To Time Series Analysis (with R):: Introduction</h2> <div><h3>Let’s first consider this pretty graph below</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*up4NMyV3AtFuLQthgryTzA.jpeg)"></div> </div> </div> </a> </div><h2 id="7412">Main Page</h2><div id="307b" class="link-block"> <a href="https://medium.com/@hair.parra/a-complete-introduction-to-time-series-analysis-with-r-9882f2d44c9d"> <div> <div> <h2>A Complete Introduction To Time Series Analysis (with R)</h2> <div><h3>During these times of the Covid19 pandemic, you have perhaps heard about the collaborative efforts to predict new…</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*TL2PeOANEN4zG0_OqoHptQ.jpeg)"></div> </div> </div> </a> </div><h2 id="d55b">Follow me at</h2><ol><li><a href="https://www.linkedin.com/in/hair-parra-526ba19b/">https://www.linkedin.com/in/hair-parra-526ba19b/</a></li><li><a href="https://github.com/JairParra">https://github.com/JairParra</a></li><li><a href="https://medium.com/@hair.parra">https://medium.com/@hair.parra</a></li></ol></article></body>

A Complete Introduction To Time Series Analysis (with R):: Semi-parametric Models

Photo by Markus Spiske on Unsplash

In the last article, we saw the general strategy to think about any time series model, and how we don’t want either too much or too little dependence in our models. We would now like to explore this more in-depth.

Notation

Just a quick note; remember that

is just a shorthand for

i.e. some time series. Keeping this in mind, let’s dive into the examples.

Semi-Parametric Models

Let’s first take a look at the definition of semi-parametric models

So essentially a model is semi-parametric if we don’t specify its distribution, but we know what it’s expectation and covariance (note the funky h, this is called a lag).

Let’s see some examples!

IID Noise

IID stands for “Independent and Identically Distributed”, i.e., each observation does not depend on any other so that by the definition of independence of probability, the joint distribution is just the product of the independent distributions, or in simpler terms, the probability that all of these happen together is no more than the product of their independent probabilities. In addition, we require this process to be mean zero.

White Noise

Let’s see what these conditions are saying: 1) says that the process has to have a zero-mean or zero-trend, 2) says that the variance of the process is constant, and less than infinity (indeed, imagine what would happen if the variability explodes!), 3) says that the covariance at every lag h is 0; i.e. observations are no longer dependent when being as far as some lag h.

Random Walk

As funny as it may sound, as random walk might not be as random as you would think. This is how it’s done:

  1. Take some white noise process
  2. At each step, sample one random variable from the WN sequentially, and add all of these together.
  3. The result is called a random walk

Here’s an interesting question for you to think:

The answer is no! However, you can verify that this is indeed a mean-zero process.

Next time

That’s it for today! Next time we will take a look at models with structure, the trend, and seasonal decomposition models, and some cool plotting with R. Stay tuned!

Previous article

Main Page

Follow me at

  1. https://www.linkedin.com/in/hair-parra-526ba19b/
  2. https://github.com/JairParra
  3. https://medium.com/@hair.parra
Time Series Analysis
Forecasting
Machine Learning
Statistics
R
Recommended from ReadMedium