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
Quant Analyst · CoreTrack
1Quantitative Methods, Financial Data & Programming
iProbability
Probability in FinanceRandom VariableProbability DistributionsThe Normal DistributionNormal Distribution ProbabilityThe Lognormal DistributionRandomness vs Uncertainty
iiStatistics 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…
iiiCorrelation and Regression
RegressionCorrelation and CausationOrdinary Least SquaresInteraction TermsRegression CoefficientsRegression vs ClassificationHow to Build a…Spurious CorrelationRegression, Correlation and FitResidualsMulticollinearityAutocorrelation and Partial Autocorrelation
ivTime 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
vSimulation and Numerical Methods
SimulationMonte Carlo SimulationHow to Run a…Numerical MethodsIterationResampling and the BootstrapPseudorandom Numbers and the SeedConvergence and ToleranceNumerical Stability
viOptimisation
OptimisationLocal and Global OptimaConstraintsConvex OptimisationThe SolverLinear ProgrammingThe Objective FunctionConstraint ViolationThe Feasible SetLagrange MultipliersQuadratic Programming
viiModelling 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
viiiBacktesting and Research Integrity
BacktestingBacktest vs Live PerformanceHow to Document a…How to Prevent Backtest…Out-of-Sample TestingWalk-Forward AnalysisMultiple TestingP-HackingData Snooping
ixData 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
xProgramming for Finance
Data PipelinesAPIs for Financial DataAPI vs CSV FileDatabases in FinancePython for FinanceJoinsSQL for FinanceThe Analysis Workflow
xiQuantitative Research
Research DesignThe Data Generating ProcessReproducibilityPeer Review in Analytical WorkThe Research HypothesisRobustness and Sensitivity
2Stochastic Calculus & Derivative Pricing Theory
iProbability Foundations
The Probability SpaceRandom VectorsSigma-AlgebraExpectationSample Space and EventsDensity and Distribution FunctionsRisk-Neutral ProbabilityState Price Density vs…
iiStochastic Processes and Jumps
Properties of a Stochastic ProcessMartingaleBrownian Motion and Its PropertiesBrownian Motion vs Geometric…Stopping TimeThe Markov PropertyState VariablesTransition ProbabilityQuadratic VariationQuadratic Variation vs Ordinary…Submartingale and SupermartingaleMartingale RepresentationMarkov Process vs MartingaleOptional StoppingFiltrationJump ProcessesThe Poisson ProcessLevy ProcessesJump Diffusion
iiiIto Calculus
The Ito IntegralThe Ito Integral vs the Riemann IntegralInfinitesimals in Stochastic CalculusQuadratic CovariationIto's LemmaHow to Apply Ito's…The Infinitesimal GeneratorIto Calculus vs Ordinary Calculus
ivStochastic Differential Equations
Stochastic Differential EquationsStochastic Differential Equation vs…Drift and DiffusionStrong and Weak Solutions ComparedDiscretisationGeometric Brownian Motion
vPricing Theory and No-Arbitrage
No-ArbitrageGirsanov, Radon-Nikodym and Change…Physical and Risk-Neutral Measures…The Fundamental Theorems of…The Law of One PriceThe Pricing KernelDiscount Factors and Zero-Coupon PricesReplication vs HedgingComplete Market vs Incomplete MarketClearing Margin Architecture
viOption Pricing Theory
European and American OptionsMonte Carlo European OptionThe Black-Scholes PDEBlack Scholes and the GreeksThe Payoff FunctionThe Binomial ModelBinomial Option PricingDelta Hedging in TheoryBoundary, Initial and Terminal ConditionsThe Exercise BoundaryHow to Check Put-Call…
viiVolatility Models
Constant, Local and Stochastic…Vasicek Model vs CIR ModelThe Heston ModelThe SABR ModelThe Volatility ProcessImplied VolatilityVolatility Smile vs Skew vs Surface
viiiInterest Rate Models
Interest-Rate DerivativesMean ReversionThe Zero-Coupon BondThe Ornstein-Uhlenbeck ProcessThe Discount CurveZero RatesShort-Rate Model vs Market Model
ixNumerical Pricing
Closed Form and Numerical…Monte Carlo PricingEuler and Milstein Schemes ComparedTree MethodsFinite Difference MethodsNumerical Error and StabilityVariance Reduction
xCalibration and Model Risk
Model OverrideMarket Price and Model PriceCalibrationHow to Document a Pricing ModelThe Educational Illustration LabelMarket ConventionsModel Uncertainty and LimitationsBacktesting a Pricing ModelIdentifiabilityCalibrated ParametersThe Calibration Loss Function

