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

Regression vs Classification: Size or Label

The fitted line and its two numbers, the fitted value, the miss a line leaves behind and what R squared measures were all set up in the earlier notes on fitting a line, and what a chance claims was settled earlier still. Everything else, including every finance word, is built from the ground up below.

What is regression, on its own terms?

Regression is a rule that answers the question how much. Given an input, what comes back is a number on the same scale as the thing being predicted. If the thing being predicted is measured in per cent, the answer is in per cent. If it is measured in rupees, the answer is in rupees. If it is measured in kilograms of onions sold before noon, the answer is in kilograms of onions.

Think about a household deciding what the electricity bill will be next month. Everybody already knows there will be a bill. The question is how large it will be. Nine hundred rupees. Two thousand two hundred. Asking how large is a size question, and the answer to a size question can be close or far. Being out by fifty rupees and being out by four thousand are two very different evenings in that household. Regression cares about the size of every single miss, and a miss of 0.20 is genuinely better than a miss of 8.00.

The worked record is ten months of two invented traded unitsSomething that can be bought and sold at a price, so that its price can be recorded from one month to the next. Both of the ones here were made up for teaching and neither exists., the Nakshatra unit and the Vasant unit. For each of the ten months there is a monthly changeThe move in a price across one month, written as a percentage of where that price began. A figure of 6.00 per cent means it finished the month six per cent higher than it started. for each of them. The Nakshatra unit is the input and the Vasant unit is the outcome, and the notes on fitting a line already put a straight line through those ten pairs. The fitted line is 0.5000 plus 1.5000 for every point of the Nakshatra unit, its fit is 0.7559, and the ten misses it leaves behind are 1, 9, 8, 0, minus 5, 0, minus 3, minus 3, minus 2 and minus 5, all in per cent.

Read that fit out loud in the only way it can honestly be read: across these ten months, the line removed 75.59 per cent of the squared movement that guessing one single number for every month would have left. The fit is a share of movement, and a share of movement is not a count of anything. The difference between a share and a count matters enormously below.

Breaking Into Quants Bootcamp — Fin Maverick

What is classification, on its own terms?

Classification is a rule that answers a different question: which one. Given an input, what comes back is not a number on any scale but a label chosen from a fixed and usually very short list. Up or down. Sold out or not sold out. Paid on time, paid late, not paid at all.

Go back to a food stall outside one office building. On Monday the person running it asks how much they will take today, and the answer is a number: eleven thousand rupees, maybe twelve. On Tuesday they ask something else entirely. Will they sell out before three in the afternoon? If they will, they should cook more. The second question has exactly two answers and no middle. Selling the last plate at 2.59 and selling it at 3.01 feel almost identical standing at the stall, and yet one is a yes and the other is a no.

The character of a label question is exactly that. Classification cares about which side of a line the answer fell on and about nothing else at all, so being wrong by a hair costs exactly what being wrong by a mile costs. A rule that says the stall will sell out, on a day when the last plate goes at 3.01, is simply wrong, and it is wrong by the same amount as a rule that says it will sell out on a day when half the food goes home uneaten. There is no such thing as a near miss. There is a right call and a wrong call, and the scoreboard counts them.

PREDICTING A SIZE THE QUESTION IT ANSWERS how much? WHAT COMES OUT a number on the outcome's own scale, in its own units WHAT A MISS IS the distance between the answer and the truth IS A NEAR MISS BETTER? yes. 0.20 beats 8.00 PREDICTING A LABEL THE QUESTION IT ANSWERS which one? WHAT COMES OUT one label out of a short fixed list, here up or down WHAT A MISS IS right or wrong, with nothing at all in between IS A NEAR MISS BETTER? no. wrong is wrong
Each rule is described on its own terms before any comparison is drawn: one returns a number on the outcome's own scale and measures how far it landed from the truth, the other returns a label and records only whether the call was right.
Try it out

Define each of the two without leaning on the other. Which pair of statements does that?

What happens if one column of the same record is replaced?

Here is the move this guide turns on, and it is worth slowing down for. Almost every treatment of this subject uses one record for the size question and a completely different record for the label question, and the moment it does that a reader can no longer tell which differences came from the two questions and which came from the two records. So nothing changes here except one column.

