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

How to Prepare Time-Series Data for Analysis

Seven checks come before the first computation. The dates are read as dates and sorted on. The gap between rows is confirmed and a missing one looked for. The level or the change is settled as the reading in use. A repeating calendar pattern is looked for. The spread is checked across the whole record. Whether the series comes back to a level is checked. Last, what was known when is marked.

Seven checks are the whole of it, and none of the seven is difficult. Each one is worth setting out because each one has a cheap version that takes under a minute, each one has a quiet way of failing that produces no error message at all, and the order they run in is not the order they first occur to a reader.

Every worked figure below runs on one record. The Nakshatra unit, an invented traded unit, is a nameless something with a price and nothing else settled about it. Its six year record is seventy two dated monthly observations, the month ending 31 January 2019 through to the month ending 31 December 2024, measured against an opening markThe starting price a record is measured against, sitting one period before the first observation in it. Nothing is observed on that date; it is there so the first change has something to be a change from. of Rs 100.00/- at the end of December 2018. The record has already been read three ways elsewhere, as a price, as a monthly change and as a rebased index.

What decides the order the seven checks run in?

Think about a stall outside one office building, the kind that sells one thing and closes at four. At the end of the month the person running it tips out a box of paper slips, one for each day, and adds them up. The month's takings come out right. Now suppose two of the slips got shuffled on the way into the box. The total is still right, to the rupee. But the busiest day of the month is now the wrong day, the pattern across the week is wrong, and the run of three quiet days that would have told them something is not there any more.

The figures that do not depend on order come out exactly as they should, so if the rows are in the wrong order, every figure that depends on order is wrong and nothing warns of it. That is why the date check goes first. The date check is not the most interesting of the seven, and it is the only one that can invalidate the other six. A calendar pattern read off a shuffled record is noise. A spread compared between two halves is comparing two arbitrary piles. A check on whether the series comes back to a level is answering a question about a sequence that is not the sequence.

After the first check the ordering is looser but still considered. The gap check comes second because it changes the count of rows, and every later figure is computed over some count. The level or change decision comes third because every check after it reads one of the two, and which one is being read has to be settled. The calendar pattern, the spread and the pull back come next in any order. The boundary check comes last for a reason worth stating plainly: the first six run on the columns as handed over, and the seventh runs on the columns just built.

SEVEN CHECKS IN ORDER. THE FIRST ONE CAN INVALIDATE EVERY LATER ONE THE RECORD AS HANDED OVER: 72 ROWS, NOTHING CONFIRMED ABOUT ANY OF THEM 1 THE DATES read as dates, sorted on the parsed value 71 of 72 rows move under a text sort and the closing price does not move at all 2 THE GAP, AND THE GAPS same distance between every pair, none missing one month between all 71 pairs 72 rows, no month missing 3 THE LEVEL OR THE CHANGE which one is the question about the level shifts by Rs 75.4066/- the change does not shift at all: work with the change 4 THE CALENDAR PATTERN group by calendar month, average each group twelve averages, 5.00 down to minus 3.00 per cent a pattern is present and it is not noise 5 THE SPREAD split the record and compute each half 3.00 per cent then 6.4031 per cent one figure of 5.00 per cent describes neither half 6 DOES IT COME BACK one regression, run once on each reading minus 0.026109 on the level minus 0.777838 on the change: only one of them comes back 7 THE BOUNDARY OF WHAT WAS KNOWN on what date could each value first exist a column with an empty last row used the future it reads columns just built, not ones handed over THE PREPARED RECORD: THE SAME 72 ROWS, AND NOW WHAT THEY SUPPORT IS KNOWN All figures invented. Check 1 first is the only fixed position in the order; nothing after it can be trusted while it is unanswered.
Seven checks run in order turn a handed over record into one whose figures can be trusted, and the first check is the one that can invalidate every later one.
Try it out

The answer is worth committing to before reading further. The six year record of the Nakshatra unit has a clean average monthly change of 1.00 per cent and a clean spread of 5.00 per cent across all seventy two months. How many of the seven checks should it be expected to fail?

How is it checked that the dates are really dates?