Interaction Terms: When Two Variables Depend on Each Other

An interaction term is one input multiplied by another, added to a fit so that the first input's slope is allowed to change with the level of the second. On ten invented months an on or off marker carries nothing on its own and, once it is allowed to change the slope, splits the single figure of 1.50 into 1.72 when the marker is off and 0.40 when it is on.

Picture a stall on a pavement outside one office building. Every extra hour it stays open buys some extra takings, and somebody works out the average: one more hour is worth about four hundred rupees. The four hundred rupees is a real number, honestly computed. The same four hundred rupees describes no day of the week. On a Tuesday, when the building is full, the extra hour is worth a great deal more than four hundred rupees. On a Sunday, when the building is empty, it is worth almost nothing. The hour has not changed. The worth of the hour has changed, and the day of the week changed it.

A slope that changes with a second condition is the subject, and the arithmetic version of it is called an interaction term. Two invented traded unitsAn invented label for a thing that carries a price somebody quotes. Neither the kind of thing nor the obligation behind it affects any of the arithmetic., the Nakshatra unit and the Vasant unit, carry the arithmetic below. Each posts one monthly changeThe distance a price travelled over a calendar month, expressed against where that month started, so it comes out as a percentage. One figure covers a whole month. per month, and ten months of both are already on the table from notes that come earlier.

One line fitted through the ten paired observationsTwo readings that belong to the same occasion, so they can be set beside each other. The pairing carries the information, so breaking it leaves the reading meaningless. gave a slope of 1.5000, meaning that a movement of one point in the Nakshatra unit went with 1.50 per cent in the Vasant unit. The 1.5000 turns out to be an average of two numbers nowhere near each other, and the column that separates them was sitting in the record the whole time looking useless.

Deciding which terms to keep when several are on offer, by any rule at all, is covered separately.

What is an interaction term, in plain words?

An interaction term is nothing exotic and it involves no new arithmetic. Two columns of numbers are already in hand. A third column is made by multiplying them together, row by row, and all three go to exactly the same fitting method as before. The method does not change, the assumptions behind it do not change, and the only thing that is different is the number of columns it was given.

The third column buys one specific freedom. Without it, the fit is forced to report a single slope for the first input: one number, applying to every row in the record, whatever else was going on. With it, the fit is allowed to report a slope that shifts depending on where the second input stands. The pavement stall gets to say four hundred rupees on a Sunday and eleven hundred on a Tuesday, instead of being made to say seven hundred and fifty every day of the week.

Notice what the product column looks like when the second input is a plain yes or no. A yes or no enters a fit as a one or a zero, and multiplying by zero gives zero. So in every row where the answer is no, the product column reads zero and contributes nothing whatsoever. In every row where the answer is yes, the product column is one times the input, an exact copy of the input. The product column is therefore the input, present in half the record and absent from the other half. The shape of that column is exactly the shape of a question: does the input behave differently in the two halves?

THE PRODUCT COLUMN IS BUILT FROM THE TWO COLUMNS BESIDE IT, ONE ROW AT A TIME MONTH THE INPUT THE MARKER = THE PRODUCT THE OUTCOME x 11.0000.003.00 26.0000.0018.50 3minus 4.001minus 4.002.50 411.0000.0017.00 51.0011.00minus 3.00 6minus 9.0000.00minus 13.00 76.0016.006.50 81.0011.00minus 1.00 9minus 4.0000.00minus 7.50 101.0011.00minus 3.00 Five rows of the shaded column read zero, because zero times anything is zero. The other five copy the input across unchanged. The ten months are in time order and are never sorted here, because the order carries evidence that later notes will need. All five columns were written down rather than gathered. Nothing that trades anywhere is described by any of them.
An interaction term is the marker column multiplied by the input column, one row at a time, and handed to the fit as a further column. Where the marker is off the product is zero and adds nothing; where it is on the product is a copy of the input.
Try it out