Take the same ten months. Same Nakshatra unit, every figure of it, and the same ten paired observationsTwo readings taken on one and the same occasion, which therefore have to be kept together and can never be shuffled apart. Each month here contributes one input reading and one outcome reading. in the same time orderThe order the months actually happened in, first to tenth. Keeping it matters because some checks read the misses along that order, and sorting the rows for a tidier chart destroys them.. Now throw away the Vasant unit's monthly change and keep only its sign: did it rise, yes or no. A change of 18.50 per cent becomes the word up. A change of 2.50 per cent also becomes the word up, and so the largest month and a barely positive month are now the same thing. A change of minus 13.00 per cent becomes down, and so does minus 1.00 per cent.

Five of the ten months are up and five are down. Nothing else changed at all, so every difference from here on is a difference between the two questions rather than a difference between two records. The claim is stronger than it looks. There is only one record, so any gap that appears below cannot be blamed on one record being noisier, shorter, or collected differently.

ONE COLUMN REPLACED. THE OTHER THREE ARE UNTOUCHED. MONTH NAKSHATRA, THE INPUT VASANT, THE SIZE VASANT, THE LABEL 11.003.00up 26.0018.50up 3minus 4.002.50up 411.0017.00up 51.00minus 3.00down 6minus 9.00minus 13.00down 76.006.50up 81.00minus 1.00down 9minus 4.00minus 7.50down 101.00minus 3.00down discarded, sign only kept five up, five down All figures invented. The ten months stay in time order and are never sorted.
The same ten months carry both questions once the Vasant unit's monthly change is replaced by whether it rose, so every later difference is a difference between the questions and not between two records.
Try it out

The same ten months give a fit of 0.7559 on the size and 0.3000 on the label. What changed between the two fits?

Why do the two scoreboards refuse to compare?

Fit the label the same way the size was fitted, using the same input and the same method, and the result is a rule that reads 0.4500 plus 0.0500 for every point of the Nakshatra unit. Its fit is 0.3000. The figure of 0.3000 can be checked in two steps. The ten label gaps from their average are each one half in size, so their squares add to 2.5000. The part the input explains is 0.0500 times 15, or 0.7500. Dividing the second by the first gives 0.3000.

So one number went from 0.7559 to 0.3000 while nothing but the outcome column moved. The drop is already worth sitting with. The more dangerous comparison is with accuracy. The natural way to score a label rule is not a fit at all: accuracy asks how many of the ten months the rule called correctly. The answer is 60.00 per cent, and it is built cell by cell below.

An R squared of 0.7559 and an accuracy of 60.00 per cent are not two views of one quality, and there is no conversion between them. The first is a share of squared movement, computed against the spreadA measure of how far apart a group of figures sits around its own average. A record whose months all look much alike carries a small one, and a record full of violent months carries a large one. of the outcome, and it lives on a scale where zero means no better than a flat guess. The second is a count of months divided by ten, and it lives on a scale where the floor is not zero at all.

The floor is where people trip. Ask what the floor actually is here. Five of the ten months went up, so a rule that ignores the input completely and shouts up every single month is right five times out of ten. Five times out of ten is 50.00 per cent. A model reporting 60.00 per cent accuracy has bought ten percentage points over a rule that does not look at the data, and an accuracy quoted without that baseline beside it is worth nothing. If eight of the ten months had gone up, shouting up every month would have scored 80.00 per cent, and a proud announcement of 75.00 per cent accuracy would have been an announcement of something worse than nothing.

SCORING THE SIZE 0.7559 R squared, on the ten months UNITS a share of squared movement ITS FLOOR 0, meaning no better than one flat guess for every month SCORING THE LABEL 60.00% accuracy, on the same ten months UNITS a count of months out of ten ITS FLOOR 50.00 per cent, from shouting up at every single month no conversion exists
An R squared of 0.7559 and an accuracy of 60.00 per cent answer different questions in different units with different floors, so neither one can be translated into the other.
Try it out

Accuracy on these ten months is 60.00 per cent. What must be quoted beside it, and what is its value here?

