Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
CalculatorComparison
Frameworks
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryFinancial LiteracyInvestment Banking Analyst
Private Equity AnalystHedge Funds AnalystBreaking Into VCBreaking Into QuantsAI For Finance
Financial Analyst ProgramRisk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Internships
Equity Research InternMutual Fund Intern
Portfolio Management InternFinancial Literacy Intern
Explore Micro Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
Courses
Explore Career Roadmaps
Investment Banking AnalystEquity Research AnalystVC AnalystPrivate Equity AnalystHedge Funds Analyst
Quant AnalystAI For FinanceFinancial Analyst ProgramPrivate Wealth ManagementDebt Capital Markets
Risk Management ProgramDerivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
Quantitative Methods, Financial Data & Programming
1Probability
Probability in FinanceRandom VariableProbability DistributionsThe Normal DistributionNormal Distribution ProbabilityThe Lognormal DistributionRandomness vs Uncertainty
2Statistics and Inference
Population and SampleMean, Median and ModePrecision and AccuracyVariable TypesVariance, Standard Deviation and…Dispersion MeasuresStatistical BiasEffect SizeHypothesis TestingThe Sampling DistributionSkewnessKurtosisCovarianceConfidence IntervalArithmetic Mean vs Geometric MeanStatistical Significance vs Economic…Confidence Interval vs Prediction IntervalHow to Summarise a…
3Correlation and Regression
RegressionCorrelation and CausationOrdinary Least SquaresInteraction TermsRegression CoefficientsRegression vs ClassificationHow to Build a…Spurious CorrelationRegression, Correlation and FitResidualsMulticollinearityAutocorrelation and Partial Autocorrelation
4Time Series
Time Series in FinanceSimple, Weighted and Exponential…Moving Average CalculatorPrice, Return and Level SeriesHow to Prepare Time-Series…LagFrequencySeasonalityTimestampsTrendStationarity and the Unit RootHeteroskedasticityLeadRolling WindowsDifferencing
5Simulation and Numerical Methods
SimulationMonte Carlo SimulationHow to Run a…Numerical MethodsIterationResampling and the BootstrapPseudorandom Numbers and the SeedConvergence and ToleranceNumerical Stability
6Optimisation
OptimisationLocal and Global OptimaConstraintsConvex OptimisationThe SolverLinear ProgrammingThe Objective FunctionConstraint ViolationThe Feasible SetLagrange MultipliersQuadratic Programming
7Modelling Practice
Linear, Logistic, Ridge and…Training, Validation and Test…The ModelModel ErrorDependent and Independent VariablesThe ROC Curve and AUCWhat a Model HoldsMSE, RMSE, MAE and MAPEPrecision and RecallCross Validation and RegularisationOverfitting and UnderfittingReturn Series MeasuresSimple, Compound and Log Return
8Backtesting and Research Integrity
BacktestingBacktest vs Live PerformanceHow to Document a…How to Prevent Backtest…Out-of-Sample TestingWalk-Forward AnalysisMultiple TestingP-HackingData Snooping
9Data Quality and Structure
Data QualityThe DatasetSelection and Survivorship BiasVersioned DatasetsData Structures in FinanceData CleaningMissing Data and Null ValuesStructured Data vs Unstructured DataMissing Data vs ZeroData Validation vs Data CleaningOutliersDuplicate Records
10Programming for Finance
Data PipelinesAPIs for Financial DataAPI vs CSV FileDatabases in FinancePython for FinanceJoinsSQL for FinanceThe Analysis Workflow
11Quantitative Research
Research DesignThe Data Generating ProcessReproducibilityPeer Review in Analytical WorkThe Research HypothesisRobustness and Sensitivity

Overfitting and Underfitting: Two Ways to Get It Wrong, and Why You Cannot Minimise Both

Underfitting is a rule too crude to catch the pattern; overfitting is a rule that has memorised the record instead of the pattern. Fitted to six training months of the Nakshatra unit read against the Vasant unit, a flat line misses by 10.9570 and a curve of degree four by 1.7321. On the two test months those same two rules give 9.6817 and 7.3824.

