QuantRocket logo
Disclaimer

Fundamental Factors¶

This tutorial demonstrates how to research fundamental factors using the Pipeline API, Alphalens, and Sharadar US price and fundamental data.

Lessons are organized around specific fundamental factors, but the techniques demonstrated can be applied to any factors.

Prerequisites¶

The Pipeline Tutorial is recommended as a prerequisite to this tutorial:

In [ ]:
from quantrocket.codeload import clone
clone('pipeline-tutorial')

Data Permissions¶

To complete the tutorial, you must have a Sharadar subscription that includes permission for the following datasets:

  • US Company Fundamentals
  • End-of-Day US Stock Prices (Fund Prices not required)

Contents¶

Introduction¶

  • Lesson 1: Data Collection - Sharadar price and fundamental data collection steps
  • Lesson 2: Define a Base Universe - learn how to define a base universe to use with multiple pipelines
  • Lesson 3: Basic Usage - learn how to choose a dimension and define and derive factors from dataset columns
  • Lesson 4: Periodic Computations - learn how to create factors that measure the change in fundamental metrics over time

Factor 1: Profitability¶

  • Lesson 5: Exploratory Data Analysis - learn how to get a basic overview of a factor's distribution and characteristics
  • Lesson 6: Alphalens: Profitability - learn how to create and interpret an Alphalens tear sheet, looking at the profitability factor
  • Lesson 7: Alphalens: Profitability Growth - an additional Alphalens walkthrough that looks at growth in profitability

Factor 2: Debt-to-Equity Ratio¶

  • Lesson 8: Factor Values vs Factor Ranks - learn how ranking factors can reduce the effect of outliers and lead to smaller maximum weights
  • Lesson 9: Sector Neutralization - learn techniques that can be used to avoid unintended concentrated bets on sectors

Factor 3: Financial Distress Indicators¶

  • Lesson 10: Macro Analysis: The Interest Coverage Ratio and Altman Z-Score - learn how to perform macro analysis of US stocks, using segmented processing to analyze more data than can fit into memory
  • Lesson 11: Alphalens: Altman Z-Score - learn how and when to define specific bin edges for your factor instead of using equal-sized quantiles
  • Lesson 12: Multi-Factor Scores - learn how to combine multiple factors into a single score