TAYU Academy course material · Quant Strategy Development
Course Notes
1. Understand the core idea of “Factor testing” and explain it in your own words
2. Master this module's focus: Factor construction
3. Complete the assignment on your own and check it against the reference answer
Factor testing distinguishes predictive relationships from trading returns. The correlation between IC factors and future returns should be from the same observation set; time-series correlation of a single asset does not equal cross-sectional IC.
A factor is a quantifiable feature used to predict future returns, such as momentum (the past N-day return), mean reversion (distance from a moving average) or volatility. When building factors, keep the calculation consistent, handle outliers, and test their correlation with future returns (for example, rank IC).
Example: Use the 20-day return of EURUSD in the past as a momentum factor, and calculate its rank correlation with the future 5-day return; an IC close to 0 indicates weak predictive power, and an unstable IC symbol should also be vigilant.
First, set the cross-section or time series → Align future labels → Clean for missing values → Compute ranks or linear correlation → Ensure sample size and stability, not just peak values.
Given three asset factors ranked 1/2/3, and future returns ranked 3/2/1, what is the Spearman rank correlation? Can it be said that long-term losses are inevitable?
Spearman rank correlation is −1; this three-point cross-section is simply completely reversed and cannot represent a long-term conclusion. Transaction returns are also influenced by size, turnover, and costs.
For closes of 100, 101, 103, 102, the 2-period momentum is 3% at the third point and 0.990099% at the fourth. A next-period return label can be used for evaluation only after that future period has occurred. Small samples or constant columns make correlation meaningless; there is no fixed threshold such as "IC > 0.03 always works".
Labels are future outcomes, not tradable features; also record how many factors were screened and how many failed.
This dependency-free script contains small labs for rank correlation, time folds, inventory valuation, covariance risk and rejection paths. The grid part only models buy-on-the-way-down inventory, with no sell-side recycling or real fills; the risk-parity part only demonstrates a given covariance and is not a general optimiser. Work from the report, and do not treat a small lab as a complete production strategy.
python strategy_labs.py1. Factors must be quantifiable and consistently defined
2. Test predictive power with IC
3. Watch for outliers and look-ahead bias
Risk warning: leveraged trading in forex, precious metals and similar products carries a high level of risk and you may lose all of your capital, or more. This course is for education only. It is not investment advice and does not promise any return. Example prices and contract specifications are teaching assumptions; always use what your own platform discloses. Past performance and backtests do not indicate future results.
All values, prices, accounts and cases in this course are teaching assumptions; the fixed materials can be reproduced offline. Marking a lesson complete only records your study. It is not a certification, a service approval or a promise of returns. Workbooks and answer files are currently provided in Chinese.
Key Takeaways
Completion records your own study, not verified competence. Exercises use fictional data; no real account or deposit is required.