Read those four numbers in the order they arrived and something uncomfortable happens. Going from the flat line to the curve, the first column improved enormously, from 10.9570 down to 1.7321. The second column got worse, from 9.6817 up to 7.3824 against a straight line that managed 5.8266. One change, two columns, opposite verdicts. Which column can be believed is the whole question, and the answer is never the column that improved.

Think of a caterer working out how much rice to cook for a wedding. One caterer cooks the same quantity every time, whatever the guest list says, and is wrong at a quiet weekday lunch for twelve and wrong at a five hundred plate reception in the same careless way. Another has written down exactly what happened at the last six weddings, including the one where it rained and half the guests stayed home, and cooks to match that record detail by detail. The first has a rule too crude to be any use. The second has a rule that fits six evenings perfectly and the seventh not at all. Underfitting and overfitting are those two failures, and the arithmetic below is the same story with the guesswork taken out of it.

What arrives here already settled, and what does the diagnosis add?

Four things are taken as read and none is explained a second time. How the ten paired months of the record, the Nakshatra unit set against the Vasant unit, were cut into six training months, two validation months and two test months, in time order, was settled earlier in this reading order. So was the meaning of a miss on months a rule learned from, and a miss on months held outKept back from the fitting step on purpose, so that a rule never sees those readings while its numbers are being chosen. What the rule then says about them is the only reading that was not arranged in advance. from it. So was the counting of parametersEach number that gets pinned down by the fitting step and then lives inside the finished rule. One for a flat line, two for a straight line, and that count climbing is precisely what people mean when they say a rule has been handed more room to move. Where such numbers come from, and what else a rule carries besides them, is dealt with elsewhere., set out in its own right elsewhere. And so was the argument that 146 of the squared miss on the whole record is simply unreachable, whatever is built on that input alone.

The diagnosis has three parts: two named failures, the exact signature each one leaves in the two columns, and the demonstration that the column most people watch cannot tell them apart. A reader who can fit anything at all can still climb a ladder of rising flexibility, watch a number fall at every rung, and report the worst rule on the ladder as the best one found.

Everything here is done on one fixed cut of one record. The six training months are always months 1 to 6 and the two test months are always months 9 and 10. The pair was chosen for being ordinary rather than convenient: of the 45 ways to hold two of the ten months back, months 9 and 10 land exactly on the median. Only one thing moves from here on: how much freedom the rule is given.

What is underfitting, and what does it look like on these six months?

Start with the crudest rule there is. Ignore the Nakshatra reading completely, and answer every month with one number. Fitted on the six training months that number is 4.1667, the average of their outcomes, and it is the answer for a month that read 11.00 per cent and equally the answer for a month that read minus 9.00 per cent. Month 2 actually returned 18.50, so the rule is out by 14.3333. Month 6 returned minus 13.00, so it is out by 17.1667. Square all six misses, average them, take the root, and the training miss is 10.9570.

Now ask the same rule about the two months it has never seen. The rule answers 4.1667 again, and that single number is all it can say. Month 9 returned minus 7.50 and month 10 returned minus 3.00, so it is out by 11.6667 and 7.1667, and the test miss is 9.6817. The two figures 10.9570 and 9.6817 are the signature of underfitting: both large, and no meaningful gap between them. The rule is not confused by unfamiliar months. The flat line is simply too crude to say anything useful about any month, familiar or not.

Because the absence of a gap changes what should be done about the failure, the point is worth slowing down on. A rule that is bad on the months it studied is not suffering from a shortage of months. Given forty months instead of six, this flat line will still answer every one of them with a single number, and it will still be wrong by roughly the same amount. A longer record cures none of it. The only thing that helps is letting the rule respond to the input at all, and a rule that already responds to the input has left this failure behind. The caterer who cooks the same quantity every time does not need a longer diary. The caterer needs to start looking at the guest list.