AI For Finance Bootcamp — Fin Maverick

How is a confusion table read, cell by cell?

The rule for the label hands back a number between zero and one for each month, and on these ten months those numbers are 0.50, 0.75, 0.25, 1.00, 0.50, 0.00, 0.75, 0.50, 0.25 and 0.50. To turn a number into a call, somebody has to pick a cut. Take the obvious one for now and call a month up whenever its number is one half or more.

The cut at one half gives seven months called up and three called down. Now lay the calls against what actually happened, and there are only four things that can be in a cell. Called up and it rose: four months, numbers 1, 2, 4 and 7. Called up and it fell: three months, numbers 5, 8 and 10. Called down and it rose: one month, month 3, on its own. Called down and it fell: two months, 6 and 9. Four plus three plus one plus two is ten, and that is the first check to run on any such table: the four cells must add up to every month in the record, or something has been counted twice or dropped.

Three figures come off that table and each one uses a different denominator.

The three readings, from the four cells, at a cut of one half
ReadingWhat it asksWorkingValue
AccuracyOf all ten months, how many did the rule call right?4 plus 2, over 1060.00 per cent
PrecisionOf the months the rule called up, how many really rose?4 over 757.14 per cent
RecallOf the months that really rose, how many did the rule catch?4 over 580.00 per cent
BaselineWhat does calling every month up score?5 over 1050.00 per cent

Readers usually go wrong here, so look at what precision and recall are doing. Both of them are counting exactly the same four months, 1, 2, 4 and 7, and they differ only in what they divide those four months by. Precision divides by the seven months the rule stuck its neck out on. Recall divides by the five months that actually rose. So the rule catches four of the five up months and sounds good. The same rule is right on only four of the seven months it called up and sounds much less good. Both statements are true at once, and both describe one and the same set of four months.

PRECISION DIVIDES BY THIS WHOLE ROW: 7 MONTHS IT REALLY ROSE IT REALLY FELL CALLED UP CALLED DOWN 1 2 4 7 4 months called up and it rose 5 8 10 3 months called up and it fell 3 1 month called down and it rose 6 9 2 months called down and it fell RECALL DIVIDES BY THIS WHOLE COLUMN: 5 MONTHS ACCURACY 6 of 10 60.00 per cent PRECISION 4 of 7 57.14 per cent RECALL 4 of 5 80.00 per cent Every month appears in exactly one cell, and the four cells add to ten. The same four months, 1, 2, 4 and 7, sit under both dashed outlines.
Four of the five months that rose are caught and only four of the seven months called up really rose, and both readings count the same four months over two different denominators.
Try it out

Precision is 57.14 per cent and recall is 80.00 per cent, from the same four months. How can both be true?

Who chose the threshold, and is it part of the model?

Go back to the sentence that decided the whole table above: call a month up whenever its number is one half or more. Nothing in the fitting produced that one half. The arithmetic handed back ten numbers between zero and one and then stopped, and a person walked in and drew a line. The line somebody drew is the threshold, and here is what makes it worth a section of its own.

Move it to three quarters, without touching a single thing about the rule. Now only three months clear the bar, months 2, 4 and 7, and all three of them really did rise. The table reads three, zero, two, five. Accuracy is eight months of ten, or 80.00 per cent. Precision is three of three, or 100.00 per cent. Months 1 and 3 rose and were not caught, so recall has fallen to three of five, or 60.00 per cent.

Accuracy on these ten months runs from 60.00 per cent to 80.00 per cent on one completely unchanged model, so a reader handed only the higher figure has been handed somebody's choice rather than a property of the model. Push it further and the point sharpens. At a threshold of zero every month clears the bar, and the rule becomes exactly the baseline that shouts up at everything, with accuracy at 50.00 per cent. At a threshold of 1.00 only month 4 clears it, precision is a perfect 100.00 per cent on a single call, and recall has collapsed to 20.00 per cent. Nothing about the fitted rule changed at any point in that paragraph.

