Reader small image

You're reading from  Julia Cookbook

Product typeBook
Published inSep 2016
Reading LevelBeginner
Publisher
ISBN-139781785882012
Edition1st Edition
Languages
Concepts
Right arrow
Authors (2):
Jalem Raj Rohit
Jalem Raj Rohit
author image
Jalem Raj Rohit

Jalem Raj Rohit is an IIT Jodhpur graduate with a keen interest in recommender systems, machine learning, and serverless and distributed systems. Raj currently works as a senior consultantdata scienceand NLP at Episource, before which he worked at Zomato and Kayako. He contributes to open source projects in Python, Go, and Julia. He also speaks at tech conferences about serverless engineering and machine learning.
Read more about Jalem Raj Rohit

View More author details
Right arrow

Correlation analysis


Correlation analysis is the process that indicates the similarity and relationship between two random variables. For time series data, correlation analysis would be done between two sets of the datasets. And in non time-series data, correlation analysis would generally be done between two independent variables in the dataset. So, in this recipe, we would look at the correlation analysis of time series (signals).

Getting ready

You have to have the StatsBase package ready. This can be done by running:

using StatsBase

How to do it...

  1. Autocovariance is the covariance of a piece of time data with itself at two different time points. This helps in understanding how correlated the time series is, with respect to the time dimension. This metric helps us find trends across the time dimension of a time series across different time points. It can be calculated with default lags using the autocov() function:

    autocov(x)
    

    The output would look like the following:

  2. Now, if we want to set...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Julia Cookbook
Published in: Sep 2016Publisher: ISBN-13: 9781785882012

Authors (2)

author image
Jalem Raj Rohit

Jalem Raj Rohit is an IIT Jodhpur graduate with a keen interest in recommender systems, machine learning, and serverless and distributed systems. Raj currently works as a senior consultantdata scienceand NLP at Episource, before which he worked at Zomato and Kayako. He contributes to open source projects in Python, Go, and Julia. He also speaks at tech conferences about serverless engineering and machine learning.
Read more about Jalem Raj Rohit