What to look at: the column holding the dates, and specifically what the software thinks that column contains. What a good answer looks like: every value has been turned from whatever was typed into an actual date, the count of values that failed to convert is zero, and the rows have then been sorted on the converted value rather than on the text.

The failure here is almost boring, and it is the most common one there is. A date column that has never been converted is a text column, and text sorts alphabetically. Under alphabetical rules 28 comes before 29 comes before 30 comes before 31, so every February in the record arrives before every April, and the year at the end of the string never gets a look in.

Take the six year record of the Nakshatra unit with its dates written day first, and that sort puts 71 of the 72 observations in the wrong place. The scrambled record opens at 28-02-2019 instead of 31-01-2019, and the second row is 28-02-2021, and the third is 28-02-2022. Exactly one row survives in its correct position, 31-12-2024, and it survives by accident rather than by anything meaningful. Then here is the part that makes this check worth running before every other one: compound the seventy two monthly changes in that scrambled order and the closing price is Rs 187.4539/-, agreeing with the honest closing price to the paisaA hundredth of a rupee. Two amounts that agree to the paisa agree at the second decimal place, which on a figure of this size is agreement to about one part in twenty thousand.. Seventy two numbers multiplied together give the same product in any order. Nothing on the screen changes colour. The mechanism behind why a date column arrives as text, and the other ways a timestamp quietly breaks an analysis, are covered separately.

ONE DATE COLUMN SORTED TWO WAYS. THE TOTAL BELOW IS THE SAME EITHER WAY SORTED ON THE CONVERTED DATE SORTED AS DAY FIRST TEXT 31-01-2019row 1 28-02-2019was row 2 28-02-2019row 2 28-02-2021was row 26 31-03-2019row 3 28-02-2022was row 38 30-04-2019row 4 28-02-2023was row 50 31-05-2019row 5 29-02-2020was row 14 30-06-2019row 6 29-02-2024was row 62 31-07-2019row 7 30-04-2019was row 4 and so on, in order and so on, in no order at all 31-12-2024row 72 31-12-2024still row 72 CLOSING PRICE AFTER COMPOUNDING Rs 187.4539/- CLOSING PRICE AFTER COMPOUNDING Rs 187.4539/- 71 OF THE 72 ROWS MOVED, AND THE ONE FIGURE ANYONE CHECKS DID NOT Seventy two changes multiplied together give the same product whatever order they sit in, so a total, an average and a spread all survive the scramble untouched. Only the figures that read along the order are wrong, and not one of them complains.
Sorting the six year record of the Nakshatra unit on day first text misplaces 71 of its 72 observations while the closing price of Rs 187.4539/- stays exactly where it was, so nothing on screen gives a warning.
Try it out

Why does the date check go first rather than anywhere else in the seven?

Breaking Into Quants Bootcamp — Fin Maverick

How is the gap between one observation and the next checked?

What to look at: the distance from each row's date to the next row's date, all the way down, and the count of rows against the span the first and last dates cover. What a good answer looks like: one distinct gap value for the whole record, and a count of rows that matches the span exactly.

Both halves of that matter and they catch different things. Reading the gaps catches a record that changes its own spacing partway. Two files stacked into one do that more often than anyone expects. Counting rows against the span catches the missing observation. Reading the gaps catches that one too; a summary never does. A missing month is invisible in an average and obvious in a count, so count. An average over 71 months looks exactly as reasonable as an average over 72, and no software anywhere will mention which one it did.

Run both readings over the six year record of the Nakshatra unit and both come back clean. There are 71 consecutive pairs, every one of them exactly one month apart, so the record has one gap value and not two. The first date is the end of January 2019 and the last is the end of December 2024, a span of 71 months, and a monthly record covering 71 months of span holds 72 rows. It holds 72. Nothing missing. A gap of a day rather than a month, and the effect on a figure when the spacing changes underneath it, are covered separately.

Try it out

A record arrives with 71 observations. Its first and last dates are five years and eleven months apart, and every visible gap is one month. What has been found?

Is the work on the level or on the change?

What to look at: first the question actually asked, then whether the reading that question needs holds still across the record. What a good answer looks like: a decision written down, with the two half averages that supported it sitting beside it.