A FLAT LINE, AND IT MISSES THE UNSEEN MONTHS ABOUT AS BADLYminus 9minus 41611minus 20minus 1001020the Nakshatra reading for the month, in per centthe Vasant outcome, in per centone answer, every month: 4.1667month 6 is out by 17.1667month 9 is out by 11.6667month 2 is out by 14.3333filled: six training monthsringed: two test months10.9570 against 9.6817
A flat line misses the six training months by 10.9570 and the two test months by 9.6817, which is roughly as badly on months it has seen as on months it has not, and that absence of a gap is the signature of a rule too crude for the job.
Try it out

A rule is scored on the months it learned from and on months it never saw. What pattern in those two figures says the rule is too crude?

Breaking Into Quants Bootcamp — Fin Maverick

What is overfitting, and why do the two columns point opposite ways?

Go to the other extreme. A curve of degree four learns five numbers from six months, very nearly one number per month, and with that much freedom it can bend wherever it likes. Fitted on the training six it interpolatesRuns precisely through a given reading rather than near it, so the miss on that reading is nothing at all. A rule with roughly as many numbers to set as there are readings to satisfy can usually arrange this, and arranging it is not the same as being right about anything else. four of them: month 2 at 18.50, month 3 at 2.50, month 4 at 17.00 and month 6 at minus 13.00, each hit dead on. The training miss collapses to 1.7321 and beats the straight line by 64.49 per cent.

Then the two test months arrive. Month 9 read minus 4.00 on the Nakshatra unit. Month 3 read minus 4.00 as well and returned 2.50, so the curve was built to answer 2.50 at that reading. Month 9 actually returned minus 7.50. The curve is out by 10.00 percentage points on a reading it has already met. Month 10 read 1.00 and the curve answers nothing, against an actual minus 3.00, so it is out by 3.00 more. The test miss is 7.3824 and loses to the straight line by 26.70 per cent.

The two columns disagree about the same rule, and that disagreement, not either figure on its own, is the reliable sign of overfitting. A curve that improves by 64.49 per cent on one column while giving up 26.70 per cent on the other has not found more of the pattern. The curve has learned the particular months in front of it, wobble and all, and the wobble does not repeat. The caterer who cooks to the record of the rainy evening will be wrong on every dry one.

A CURVE OF DEGREE FOUR, THREADED THROUGH SIX AND WIDE OF TWOminus 9minus 41611minus 30minus 1501530the Nakshatra reading for the month, in per centthe Vasant outcome, in per centthe curve says 2.50 heremonth 9 actually read minus 7.50, so the miss is 10.00nothing on the record sits up herepale: the straight linedark: the curve of degree four1.7321 on six, 7.3824 on two
A curve of degree four threads through five of the six training months and swings so wide of the two test months that its miss of 7.3824 loses to the straight line by 26.70 per cent, which is the disagreement between the two columns drawn.
Try it out

A curve of degree four beats the straight line by 64.49 per cent on the training months and loses to it by 26.70 per cent on the test months. Which of those two figures describes the rule?

What does the whole ladder from degree nought to degree four show?

Two cases could be two accidents, so the whole ladder is climbed. At each rung the rule is fitted on the six training months alone, then asked about the two validation months and the two test months without being allowed to adjust. The shape of the held-out column is the finding.

Try it out

As the degree climbs from nought to four, what does the miss on the six training months do at each step?

Every rung of the ladder, fitted on the six training months only. Misses are root mean squared, in percentage points.
DegreeNumbers learnedTraining sixValidation pairTest pair
0, one number for every month110.95704.00879.6817
1, a straight line24.87745.21695.8266
2, one bend34.85595.53146.1654
3, two bends44.84905.73196.0327
4, three bends51.73218.51477.3824
56cannot be fittednothing to reportnothing to report