The interaction column is being built by hand. What exactly gets multiplied by what?

What is the Sharad marker, and why does its zero correlation matter?

Alongside the ten months of both traded units, somebody recorded one more thing: a plain yes or no against each month. Call it the Sharad marker, another name invented for these notes. The marker is on in months 3, 5, 7, 8 and 10, and off in the other five. The arithmetic below works the same whatever the marker stands for, so what it records does not matter. Filling in a story would only tempt a reader to believe the numbers for the wrong reason.

One property of this marker has to be established before anything else happens. Without it, everything that follows can be waved away. The Sharad marker's correlation with the Nakshatra unit is exactly zero, so the two inputs carry no information about each other at all. That is not a rounding to zero. The correlation is zero, and the reason fits in one line: the five months where the marker is off have an average input of exactly 1.00 per cent, and so do the five months where it is on, and so does the whole record.

Why is that worth a paragraph of its own? Because it closes off the first objection a careful reader raises. When two inputs both look important, the usual suspicion is that they are the same information wearing two hats, and that whatever one appears to explain, the other could have explained instead. Here that suspicion has nowhere to land. The marker says nothing about where the input stands, so it cannot be quietly standing in for the input. Whatever the marker turns out to do in the arithmetic below, it is not doing it by overlapping with the thing beside it.

BOTH GROUPS SIT AT THE SAME AVERAGE INPUT. THAT IS THE ZERO, DRAWN THE FIVE MONTHS THE MARKER IS OFF average 1.00 THE FIVE MONTHS THE MARKER IS ON three of the five sit on 1.00 average 1.00 minus 9.00 minus 4.00 1.00 6.00 11.00 the Nakshatra monthly change, per cent. Invented illustration, and the two ticks land on the same value by construction.
Knowing whether the marker is on says nothing about where the input stands, because both groups of five months average exactly 1.00 per cent, the same as the record as a whole. That is what an exactly zero correlation between two inputs looks like when it is drawn.
Try it out

The marker's correlation with the Nakshatra unit is established as exactly zero before anything else happens. Why put that first?

What does the marker look like tested on its own?

The natural first move is the cautious one. A new input is in hand, so it goes into the fit as an ordinary third column, no multiplying, and the question is whether the fit got better. Adding it that way is not naive. Testing a new column beside the existing one is standard procedure, and a careful analyst is supposed to do it before adding anything.

Here is what comes back. Plain R squared rises from 0.7559 to 0.7845. The rise looks encouraging and proves nothing at all. Plain R squared cannot fall when a column is added: the fit can always weight the new column at zero and reproduce exactly what it did before. A rise was the only thing available. The adjusted figure docks the score once for each column the fit was handed, so it is the figure that can move both ways. The adjusted figure falls, from 0.7254 down to 0.7230.

There is a third number, and it is the most damning of the three. The Nakshatra unit's slope does not move. Not a little, not in the fourth decimal place: it stays at 1.5000 exactly, before and after. Adding the marker changed nothing about what the input was said to be doing. The marker took the fit a coefficient of minus 3.2000 all to itself, shifted every reading down by the same amount whenever it was on, and left the relationship it was meant to illuminate completely untouched.

On this evidence the marker is a useless input, and dropping it is the correct call, made correctly, on the correct number. The verdict is not a trap but an honest description of what those three figures say. Multiplying the marker into the input does not overturn the three figures; it asks a different question of the same column.