The cheap version of this check takes about thirty seconds. The record is cut in half, each half of the level is averaged, then each half of the change, and the four numbers are put side by side. A household that has run on one salary for six years makes the point. A balance drifts, so the bank balance averaged over the first three years and over the last three gives two quite different answers. A rate of change does not have to drift just because the thing it is changing does, so the salary's rise each year can come out the same over the first three years and over the last three.

Do that to the six year record of the Nakshatra unit and the price comes out at Rs 115.0525/- for the first three years against Rs 190.4591/- for the last three, a distance of Rs 75.4066/-. Its monthly change comes out at 1.00 per cent for the first three years and 1.00 per cent for the last three, agreeing to the last decimal place on offer. When the two halves of the level disagree and the two halves of the change do not, the change is the thing to work with. The rule is a working one and not a proof, and the check has a sharper version worth knowing about. The sharper version is check six. Why a drifting level makes trouble, how a level is turned into a change, and why a change is often written as a log differenceA change written with logarithms in place of a plain percentage, which lets a run of them add up rather than multiply together. Weighed up in full elsewhere. rather than a plain percentage, are all covered separately.

THE SAME RECORD, TWO READINGS, EACH CUT IN HALF. ONE MOVES AND ONE DOES NOT THE LEVEL: THE PRICE, IN RUPEES THE CHANGE: PER CENT A MONTH Rs 115.0525/- Rs 190.4591/- 2019 to 2021 2022 to 2024 apart by Rs 75.4066/- 1.00 per cent 1.00 per cent 2019 to 2021 2022 to 2024 identical to the last decimal place The two panels are drawn to different scales because the two readings are in different units. What is comparable is the shape: one pair of bars differs and the other pair does not. All figures invented and worked out again from the record.
Cut the six year record in half and the price of the Nakshatra unit reads Rs 115.0525/- on one side against Rs 190.4591/- on the other, while its monthly change reads 1.00 per cent on both, which is what settles the choice.
Try it out

The price averages Rs 115.0525/- then Rs 190.4591/-, and the monthly change averages 1.00 per cent then 1.00 per cent. Which reading is taken forward on that evidence alone?

How is a repeating calendar pattern checked for?

What to look at: the observations grouped by the position they occupy in the calendar, with each group averaged. For a monthly record that is twelve groups, one per calendar month. What a good answer looks like: twelve averages that sit close together, or twelve that plainly do not, and a note of which it was.

The calendar check is the easiest of the seven to run and the one most often skipped. The same check is also the easiest to talk yourself out of. Six observations per group feels thin. Everyday life says otherwise: a sweet shop knows its Diwali fortnight is not its March fortnight without needing six years of slips to prove it, and a school canteen knows May is empty. The pattern is in the calendar, so group by the calendar.

Group the six year record of the Nakshatra unit that way and the twelve averages spread out between a January high of 5.00 per cent and a June low of minus 3.00 per cent, with November and December both sitting at 4.00 per cent and April, May, July and August all below zero. The twelve averages cover a range of 8.00 percentage points between the highest group and the lowest, on a record whose typical month is 1.00 per cent. A range that wide is not noise.

Now the warning, and it is the single most useful thing in this guide. Do not use a single correlation figure as the test for a calendar pattern. The obvious shortcut is to take one autocorrelationA single figure reporting how much a series looks like its own past: line the record up against a version of itself pushed back by a set number of periods, and see how well the two track. Built and argued over separately. reading at a shift of twelve months and treat a large value as proof a calendar pattern is present and a small one as proof it is not. On the six year record that reading is 0.0022, computed the usual way: the record's own average comes out of both columns and the record's entire squared deviation goes underneath. A reading of 0.0022 is about as close to zero as a figure gets. Run it instead as an ordinary correlation over just the sixty surviving pairs and it comes out at 0.0000, closer still. Two conventions, two digits, one conclusion, and the conclusion is wrong: this record has a calendar pattern eight percentage points wide. The calendar month averages are exact on this record and the shortcut is not, so use the averages. A repeating calendar pattern, and what a seasonal adjustmentSubtracting a repeating calendar effect from a series so that what is left carries no calendar in it. Set out in full elsewhere, along with what the subtraction does and does not remove. takes out of a series when one is removed, are covered separately.