Read the third column top to bottom. 10.9570, then 4.8774, then 4.8559, then 4.8490, then 1.7321. The training miss falls at every rung without exception, and because it falls at every rung it distinguishes nothing: the same downward march covers the best rule on the ladder and the worst one. Some of those falls are enormous and some are minute. From degree one to degree two the training miss improves by 0.0215, and from two to three by 0.0069, a change in the third decimal place. Both are still falls, and a reader watching only that column has no way to know they were rounding crumbs.

Now read the last column. 9.6817, then 5.8266, then 6.1654, then 6.0327, then 7.3824. The test miss drops sharply once, at degree one, and never improves on that figure again. The turn is the information. The validation pair ranks the rungs differently again, preferring the flat line at 4.0087 to everything else. Two months are worth about that much as a jury, and the ranking is argued out under cross validation.

THE TRAINING COLUMN FALLS ALL THE WAY. THE TEST COLUMN TURNS03691201234the degree of the curve fitted to the six training monthsroot mean squared miss10.95709.68171.73217.3824the turn, at 5.82664.8774deg 14.8559deg 24.8490deg 3degrees 1, 2 and 3on a stretched scalethe fall is realand it is 0.0215then 0.0069solid: the six it learned fromdashed: the two it has not seen
Across degrees nought to four the training miss falls at every step from 10.9570 to 1.7321 while the test miss turns at degree one on 5.8266 and rises after it, so only the second column carries any signal at all.

Why is a falling training miss not progress?

Because it cannot do anything else. Every extra number the rule is allowed to set is one more way for it to bend toward the months it can see, and the fitting routine will use that freedom only if using it helps. If the new freedom is worthless the routine sets the new number to nothing and the training miss stays exactly where it was. If the new freedom helps even slightly, the miss falls. There is no third possibility. A training miss can never rise when a knob is added, whatever the knob is, so a fall in it is not evidence about the knob at all.

The ratchet is why the argument from improvement sounds so convincing and means so little. Somebody adds a term, the training miss drops from 4.8774 to 4.8559, and reports an improvement. The improvement is real, in the sense that the arithmetic is correct. The improvement is also completely uninformative. A term chosen at random, a term with no relationship to anything, a term that is pure decoration, would have produced a fall too, or at worst a fall of nothing.

The everyday version is a student who marks their own homework with the answer sheet open. The score goes up every time and the score means nothing. The only thing being measured is how thoroughly the answers were copied. The examination is the held-out column, and it is the only reading anybody should quote.

ADD A KNOB AND THE TRAINING MISS CAN ONLY GO ONE WAY10.9570degree 01 learned4.8774degree 12 learned4.8559degree 23 learned4.8490degree 34 learned1.7321degree 45 learnedthe rail below is the same story: teeth that let the bar drop and never let it climbthe pawl drops in and blocks the way back
The training miss falls from 10.9570 to 1.7321 as knobs are added, and like a ratchet it can move in one direction only, which is why a fall in it carries no information about the knob that was added.
Try it out

Somebody says their training error improved after they added a term, so the term earned its place. What is wrong with that argument?

What stops the training miss at 18, however flexible the curve gets?

Flexibility runs out, and it does not run out because the arithmetic gets tired. The limit comes from the record, and the record refuses to cooperate. Among the six training months there are only five distinct readingsDifferent values of the input, counted once each however many months carry them. Six months holding the readings 1, 6, minus 4, 11, 1 and minus 9 carry five distinct readings, because two of the months read the same thing. on the Nakshatra unit: 1, 6, minus 4, 11 and minus 9. Months 1 and 5 both read 1.00 per cent. Month 1 returned 3.00 and month 5 returned minus 3.00.

A rule that reads only the Nakshatra unit cannot tell those two months apart, so it must give them the same answer. The best single answer for them is nothing at all, halfway between, and it leaves each one out by 3.00, so 3 squared twice over is 18. So the squared miss on the six training months stops at 18, and no amount of extra flexibility can go under it. Even total freedom runs into the record rather than into the arithmetic. Averaged over six months and rooted, 18 becomes 1.7321, and that is exactly the figure degree four already reports. Degree four has not merely fitted well. Degree four has hit the wall.

