QUANDORA EDUCATION

Learn
statistical arbitrage.

Understand statistical arbitrage, test alpha signals, and build strategies with your AI and Quandora.

An imagined research desk connecting programming and market signals
Illustrated learning scene
CHAPTER 01

Understanding alpha factors

CHAPTER 02

From alpha factors to trading strategies

LESSON 1.1

Turn an observation
into a number.

An alpha factor is a scoring signal that seeks to predict assets’ future relative returns. In this course, we call it a factor for short.

“Factor” means different things in different research settings. Start with the question the model is trying to answer.

A programmer’s approach to markets

Igor Tulchinsky founded WorldQuant in 2007. His path included writing video games in high school, working as a scientist at AT&T Bell Laboratories, and venture capital. Before WorldQuant, he spent 12 years as a statistical-arbitrage portfolio manager at Millennium Management.

EARLY CAREER

Programming, science and venture capital

12 YEARS

Statistical arbitrage at Millennium

2007

Founded WorldQuant

WorldQuant describes an alpha as a mathematical model that seeks to predict future price movements. In this setting, think of an alpha as a testable signal: apply a rule to information available today, rank assets, then check what happens afterward.

WorldQuant: founder biographyWorldQuant: what is an alpha?

What does an alpha actually look like?

This is Alpha #101 from Zura Kakushadze’s paper, 101 Formulaic Alphas. The paper states that the formulas belong to WorldQuant and were published with its permission.

ALPHA #101 · A PUBLISHED EXAMPLE
α =close − open(high − low) + 0.001

The open-to-close price change, divided by the day’s trading range plus a small stabilizing constant.

open
Opening price
close
Closing price
high
Highest price of the day
low
Lowest price of the day
ASSET A

open 100 · close 104
high 106 · low 98

+0.500
ASSET B

open 100 · close 96
high 103 · low 95

−0.500

Try the formula yourself

Drag the prices. See the score change.

Use the same published formula with made-up daily prices. This exercise shows how the score is calculated, not whether it predicts a return.

Day high · fixed106.0Day low · fixed98.0

High and low stay fixed within each example. Move the opening and closing prices between them.

Current factor score+0.500

Close is above open, so the current factor score is positive.

Substitute the current prices

Asset A closed above its open; B closed below it. The paper interprets this as a next-day momentum signal. The score is a hypothesis about later relative performance, not a return forecast with a guaranteed payoff.

Timing matters: today’s close, high and low must exist before you calculate this signal. Using them to trade earlier the same day would introduce look-ahead bias.

Kakushadze, 101 Formulaic Alphas, Appendix A

How is this different from Eugene Fama?

Eugene Fama and Kenneth French study how common factors help explain asset returns. Their three-factor stock model uses the market excess return, size and value. Here, the factors are returns on constructed portfolios, and an asset’s exposure is its sensitivity to them.

Two uses of the word “factor”
Research questionWorldQuant-style alpha signalFama–French factor model
Main purposeScore assets for possible future relative performance.Explain returns through exposure to common factors.
ExampleA price-and-volume rule produces one score per asset.SMB is small-stock returns minus big-stock returns; HML is high book-to-market minus low book-to-market.
What you inspectPrediction quality, robustness, turnover and trading costs.Factor exposures, explanatory power and unexplained returns.

A predictive signal can also be related to size or value. The regression intercept called “alpha” is a model-relative unexplained return; an input signal named “alpha” is a score used to test a prediction.

Kenneth French: factor definitionsFama & French: the model and its intercept

LESSON 1.2

A score needs
evidence.

Imagine choosing a student today based on what they might earn ten years from now. How would you turn your intuition into something testable?

Illustration of Warren Buffett

A THOUGHT EXPERIMENT

Warren Buffett asked students to consider buying 10% of a classmate’s lifetime earnings. His point was about the qualities they would choose, including character and integrity.

Our classroom adaptation changes the terms: invest one year of your salary to receive 1% of one person’s future lifetime income. This is our teaching setup, not a Buffett quotation.

Buffett’s student talk · UGA Terry College

Be the teacher. Write the rule first.

You propose a score: mathematics exam marks divided by the time taken to finish. It rewards both accuracy and speed. Before looking at salaries, decide that a higher score should predict higher later pay.

Student factorexam marks ÷ completion time

Now take a class from ten years ago. Keep the scores and completion times recorded then, and compare them with annual salaries observed ten years later. Annual salary is our teaching target; it is not a full measure of lifetime income or a person’s worth.

An illustrated classroom with six fictional adult students
Illustrated learning scene

A 30-SECOND CHALLENGE

Who would you choose?

Six simulated students. You can see their mathematics results from ten years ago. Choose the one you think earns the most today, then reveal the outcomes.