TWELVE CALENDAR MONTHS, EACH AVERAGED OVER ITS OWN SIX OBSERVATIONS 0 3 minus 3 5 Jan 3 Feb 1 Mar minus 1 Apr minus 2 May minus 3 Jun minus 2 Jul minus 1 Aug 1 Sep 3 Oct 4 Nov 4 Dec Each bar is one calendar month averaged over the six years of the invented record. Figures are per cent a month, printed here as whole numbers because every one of the twelve is exact on this record. THE SHORTCUT THAT WOULD HAVE MISSED ALL OF THIS One correlation reading at a shift of twelve months reads 0.0022 on one convention and 0.0000 on another. Either figure would be read as no calendar pattern at all. The bars above are the same record and they run eight percentage points top to bottom. Use the calendar averages, which are exact here, not the shortcut.
January's group averages 5.00 per cent on the six year record and June's averages minus 3.00 per cent, while a single correlation reading at a shift of twelve months sits at 0.0022, so that reading cannot decide whether a calendar pattern is there.
Try it out

One correlation reading at a shift of twelve months comes out at 0.0022 on the six year record. Its January group averages 5.00 per cent and its June group averages minus 3.00 per cent. Which conclusion does that pair of facts rule out?

Does the spread hold across the whole record?

What to look at: the record cut into two halves, with the average and the spread of each half computed separately and then set against the same two figures for the whole record. What a good answer looks like: two half spreads close enough to each other that one figure can stand for both, or a plain statement that they are not.

The spread check does something a comparison of averages cannot. Ten shops in one shopping centre can have the same average daily takings as ten shops spread across a city and a completely different range around it, and only one of those two situations allows anything useful to be said about tomorrow. On this record the averages are exactly equal and the spreads are not, so a check that compares only the averages passes the six year record cleanly and says nothing.

Over the first three years of the Nakshatra unit's record the average is 1.00 per cent and the spread is 3.00 per cent. Over the last three the average is 1.00 per cent again and the spread is 6.4031 per cent. Taken whole, the record gives an average of 1.00 per cent and a single spread figure of 5.00 per cent, too wide to describe the first stretch and too narrow to describe the second. The single figure is wrong in both directions at once, and an eye running down a column of figures does not catch it for exactly that reason: the two errors point opposite ways and the average of them looks like no error at all. The name for a changing spread, what it costs a figure computed on top of it, and what is done about it, are covered separately.

SAME CENTRE, DIFFERENT SPREAD. ONE FIGURE FITS NEITHER HALF JANUARY 2019 TO DECEMBER 2021 JANUARY 2022 TO DECEMBER 2024 1.00 average 3.00 spread 1.00 average 6.4031 spread WHOLE RECORD: A SPREAD OF 5.00 PER CENT too wide for this half too narrow for this half Every bar is per cent a month, on the same scale in both panels. The two average bars are identical because the two averages are identical, which is what makes this the check a comparison of averages cannot do. All figures invented and recomputed here. THE SECOND STRETCH IS 2.1344 TIMES AS WIDE, AND THE AVERAGES NEVER MOVED
Each half of the six year record lands on an average of exactly 1.00 per cent, yet one carries a spread of 3.00 per cent and the other 6.4031 per cent, which leaves the whole record's single figure of 5.00 per cent describing neither.
Try it out

The record is split in half and both halves come out with an average of exactly 1.00 per cent. Does that settle it, and can one set of figures be carried across the whole record?

AI For Finance Bootcamp — Fin Maverick

Does the series come back to a level?

What to look at: each month's change in the series set against that series' own previous value, fitted with the straight line built earlier, and then the sign and the size of the coefficient on that previous value. What a good answer looks like: a coefficient clearly below zero, saying the series pulls back, or a coefficient sitting at about zero, saying it does not.

The pull back check is check three's question asked properly rather than by eye, and it is one regression run twice on the same record: once on the price and once on the monthly change. Nothing new is being built to run it. Run it on the six year record. The price gives a coefficient of minus 0.026109 with a t of minus 1.0683, and the monthly change gives minus 0.777838 with a t of minus 6.2898.