The same fact ends the ladder. A curve of degree five needs six numbers, and six numbers cannot be settled from five distinct readings; the equations that would set them are singularA set of equations with no single answer, because two of the demands made on it are really the same demand written twice. Nothing has gone wrong with the calculation. There is simply not enough separate information to pin every number down.. Singularity is not a breakdown so much as the record saying there is nothing left to attach a sixth number to. Because it names the limit precisely, singularity is a far more informative kind of failure than a slightly worse score.

TWO MONTHS, ONE READING, TWO OUTCOMES: THIS IS WHERE IT STOPSmonth 1 returned 3.00, month 5 minus 3.00one reading cannot tell those two apartso the best answer for both is nothingmonth 2, hit exactlymonth 3, hit exactlymonth 6, hit exactlymonth 4, hit exactly9 from month 1 and 9 from month 5nothing at all from the other four18, and no curve can go under itminus 1501025the Nakshatra reading for the month, in per cent
Two of the six training months arrive at the same reading of 1.00 per cent while returning 3.00 and minus 3.00, so the squared miss stops at 18 however flexible the curve becomes and a curve of degree five cannot be fitted at all.
Try it out

Why can a curve of degree five not be fitted to the six training months at all?

Play with it

Turn the flexibility up one rung at a time and watch the two columns part company.

One control moves: the degree of the curve fitted to the six training months. The record never changes, the cut never changes, and the two test months are never used to fit anything. The curve redraws, the two bars rescale, and every rung visited leaves a pale ghost of its curve behind, so the ladder builds up on the panel as the climb proceeds. At the opening setting the degree is one, the rule is a straight line reading 2.6467 plus 1.5200 times the reading, and it misses the six training months by 4.8774 and the two test months by 5.8266, the best held-out figure anywhere on the ladder.

Jump to a rung:
Numbers learned
2
Miss on the six it learned from
4.8774
Miss on the two it has not seen
5.8266
Against the best held-out figure
the best there is

Educational illustration, built entirely on invented figures. The cut is held fixed throughout: months 1 to 6 fit the rule, months 9 and 10 are scored and never fitted, and the control moves the degree and nothing else. Month 5 and month 10 carry the very same pair of numbers, so on the panel one of those two markers lands directly on top of the other. The control stops at four because six months carrying five distinct readings cannot settle the six numbers a curve of degree five would need.

What are the two things being traded against each other in the bias-variance tradeoff?

Put plainly, and in the words used from here on. The first quantity is how far the rule's shape is from what is actually there. A flat line has a shape that cannot follow anything, so this quantity is enormous for it. A straight line follows a great deal more. A curve follows more still. The distance between the rule's shape and what is there falls as the rule gets richer, and it falls whether or not that is convenient.

The second quantity is how much the fitted numbers move from one draw of the record to another. A straight line fitted on four months has a slope that depends heavily on which four; fitted on nine, it depends much less. The movement in the fitted numbers rises as more of them are fitted out of the same fixed record. Each number is being pinned down by a smaller share of the evidence.

Both sides have already been measured on this record rather than asserted. On the falling side: the straight line leaves a squared miss of 218 on all ten months, of which 146 sits outside what anything built on that one input could ever recover, so exactly 72 is what the straight shape costs. Give the rule a better shape and that 72 is what is on offer, and no more. On the rising side: fit a single slope on every possible four months of the record and the slopes range over a spread of 0.6718; do the same on nine months and the spread is 0.0811. Fewer numbers pinned by more record move less.

One of those two falls as the other rises. No setting anywhere on the ladder makes both of them small, and the choice is therefore a judgement rather than a calculation. The sum of the two has a bottom somewhere in the middle, and finding roughly where that bottom sits is the entire job. The choice has the same shape as deciding how detailed a household budget should be. One line for everything tells nothing; a separate line for every packet of biscuits tells something different every month and never the same thing twice.

