On 15 Sep 2026 the twenty session realised volatility of the Nifty was 7.3% a year. Across the 300 sessions in the NSE file that ends that day, the same measure ran from 5.2% to 29.5%. A model fitted inside one of those regimes has learned that regime, and nothing in its score says so. One model was scored on those 300 sessions four ways. A shuffled cross validation said it was right 64.4% of the time, well above a coin. Cut properly, the same model scored 44.4%. This lesson is about that gap: labels, overlap, purging, trial counts, feature importance, size and the Indian rules around a model. It is education. It names no strategy, promises no result and makes no call on any contract.
3By the end you can
- Build triple barrier and meta labels, and work out uniqueness and the effective sample from overlapping spans.
- Cut data with purging, an embargo, walk forward and combinatorial paths, and say how far a shuffled score is inflated.
- Read permutation importance with correlated features, turn a probability into a size, and name the SEBI and NSE rules a model meets.

The idea, plainly
Why is market data hard for machine learning?
Four facts do the damage, and a better algorithm removes none of them.
- Small signal. Daily returns are mostly noise, so a flexible model can fit noise and look skilful.
- One history. The past cannot be re-run, so every idea is tested on the same data again and again.
- A moving process. Volatility, correlations, lot sizes, tax rates and settlement rules change.
- Overlapping labels. A label that looks several days ahead shares most of its days with its neighbours, so the sample is smaller than the row count.
The regime moves: twenty session volatility ran from 5.2% to 29.5%
Read one more paragraph, 129 words
The most careful published test of machine learning on returns says the same about signal. Gu, Kelly and Xiu call the signal to noise ratio of return prediction tiny. They find that shallow learning beats deep learning, with network performance peaking at three hidden layers, and that their boosted trees and forests pick trees with few leaves, fewer than six on average. They tie this to the small amount of data and the weak signal, in contrast to fields such as computer vision. A fit that is good inside one stretch can be poor in the next, and a single train and test split cannot tell the two cases apart. That is why the checks below are about how the data is cut, not about which model is used.
What does a careful pipeline look like?
Each stage can fail without an error message, and a later stage cannot repair an earlier one. The map is a method, not a result.
A model passes seven checks before its score is worth reading
Data means each value as it was known on its date, not as later revised. Features mean only what was known when the order would have gone in. Labels mean what a trade could earn after costs. The ledger is a count of every variant tried, kept even for the ones that failed.
How should a label be built?
A fixed horizon label asks whether the price is higher after h sessions. A triple barrier label is closer to a trade. It sets an upper barrier, a lower barrier and a time limit, each scaled to recent volatility, and records which is touched first. Barriers wide in quiet markets and narrow in noisy ones keep the label comparable across regimes.
Maths: the three barriers
Upper = Pt × exp(c σt √h)
Lower = Pt × exp(−c σt √h)
Time limit = t + h sessions
Pt is the close on day t, σt the standard deviation of the last 20 daily log returns, h the horizon in sessions and c a width multiple. Scaling by √h is the usual rule that volatility over h sessions is σ times √h for independent returns. The label is one if the upper barrier is touched first, zero if the lower is, and for the time limit the sign of the return. The label stores a second date, the session of the touch, because that date decides which neighbours it overlaps.
Read 2 more paragraphs, 169 words
On the school's files the run takes h of 5 sessions, c of one and σ from the last 20 sessions. That leaves 275 labelled rows, from 29 Jul 2025 to 7 Sep 2026, the last of which closes its label on 15 Sep 2026. The barrier is on average 1.67% of the price away, from 0.73% in the quietest weeks to 4.15% in the wildest. The upper barrier came first in 22.2% of rows, the lower in 25.8% and the time limit in 52.0%. Half the labels are decided by the clock, which a fixed horizon label would have forced into a coin toss on tiny moves.
Meta labelling splits the job in two. A simple rule decides the side of a trade. A second model takes the rule's trades and predicts whether each one will be right, and its probability decides whether to take it and how large to make it (Joubert, 2022). The second model sees fewer, more selective rows, which is where overfitting waits.
Why does overlap shrink the sample?
Label each day with the return of the next three. One day's label and the next day's share two of their three days, so they are not independent rows. Counting them as independent overstates the evidence by about the horizon, and a fit on overlapping rows looks sharper than the data supports.
Maths: uniqueness and effective sample size
c(s) = labels whose span
contains day s
u(i) = average over its days
of 1 ÷ c(s)
Effective N = Σ u(i)
Each label covers the daily returns from the day after entry to the day of exit. Where many labels cover the same day, c(s) is large and each gets a small share of it. A label whose days nobody else covers has u of one. For one label a day and a horizon of h, an interior label has u near one over h, so the effective N is about N over h. A weight equal to u gives each stretch of time one fair say, and a weight that also scales with the size of the return keeps large moves from swamping the fit. A sequential bootstrap goes further: it draws rows one at a time, favouring those that overlap least with what has been drawn.
| Label | Days covered | Labels per day | Uniqueness |
|---|---|---|---|
| 1 | 2, 3, 4 | 1, 2, 3 | 0.611 |
| 2 | 3, 4, 5 | 2, 3, 3 | 0.389 |
| 3 | 4, 5, 6 | 3, 3, 3 | 0.333 |
| 4 | 5, 6, 7 | 3, 3, 2 | 0.389 |
| 5 | 6, 7, 8 | 3, 2, 1 | 0.611 |
2 terms this section turns on
Read 2 more paragraphs, 150 words
A tiny case shows it. Take five labels, one a day, each covering the next three daily returns, so label one covers days two to four, label two days three to five, and so on to label five on days six to eight.
The five rows are worth 2.33 independent rows. The edge labels keep more weight because fewer neighbours cover their days. On the school's files the 275 fixed horizon rows have an average uniqueness of 0.203 and are worth 55.8 independent rows. The triple barrier rows exit early about half the time, so their spans are shorter: average uniqueness 0.247 and 68.0 effective rows. The standard error of a hit rate near one half is the root of one quarter over N, which is 6.1% on the effective count and 3.0% if the overlap is ignored. Half the error is the price of counting rows instead of evidence.
What do purging and an embargo do?
Ordinary k fold validation shuffles rows into folds. With overlapping labels, a training row just before a test row has a label window that reaches into it, so the model has seen part of its own answer. Racine (2000) handled dependent data by cutting a gap of observations on each side of the test block, the hv block scheme. Bergmeir and Benítez (2012) studied when cross validation is valid for time series predictors and compared blocked forms with testing on the last part of the series. Arlot and Celisse (2010) survey the whole family and warn that cross validation was built for independent rows.
Maths: the purge and the embargo
Row i spans [a(i), b(i)]
Test block spans [A, B]
Purge row i if
a(i) ≤ B and b(i) ≥ A
Embargo: also drop rows
starting within e sessions
after B
The purge removes training rows whose label window overlaps the test block in time. The embargo removes a further margin right after the block, because serial correlation lets those rows carry information about it. Choose e at least as long as the label span and, to be careful, as long as the longest feature window. A feature built on 20 sessions shares most of its inputs with the next row's feature.
Maths: combinatorial purged paths
Split into N groups
Test k groups at a time
Splits = C(N, k)
Paths = C(N, k) × k ÷ N
Each group appears in the test set in a share k over N of the splits, so the test results can be stitched into several full length paths instead of one. With six groups and two tested at a time that is 15 splits and 5 paths. A strategy then has a spread of results to read, not one number. Purging and an embargo apply to every split. The paths share one history, so the spread is real but narrower than independent samples would give.
Read 2 more paragraphs, 105 words
On the school's files a purged fold with an embargo of 5 sessions drops about 7.2 training rows beside the test block. That is little. If the embargo is stretched to 20 sessions to cover the feature window, the flexible model's score moves from 44.4% to 42.2%. Both are below a coin, and the lesson is not that the second is better. It is that the honest score does not depend much on the exact gap once the leak is closed.
Walk forward testing, in the lesson on walk forward testing, never trains on the future by construction, but gives one path only.
How many tries did it take?
Every variant tried on the same history is a draw from the same noise. The honest question is not whether a model scored well but how many were tried to find it. The bars show the chance that at least one of n useless variants clears two standard errors above a coin flip by luck, each with a 2.3% chance on its own.
Twenty tries on one history clear a lucky bar more than a third of the time
Read one more paragraph, 86 words
This is why the ledger matters. The lesson on backtest overfitting turns the count of trials into a deflated Sharpe ratio and a probability of overfitting. The run in the worked example below counts two label types, two models and four ways of cutting the data. That is 16 scores in the ledger, with a longer embargo and a ridge penalty tried on the way. The table shows the eight for the triple barrier label. The other eight were run too and tell the same story.
Which features leak?
- Revised data. A figure restated later was not available on its date.
- Look ahead in code. A rolling window centred on the day, or a scaler fitted on the whole sample, uses the future.
- Survivorship. An index list as it stands today leaves out the names that dropped out.
- Corporate actions. A split or a bonus looks like a crash. The realised correlation file used in this course leaves out any name with a one day move above a quarter in a window, for that reason.
- Rule changes. Lot sizes, STT and settlement methods differ by date, and a model fitted across them mixes two products.
The relationship between stocks moves too. The twenty session realised correlation among the fifty Nifty names, on a fixed weight set, ran from 0.04 to 0.60 between 24 Sep 2025 and 15 Sep 2026, and stood at 0.10 on the last day.
The link between the names moves: correlation ran from 0.04 to 0.60
Which features matter, and how would anyone know?
Importance scores from a fitted model mislead when features are correlated: the score of one is split or taken by its neighbours. Scores built from how often a tree splits on a feature also lean towards features with many possible split points (Strobl and others, 2007). The cleaner check is permutation importance, which uses the held out score and no model internals.
Maths: permutation importance and the cluster fix
I(j) = S − average over
shuffles of S(j shuffled)
I(group) = same, with the
whole group shuffled
S is the score of a fitted model on a purged test fold. Shuffle column j among the test rows, score again, repeat many times and take the average drop. A feature that matters costs score when scrambled. A feature that does not matter costs about nothing, and noise can push the drop slightly below zero. When two columns are near copies, the model leans on both. Scrambling one leaves the other to carry most of the load, so each looks unimportant. Scrambling the pair together removes the information both hold, and the drop is far larger than the sum of the singles.
- A feature that ranks high in training and low in a later period was fitting that period.
- A cluster of related features is better judged as one group than one by one.
- Fewer, simpler features are easier to audit and cheaper to retest.
How does a probability become a size?
A classifier outputs a probability, and a position size turns it into rupees. The Kelly fraction is the size that grows an account fastest if the edge is known exactly, and it is not known exactly. For a rule with equal wins and losses it is two p minus one, where p is the win rate. A rule that wins 52% of trades has a Kelly fraction of 4%. The model below simulates that rule over 250 trades.
Model, not market data
The same edge ruins few paths at a small size and most paths at twice Kelly
Read one more paragraph, 61 words
At 4% of the account per trade, the size equal to Kelly, 19% of paths still lose half. At 8%, twice Kelly, 57% do. A model that scores well is not a size, and a model probability is a noisy estimate of p. Fractions of Kelly, set from a fixed risk budget, sit in the lesson on Kelly sizing.
What happens after it goes live?
A model keeps being tested after launch, because the world it was fitted on keeps moving. A written plan, fixed before the first order, is part of the method. Compare the live spread of features and outcomes with the training spread on a schedule. Set a drawdown or a run of misses that pauses the program in advance, not by feel. Treat each refit as a new variant: it goes in the ledger with its date and data window.
What do the Indian rules say?
A model is a piece of software, and the rules attach to what the software does. Each rule below was read in the circular itself.
- An API order from a model is an algo order. SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/0000013 of 4 Feb 2025 defines an algo as orders generated using automated execution logic. An algo a retail investor writes for personal use is registered with the exchange, through the broker, only if it crosses an order per second threshold (para 5, part I c). NSE/INVG/69255 of 22 Jul 2025 sets that threshold at 10 orders per second (para 8.2.3). Below it, an unregistered algo runs through predefined API keys with the Algo ID field set to 99999 (para 8.2.4).
- Dates. The SEBI circular applied from 1 Aug 2025 and was moved to 1 Oct 2025 by a circular of 29 Jul 2025. SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/132 of 30 Sep 2025 gave brokers a glide path and made the framework applicable to all brokers from 1 Apr 2026 (para 8).
- Opaque models need a research analyst. An algo whose logic the user cannot see and cannot replicate is a black box. Its provider must register as a research analyst and keep a detailed research report, and a change in the logic means registering it as a fresh algo (SEBI circular para 5, part V). NSE para 9.1 lists a change in logic governing the algo as a reason to re-register, and para 9.9 says no modification is allowed to a registered black box. Whether a scheduled retraining on new data is a change in logic is for the broker and the exchange to say. This lesson does not decide it.
- Records. The broker must keep an audit trail of API orders and trades for at least five years (NSE para 10.3). Registration takes up to T+10 working days, T+7 for execution algos (para 5.2.1 and para 5.2.2).
- Reporting of AI and ML. SEBI/HO/MIRSD/DOS2/CIR/P/2019/10 of 4 Jan 2019 asked brokers and depository participants whose systems portray AI or ML as part of a public product offering, or use it for compliance, to file a form each quarter within fifteen calendar days of quarter end, from March 2019. Its para 2 says an advertised financial benefit from such a system must not amount to misrepresentation. Mutual funds have SEBI/HO/IMD/DF5/CIR/P/2019/63 of 9 May 2019. Later exchange notices changed the schedule, and they are not covered here.
- Responsible use is still a consultation. SEBI's consultation paper of 20 Jun 2025 proposed, among other things, testing models in an environment segregated from live trading, shadow testing with live traffic, and keeping input and output data for at least five years (para 5.3). Comments closed on 11 Jul 2025. No final circular from it was found when this lesson was written.
- Data. SEBI HO/47/17/12(11)2025-MRD-POD3/I/11107/2026 of 8 May 2026 sets a lag of thirty days for sharing and using exchange price data for education, applicable from 1 Jul 2026, with a legal agreement and an audit trail where exchanges or intermediaries share it. That is why every date in this course is at least thirty days old. NSE publishes a data sharing and usage policy that governs use and redistribution of its data. Whether training a model for your own research on end of day files you hold is covered is a question for NSE Data and Analytics. This lesson has not verified it.
- Performance claims. Registered investment advisers and research analysts may show past performance data from before PaRRVA began only if enrolled with it (HO/38/14/(4)2026-MIRSD-POD/I/10557/2026 of 29 Apr 2026), and only up to 3 May 2028. After that only PaRRVA verified risk and return metrics may be shown. The enrolment date of 3 Aug 2026 was extended to 3 Sep 2026 by HO/38/14/(11)2026-MIRSD-POD1/I/18038/2026 of 3 Aug 2026. A backtest chart is not that record.
- Costs. STT on the sale of a future is 0.05% from 1 Apr 2026 (NSE/FATAX/73524 of 31 Mar 2026). The exchange charge on equity futures is Rs 183 per crore each side from 1 Mar 2026 (NSE/FA/73061 of 27 Feb 2026). SEBI's Aug 2026 study found 87.7% of individual F&O traders lost money in FY26, so costs and size decide many outcomes before any model does.