Read those two in one line: the price of the Nakshatra unit does not come back to any level and its monthly change does. The check produces nothing else, and the two readings are enough to decide what may be computed next. The name for the property the price has, the formal test that puts a confidence figure on the reading, what it costs when the property is present and ignored, and why a unit rootThe name given to a series that wanders on without being pulled back towards any level. Named, tested and taken apart elsewhere, along with what its presence rules out. matters at all, are all covered separately. The preparation keeps the number and the sentence, written down before anything is computed on top of them.

Risk Management Program Bootcamp — Fin Maverick

How is the boundary of what was known when marked?

What to look at: every computed column, one at a time, asking on what date its value in each row could first have been worked out, and whether that is the date the row is filed under. What a good answer looks like: each computed column carrying a date on which it first becomes computable, and no column carrying a value that needed something later than its own row.

The boundary check goes last because the first six run on the columns as handed over and this one runs on the columns just built. A shop's ledger cannot record November's takings in an October column, and everyone accepts that instantly. A formula reaching one cell downwards looks exactly like a formula reaching one cell upwards, so the same error inside a spreadsheet is invisible.

Take the simplest computed column there is: a three month average of the price of the Nakshatra unit, which is a rolling windowA fixed number of consecutive rows that slides down a record one row at a time, so the same figure is worked out again at every date. Built and read separately. three rows long. Written as this month and the two before it, the earliest row it can fill is March 2019. January and February do not have two months behind them. The average reads Rs 103.7068/- in March 2019, and it can be filled every month after that, all the way to December 2024, where it reads Rs 169.9987/-. The month before, this month and the month after is an ordinary and perfectly respectable way to describe history. Written that way, every value is one row too early for the date it is filed under. And here is the tell that costs nothing. If a computed column's last row is empty, it used something that has not happened. There is no January 2025 in the record, so the second version cannot produce a value for December 2024. The damage that error does to a figure, how large the flattery gets, and why it is a dating fault rather than anything to do with what anyone would have done about it, are covered separately, under the name lookaheadThe name for a figure worked out from something that had not happened yet at the date the figure is filed under. Taken apart elsewhere, with the size of the flattery measured..

ONE COLUMN, TWO DATINGS. THE EMPTY CELL AT THE END IS THE WHOLE TELL The last six months of the invented six year record. Prices in rupees, each figure worked out again from the record. Jul 2024 Aug 2024 Sep 2024 Oct 2024 Nov 2024 Dec 2024 THE PRICE ON THE DAY 173.6987 159.8028 162.9988 158.1089 164.4332 187.4539 THIS MONTH AND THE TWO BEFORE IT: EVERY VALUE EXISTS ON THE DATE IT IS FILED UNDER 195.2500 177.7184 165.5001 160.3035 161.8470 169.9987 Filled from March 2019 onwards, where it reads Rs 103.7068/-, and it runs to the end of the record without a hole in it. THE MONTH BEFORE, THIS MONTH AND THE MONTH AFTER: THE SAME COLUMN LIFTED UP ONE ROW 177.7184 165.5001 160.3035 161.8470 169.9987 EMPTY Every filled cell here is the cell one place to its right on the green rail. December cannot be filled: there is no January 2025. A COMPUTED COLUMN WHOSE LAST ROW IS EMPTY USED A ROW THAT DOES NOT EXIST YET
Every computed column has a date on which its value could first have been worked out, and a column whose last row cannot be filled has used a row that does not exist yet.
Try it out

A prepared record has one computed column with a value in every row except the last, and the last is blank. Which fault does that indicate, and what should be checked next?

Play with it

Move through the seven checks one at a time and watch the same record answer each one.

One control moves: which of the seven checks is currently being run, from the first to the seventh. A preparation procedure does not edit anything, so nothing about the record changes at any setting. Only where the lens points changes. The rail at the top keeps every verdict on screen at once, so the four that need work can be seen sitting among the three that do not. The strip in the middle is the seventy two monthly changes with the part the current check reads picked out. The panel underneath draws whatever that check actually computes. The opening setting is check one, the dates. Its reading is 71 of the 72 rows landing in the wrong place under a day first text sort, the same figure printed in the table further down.