Because the threshold moves all three readings at once, there are established ways of looking at every threshold in one picture rather than picking one and reporting it. The curve that does that, and the single number for the area underneath it, are covered separately in the notes on modelling. The discipline is simple: the threshold is quoted beside every confusion table, or only half a number has been quoted.

SAME TEN NUMBERS. TWO THRESHOLDS. TWO DIFFERENT TABLES. 0.00 0.25 0.50 0.75 1.00 the number the rule hands back for that month 6 3 9 1 5 8 10 2 7 4 threshold one half threshold three quarters filled: the month really rose hollow: it really fell shaded band: called up AT ONE HALF called up and rose4 called up and fell3 called down and rose1 called down and fell2 accuracy 60.00 per cent AT THREE QUARTERS called up and rose3 called up and fell0 called down and rose2 called down and fell5 accuracy 80.00 per cent The fitted rule is identical on both sides. Only the line somebody drew has moved.
Moving the threshold from one half to three quarters takes accuracy from 60.00 to 80.00 per cent while the fitted rule and all ten of its numbers stay exactly where they were.
Try it out

Predict both halves of this first, with the panel underneath still untouched. As the threshold rises, what happens to the number of months called up, and what happens to the share of those calls that are right?

Play with it

Drag the threshold. Watch ten months change cells while the model sits still.

One control, and it moves the threshold from 0.00 to 1.00. The ten numbers the rule hands back never change and stay printed on the scale, visibly not moving. Each month is a numbered block, and as the control is dragged, the blocks walk between the four cells of the table underneath. The three spotlight buttons outline the group each reading divides by. Untouched, the control rests at 0.50, where the table reads 4, 3, 1, 2 and the three readings come out at 60.00, 57.14 and 80.00 per cent: the worked example above, to the decimal.

Take it straight to:
Spotlight what a reading divides by:
Months called up
7
The four cells
4, 3, 1, 2
Accuracy
60.00%
Precision
57.14%
Recall
80.00%
Held still at every setting: the rule 0.4500 plus 0.0500 for each point of the Nakshatra unit, the ten numbers it hands back, and which five months really rose. Only the cut moves.

Educational illustration. Both traded units and all ten of the months were made up for teaching. Moving the cut on a fixed set of ten numbers changes the scoreboard and nothing else. Which threshold is the right one depends on what a wrong call in each direction costs, and that cost is a judgement about a situation rather than an output of arithmetic.

Try it out

Moving the threshold took accuracy from 60.00 to 80.00 per cent. Has the model improved?

Investment Banking Analyst Bootcamp — Fin Maverick

What breaks when a straight line predicts a chance?

There is one more thing to look at before leaving the arithmetic, and it is not a flaw in this particular record. Fitting the up-or-down label with a straight line, exactly as was done above, produces a rule that hands back a number for any input at all. On the ten months in the record, those numbers behave: the smallest is 0.00 and the largest is 1.00, and everything sits in between.

Both of those edges are worth noticing. The largest month, the one where the Nakshatra unit moved 11.00 per cent, gets 0.4500 plus 0.0500 times 11.00, or exactly 1.00. The lowest month, at minus 9.00 per cent, gets exactly 0.00. The line does not merely approach the ends of the scale, it lands on them, and it has nothing left to give. Now hand it a month the record has never seen. At an input of 15.00 per cent, four percentage points beyond the highest month on file, it returns 0.4500 plus 0.7500, or 1.20.

A chance of 1.20 is not a chance, and the arithmetic produced it without the slightest complaint. The silence is the point. Nothing gave a warning, nothing failed, no cell went red. Carrying on is the only thing a straight line knows how to do, so a straight line that reaches one must keep going past one. The overshoot is not a fault in these ten months, and no longer record would cure it. Methods built specifically for outcomes that are yes or no are shaped so this cannot happen, and they are covered separately.

ABOVE 1.00. NOTHING HERE IS A CHANCE. BELOW 0.00. NOTHING HERE IS A CHANCE EITHER. 1.00 0.00 1.20 0.00 minus 12.00 11.00 15.00 the Nakshatra unit's monthly change, per cent two months here three months here reads 1.20 here lands on exactly 1.00 at the top of the record months that rose sit on the 1.00 line, months that fell sit on the 0.00 line
The fitted chance reads exactly 1.00 at the highest month in the record and carries straight on to 1.20 four points beyond it, which is not a chance and was produced without any complaint.
Try it out