Pick one student. Their future salaries are still hidden.

All six students and their outcomes are invented. This exercise tests a rule on one sample, not a person’s worth or a real investment.

Two tests for a useful factor

A well-designed score must separate higher and lower future outcomes, then keep doing so on new data. A striking result in one class only answers the first question.

01

Predictive power

Can the score distinguish future outcomes?

Compare the average salaries of the high-, middle- and low-score groups, then use Rank IC to inspect the full ranking. A useful score separates future higher earners from lower earners, with room for individual exceptions.
02

Stability

Does the same rule work across cohorts?

Keep the formula and expected direction fixed. Repeat the test on different graduating classes, including classes never used to choose the rule. One impressive class does not establish a repeatable pattern.

Read the groups, then read Rank IC.

Grouping asks a simple question: do the highest-scoring students earn more on average than the lowest-scoring students? A steady rise across the three groups is a useful pattern to investigate.

Rank IC is Spearman’s rank correlation between the factor score and the later outcome. It compares the full ordering, ranges from −1 to +1, and gives tied observations their average rank. Positive means the two rankings tend to agree; zero means no monotonic ranking association in this sample.

Rank ICcorr(rank(score), rank(future outcome))

A high Rank IC is an association. It does not establish that doing mathematics causes a higher salary. Here we judge how well a score predicts a defined outcome, rather than judging a student’s worth.

Microsoft Qlib · Rank IC calculation

TEST 01 · PREDICTIVE POWER

One class. Three possible factors.

SIMULATED DATA

Switch the subject. The same twelve students and later salaries stay fixed; only the scoring rule changes.

Rank IC—

Rank correlation with later annual pay

High group minus low group—

Difference in average annual pay · US$ thousands

Do higher scores line up with higher salaries?

Each dot is one simulated student.

Split the class into three equal groups

Annual pay (US$ thousands)

Four students per group, sorted by factor score. Bars show average annual pay.

Exam data from ten years ago, paired with salaries observed later
Exam data from ten years ago, paired with salaries observed later
StudentExam marks / 100MinutesMarks per minuteAnnual pay ten years later · US$ thousands

All students, marks, times and salaries are invented for this lesson. The data are deliberately constructed so mathematics works best. This is not a study of education, earnings or real investment returns.

TEST 02 · STABILITY

One good class is not enough.

Now repeat the same three rules across six simulated exam cohorts. Each cohort’s exam scores are compared with salaries ten years later: 2010 exams with 2020 salaries, through 2015 exams with 2025 salaries.

Imagine choosing the rule using the first three cohorts, then freezing it before checking the last three. Changing the rule after seeing those later outcomes would turn them into development data too.

Read across a row to inspect stability; read down a column to compare predictive power. Use the subject buttons above to highlight a rule.

Mathematics: predictive and persistent

Higher-scoring students tend to earn more across all six constructed cohorts. The strength varies, but the expected direction holds.

Physics: impressive in places, unstable

A good result in one cohort can reverse in another. An average alone can hide those changes.

English: consistently weak

A relationship near zero can look stable while offering little ability to distinguish later outcomes.

These six cohorts are deliberately constructed to illustrate the distinction. They are not independent empirical validation. Real research needs enough observations, uncertainty estimates and genuinely unused data; six toy cohorts do not establish a trading edge.

Predictive power + stability

Predictive power asks whether the score separates future outcomes. Stability asks whether that ability survives across time and unused samples. Both are necessary to treat a factor as a credible candidate for trading research. Neither guarantees a profit, and stability does not mean an identical Rank IC every year.

Replace students with assets. Keep the test.

What we compareStudents → assets
What we know nowExam data → historical market data
What we observe laterLater salary → future return

For a concrete asset example, propose a momentum factor: the price change over the previous 20 trading sessions. The hypothesis is that a higher score predicts a higher return over the next five sessions. Fix those two horizons before examining the outcomes.

Momentum factorprice now ÷ price 20 sessions ago − 1

THE SAME RESEARCH QUESTION

Six assets. One scoring date.

SIMULATED DATA

At the scoring time, only the past and current prices are available. Rank the six fictional assets by their factor scores before revealing what happens next.

Information available at the scoring time · prices in arbitrary units
AssetPrice 20 sessions agoPrice nowFactor score
A100.00112.00+12%
B100.00108.00+8%
C100.00104.00+4%
D100.00100.000%
E100.0096.00−4%
F100.0092.00−8%
Reveal the next five sessions

The future return is the price five sessions later divided by the scoring-time price, minus one. These later prices are used only to evaluate the factor.