TESTED BESIDE THE INPUT MULTIPLIED INTO THE INPUT 0 0 1 0 1 0 1 1 0 1 the marker exactly as it was recorded, one for on and zero for off its coefficient comes back as minus 3.2000 and the input keeps its slope of 1.5000 without moving at all adjusted R squared 0.7230 DOWN from 0.7254, so a careful reader drops the column here and moves on 0.00 0.00 minus 4 0.00 1.00 0.00 6.00 1.00 0.00 1.00 the very same column, multiplied row by row by the input beside it nothing was collected, measured or looked up to build it and now the input has two slopes instead of one adjusted R squared 0.7988 UP from 0.7254, and higher than any other figure produced in this guide ONE COLUMN, TWO JOBS, AND THE SCOREBOARD MOVES IN OPPOSITE DIRECTIONS
The marker that lowers the adjusted figure to 0.7230 when it is set beside the input raises it to 0.7988 once the same ten values are multiplied into the input instead. Nothing was collected, measured or looked up in between; only the arrangement of a column already in hand was changed.
Try it out

Adding the Sharad marker on its own lowers the adjusted figure from 0.7254 to 0.7230. What is the right conclusion to draw at that exact moment?

What happens when the same marker is allowed to change the slope?

Now multiply the marker into the input and hand the fit a fourth column. Nothing has been collected. No new month was recorded, no second data source was found, nobody went and looked anything up. The ten values in the new column were produced by multiplying two columns that were already sitting on the table.

Plain R squared goes to 0.8658. Again, a rise on its own proves little. The sum of squared residualsAdd up how far the fitted line missed each reading, after squaring each miss so the misses above and below do not cancel. Built in notes that come earlier and used here purely as a total to compare. is the more concrete way to see it: the misses total 218 with the input alone and 119.80 once the product term is in, so 45.05 per cent of the squared missing was removed by a column made out of two columns already in hand. And the adjusted figure, the one that can fall, goes up to 0.7988.

The input that looked useless is the best thing in the fit, and the only thing that changed is that it was allowed to act on the other input rather than beside it. Read the pair of adjusted figures together and the reversal is complete: down to 0.7230 when the marker sits alongside the input, up to 0.7988 when it multiplies it. Same ten ones and zeros, same ten months, same fitting method, opposite verdicts.

PLAIN R SQUARED CLIMBS THROUGHOUT. THE ADJUSTED FIGURE DIPS, THEN JUMPS 0.88 0.86 0.84 0.82 0.80 0.78 0.76 0.74 0.72 0.70 0.7559 0.7845 0.8658 0.7988 0.7254 then 0.7230 the input alone plus the marker on its own plus the product term THE SAME DIP, MAGNIFIED 24 TIMES 0.7264 0.7260 0.7240 0.7220 0.7254 0.7230 a fall of 0.0024, real and small plain R squared adjusted R squared Plain R squared cannot fall when a column is added, so its climb carries no information. Only the dashed series could have gone down. All six figures computed from ten invented months. No real market is described.
Adding the marker alone takes the adjusted figure from 0.7254 down to 0.7230, and adding the product takes it up to 0.7988. The dip is genuine but only 0.0024 wide, which is why it needs a magnified window to be seen at all beside a climb of 0.0734.
Breaking Into Quants Bootcamp — Fin Maverick

What was the single slope of 1.50 hiding?

The scoreboard says the product term earned its place. The scoreboard does not yet say what the product term found. To see that, drop the combined fit for a moment and do something cruder: split the ten months into the five where the marker is off and the five where it is on, and fit a separate line to each group.

In the five marker-off months, the Vasant unit moves 1.7200 per cent for every one point of the Nakshatra unit, starting from 1.8800 when the input is at zero. In the five marker-on months it moves 0.4000 for the same one point, starting from 0.0000. The two slopes are more than four times apart. The single figure of 1.5000 that the opening fit reported is not a compromise between two similar numbers; it is an average of two numbers that are describing quite different behaviour.

The 1.5000 is exactly an average. The arithmetic closes without any rounding, so the average is worth watching close up. Both groups hold five months, so the weights are not the counts of months. The weights are how far the input itself moved inside each group, measured as the total squared distance from that group's average input: 250 in the marker-off months and 50 in the marker-on months. The two weights total 300, the whole movement of the input across all ten months. Multiply through and 250 times 1.7200 is 430, 50 times 0.4000 is 20, the two total 450, and 450 divided by 300 is 1.5000 exactly.