Jump to a check:
The check
The dates
What it reads
72 date labels
The answer
71 of 72 misplaced
Verdict
NEEDS WORK

Educational illustration. The Nakshatra unit is an invented traded unit, and the seventy two dated months recorded against it were written down rather than observed, so nothing on this panel stands for a security, a company, an index or a market. A preparation procedure changes nothing, so the record cannot be edited from here and no setting alters one observation in it. A verdict shown here belongs to these seventy two rows alone and no other record inherits it. Passing a check makes a figure reproducible; it does not make it worth anything.

What did the six year record answer, check by check?

Here are the seven run end to end on one record, with the answer each one gave. The table repeats the seven blocks above with their prose taken away, and the stripped form is what the answers should end up as when the seven are run on any other record.

The seven checks run on the invented six year record of the Nakshatra unit. Every figure recomputed from the record.
CheckWhat it readThe answerVerdict
1. The dates72 date labelsParsed and sorted, they run from 31 January 2019 to 31 December 2024. Sorted as day first text, 71 of the 72 land in the wrong place and the closing price does not moveNeeds work
2. The gap71 consecutive pairsExactly one month between every pair, 72 rows over a span of 71 months, nothing missingClear
3. Level or changeBoth readings, cut in halfPrice: Rs 115.0525/- on the first half, Rs 190.4591/- on the second. Change: 1.00 per cent on both. Work with the changeAnswered
4. The calendar pattern12 groups of 6 observationsTwelve averages running from 5.00 per cent in January down to minus 3.00 per cent in June, a range of 8.00 percentage pointsNeeds work
5. The spreadTwo halves of 36 monthsAverages of 1.00 per cent and 1.00 per cent, spreads of 3.00 per cent and 6.4031 per cent, against 5.00 per cent for the whole recordNeeds work
6. The pull backOne regression, run twiceMinus 0.026109 with a t of minus 1.0683 on the price, minus 0.777838 with a t of minus 6.2898 on the changeAnswered
7. The boundaryEvery computed columnA three month average written as this month and the two before it first exists in March 2019 at Rs 103.7068/-, and fills every row to the end. Written one month later it cannot fill December 2024 at allNeeds work

Seven checks, seven answers, one record, and four of the seven came back needing work on a record whose overall average and overall spread are both perfectly tidy. A record can be tidy in summary and faulty in four places at once, and the sentence above is worth reading twice before any of this is run on another record.

Try it out

Name the seven checks in order, from the one that runs first to the one that runs last.

Bond Pricing and Yield Mechanics — free micro-course from Fin Maverick

What is written down beside the prepared record?

An analyst inside a lending team, a research desk or a household budgeting spreadsheet has the same problem at the end of this procedure, and it is not the arithmetic. The problem is that the seven answers live in the head of whoever ran them, and a record whose preparation lives in somebody's head is a record only that person can defend. The fix is seven lines of writing, kept beside the data rather than inside a report.

The note records the count of rows and the first and last dates. The note records the gap. The note records whether the work is on the level or on the change, and the two half averages that decided it. The note records the twelve calendar averages, or the equivalent for whatever period repeats in the record. The note records the two half spreads. The note records each computed column's first computable date. Nothing else goes in. Seven lines is the difference between a record somebody else can rebuild and a record they can only take on somebody's word.

A preparation note also earns its keep in an argument. When somebody four weeks later says the pattern in the data is just noise, nothing has to be remembered: the twelve calendar averages are there to point at. When somebody says the model was tested on a stable period, the figures to point at are 3.00 per cent and 6.4031 per cent. And when somebody asks whether a column could have been known at the time, the date beside it answers. None of that requires being right. It requires having written down what was looked at.

