Python Tutorial: Time Series Analysis in Python
Want to learn more? Take the full course at https://learn.datacamp.com/courses/introduction-to-time-series-analysis-in-python at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Welcome to the first video of the "Introduction to Times Series Analysis Using Python" course. My name is Rob Reider. I'm an Adjunct Professor in the Math-Finance Master's program at NYU's Courant Institute, where I teach a course on Time Series Analysis. I'm also a consultant to a company called Quantopian, which has built a Python-based platform for analyzing and backtesting quantitative trading strategies. Authors of algorithms can enter into paper trading contests and be considered for an allocation of money. Authors receiving allocations are paid 10 percent of the strategy’s net profits, based on their strategy’s individual performance. Also, Quantopian hosts a community where members can ask for help, share ideas, and discuss and share code.
Time series analysis deals with data that is ordered in time. Of course, there are many other types of data that are not covered in this course - for example, cross-sectional data that are taken at one point in time.
Time series comes up in many contexts. Here is a time series of the frequency of Google searches for the word "diet" over a five year period. You can see an interesting pattern: it hits a low around the holidays and then spikes up at the beginning of the year when people make New Year's resolutions to lose weight.
Here is another example of a time series: the average annual temperature in New York City since 1870. Notice that this time series is trending up. Many of the most interesting applications of time series analysis are financial time series. In this course, you will look at a variety of financial time series: stocks, bonds, commodities, even cryptocurrencies like Bitcoin.
Here is the time series of quarterly earnings for the company H&R Block. H&R Block is in th
What You'll Learn
This video tutorial covers time series analysis in Python using various libraries and tools, including Pandas, to manipulate and analyze time series data.
Full Transcript
welcome to the first video of the introduction to time series analysis using Python course my name is Rob Reider I'm an adjunct professor in the math finance master's program at NYU's Courant Institute where I teach a course on time series analysis I'm also a consultant to a company called quanto peon which has built a Python based platform for analyzing and back-testing quantitative training strategies authors of algorithms can enter into paper trading contests and be considered for an allocation of money authors receiving allocations are paid 10% of the strategies net profits based on their strategies individual performance also quanto peon hosts a community where members can ask for help share ideas and discuss and share code time series analysis deals with data that is ordered in time of course there are many other types of data that are not covered in this course for example cross-sectional data that are taken at one point in time time series come up in many contexts here is a time series of the frequency of google searches for the word diet over a five-year period you can see an interesting pattern it hits a low around the holidays and then spikes up at the beginning of the year when people make new year's resolutions to lose weight here is another example of a time series the average annual temperature in New York City since 1870 notice that this time series is trending up many of the most interesting applications of time series analysis are financial time series in this course you will look at a variety of financial time series stocks bonds commodities even crypto currencies like Bitcoin here is the time series of quarterly earnings for the company H&R Block H&R Block is in the business of preparing tax returns for customers and selling tax software the vast majority of their earnings occurs in the quarter that taxes are due notice the strong seasonality pattern in the earnings you will also look at related series in the last chapter of this course here are the prices of two energy commodities heating oil and natural gas which move together in this course you will learn about various time series models fit the data to these models and use these models to make forecasts of the future you will also learn how to use various statistical packages in python to perform these tasks numerous examples will be provided and I hope that these examples not only demonstrate how to apply these tools but also address some interesting puzzles mainly in the field of finance in the course of analyzing time series data you will use several convenient pandas tools for manipulating time series data these methods will be used repeatedly throughout the course so we will highlight a few of them now to date time is used to convert an index often read in as a string into a date time index the plot method of pans is is a quick way to plot data and if the index has been converted to a daytime object you can slice the data by year for example you will sometimes need to merge or join two data frames for example one data frame may contain stock prices and another data frame may contain bond prices pandas makes it easy to resample data for example a data frame of daily data can be converted to weekly data with the resample method often you will want to convert prices to returns which you can do with the percent change method or if you want differences you can use the diff method you can compute the correlation of two series using the core method and the autocorrelation using the auto core method you'll learn more about these methods later in this chapter now let's practice using a few of these time series tools
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 22 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
▶
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
More on: Python for Data
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
The Future of Technical Education: AI, Projects, and Industry Collaboration
Dev.to AI
I Asked Gemini AI to Preview My Haircut Before My Salon Appointment - Here’s What Happened
Medium · AI
Top Five Free AI Tools in the Industry
Medium · ChatGPT
7 Best AI Tools for Research, Coding, and Development in 2026
Medium · Data Science
🎓
Tutor Explanation
DeepCamp AI