The reason that closes so cleanly is the property established three blocks ago. Because both groups sit at the same average input of 1.00 per cent, there is no leftover between-group term to account for, and the whole relationship divides neatly into the two within-group pieces. The zero correlation is not just a defence against an objection; it is what makes the single slope a clean weighted average of the two.

THE SINGLE SLOPE IS AN AVERAGE, AND IT DESCRIBES NEITHER GROUP block height is the slope and block width is how far the input moved inside that group the five months the marker is on slope 0.4000, and 50 times 0.4000 is 20 the one slope everybody was quoting, 1.5000 the five months the marker is off slope 1.7200 250 times 1.7200 is 430 250 of the input's 300 of movement and 50 430 plus 20 is 450, and 450 over 300 is exactly 1.5000 Invented illustration. The closure is exact by construction, not rounded to look neat.
The single slope of 1.5000 is the weighted average of 1.7200 and 0.4000 at weights of 250 and 50 out of 300, so it sits below one block and above the other and matches the behaviour of neither set of months.
Try it out

The single slope is 1.5000 and the two group slopes are 1.7200 and 0.4000. What are the weights that turn the second pair into the first?

Drawn on a scatterA picture with one dot per occasion, placed by its two readings: how far along for the first, how far up for the second. Nothing about the dot records when it happened. of the ten months, the split shows up as two lines with clearly different steepness, and the distance between them changes across the picture. The changing distance is the interaction made visible, and one feature of it is easy to miss: the two lines cross. To the right of the crossing the marker-off line runs higher; to the left of it the marker-on line does. The signed distance between them, marker-off reading less marker-on reading, climbs steadily from minus 10.00 at an input of minus 9.00 per cent, through zero at about minus 1.42, to 16.40 at an input of 11.00.

THREE LINES OVER ONE SCATTER. THE DISTANCE BETWEEN TWO OF THEM KEEPS CHANGING minus 10 minus 5 0 5 10 minus 15 minus 10 minus 5 0 5 10 15 20 months 5 and 10 land on one point 9.80 apart here 1.88 apart at an input of zero the two marker lines cross at an input of about minus 1.42 per cent, where the marker is worth nothing a month the marker is off a month the marker is on marker off, 1.7200 marker on, 0.4000 the single line, 1.5000 Across is the Nakshatra monthly change and up is the Vasant monthly change, both in per cent. Ten invented months, no real market.
The marker-off line runs at 1.72 and the marker-on line at 0.40, so the signed distance between them grows by 1.32 percentage points for every extra point of input, from 1.88 at an input of zero to 9.80 at an input of 6.00 per cent.

What do the three fits look like side by side?

Here are the three fits on one table, in the order anyone would actually run them, so the whole story sits in one place. Every figure below was worked out from the ten paired months and the ten ones and zeros, and nothing was carried across from anywhere else.

Three fits on the same ten invented months
What went into the fitPlain R squaredAdjustedSquared missesThe input's slope
The input alone0.75590.7254218.001.5000
Plus the marker as a plain column0.78450.7230192.401.5000
Plus the product of the two0.86580.7988119.801.7200 and 0.4000

The last column, read downward, gives the whole account in four numbers. The slope holds at 1.5000 while a column is added beside it, holds again, and then splits into two the moment that column is allowed to multiply it. The adjusted column, read downward, tells the same story in the opposite order: worse, then better than either.

The two group fits behind that split are 1.7200 from a starting point of 1.8800 when the marker is off, and 0.4000 from a starting point of 0.0000 when it is on. Turned into readings that can be said out loud: at a Nakshatra change of 6.00 per cent, the marker-off line puts the Vasant unit at 12.20 per cent, the marker-on line puts it at 2.40 per cent, and the single line that was reported before any of this puts it at 9.50 per cent. The marker is worth 9.80 percentage pointA plain unit of difference between two percentages. Going from 2 per cent to 3 per cent is one percentage point. Saying it rose by fifty per cent says something quite different.s at that level of the input and only 1.88 at an input of zero, and the single line is wrong for both groups at once, too low for one and far too high for the other.