The fitted number at the top of the record is exactly 1.00, and four points beyond it the same rule reads 1.20. What has gone wrong?

Reading an Option Payoff — free micro-course from Fin Maverick

Do the two questions even agree about which month went wrong?

The sharpest result of all falls out of the one record already built, and so costs nothing extra. Asked to name the month the model handled worst, the two scoreboards name different months.

Start with the size. The biggest residualWhat is left over in one month after the fitted value is taken away from what actually happened. It was built in the earlier notes on fitting a line and is simply the size of that month's miss. is month 2, where the line said 9.50 per cent and the Vasant unit delivered 18.50, a miss of 9.00 percentage pointsThe plain difference between two percentages. Going from 9.50 per cent to 18.50 per cent is a rise of nine percentage points, which avoids the confusion of calling it a nine per cent rise.. On the size question that is comfortably the worst month in the record. Now ask the label question about the same month. Month 2 has a fitted number of 0.75, it was called up, and it went up. The worst month for the size question is a month the label question gets right.

The mismatch runs the other way too. Month 3 is the only month that rose and was called down, the single most awkward kind of error a direction rule can make, and its regression miss of 8.00 is the second largest rather than the largest. The four months the direction rule gets wrong are 3, 5, 8 and 10, with misses of 8.00, minus 5.00, minus 3.00 and minus 5.00. Month 8 sits in that list with a miss smaller than months 2 and 3 both. Months 4 and 6, the two the line predicted perfectly with a miss of exactly zero, are called correctly as well.

A model can be at its very worst on the question nobody is asking, so choosing a scoreboard is choosing which failures ever get seen. Nobody in this worked case has done anything careless. One dataset, one input, one method, and two entirely reasonable ways of asking what went wrong, and they hand back different answers.

THE SIZE MISS BELOW. THE DIRECTION CALL ABOVE. tick: the direction rule called this month correctly at a threshold of one half cross: it called this month wrongly 0 1 9 8 0 minus 5 0 minus 3 minus 3 minus 2 minus 5 1 2 3 4 5 6 7 8 9 10 month, in time order. Miss in percentage points. Month 2 carries the biggest size miss of the ten, 9.00, and the direction call is right. Month 3 carries a miss of 8.00 and is the only month that rose and was called down.
The largest regression miss of 9.00 percentage points falls in a month the direction rule gets right, while the only month that rose and was called down had a miss of 8.00.
Try it out

The largest regression miss of 9.00 lands in month 2, and the direction rule calls month 2 correctly. What does that show?

Value at Risk and What It Hides teaches you to compute value at risk three ways, interpret the figure, and say precisely what it refuses to describe.

Which of the two does a given question need?

Here is what somebody deciding this in practice actually does, whether they are a lender sorting applications, an analyst writing a note, or a household working out next month. Nobody sensible starts from the arithmetic. The starting point is the use the answer will be put to, and the arithmetic follows.

The first question is the one that settles it most of the time: is a near miss nearly right, or is it simply wrong? Being out by two hundred rupees and being out by twenty thousand are not the same problem, so a lender estimating how much a borrower can repay each month wants a size. There is no partial approval, so a lender deciding whether to approve at all wants a label, and being just barely wrong about somebody is a full mistake. Same lender, same applicant, two different questions, and the second one has no near miss in it anywhere.

Then three checks that catch most of the damage. The balance of the labels has to be checked before an accuracy is believed. On a sampleThe particular set of cases in hand, as opposed to every case that exists. Ten months is a sample; the answer any check gives describes those ten and not all months everywhere. where nine cases out of ten carry the same label, a rule that shouts that label every time already scores 90.00 per cent and has learnt nothing. One model has already reported 60.00 and 80.00 per cent on one record, so the threshold and who chose it have to be checked. And what a wrong call costs in each direction has to be checked. No arithmetic settles that one: calling an up month down and calling a down month up are two different mistakes with two different consequences, and only somebody who understands the situation can weigh them.