Outcomes observed five sessions later
AssetFactor scorePrice five sessions laterFuture five-session return
A+12%115.36+3%
B+8%109.08+1%
C+4%106.08+2%
D0%99.00−1%
E−4%96.48+0.5%
F−8%90.16−2%
High factor · A, B+2.00%
Middle factor · C, D+0.50%
Low factor · E, F−0.75%

Average future return in each score group. These are descriptive groups for evaluating the factor.

Higher scores generally correspond to higher future returns in this invented sample, but B still finishes below C. The score has predictive power here without perfectly predicting every asset.

All prices and returns are invented to teach factor evaluation. One scoring date cannot demonstrate stability or real market predictability.

Next, repeat the unchanged factor on many scoring dates and in genuinely unused periods. Compare future returns across score groups and calculate Rank IC on each date. Does the expected relationship persist across years and market conditions, or does it depend on one lucky period?

Risk compensation, investor behavior and slow information adjustment can motivate a factor hypothesis. The mechanism needs evidence too. A positive Rank IC describes relative ranking; it does not mean that every high-score asset rises in price.

A credible factor is a repeatable prediction.

Define the information available now, the score and the future outcome. Look for meaningful separation, then test whether it persists. Choosing mathematics from three subjects already involves selection; choosing the best of many asset formulas makes independent evidence even more important.

Harvey, Liu & Zhu · Multiple testing in factor research

Gu, Kelly & Xiu · Chronological training, validation and testing

PUT IT INTO PRACTICE

From the classroom
to Quandora.

Use the same research discipline with market data. Let your AI handle the workflow, while you keep the hypothesis and the evidence in view.

  1. 01

    Connect your AI

    Follow the guide for your AI app, sign in to Quandora, and let your agent verify the connection.

    Open the installation guide
  2. 02

    Describe one hypothesis

    Explain the behavior you want to test. Your agent checks supported inputs, translates the idea into a factor, validates it and runs one backtest.

  3. 03

    Check predictive power and stability

    Review data coverage, Health Check and rating alongside the available factor evidence. Ask for score-group separation and Rank IC by period where supported. Distinguish in-sample results from genuinely unused periods, and report any missing evidence.

INSIDE QUANDORA

An AI-mined alpha factor, in the product.

Here is an alpha factor mined with AI in Quandora. The page shows the selected sample window, score-group curves and ranking metrics together, so you can inspect the evidence in one place.

Quandora detail page for Lagged Liquidity Positioning Flow Triad, showing in-sample group cumulative returns and factor metrics
Quandora factor detail · NO.150 · IS viewView full-size screenshot
01The sample

Check IS or ALL before reading the results.

02The separation

Inspect the score-group curves.

03The evidence

Check Rank IC, ICIR and the selected sample.

The screenshot has IS selected. Its displayed metrics describe the in-sample backtest; use evidence from other periods to assess stability.

Use Quandora to create and backtest a 7-day momentum alpha factor: score = latest completed daily close / close 7 days earlier - 1. Test whether higher scores predict higher relative returns over the next day. Show group returns and Rank IC.

The published Alpha #101 is a learning reference, not a claim that the exact formula or every market is supported by Quandora. Your agent must check the current data contract. An in-sample backtest is research evidence; it is not unseen or future performance.

CHAPTER 02

From a score
to a strategy.

A strategy answers two questions: what to hold, and when to update it.

LESSON 2.1

From one pair to many assets.

Pairs trading is a classic starting point for statistical arbitrage: buy the relatively cheap asset and short the relatively expensive one, expecting their historical relationship to recover.

ONE PAIR

A relationship between two assets.

One pair offers limited trading opportunities. If the relationship breaks, the idea can stop working.

MANY ASSETS

Let alpha factors rank the universe.

Buy a high-score basket and short a low-score basket. Seek a repeatable return gap across more symbols.

More symbols bring more opportunities, not guaranteed profits. Signals can fail together; costs and risk still matter.

Gatev, Goetzmann & Rouwenhorst · Pairs trading · Avellaneda & Lee · Statistical arbitrage

One alpha factor. Three ways to trade.

Assume a positive-direction factor with enough predictive power and stability. It gives each asset a score: higher scores imply higher expected relative future returns; lower scores imply lower expected relative returns.

01

Long only

Buy the highest-scoring eligible assets. This expresses the high-return side of the signal.

02

Short only

Short the lowest-scoring eligible assets. Relative underperformance alone does not guarantee that their prices fall.

03

Long-short neutral

Buy the top group and short the bottom group at the same time. This expresses the predicted gap between the two groups.

The strips run from higher scores on the left to lower scores on the right. Orange marks longs; blue marks shorts.

Relative is not absolute.

If the high-score group rises 8% and the low-score group rises 3%, the ranking prediction is correct. A short position in the low-score group still loses before costs. Equal long and short notional also does not remove every market risk.