Try it out

As the Nakshatra change rises from minus 9.00 to 11.00 per cent, what happens to the marker-off reading less the marker-on reading?

Play with it

Slide the input and watch what the marker is worth

Three lines are fixed and only the reading point moves. The left panel puts the three readings on one vertical scale, so the separation between them is visible. The right panel plots the distance between the two marker lines against the input, and that distance is a straight line of its own. A setting of 6.00 per cent reproduces the worked example above exactly.

Jump to a reading:
WHAT THE THREE LINES READ HOW FAR APART THE TWO LINES ARE 23 18 13 8 3 0 minus 4 minus 9 minus 14 9.80 up the scale, the Vasant monthly change in per cent marker off marker on the single line 0 minus 9.00 the Nakshatra monthly change, per cent 11.00 this line has a steepness of 1.32, and that steepness is the interaction itself the small ring is where the distance passes through zero, at an input of about minus 1.42 Nothing on this panel was gathered from anywhere, and none of it portrays a thing that trades.
the input
6.00
marker off
12.20
marker on
2.40
the single line
9.50
the distance
9.80
Fixed while the reading point moves: the three lines themselves, at 1.7200 from 1.8800, 0.4000 from 0.0000 and 1.5000 from 0.5000. The Sharad marker carries exactly no information about the Nakshatra unit, so nothing shown here comes from the two inputs overlapping. Only the reading point moves.
Educational illustration. Readings are held as whole hundredths of a percentage point, so nothing on this panel rounds twice.
Try it out

The interaction coefficient comes back as minus 1.3200. In one sentence, what is that number measuring?

What does each of the four coefficients actually claim?

Write the fitted model out in full and there are four numbers to read. The model says the Vasant unit equals 1.8800, plus 1.7200 times the input, less 1.8800 times the marker, less 1.3200 times the input times the marker. Each of those four says something quite specific, and three of them say it only under a condition that is not printed anywhere near the number.

The 1.8800 at the front is the reading when the input is at zero and the marker is off. The 1.7200 is the slope when the marker is off, and only then. The minus 1.3200 is how much that slope changes when the marker turns on: 1.7200 less 1.3200 is 0.4000, the marker-on slope. The coefficient is a statement about steepness and nothing else. All three of those are reasonably safe to read.

The fourth is the dangerous one. The marker coefficient of minus 1.8800 gives the worth of the marker when the input is at exactly zero, and at no other level of the input. Once a product term is in the fit, a plain coefficient stops being an overall effect and becomes a reading taken at one specific value of the other input. Treating that reading as an overall effect is the commonest mistake anyone makes on this subject. At an input of 6.00 per cent the marker is worth 9.80 percentage points, which is more than five times the size and the opposite direction of minus 1.8800.

EVERY COEFFICIENT LICENSES ONE SENTENCE, AND ONLY UNDER ONE CONDITION THE NUMBER WHAT IT LICENSES AND ONLY WHEN 1.8800 the starting point the Vasant unit reads 1.88 per cent the input is zero and the marker is off, both at once 1.7200 on the input the Vasant unit moves 1.72 per cent for one point of the input the marker is off, which is five of the ten months minus 1.8800 on the marker the marker lowers the reading by 1.88 percentage points the input is exactly zero, and at no other level of the input at all minus 1.3200 on the product the slope falls by 1.32, taking 1.7200 down to 0.4000 the marker turns on, and this holds at every level of the input The shaded row is the one that is quoted without its condition most often. All four figures come from ten invented months.
The marker coefficient of minus 1.8800 is what the marker is worth at an input of zero and at no other level of the input, which is why quoting it as the effect of the marker reports a number nobody asked about.
Try it out

The marker coefficient is minus 1.8800. Finish the sentence honestly: the marker is worth minus 1.8800 when what?

AI For Finance Bootcamp — Fin Maverick

When is a product term the wrong move?

A product term can always be added. Two columns can always be multiplied together, the fit will always accept the result, and plain R squared will always rise. Nothing in the arithmetic stops it. The discipline has to come from somewhere else. Three situations are worth naming.