ONE FALLS AS THE OTHER RISES, SO THE SUM HAS A BOTTOMthe bottom of the sumis not at either enda crude rulea very flexible rulehow flexible the rule is allowed to behow far the shape is from what is therehow much the fitted numbers movethe two added togetherTHE SHAPE OF THE ARGUMENT, NOT A MEASURED CURVE. THE ANCHORS BELOW ARE MEASUREDfalling side: the straight shape costs 72of the 218, and 146 is out of reachrising side: a fitted slope spreads0.6718 on four months, 0.0811 on nine
How far the rule's shape is from what is there falls as the rule gets richer while how much the fitted numbers move rises, so their sum has a bottom in the middle and no setting makes both of them small at once.
Try it out

Name the two quantities being traded against each other as a rule is given more freedom.

Is a knob that does nothing the same as a knob that hurts?

No, and treating them as the same thing leads to a superstition about complexity that the record here can settle. Take all ten months this time rather than the training six, and fit a cubicA curve carrying a term in the reading multiplied by itself three times, on top of the squared term and the plain one. It is simply the next rung of flexibility above a single bend, and it allows a second bend in the shape. to them. The fitting routine sets the cubic term to exactly nothing.

The consequence is worth stating carefully. A curve of degree two on all ten months leaves a squared miss of 211.33 and an R squared of 0.7633. A curve of degree three leaves a squared miss of 211.33 and an R squared of 0.7633. The same figures, not similar figures. The extra term was set to nothing, and a term of nothing changes nothing. Extra flexibility is not automatically damaging; here it was simply left unused, and it cost neither fit nor anything else.

Which makes the shape of the harm on this record worth noticing. The harm does not accumulate quietly, a little worse at each rung. It arrives. Degrees two and three are almost exactly where degree one is on the held-out column, within a few tenths. Degree four is a different animal, and that is where the damage lands. So the honest summary is not that every added term costs something. The honest summary is that added terms cost nothing until the rule has enough freedom to start chasing the particular months in front of it, and then they cost a great deal at once.

A KNOB THAT DOES NOTHING: THE CUBIC TERM COMES OUT AS EXACTLY NOTHINGDEGREE TWOthree numbers learnedsquared miss on the ten211.33R squared0.7633the reading times its coefficient1.4556the reading squared0.0222the reading cubednot presentDEGREE THREEfour numbers learnedsquared miss on the ten211.33R squared0.7633the reading times its coefficient1.4556the reading squared0.0222the reading cubed0.0000samesameTHE HARM ON THIS RECORD IS NOT GRADUAL. IT ARRIVES AT DEGREE FOUR AND NOT BEFORE
Degrees two and three on all ten months leave an identical squared miss of 211.33 and an identical R squared of 0.7633 because the cubic term comes out as exactly nothing, so an unused knob costs nothing at all.
Try it out

On the full record the cubic term comes out as exactly nothing. Was adding it harmful?

AI For Finance Bootcamp — Fin Maverick Regression for Finance — free micro-course from Fin Maverick

How is the stopping point decided?

Four habits, and they are what somebody working with a record like this actually does rather than what a textbook says.

Watch the held-out column and never the training column. Write both down by all means. The pair of them together is the diagnosis, but let only one of them decide anything. The training column on this ladder answers degree four, and degree four is the worst rule on offer.

The training figure never stops improving, so stop where the held-out figure stops improving and not where the training figure does. On this ladder the held-out figure improves once, from 9.6817 to 5.8266 at degree one, and then never again. Degree one is the stopping point, and it is chosen on evidence rather than on taste.

Prefer the simplest rule whose held-out figure is not clearly worse. Degree three reports 6.0327 against degree one's 5.8266, close enough that on a longer record the ranking might well swap. Degree one wins the tie anyway, having two numbers to be uncertain about rather than four, and every number left unfitted is a number that cannot move.