What is sensible follows from these. Keep the model's logic written down and its versions dated. Treat a retrain as a version. Keep input and output data. Use data at least thirty days old for education. Do not publish backtest results as performance.
What does the research say?
The largest study of machine learning on returns is Gu, Kelly and Xiu (2020). They used nearly 30,000 US stocks from 1957 to 2016 and 94 stock characteristics, which with interactions and macro variables made 920 predictors. They trained on 18 years, validated on the next 12 and tested on the final 30. Their findings are mixed on purpose.
- Linear models fail without discipline. Ordinary regression on all 920 predictors had a monthly out of sample R squared of −3.46%, worse than forecasting zero. A three variable regression got 0.16%, an elastic net 0.11%, and the dimension reduction methods 0.26% and 0.27%.
- Trees and neural networks do best. They traced the gain to nonlinear interactions. Among the largest 1,000 stocks the R squared of the tree and network methods ran from 0.52% to 0.70%, so the gain is not only small stock illiquidity.
- The portfolio gains are large on paper. A long short decile spread sorted on a neural network earned a Sharpe ratio of 1.35 value weighted and 2.45 equal weighted, against 0.61 and 0.83 for the simple regression. Timing a broad US stock index with network forecasts lifted its Sharpe ratio from 0.51 to 0.77.
- The same signals keep appearing. All methods agree on momentum, liquidity and volatility as the dominant predictors.