The first is having no reason to expect the effect to differ. If nothing about the situation suggested that the input should behave differently in the two groups, and the product term was built in the course of trying things, then the adjusted figure is the only thing standing between the analyst and a decoration. With enough pairs tried, something will always improve the fit whatever the record actually holds, so an interaction found by trying every available pair is a found pattern rather than a finding. What turns it back into a finding is a reason stated before the fit was run, so the fit is a test of that reason rather than a search for one.

The second is a group too small to carry a line of its own. Splitting ten months five and five, as the worked case here does, is already thin. Splitting them seven and three would leave a slope resting on three paired readings: three occasions rather than three pieces of independent confirmation. A line through three points will be produced by the arithmetic whether or not anything is there to find. The split becomes arithmetic rather than evidence, and the honest response is to state the count beside the number every time it is quoted.

The third is when the two inputs are near copies of one another. Near copies are a different problem with a different name, covered separately, and reaching for a product term will not address it. The two situations are worth telling apart: in the worked case the two inputs share exactly nothing, and that is what left the interaction as the only available account of what happened.

THREE SITUATIONS, AND THE REASON IN EACH ONE RATHER THAN A VERDICT SHOULD THESE TWO BE MULTIPLIED? nothing suggested the effect should differ a search finds something whatever the record holds, so the rise proves little one group is too small to carry a slope the split is then arithmetic rather than evidence, and produces a number anyway the two inputs are near copies of one another the trouble is the copying, which is a different problem covered separately None of the three ends in a rule. Each ends in the reason, because the reason is what transfers to a record never seen here.
Skip the product term when nothing suggested the effect should differ, when one group is too small to carry a slope of its own, and when the two inputs are near copies, and in each case the reason rather than the verdict is what carries over to a different record.
Try it out

Somebody multiplies every available pair of inputs together, fits them all, and reports the two products that improved the fit. What is wrong with that?

Try it out

Suppose the marker had been on in three months and off in seven, rather than five and five. What should be said about the slope fitted on the three?

Regression for Finance — free micro-course from Fin Maverick

How does somebody read a fit that already contains one?

Most of the time the analyst is not the one building the product term. Somebody hands over a fitted model with four numbers in it and asks what it says. The working routine is five checks long.

First, the slope gets said out loud twice, once for each level of the other input, and both sentences are checked for sense. Here that gives two sentences: the Vasant unit moves 1.7200 for a point when the marker is off, and 0.4000 when it is on. If one of the two sentences describes something absurd, the model has said so and the trouble is found in ten seconds. Second, a plain coefficient out of a fit that contains that same input inside a product is never quoted without the level of the other input stated in the same breath. Minus 1.8800 alone is not a claim; minus 1.8800 at an input of zero is.

Third, one of the two slopes rests entirely on the count of observations in the smaller group, so that count has to be asked for. Fourth, whether anyone expected the interaction before it was fitted has to be asked. Expecting it first is the difference between a test and a search. Fifth, the plain figure rises whatever gets added and never distinguishes a good addition from a pointless one, so the adjusted figure is the one to quote. Four of those five checks are questions about where a number came from rather than about the number itself. Reading a fit mostly consists of asking exactly those.

The household version of this is not far away. A person who has been told that an extra hour of overtime is worth six hundred rupees on average, and who arranges their week around that figure, is working from a single slope. If the real position is nine hundred rupees on weekdays and two hundred at the weekend, then the average was never wrong and was never useful either. They needed the condition, and the condition was never printed next to the number.

THE BOXED NUMBER IS INCOMPLETE UNTIL SOMEBODY WRITES IN THE CONDITION the Vasant unit = 1.8800 + 1.7200 times the input less 1.8800 times the marker less 1.3200 times the input times the marker quoted as it stands, this says the marker lowers the reading by 1.88 percentage points, with no mention of the input at all, which is where the trouble starts written in properly: worth minus 1.88 when the input is zero, worth 9.80 percentage points when the input is 6.00 per cent, and something different at every level The two panels report the same fitted model. One of them can be checked by a reader and the other cannot. Invented figures throughout, and nothing here describes a position anyone should take in anything.
A plain coefficient quoted out of a fit that contains a product term is incomplete until the level of the other input is stated alongside it, because the same number means something different at every level.