Say out loud what the record could not support. Six months carrying five distinct readings were never going to settle six numbers, and it is more useful to report that than to report a score. Fixing the ladder in advance and agreeing which column decides also stops a single lucky cut from being mistaken for a result, a job belonging to cross validationScoring a rule on several different cuts of the same record and averaging what comes back, instead of trusting one cut. It is treated in full elsewhere., covered separately.

WHERE TO STOP, AS A QUESTION ASKED TWICEHas the held-out figurestopped improving?noTake one more stepand ask againyesIs a simpler rule notclearly worse on it?noKeep the richer ruleand stop thereyesTake the simpler ruleand stop thereON THIS RECORDboth roads end at degree one,whose test miss is 5.8266THE TRAINING COLUMN IS NOT ASKED. IT WOULD HAVE ANSWERED DEGREE FOUR EVERY TIME
Stop where the held-out figure stops improving rather than where the training figure does, and prefer the simplest rule that is not clearly worse, which on this record ends both roads at degree one and its test miss of 5.8266.
Try it out

Where should the climb stop on this ladder, and how can that be known?

The failure: the best model found was the worst one on the ladder

Somebody sets out to find the best rule for this record. A flat line comes first and notes 10.9570, then a straight line notes 4.8774. A curve of degree two gives 4.8559, a curve of degree three gives 4.8490, and a curve of degree four gives 1.7321. Every single step was an improvement. Degree four is reported as the best rule found, with a clear record of five fits showing steady progress, and nobody in the room can point at a step that went the wrong way.

Every step looked like an improvement because the training miss fell at every step, and it fell at every step because it cannot do anything else once a knob is added. On the two test months that reported rule gives 7.3824, against 5.8266 for the straight line abandoned three steps earlier. The best rule found is 26.70 per cent worse than one that was already on the desk.

The habit that prevents it is small and has to be adopted before the ladder is climbed, not after. The held-out column sits beside the training column from the first rung, and the agreement that the held-out column decides is made in advance. Agreeing afterwards does not work. By then both columns have been seen, and the one that flatters the last fit is very hard to ignore.

The edge of the subject. How a held-out figure is made trustworthy across many different cuts of one record is covered under cross validation, the proper answer to the fact that two months make a poor jury. Where model error comes from, and which sources of it shrink with more record, is covered separately. So is holding flexibility down with a penalty rather than by choosing a rung. Whether a well fitted rule would be worth pointing at any market is a different question, handled elsewhere.

Five fits of steady progress and no stopping point named. See what decides it.

Where did every figure above come from?

Every figure above was produced by arithmetic on made-up readings, so no register anywhere holds a single one of them. The table below sets out where each figure came from and how it was arrived at.

Figure or claimHow it was producedHow the result can be tested independently
The ten paired monthly readingsWritten to be worked on. Nothing was observed, sampled, collected or quotedAdd the ten Nakshatra readings and divide by ten. The mean lands on 1.00 per cent, exactly where it was built to land
Every miss on the degree ladderSolved here, degree by degree, from those ten readings and nothing elseLay a flat line through months 1 to 6 at 4.1667 and the squared misses total 720.3333, which is 10.9570 once averaged and rooted
The stopping point of 18 on the training sixArgued from two months sharing one reading, and reasoned rather than measuredMonths 1 and 5 both sit at 1.00 per cent, one returning 3.00 and the other minus 3.00. Split the difference and each is out by 3.00, squaring to 9 apiece
The cubic term of exactly nothingFitted on all ten months and read straight off the resultCompare the squared miss at degree two and at degree three. Both stop at 211.33, and that only happens if the extra term is doing nothing

The Nakshatra unit and the Vasant unit are invented.
Educational material. Not advice on any investment, tax, budget or market position.

← PreviousNext →
Fin Maverick Micro CoursesExplore Micro Courses
Fin Maverick BootcampsExplore Bootcamps
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsCareersShowdown
RESOURCES
All CoursesMicro CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.