
This video will give you an overview about the course.
In this video, we walk through installation of Anaconda, a popular scientific Python platform. The software is free to install and use.
• Download installation package
• Install software
• Verify installation
In this video, we will briefly look at several Python interfaces.
• Demonstrate running programs and Python shell
• Demonstrate ipython, a more advanced interactive shell
• Demonstrate Jupyter Notebook the interface frequently use
In this video, introduce basic string functionality with an emphasis on formatting output
• Learn String definition and structure
• Use the format function
• Format output for presentation
In this video, we will talk about one of Python’s advanced data structures, the list.
• Learn about the list basics
• Access elements in a list
• Add, modify and delete elements
In this video, we will talk about one of Python’s advanced data structures, the dict.
• Learn about the structure of a dict, key/value pairs
• Access items in a dict
• Add, modify and delete elements
In this video, we will introduce the idea of repletion in programs with the for loop; code blocks are also discussed.
• Learn about the For loop basics and code blocks
• Use the range function
• Combine for loop with formatting output
In this video, we will talk about making decisions in your program with the if..elif.. else blocks of code.
• Basic if statement block
• Use If with elif blocks
• Use If elif else full example
In this video, we will talk about one creating reusable code with functions in Python.
• Encapsulatecomplex code in a function
• A simple function example with documentation string
• Access help on any function
In this video, we walk through the basics of the NumPy array data structure including creation, assessment and manipulation.
• Create sample arrays
• Determine size dimensions
• Display, manipulate and access data within an array
Continuing our introduction to NumPy with special placeholder arrays, mathematical operations and arrays created with random numbers.
• Demonstrate NumPy placeholder arrays
• Understand the examples of vectorized mathematical operations
• Introduce the NumPy random module
Introduction to the Pandas DataFrame data structure and common operations.
• Move from arrays into DataFrames
• Compare the two structures
• Learn about common operations in DataFrames
Let’s dive deeper into the Pandas DataFrame data structure.
• Learn the mathematical operations
• Understand convenience functions
Overview of common statistical methods available in the Scipy.stats module.
• Walkthrough several examples of statistical operations available
• Create a function for displaying summary statistics
Introduction to the fundamental graphing library in Python: Matplotlib.
• Construct basic plots used in data analysis
• Learn basic line plots, scatter plots and histograms
In this video, we will see how to add annotations and customize graphs.
• Start with a basic plot
• Add code to control the output
• Explore built-in graph styles
In this video, we walk through the basics of calculating present value of single and multiple cashflows.
• Learn the basic example
• Create a present value function
• Value a stream of future cashflows today
In this video, we will discuss future value concepts of fixed and uncertain rates of return. The video ends with an introduction to NumPy built-in functions for time value of money calculations.
• Learn the basic example
• Create a future value function
• Value current holdings with constant and uncertain returns
Introduction to comparing capital budgeting projects with net present value
• Manually calculate net present value
• Compare manual method with NumPy’s built-in function
In this video, we will get a comparison and relationship of net present value to internal rate of return.
• Use NumPy’s built-in IRR function
• Compare IRR to NPV
Walkthrough of enumeration of retiring long term debt in the form a table that tracks loan balance, interest and principal payments and cumulative interest paid
• Demonstrate the NumPypmt function to calculate monthly payments
• Build Pandas DataFrame to store relevant loan outputs
• Graph loan balance and cumulative interest over time
In this video, use parts of the previous video to create a reusable amortization application allowing users to compare loan scenarios.
• Create a function that outputs amortization table and loan summary data
• Compare several loan scenarios to demonstrate functionality
In this video, we see how to open and work with data stored in CSV files.
• Demonstrate several methods of accessing data stored in CSV files
We introduce the pandasdatareader library and use it to download and manipulate data.
• Download data from Yahoo finance
• Learn data transformations
• Understand data visualization
In this video we learn how to create and evaluate a moving average forecasting model.
• Create a moving average forecasting model with downloaded data
• Evaluate the forecasting model
In this video, we will introduce another library’ statsmodels, and use its built-in single exponential smoothing model.
• Use statsmodels exponential smoothing model to forecast the price of gold
• Demonstrate the model with various values of a smoothing constant
In this video, we will develop a simple signals based trading system and back test it for effectiveness.
• Create a fast and slow moving average forecast
• Create a signal and system return column
• Compare visually, the trading system to buy and hold strategy
In this video, we introduce basic models for stock valuation.
• Calculate expected return
• Value securities using dividends and expected future value
• Value security using PE ratio
Securities have a tendency to move together to some degree. This video demonstrates how to measure this relationship numerically and visually.
• Download data from Yahoo finance
• Data transformations
• Create table of correlations and graph relationships
Some variables have predictive power over others. In this video, we demonstrate and interpret a simple linear regression model with two libraries.
• Open and clean dataset
• Examine relationship with scatter plot
• Create linear model and use it to predict specific values
Beta is used as a simple measurement of a stock’s riskiness relative to the market as a whole. This video derives Beta using two distinct methods.
• Download market and security data
• Transform data
• Calculate Beta with linear regression and with NumPycov function
Diversification can mute risk in the stock market. This video demonstrates the impact of diversification with a two security portfolio.
• Calculate expected return and volatility of a two security portfolio
• Create table with various weights, returns and volatilities
• Graph volatility vs. expected return
In this video, compare deterministic ending values with probabilistic ending values of a portfolio.
• Calculate table of ending values
• Calculate table of ending values based on probability distribution
In this video, we will create a full simulation and examine results.
• Create NumPy array to store returns
• Create NumPy array to store yearly ending values
• Run simulation and examine results
In this video, explore Value at Risk, calculate parametric VaR with simple formula and via Monte Carlo simulation.
• Calculate VaR deterministically
• Calculate VaR using Monte Carlo method
In this video, put concepts discussed in previous videos together in a module that can be imported and used in encapsulated form.
• Combine methods of previous videos into functions of MonteCarlo class
• Demonstrate functionality
Did you know Python is the one of the best solution to quantitatively analyse your finances by taking an overview of your timeline? This hands-on course helps both developers and quantitative analysts to get started with Python, and guides you through the most important aspects of using Python for quantitative finance.
You will begin with a primer to Python and its various data structures.Then you will dive into third party libraries. You will work with Python libraries and tools designed specifically for analytical and visualization purposes. Then you will get an overview of cash flow across the timeline. You will also learn concepts like Time Series Evaluation, Forecasting, Linear Regression and also look at crucial aspects like Linear Models, Correlation and portfolio construction. Finally, you will compute Value at Risk (VaR) and simulate portfolio values using Monte Carlo Simulation which is a broader class of computational algorithms.
With numerous practical examples through the course, you will develop a full-fledged framework for Monte Carlo, which is a class of computational algorithms and simulation-based derivatives and risk analytics.
About the Author
Matthew Macarty has taught graduate and undergraduate business school students for over 15 years and currently teaches at Bentley University. He has taught courses in statistics, quantitative methods, information systems and database design.