Last of all, and it is the habit worth keeping longest: never convert one scoreboard into the other, not even loosely, not even in conversation. A fit of 0.7559 does not become three calls in four. An accuracy of 60.00 per cent does not become a fit of anything.

START HERE, NOT AT THE ARITHMETIC: what will the answer be used for? a near miss is nearly right how much will the bill be a near miss is simply wrong will the stall sell out or not SCORE IT AS A SIZE then ask, in the outcome's units, how large the typical miss is and how large the worst one was SCORE IT AS A LABEL then ask what the threshold is, what a rule ignoring the input would score, and how balanced the labels are Neither branch settles what a wrong call costs. Only somebody who understands the situation can weigh that.
The branch is decided by what the answer will be used for, and each side ends in the questions to ask rather than in the name of a method.
Try it out

A rule is scored on a record where nine cases in ten carry the same label, and it reports 88.00 per cent accuracy. What is the first thing to say?

Two questions were scored and only one score was reported

A team fits the line on the ten months and writes it up honestly: the model accounts for 75.59 per cent of how much the Vasant unit moved. A colleague reads that over somebody's shoulder and hears it as getting it right three times in four. Nobody lied. Nobody miscalculated. The written sentence is exactly true about the size question.

But the thing the colleague cares about is direction, and on the very same ten months, with the very same input and the very same method, the direction is right 60.00 per cent of the time against a baseline of 50.00 per cent that ignores the input completely. The gap between what was reported and what was heard is not an error in the arithmetic. The gap is two different questions sharing one number.

The second half of this failure is quieter and hurts more. Suppose somebody, entirely reasonably, tries a few cuts and reports the best one. The same untouched model reports 60.00 per cent accuracy at a threshold of one half and 80.00 per cent at three quarters, and a reader handed only the second figure has been handed a decision somebody else made. The model, the input and the ten months are identical on both sides, so a reader has no way to know a decision was made at all.

The fix is three sentences long and costs nothing. State the question before the score, so a size score is never read as a call score. Quote the baseline beside every accuracy, so ten percentage points of skill are never mistaken for sixty. Quote the threshold beside every confusion table, so a choice is visible as a choice.

Where this guide stops. How the line is fitted, and what conditions that method rests on, is covered separately. The methods built specifically for outcomes that are yes or no are a different subject covered separately, as are the curve that reads every threshold at once and the number for the area beneath it, both of which sit in the notes on modelling. The worth of a wrong call in either direction is a judgement about a situation rather than an output of the arithmetic, and no set of notes can settle it.

Risk Management Program Bootcamp — Fin Maverick

Where do these figures come from?

Both traded units, the ten months and every score worked out from them were built for the lesson. No regulator, exchange or data provider stands behind them. Adding up ten pairs and counting how often a call went the right way is arithmetic, and arithmetic belongs to no market and carries no as-of date.

A re-check list stands in place of a source list. Each row names one figure the argument leans on and the shortest route to satisfying yourself it is right, using nothing beyond the ten months printed further up.

Everything above, and how to check it from the ten months alone
Figure the argument leans onThe shortest way to check it yourself
The rule for the label, 0.4500 plus 0.0500 for each pointThe ten cross products of the Nakshatra gap and the label gap come to 15. Divided by 300, that is 0.0500. The rule passes through both averages, so 0.5000 less 0.0500 leaves 0.4500.
The fit on the label, 0.3000The ten label gaps are each one half, so their squares add to 2.5000. The part the input explains is 0.0500 times 15, which is 0.7500. Divide the second by the first.
The four counts, 4, 3, 1, 2Read ten rows. Mark each month called up or called down at one half, mark whether it really rose, and tally the four combinations. The four counts add to ten every time.
Accuracy 60.00, precision 57.14 and recall 80.00 per centSix right out of ten months, four right out of the seven months called up, and four caught out of the five months that really rose.
The reading of 1.20Put 15.00 into 0.4500 plus 0.0500 times the input. The arithmetic answers without complaining.
The line for the size, and its fit of 0.7559Both were built in the earlier notes on fitting a line, from the same ten months, and neither was altered here.

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.