Finance Train LogoFinance Train
BlogMembership
Finance TrainFinance Train
Home
Learn
Getting StartedGetting StartedPythonPythonR ProgrammingR ProgrammingQuantitative FoundationsQuantitative FoundationsData AnalysisData AnalysisMachine LearningMachine LearningAIAIFinance AppsFinance Apps
BlogToolsMembership
CoursesDerivatives with R
Derivatives with R
Premium

Derivatives with R

This course provides a conceptual and practical guide to analyzing derivatives instruments such as Futures Contracts and Options with R programming language. The ebook has a well-balanced structure between theoretical concepts and practical examples and aims to show important properties of Derivatives Instruments using R.

Part 1: Futures Contracts with R

The first part of the course describes the fundamental properties of futures contracts. At the beginning of this section, we will perform some data exploration tasks about futures contract prices which show specific properties of these assets using important R packages such as ggplot, dplyr and the apply family functions from R. The different datasets that are used in this section and the whole ebook come from public APIs such as Quandl and CSV files.

We then move on to provide examples of how to convert a dataset into tidy data in order to extract meaningful features about datasets, make elegant plots using the ggplot library, build R functions from scratch and use R built-in functions to clean data. We also demonstrate with examples and visualization tools important properties and concepts of futures contracts such as the term structure of futures contracts and the high volatility of futures contracts.

Part 2: Valuation of Options with R

The second section of the course focuses on understanding how options are valued using two popular models, namely, Black Scholes model and the Binomial model. Both models are implemented using R functions to understand from scratch the valuation process and their intermediate steps.

Part 3: Options Greeks with R

The next section focuses on Option Greeks and their importance to understand option price movements. 

Part 4: Options Strategies with R

In the final section, we show how to use the R language to simulate options strategies such as the Bull Call Spread, Long Straddle, Iron Condor, and Butterfly Spread.  To have a better understanding of how these strategies work and the different payoff scenarios of each strategy, they are plotted using ggplot package.

What's Included

  • Detailed concepts and explanations about each topic
  • Step-by-step instructions for all analysis and calculations
  • All the data files used in the book
  • Complete downloadable R code for all examples used in the book

Lessons

01

Overview of Derivatives with R Tutorial

Start
02

How to Create Futures Continuous Series

Start
03

Exploring Crude Oil (CL) Future Data from Quandl in R

Start
04

R Visualization of Statistical Properties of Future Prices

Start
05

Comparing Futures vs Spot Prices for WTI Crude Oil

Start
06

Different Parties in the Futures Market

Start
07

Creating Term Structure of Futures Contracts Using R

Start
08

Contango and Backwardation

Start
09

Exploring Open Interest for Futures Contracts with R

Start
10

Review of Options Contracts

Start
11

Black Scholes Options Pricing Model in R

Start
12

Binomial Option Pricing Model in R

Start
13

Understanding Options Greeks

Start
14

Options Strategy: Create Bull Call Spread with R Language

Start
15

Options Strategy: Create Long Straddle with R Language

Start

Master Data & AI for Finance

Get full access to all Data Science, Machine Learning, and AI courses built for finance professionals.

  • Full course library
  • Code & templates
  • Lifetime updates

One-time payment - Lifetime access

Or create a free account to start

Finance Train

Learn data science and AI skills for finance through practical courses and tutorials.

Learn

  • Learning Path
  • Blog
  • Finance Fundamentals

Resources

  • Tools
  • Tables
  • Calculators
  • Membership

Company

  • About
  • Contact
  • Privacy
  • Terms

© 2026 Finance Train. All rights reserved.