THE SEVEN LINE NOTE, FILLED IN. IT SITS BESIDE THE DATA, NOT INSIDE A REPORT THE PREPARED RECORD 72 rows unchanged by any of the seven PREPARATION NOTE, NAKSHATRA UNIT, SIX YEAR RECORD, INVENTED 1 COUNT AND DATES 72 rows, 31 January 2019 to 31 December 2024, sorted on the parsed date 2 THE GAP one month, on all 71 pairs, nothing missing 3 LEVEL OR CHANGE the change. Level: Rs 115.0525/- then Rs 190.4591/-. Change: 1.00 both 4 CALENDAR AVERAGES 5, 3, 1, minus 1, minus 2, minus 3, minus 2, minus 1, 1, 3, 4, 4 per cent, January first 5 THE TWO HALF SPREADS 3.00 per cent then 6.4031 per cent. Whole record 5.00 per cent, which fits neither 6 THE PULL BACK minus 0.026109 on the level, minus 0.777838 on the change 7 FIRST COMPUTABLE DATES the three month average: March 2019, and it fills every row after that Seven lines. Every one of them is an answer somebody else can check against the same 72 rows without asking anybody what was done.
Recording the count and dates, the gap, the level or change decision, the calendar averages, the two half spreads, the pull back and each column's first computable date is what separates a record somebody can rebuild from one they cannot.
Try it out

All seven checks are run on a record and every one comes back clean. Name one thing that is still not known about that record.

The record that was clean on both figures anyone looked at

An analyst is handed the six year record of the Nakshatra unit as a spreadsheet. The analyst computes the average monthly change at 1.00 per cent and the spread at 5.00 per cent, and both figures are correct. Neither is a rounding, neither is an artefact, and anybody rechecking them will get the same two numbers. Work starts.

Four of the seven checks would have come back needing work. The dates had never been converted, so the first time anything sorted that column the rows silently rearranged and every figure that reads along the order was computed on a different record from the one on screen. The calendar pattern was never looked for, so twelve averages running from 5.00 per cent down to minus 3.00 per cent were carried through as noise. The spread was never split, so one figure of 5.00 per cent stood in for a stretch of 3.00 per cent and a stretch of 6.4031 per cent. And no computed column was ever dated, so nothing on the sheet could say which of them had used a row that did not exist yet.

The cost is not one wrong number of the kind somebody would eventually trip over. The cost is that every figure computed afterwards inherits all four faults, none of them raises an error, and the two figures anybody thinks to check are exactly the two that survive all four untouched. Make this a habit and not a caution: the seven go before the first computation, never after the first surprising result. After the first surprising result the record is no longer being checked. The search is for the explanation already half decided on.

The mechanism behind each of the seven checks is covered separately. A gap of a day or a quarter rather than a month, and the other ways a timestamp breaks an analysis without saying so, are covered separately. A repeating calendar pattern, and what removing one takes out of a series, is covered separately. The name for a changing spread and what it costs is covered separately. Coming back to a level, the formal test for it and what its absence rules out are covered separately. Turning a level into a change, and the reasons a change is often written with logarithms, are covered separately. And what happens to a figure built out of information that did not exist yet is covered separately, with the size of the flattery measured. Passing all seven checks makes a record reproducible and says nothing whatever about whether any figure computed on it means anything.
Seven lines beside the record outlast anybody's memory. See what a desk checks next.

Why is there nothing to cite?

A preparation procedure is arithmetic over dated rows. Arithmetic over dated rows carries no threshold, no reporting period, no filing and no product, so no supervisor, marketplace or data supplier has a document that belongs beside it. Naming one would lend borrowed weight to arithmetic that already stands up on its own, and the borrowing is the part a reader would remember. The seven checks are stated from mechanism and demonstrated on invented data, so the only way to test them is to run them again rather than to look up who said so. Anything carried from here into another record is worth running on that record before it is trusted there.

What a reference block usually carriesWhat sits there for a preparation procedure
An authority whose rule is being restatedNone. Counting rows and averaging a calendar month answers to nobody.
A maintained record, with the date somebody last read itNone. Seventy two months written down for teaching were never current on any date.
A named author for the procedureNone. Checking dates before computing on them is ordinary working practice and predates any one text on it.
A figure carried over on trust from somewhere elseNone. Each one above was worked out again from the seventy two rows during drafting.
Something that would have to be fetchedNothing at all. The equipment for doubting any figure here is the record and a calculator.

The Nakshatra unit, the stall, the household and the shopping centre 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.