SEC Investor.gov · Long and short positions

LESSON 2.2

Turn alpha rankings into a trading strategy.

1. Set the rules

Pick a side
Liquidity threshold
Pick the tails
High score → low score—
Long picks—Short picks—Out

Target weights: equal.

The rules are set. Next, check who enters and leaves.

Check the ranking
More settings
Alpha factor

Net / gross exposure: —

This demo rounds percentage selections down, with at least one asset per active side. Count mode selects N. Opposite sides cannot overlap.

Both the 30-day mean and median daily turnover must strictly exceed the thresholds. Turnover is expressed in USD in this teaching example. Other market-data eligibility checks are assumed to pass; all asset values here are invented.

Equal weight is the allocation rule here. The example uses 100% gross exposure.

All example assets are assumed to meet the product’s other data-history requirements. Their scores and turnover summaries are invented for teaching, not results from the named factor.

LESSON 2.3

When to open and close.

Every day

Recheck the alpha ranking each day. Leave the selection: close. Enter the selection: open. Still selected: keep holding.

Long top 2 · Short bottom 2

Invented rankings. Long and short selection rules stay unchanged.

LESSON 2.4

Rebalance: trim or top up.

Every day

Each selected symbol has a target weight. Here, four unchanged positions each target 25%.

  1. 01Build positions
  2. 02Prices change
  3. 03Check the weights
  4. 04Done

Portfolio value400 USD

Split the money into four positions.

Target weights: equal.

A100 USD25%
B100 USD25%
C100 USD25%
D100 USD25%

Same rule, every day.

Rankings decide which positions to open or close. Target weights decide how much to buy or sell in positions that remain selected.

Position-size example: long only, four selected assets, equal weights, daily rebalance.

Invented prices, before trading costs. Rebalancing can still lose money.

LESSON 2.5

Build your first statistical arbitrage strategy.

2 alpha factorsLong-short neutralTop / bottom 30%Low liquidity thresholdDaily rebalance

Use Quandora to select two eligible alpha factors with equal factor weights. Create a daily-rebalanced, long-short neutral strategy: long the top 30%, short the bottom 30%, low liquidity threshold. Backtest from 2022-01-01 to the latest available date and report the actual test window.

LESSON 2.6

Understand the benefits and risks.

Many assets. Less concentration.

With enough assets whose returns do not all move together, diversification can reduce overall volatility and the impact of any one symbol.

More symbols help only when they bring different exposures. Shared risks can still move them together.
Long exposure50%
Short exposure50%

Money Neutral: balance the amounts.

Equal long and short notional can offset some shared market moves. It can reduce the strategy’s dependence on market direction.

Equal amounts do not guarantee zero beta. Estimate market beta from backtest returns and check how it changes over time.
Why check beta as well?

Suppose longs have beta 1.2 and shorts have beta 0.8. Each side has notional equal to 50% of portfolio equity.

β ≈ 0.5 × 1.2 − 0.5 × 0.8 = +0.2

This money-neutral example still has positive market exposure. The beta values are invented for teaching.

SEC Investor.gov · Diversification · AQR · Dollar neutrality and beta exposure

THE RISK: MODELS CAN STOP WORKING

Markets adapt. So must research.

A statistical pattern is not a permanent law. Relationships change; past success does not guarantee future performance.

  1. 01A pattern is found

    An alpha factor captures a historical relationship.

  2. 02Others trade it

    Competition and crowding can weaken the edge.

  3. 03The market changes

    The pattern may fade, reverse or reappear in a new form.

Even the way an edge fades can inspire a new hypothesis. Study that adaptation, then validate it with new evidence.

Andrew Lo · The Adaptive Markets Hypothesis

Sources & further reading

Original material behind this chapter. Historical descriptions are attributed; the classroom dataset is our own teaching example.

  1. WorldQuant · Igor Tulchinsky’s biography
  2. WorldQuant · Alpha research
  3. Zura Kakushadze · 101 Formulaic Alphas
  4. Kenneth French · Three-factor definitions
  5. Fama & French · Factor models and alpha
  6. UGA Terry College · Buffett’s student talk
  7. University of Florida · Buffett on character
  8. Shleifer & Vishny · The Limits of Arbitrage
  9. Harvey, Liu & Zhu · Multiple testing in factor research
  10. Microsoft Qlib · Rank IC calculation
  11. Gu, Kelly & Xiu · Chronological training, validation and testing
  12. Quandora · Installation and research workflows
  13. SEC Investor.gov · Long and short positions
  14. SEC Investor.gov · Rebalancing

EXPLORE QUANT TOGETHER

Curious about quantitative trading?

Join our Telegram group for the latest insights on quantitative trading.