Read one more paragraph, 193 words
Read it with care. Monthly R squared values of a fraction of a percent are the scale of the prize. The data are US stocks over six decades, not Nifty futures over 300 sessions, and a Sharpe ratio on paper is not a return after costs, and the paper reports turnover beside its portfolios. Kelly, Malamud and Zhou (2024) go the other way and show in theory and in US equity market data that simple models understate predictability compared with complex models whose parameters outnumber the observations. Neither paper licenses a flexible model on a few hundred rows. The cross validation survey of Arlot and Celisse (2010), the hv block paper of Racine (2000) and the comparison of Bergmeir and Benítez (2012) are the method base. Breiman (2001) is the base for random forests. On the count of tries, Harvey, Liu and Zhu (2016) argue that after hundreds of tested factors a new one should clear a t ratio of 3.0, not two, and Bailey and others (2016) and Bailey and Lopez de Prado (2014) give the overfitting probability and the deflated Sharpe ratio that the lesson on backtest overfitting works through.
Worked examples
Four cases. The first and third use the school's real series. The second and fourth are models with stated inputs. Every step can be redone from the files.
Example 1: one model, four ways to score it
The recipe, in the order it was run.
- Rows. Take the Nifty close for 300 sessions. A row at day t needs 20 sessions of history and 5 sessions of future, which leaves 275 rows.
- Features, known at the close of day t. One and five and twenty session returns, India VIX, its five session change, the twenty session realised volatility, the gap between the thirty day at the money implied volatility and realised volatility, the annualised basis of the near future and the net futures position of foreign investors.
- Label. The triple barrier label above: one if the upper barrier comes first or the time limit ends higher, zero otherwise. The share of ones is 46.2%, so a model that always says down is right 53.8% of the time. That is the bar to beat, and it is already above a coin.
- Two models. A logistic regression with a ridge penalty, and a five nearest neighbour vote on standardised features. The second can memorise.
- Four cuts. Five fold shuffled cross validation, repeated with twenty seeds. Five fold blocks with purge and a 5 session embargo. Walk forward with an anchored 100 row start and test blocks of 35 rows, which tests 140 rows. Combinatorial purged testing with six groups and two tested at a time: 15 splits and 5 paths.
Example 1: one model, four ways to score it, in 5 steps
| Cut | Neighbour vote | Logistic |
|---|---|---|
| Shuffled five fold, average of twenty seeds | 64.4% | 55.8% |
| Purged and embargoed five fold | 44.4% | 46.5% |
| Walk forward | 47.1% | 51.4% |
| Combinatorial purged, mean of paths | 46.5% | 48.1% |
Shuffled folds say 64.4%; every honest cut says less than always saying down
Read 2 more paragraphs, 221 words
Read it row by row. The neighbour vote scores 64.4% with shuffled folds. Against a coin that is 4.8 standard errors if the rows are counted as independent. Even on the effective count the standard error is 6.1% and the same score is 2.4 errors above a coin, so the correction alone does not catch the leak. The reason is the neighbour vote: with shuffled folds it finds the training row from the day before, whose features are almost identical and whose label shares most of its days. The purged score is 44.4%, below the coin, and the walk forward and path scores sit in the same place. The five paths ran from 44.0% to 52.4%, a spread of 8.4 points, and that spread is the honest size of the uncertainty. The logistic model, which cannot memorise, scored 55.8% shuffled and 46.5% purged. A fixed horizon label gives the same story: 66.2% shuffled and 44.0% purged for the neighbour vote.
The honest scores are below the always say down rate of 53.8% because the index fell over this window and the features have no signal about its direction. That is a finding about this sample of 275 rows with 68.0 independent ones. It is not a result about any rule, and not a reason to trade the other way.
Example 2: importance with a near copy (model)
Model, not market data. The columns are real and the answer is made up, so that the truth is known. The label is one when a standardised India VIX multiplied by 0.9 plus a random draw of standard deviation one is above zero. The thirty day implied volatility is not in the recipe, yet it moves with India VIX at a correlation of 0.99. The realised volatility, two return columns and the basis are also offered. A ridge logistic model is trained on purged folds and scored on held out folds, giving an accuracy of 77.1%.
| Column shuffled | Drop in accuracy |
|---|---|
| India VIX alone | 1.5% |
| Thirty day implied volatility alone | 0.1% |
| Both together | 6.5% |
| Realised volatility, two returns, basis | −0.7% to −0.3% |
Read one more paragraph, 120 words
Shuffling India VIX alone costs 1.5%, and the implied volatility column alone costs 0.1%, though it has no role in the truth. The model had split its weight, 0.89 on India VIX and 0.60 on its copy. Without the copy, India VIX gets a weight of 1.30. The two singles sum to 1.6%. Shuffled together they cost 6.5%, about four times the sum. Reading the singles would say that both columns are minor. The group says that the pair is the whole signal. The columns that carry nothing show negative drops of −0.7% to −0.3%, which is the noise floor of the method on this sample: shuffling noise can raise the score by chance.
Example 3: a meta label on a momentum rule
The primary rule: go long when the twenty session return is above zero and short when it is below. It has no merit claimed. It is a fixed side rule to give the second model something to filter. On the 275 rows the rule was long in 57.8% and right in 45.5% of rows, with an average gross return of −0.15% per trade. Take one lot of 65 at the close of 15 Sep 2026, Rs 23,118.60 on the index, a notional of Rs 15,02,709. The average gross loss per trade is then −Rs 2,254.
Two terms to hold on to from 19.14
| How the meta model was scored | Trades kept | Hit rate | Gross per trade |
|---|---|---|---|
| Primary rule, all rows | 275 | 45.5% | −0.15% |
| Logistic meta model, purged folds | 135 | 47.4% | −0.20% |
| Logistic meta model, shuffled folds, one seed | 109 | 55.0% | 0.06% |
| Neighbour vote meta model, purged folds | 112 | 50.0% | −0.05% |
| Neighbour vote meta model, shuffled folds, one seed | 114 | 69.3% | 0.52% |
Read 2 more paragraphs, 211 words
The meta model is a ridge logistic regression on India VIX, realised volatility, the five session change in India VIX, the basis, the foreign investor futures position, the five session return and the implied less realised gap. It predicts whether the primary side will be right, and trades are taken when its probability is above half.
With purged folds the meta model keeps 135 of 275 trades and the hit rate moves from 45.5% to 47.4%. The standard error on the kept trades is 8.6%, so the move is well inside noise, and the average gross return of the kept trades is −0.20%, lower than the skipped trades at −0.10%. With shuffled folds the same family of models looks like a filter that works: the neighbour vote keeps 114 trades with a hit rate of 69.3% and an average gross of 0.52%. On the lot above that reads as Rs 7,814 a trade, against −Rs 751 when the folds are cut properly. The charges are far smaller than either: STT on the sale of 0.05% plus the exchange charge on both sides comes to Rs 806 per round trip on that lot, before brokerage, GST on charges and stamp duty. Costs matter. The leak mattered more.
Example 4: from a probability to a size (model)
Model, not market data. A model reports a win probability of 60% for a rule with equal wins and losses. Kelly for 60% is 20% of the account. The true win rate is 52%, whose Kelly fraction is 4%. A trader who sizes to the claim risks 20% on every trade, five times the true Kelly fraction. Over 250 trades, simulated 2,000 times, 94% of paths lose half the account, and the median path ends at 0.46 of the starting account. At the true Kelly size the median path ends at 1.22 of it, and at a quarter of Kelly's size the chance of losing half is almost nil. An overconfident probability does damage through size, not through the hit rate.
Stretch: from a model to a record
Backtest overfitting turns the trial count of this lesson into a deflated Sharpe ratio. Walk forward testing shows the same purging inside a calendar loop. Building a compliant algo follows a model into the registration papers. The capstone research note asks you to write one question, one dataset and the limits, which is the discipline of this lesson on a page. The short answer on the question page is does machine learning work for trading.
Where this section sits in module 19.14
The common mistake
The claim: The model scored 70% accuracy on the test set, so it has an edge.
A score says little until four things are known. First, how the folds were cut. A shuffled cut let a neighbour vote score 64.4% on rows where the purged cut gave 44.4%; sized on the shuffled result, a trade of Rs 7,814 expected on a lot became −Rs 751 in practice. Second, how many variants were tried: twenty useless ones clear a lucky bar more than a third of the time. Third, the payoff. A rule with a 70% hit rate, a win of Rs 5,000 and a loss of Rs 15,000 earns −Rs 1,000 a trade, because it needs 75% to break even. Fourth, the size: a claimed probability of 60% against a true 52% led to a risk of 20% a trade and ruin on 94% of paths. Two quieter errors cost less per trade but repeat. A scaler fitted on the whole sample puts the future into every row. A single feature importance read, with a near copy beside it, can drop the one column that matters. Read a score as a hypothesis, test it on a later period it never touched, with costs charged, and quote the number of trials with it. The short answer is on the machine learning question page.
What I'd keep from this
- Overlapping labels shrink a sample to about N over the horizon.
- Shuffled folds let a flexible model score high on leaked neighbours.
- Purge overlapping rows and embargo as long as the feature window.
- Count every variant tried: twenty tries clear a lucky bar often.
- Shuffle correlated features as a group, or each looks unimportant.
- A model is an algo under SEBI rules; a probability is not a size.


Before you trade. Derivatives trading carries a high risk of loss. SEBI's study "Profitability of Individual Traders in the Equity Derivatives Segment (FY25 to FY26)" (August 2026) found that 87.7% of individual traders in equity F&O made net losses in FY26, with aggregate net losses of Rs 91,685 crore. Read the SEBI study