Where does this go wrong, and what does it cost?

The first failure is the one already walked through above, and its sting is that it is the correct procedure carried out correctly. A reader adds the Sharad marker as a plain input, watches the adjusted figure fall from 0.7254 to 0.7230, concludes the marker adds nothing and drops it. Every step of that is defensible. Dropping the marker discards the most informative column available: the same ten ones and zeros, allowed to act on the input rather than sit beside it, take the adjusted figure to 0.7988 and cut the squared misses from 218 to 119.80. Testing an input only in the place where it does nothing, and then dropping it, is how a record gives up its best evidence to somebody following the rules.

The second failure is the mirror image, and it happens after the product term has been added. A reader keeps the fuller model, looks at the marker coefficient of minus 1.8800, and reports that the marker lowers the Vasant unit by about 1.88 percentage points. The report is true of a month where the Nakshatra change was exactly zero. At an input of 6.00 per cent the marker is worth 9.80 percentage points in the other direction, more than five times the size. The reported figure was never wrong; it was answering a question about a level of the input that the reader never named and possibly never considered.

Both failures cost the same thing: a confident number whose meaning turns entirely on a value nobody wrote down. The fix is one line long and it applies to every fit containing a product term. A plain coefficient is never quoted without the level of the other input it applies at, and where that level cannot be stated, the number is not yet ready to be quoted.

Boundaries. The claims the starting point and the slope each make in a fit with a single input are covered separately, as is what happens when two inputs are near copies of one another. Choosing which terms to keep when several are on offer, by any criterion, is covered separately. Searching a record for interactions is a different exercise, ruled out above because trying every available pair turns up a pattern whatever the record holds.

One last property of the ten months matters for the notes that follow. The ten months are recorded in time orderArranged as they happened, first month first. Sorting them by size would make some pictures tidier and would destroy the only evidence that reading them in sequence can provide. and are never rearranged. Every sum above would come out identically on a shuffled record, so nothing needed the order. Worth noticing in itself: addition does not care what came first, so not one figure above can see whether the misses arrived in a pattern.

And a note on how far any of this reaches. Ten months is a very small sampleThe occasions actually in hand, as against all the occasions there might have been. Everything in this guide is computed on the ten in hand and describes those ten., and splitting it into two groups of five makes each slope rest on five paired readings. The spreadHow widely a set of readings sits about its own average. Built in notes that come earlier and used here only to say how far the input moved inside each group. of the input inside each group is what gave the two slopes whatever standing they have, and the marker-on group had a fifth as much of it. Everything above describes these ten months and makes no claim about an eleventh. A single point of difference between two slopes is a fact about a record, not a forecast about anything.

The marker's worth flips sign at another level. See how a desk reads one.

Can every figure above be checked from the ten months alone?

Yes, all of it. Every figure above came out of two lists of ten numbers and one list of ten ones and zeros, all three printed in full further up. An account that restates somebody's published rule owes the reader the document and the date somebody last opened it; an account that divides 450 by 300 owes the reader the 450 and the 300, and both are on the table above.

Every claim made here and what settles it
The claimWhat settles itAnything to fetch?
The marker carries no information about the inputBoth groups of five months average an input of exactly 1.00 per cent, and so does the record as a wholeNothing
The single slope of 1.5000450 divided by 300, both read off the ten paired monthsNothing
The two group slopes, 1.7200 and 0.4000The same division done twice on five months each, 430 over 250 and 20 over 50Nothing
The adjusted figures 0.7254, 0.7230 and 0.7988Three totals of squared misses, 218, 192.40 and 119.80, each one docked once for every column the fit was handedNothing
The four coefficients of the fuller modelThe same fitting method on four columns instead of one, and it reproduces both group fits exactlyNothing
Multiplying two inputs together as a methodOrdinary practice in fitting, with no identifiable first author to creditNothing

The Nakshatra unit, the Vasant unit and the Sharad marker 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.