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

Data Structures in Finance: Cross-Sectional, Time-Series and Panel

Most people meet a record as a wall of numbers and go straight to working something out with it. A question comes one step earlier: what is any single row a row of? The question sounds like a formality and it is not. Before a single figure is touched, the answer fixes which questions the record is able to hold and which ones it will politely return nothing for. The answer decides something harder as well: which of the record's own faults are visible at all.

Carried in from earlier

Eight columns, already settled, sitting in the Neelbagh stall record. An invented covered market, ten stalls that traded, four months numbered 1 to 4, and one row for each stall for each month. The eight columns and what each one holds were settled earlier, under the record's column list.

Two stalls that are not in the file. NB-09 Roshni Juice and NB-10 Amber Rolls closed after month 2, and the market office deleted them from the record, months 1 and 2 included. The two closures were established earlier too. The count is what matters here.

What is a data structure, and why does the shape decide the question?

A classroom photograph is a very good record of one moment: forty children, all of them measurable, and which of them is tallest can be stated with confidence. Asked instead which child is growing fastest, the photograph has nothing to say. Not because the camera was bad, and not because the children are unmeasurable, but because a photograph holds one moment and growth needs two. The other record a school keeps is a single child's height chart on the wall, five pencil marks over five years. Asked who is growing fastest in the class, it is just as helpless, for the opposite reason.

The photograph and the height chart hold the whole idea, and the rupees come later. A record has a shape, the shape is decided by what one row stands for, and the shape is what admits or refuses a question. However careful the figures inside it are, and however badly the answer is wanted, a question the shape cannot hold cannot be asked of that record. No amount of cleaning, no extra column and no clever handling changes it. The refusal is not a fault. The refusal is the layout.

ONE RECORD, THREE SHAPES, AND THREE DIFFERENT THINGS THAT ONE ROW MEANSThe picked out box in each drawing is one row of that shape.A CROSS SECTIONmonth 1, every stall that tradedA SERIESNB-01 Kadamba Idli, every monthA PANELevery stall, every monthNB-01Rs 42,000/-NB-02Rs 31,000/-NB-03Rs 38,000/-NB-04Rs 26,000/-NB-05Rs 55,000/-NB-06Rs 34,000/-NB-07Rs 40,000/-NB-08Rs 42,000/-NB-09Rs 20,000/-NB-10Rs 22,000/-10 rows. One row is one stall.month 1Rs 42,000/-month 2Rs 44,000/-month 3Rs 43,000/-month 4Rs 45,000/-no more rows.one stall is all there is.4 rows. One row is one month.36 rows, one per stall month.The four shaded cells are the twostalls that had closed.Every row is a different stall.The moment never changes.Every row is a different month.The stall never changes.
One row is a stall in a cross section, a month in a series and a stall month in a panel, and that single difference is what decides everything else about the record.

Look at the three drawings and notice that the picked out box is a different kind of thing in each one. On the left it is a stall. In the middle it is a month. On the right it is a stall and a month together. A stall and a month together deserves a name of its own, and the name is a stall month. Three shapes, three answers to the same question about one row, and no arithmetic anywhere yet.

Try it out

A record arrives that nobody has seen before. What is the first thing to establish about it?

What is a cross section, and what can it never answer?

One moment, with every stall laid out beside every other. Month 1 of the Neelbagh stall record gives ten rows, one for each stall that traded, and the takings on those ten rows come to Rs 3,50,000/- between them. Those ten rows are a cross section, and a cross section is a genuinely useful thing. The cross section shows that NB-05 Bansi Flour took the most at Rs 55,000/-, that NB-09 Roshni Juice took the least at Rs 20,000/-, and that the spread between the biggest and the smallest is a factor of nearly three. The cross section also gives the average takings per stall month: the sum of the takings cells that carry a usable number, divided by how many carry one. All ten carry one, so the sum is Rs 3,50,000/- over 10, which is Rs 35,000/- exactly, with no rounding anywhere in it. The arithmetic averageThe figures are added up and the total divided by how many figures were added. Nothing else goes into it, which is exactly why the count used as the divisor has to be stated beside the answer. is the only quantity needed here.

Now ask the cross section the obvious next question. Was month 1 a good month? A cross section holds one moment, and there is nothing in it to compare that moment against, so the cross section cannot answer and never will be able to. Every one of those ten stalls could be having the best month it has ever had, or the worst, and the ten rows would look exactly the same either way. The picture is complete and the question is simply not in it.

One aside before moving on. The aside matters later. The file the market office actually handed over shows only eight rows for month 1, adding to Rs 3,08,000/-, not ten rows adding to Rs 3,50,000/-. Two of the stalls that traded that month are not in the file at all. Why that happened, and what it costs, is covered separately. A cross section of eight rows and a cross section of ten rows look equally complete. Neither one has a hole in it.

Try it out

Month 1 shows ten stalls and Rs 3,50,000/- between them. Does it show whether the market had a good month?

Breaking Into VC Bootcamp — Fin Maverick

What is Time-Series Data, and what can one stall's four figures never show?

Turn the record ninety degrees. Hold one stall still and let the months run. NB-01 Kadamba Idli gives four rows: Rs 42,000/-, Rs 44,000/-, Rs 43,000/- and Rs 45,000/-. One row is now one month, the stall never changes, and the rows have an order that is not a matter of taste. Row two comes after row one because month 2 comes after month 1, and shuffling them destroys something real. Those four rows are time-series data: one thing, observed at many moments, in the order the moments happened.

THE SAME FOUR FIGURES, ALONE AND THEN SURROUNDEDNothing about the four figures changed. What changed is what sits beside them.ON THEIR OWN, which is what a series ismonth 1Rs 42,000/-month 2Rs 44,000/-month 3Rs 43,000/-month 4Rs 45,000/-Four figures, and no way to ask whether the market around them moved too.INSIDE THE PANEL, which is the same four cells with companymonth 1month 2month 3month 4NB-01Rs 42,000/-Rs 44,000/-Rs 43,000/-Rs 45,000/-NB-02NB-03NB-04NB-05NB-06NB-07NB-08NB-09NB-10The highlighted row is the same series. Every other row is another stall living through the same four months.
NB-01 Kadamba Idli's four months read Rs 42,000/-, Rs 44,000/-, Rs 43,000/- and Rs 45,000/-, and on their own they cannot say whether the market around them moved too.

The four figures are honest and they are complete and they still cannot answer the question anybody actually cares about. Suppose the fourth month is the best of the four. Was that NB-01 doing something right? If every stall in the market rose in month 4, then NB-01 rising proves nothing about NB-01 at all, so four figures from one stall cannot show whether what happened was about the stall. The stall's own record has no room in it for the market around the stall. The record is one column of the world.

Figures that run in order over time make a substantial subject with methods of its own, and every one of those methods is covered separately. How a series moves, what it tends towards, and what to expect from it next belong there. A series is just this: one thing, many moments, in order, and no company.

Try it out

NB-01 Kadamba Idli took Rs 42,000/-, Rs 44,000/-, Rs 43,000/- and Rs 45,000/- over the four months. What can those four figures not show?

What is Panel Data, and what does the shape buy?

Put together, the two shapes give the third. Keeping every stall and keeping every month makes one row one stall and one month at once. Those rows make a panel, and a panel is what the Neelbagh stall record has been all along: 36 stall months, ten stalls living through four months, with the two that closed contributing two months each rather than four.

The panel buys one question that neither of the others can hold: whether one stall moved differently from the market around it. The cross section has the other stalls and only one moment. The series has the other moments and only one stall. The panel has both, so the question at last has somewhere to live. The methods that answer it properly are covered separately. Knowing that a question is askable is not the same as answering it.

WHAT EACH SHAPE CAN HOLD, AND WHAT IT CANNOT HOLD AT ALLThe third column is the one people forget to ask about.THE SHAPEWHAT ONE ROW ISWHAT IT CAN ANSWERWHAT IT CAN NEVER ANSWERA cross sectionone row isone stall,in one monthwhich stall took most,and how the takingswere spread that monthwhether that month wasnormal for anybody.There is one moment only.A seriesone row isone month,for one stallwhat happened to thatone stall, month bymonth, in orderwhether any of it wasabout the stall. Thereis one stall only.A panelone row isone stall month,so both at onceeither of the two above,and the question neitherof them can holdnothing here. What analyststhen do with it iscovered separately.A question the shape cannot hold cannot be asked of it, however good the figures inside it are.
A cross section cannot show whether a month was normal and a series cannot show whether what happened was about the stall, while a panel can hold both questions.

The third column of that comparison is the one nobody asks for. People ask what a shape can do. Almost nobody asks what it structurally cannot do, and that second list is what saves a fortnight spent trying to squeeze an answer out of a record that was never able to hold it.

Breaking Into Quants Bootcamp — Fin Maverick

Which columns actually make this record a panel?

Naming a shape is one thing and proving it is another. The proof does not depend on anybody's description at all, and it is a short job done with the written column list to hand. Each of the eight columns is taken one at a time, with the question being what a single value in that column belongs to.

stall_name belongs to the stall. Change the month and it does not move. Same for licence_no, which is an identifierA value whose job is to point at something rather than to measure it. An identifier can be written entirely in digits and still not be a quantity, so adding two of them together produces nothing at all. rather than a quantity, same for category, and same for pitch_sqft, which records the size of the stall's pitchThe patch of floor a stall rents inside a covered market, measured in square feet and paid for whether the stall trades that month or not. in square feet. stall_id belongs to the stall by definition. Five columns, then, take one value per stall whatever the month. The month column is the mirror image: one value per month, whatever the stall. Which leaves two. takings_rupees plainly moves when either the stall or the month changes. And filed_on_day moves both ways too. The file proves it rather than asserting it: NB-01 filed on days 6, 7, 8 and 6 across its four months, so filed_on_day varies by month, and in month 2 one stall filed on day 7 while another filed on day 5, so it varies by stall as well.

SORT THE EIGHT COLUMNS BY WHAT ONE VALUE BELONGS TOTwo columns land in the bottom group, and two is all it takes.ONE VALUE PER STALL, whatever the monthstall_idstall_namelicence_nocategorypitch_sqft5 of the eight columnsONE VALUE PER MONTH, whatever the stallmonth1 of the eight columnsONE VALUE PER STALL MONTH, so it moves when either one movestakings_rupeesfiled_on_day2 of the eight columnsA record with at least one column in the bottom group is a panel.This one has two, so it is a panel whatever anybody calls the file.
Five columns take one value per stall and one takes one value per month, and the two that vary by both the stall and the month are what make this record a panel.

A record with at least one column that varies by both the thing and the moment is a panel, and that is a fact about the columns rather than a description somebody wrote on the file. This record has two such columns. One would be enough. The test is blunt and mechanical, and it survives a badly named file, a missing column list and a spreadsheet somebody has already sorted twice.

Try it out

Which two columns of the Neelbagh stall record are the ones that make it a panel?

What makes a panel balanced, and what do 40, 36 and 32 each mean?

A panel is balanced when every thing appears at every moment, so the record fills a complete grid with nothing left over. Ten stalls across four months would be a balanced grid of 40 cells. The Neelbagh stall record is not balanced, and the pleasing thing is that nobody need argue about it. The imbalance can be counted.

THREE COUNTS OF ONE RECORD, AND THEY ARE NOT THE SAME QUESTIONEach bar is drawn to its own count, so the steps shown are the steps in the numbers.40what a balanced grid would holdcells36what the market really tradedstall months32what the market office wrote downrows4cells that never existed4stall months that traded and are not in the fileAll three counts are correct. Quote one as the size of the record without saying which and two peoplewho have the same file will disagree about what is in it.The 32 rows cover 31 stall months, because one stall month was written down twice.
A balanced grid would hold 40 cells, the market really traded 36 stall months and the file holds 32 rows, so all three counts sit on one record and answer three different questions.

Three counts, and every one of them is a correct answer to a different question. 40 is what a full grid would hold, 36 is what the market really traded, and 32 is what the market office wrote down, and the distance between the three is where every argument about the size of this record comes from. The step from 40 to 36 is the two stalls that closed after month 2: those four cells are not missing, they never existed, and nobody took any money in them. The step from 36 to 32 is different in kind. The four missing ones are stall months that genuinely happened and are simply not in the file. One more wrinkle is worth carrying. One stall month got written down twice, so the 32 rows cover only 31 stall months.

A household version, if it helps. A block of ten shops signs a four year lease, so the landlord's rent book should have 40 lines. Two shops shut after two years, so only 36 lines of rent were ever really due. And the clerk who kept the book wrote down 32 of them. Somebody asking how big the rent book is will get three different true answers depending on who they ask, and the three answers are not a disagreement. The three answers are three questions.

Try it out

The counts 40, 36 and 32 all describe this one record. What is the difference between them?

Try it out

Before the control below is touched, one prediction. As the record is extended one month at a time from one month to four, does the gap between the grid and the stall months really traded open steadily?

Play with it

Add one month at a time and watch a cross section turn into a panel

One control, one number: how many of the four months the record covers. The ten stalls down the side never change. Each cell is shaded by what the file actually holds for that stall month, and the legend under the grid counts each kind. At one month the record is a cross section and nothing else; walking up to four shows the moment the bottom two rows stop filling, and shows the count of cells and the count of stall months really traded coming apart while the grid itself stays a perfect rectangle.

ADD A MONTH AND THE SHAPE CHANGESOne control. The ten stalls down the side never change; only the months across do.NB-01 Kadamba IdliNB-02 Chandan TeaNB-03 Harit GreensNB-04 Peetal UtensilsNB-05 Bansi FlourNB-06 Ilaka FruitNB-07 Sundari ChaatNB-08 Peeli MithaiNB-09 Roshni JuiceNB-10 Amber RollsWHAT IS IN EACH CELL AT THIS SETTING0a row carrying a figure0a row, takings left blank0two rows, one cell0traded, no row in the file0no such stall month
4 months
Shape
a panel
Cells a full grid holds
40
Stall months really traded
36
Rows in the file
32

Educational illustration. Invented, all of it: the ten stalls named down the side of this grid, the market office that wrote the rows, the Neelbagh stall record they were written into and the Neelbagh market where the trading is supposed to have happened. Both stalls that shut are taken to have traded months 1 and 2 in full.

AI For Finance Bootcamp — Fin Maverick

What is the difference between long form and wide form?

A panel can be written down two ways, and both of them are the same record. Long form is one row per stall month: 36 rows, three columns wide, reading stall, month and takings. Wide form is one row per stall and one column per month: 10 rows, 4 month columns, 40 cells. Nothing is added and nothing is lost when an analyst comes to reshapeRewriting a record so the same values sit in a different arrangement of rows and columns. Nothing is added, removed or altered by it, and doing it with a tool is covered separately. one into the other, and that is exactly why the difference between the two layouts is so easy to miss.

THE SAME RECORD, WRITTEN LONG AND WRITTEN WIDEOnly one of these two layouts gives an absence anywhere to be.LONG FORMone row per stall month36 rows.Nothing marks a rowthat was never written.WIDE FORMone row per stall, one column per monthmonth 1month 2month 3month 4NB-01NB-02NB-03NB-04NB-05NB-06NB-07NB-08NB-09emptyemptyNB-10emptyempty40 cells, 36 filled, 4 empty.The absence finally has somewhere to sit.
Long form is 36 rows and wide form is 40 cells of which 4 sit empty, and those empty cells only become visible once the record is written in the wide shape.

The same record has 36 rows in one layout and 40 cells in the other, and the four cells of difference only become visible in the wide shape. In long form, a stall month that never happened and a stall month nobody wrote down are the same thing, an absence of a row, so the two look precisely identical. A list does not have a slot for a row that is not in it. A grid does. The wide layout has to put something in every position, so it has to show the positions it cannot fill.

Wide form is not the better layout. Long form takes an extra month without touching its columns, and wide form does not. Long form handles a record where different stalls were watched at different moments, and wide form makes an eye watering mess of it. The difference is narrower and it is only about seeing: an absence is invisible in a list and unavoidable in a grid, so anyone who needs to know what is not in a record should look at it wide at least once.

Try it out

NB-04 Peetal Utensils traded in month 3 and no row for it was ever written. Why is that obvious in wide form and invisible in long form?

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

Which fault does the shape find, and which one does it create?

Take the file the market office handed over, all 32 rows of it, and lay it out wide across the ten stalls the market actually had. Two things happen at once, and they pull in opposite directions.

The first is a gift. Every hole in the record now has a position in the grid and a name. 30 of the 40 cells carry a figure and 10 of them print nothing at all, and each one can be pointed at. The grid also refuses to hide something a list hid happily: NB-03's month 2 has two rows in the file, filed on day 5 and on day 19 with different figures, and a wide grid has exactly one cell for that stall and that month. Two rows on one keyThe one column, or the small set of columns together, that is supposed to pick out a single row of a record and never two of them. cannot both be printed, so the reshape stalls until somebody decides which figure belongs there. The cost of that decision is covered separately. Structurally, the wide shape made a choice compulsory that the long shape allowed anybody to walk past.

The second thing is a trap, created by the shape rather than found by it: an empty cell in a tidy grid looks like a number waiting to be typed. A missing row in a list looks like nothing, because it is nothing. An empty cell with a border around it and three filled neighbours looks like a job. And the commonest job anybody does to it is to put a zero in.

The failure: ten zeros, one grid, and four different reasons underneath them

An analyst reshapes the Neelbagh stall record into wide form to build a summary, sees ten empty cells sitting in an otherwise tidy 10 by 4 grid, and fills every one of them with zero. Nothing about that is careless in appearance. The grid now looks complete, it adds up, it sorts, and every figure in it is a whole number of rupees.

Here is what the grid now says. The grid says NB-09 Roshni Juice and NB-10 Amber Rolls traded in months 3 and 4 and took nothing, when in fact they had closed and there were no months 3 and 4 for them at all. The grid says the same two stalls took nothing in months 1 and 2, when they traded both months and it was the market office that deleted the rows. The grid says NB-04 Peetal Utensils took nothing in month 3, when NB-04 traded and the row was simply never written down. And it says NB-05 Bansi Flour took nothing in month 2, when NB-05 has a perfectly good row for month 2 whose takings cell was left blank.

TEN CELLS PRINTED NOTHING. SOMEBODY TYPED A ZERO INTO ALL TEN.One uniform fill, four different reasons underneath it.month 1month 2month 3month 4NB-01 Kadamba Idlia figurea figurea figurea figureNB-02 Chandan Teaa figurea figurea figurea figureNB-03 Harit Greensa figuretworowsa figurea figureNB-04 Peetal Utensilsa figurea figure0a figureNB-05 Bansi Floura figure0a figurea figureNB-06 Ilaka Fruita figurea figurea figurea figureNB-07 Sundari Chaata figurea figurea figurea figureNB-08 Peeli Mithaia figurea figurea figurea figureNB-09 Roshni Juice0000NB-10 Amber Rolls0000THE TEN ZEROS, AND THE FOUR REASONS UNDERNEATH THEM4 cellsThe stall had closed. There was no such stall month at all, so nothing was ever taken.4 cellsThe stall traded and the market office deleted the rows. The takings happened and left no trace.1 cellNB-04 Peetal Utensils traded in month 3 and the row was simply never written down.1 cellNB-05 Bansi Flour has a row for month 2 and its takings cell was left blank.A zero says the stall traded and took nothing. Not one of these ten cells means that, and four of them are not stall months.
Ten empty cells in one wide grid had four different reasons behind them, and a single uniform fill of zero destroyed all four of those reasons at once.

Ten identical zeros, four completely different reasons, and after the fill there is no way left to tell them apart. A zero is a real figure that makes a real claim: this stall traded that month and took no money. Not one of those ten cells means that, and four of them are not stall months at all. The damage is not that the average moved. The damage is that the reasons were destroyed, and they were the only things that could have told anybody what to do next.

The habit that fixes it costs about four minutes. Before any cell in a wide grid is filled, the reason each empty one is empty is written down beside it, and the number of different reasons is counted. If the answer is one, filling is safe. If the answer is four, as it is here, the grid was hiding four separate problems behind one uniform appearance, and no single fill can be right for all of them.

Try it out

Ten empty cells in that wide grid get filled with zero. How many different reasons were behind those ten cells?

The wide shape shows every hole and invents more. See which fault it creates.

What three questions should be asked of any record's shape?

Now for the part that travels. A lender looking at four years of a borrower's monthly sales and a fund analyst holding a table of forty companies for one quarter are doing the same job as the market office clerk, and all three of them get burnt the same way. The check follows, in the order that makes it useful, and it takes a couple of minutes on any record that arrives.

THREE QUESTIONS, ASKED IN THIS ORDER, BEFORE ANYTHING IS COMPUTEDThe third question is the one that turns a shape into a check.QUESTION ONEWhat is one row?one thing,in one momentA CROSS SECTIONone thing, acrossmany momentsA SERIESmany things, acrossmany momentsA PANELQUESTION TWOWhich columns vary by the thing, which by the moment, and which by both?QUESTION THREE, and it hangs off every branchLaid out wide, how many cells would be empty,and why is each one of them empty?The first two questions establish what the record is.The third one shows what it is missing, and it is the one people skip.
Ask what one row is, then which columns vary by the thing and which by the moment, because only the third question shows what the record does not contain.

Question one, what is one row? The analyst with forty companies for one quarter has a cross section and cannot say a word about whether the quarter was ordinary. The lender with one borrower over 48 months has a series and cannot say whether a bad quarter was that borrower or everybody. Both of them know this the moment they answer question one, and both of them can then go and get the other shape rather than arguing with the one they have.

Question two, which columns vary by the thing, which by the moment, and which by both? Sorting a record into its levels exposes the columns that are about to be misread. A column that takes one value per thing has no business being averaged across moments as though it moved. Question two is also the test of whether the record in hand is a panel at all.

Question three is the one that turns a shape into a check: laid out wide, how many cells would be empty, and why is each one empty? The first two feel like the real work and the third feels like tidying, so nobody asks it. The truth is the opposite. The first two describe what is there. The third one is the only question in the set that shows what is not, and on the Neelbagh stall record it is the difference between a file with one hole in it and a record with nine stall months unaccounted for. The market office's day bookThe office's paper notebook of sentences about the day, kept beside the record and holding all the things that no column has room for. is where two of those reasons were eventually found, and a returnThe filled in form a stall hands to the market office each month. A return is a sheet of paper reporting what was taken, not a gain on money invested. that was filed on paper but never keyed in is where the third one was. None of that is in the file, and none of it would ever have been looked for by somebody who had not first asked why the cells were empty.

Deliberately left alone here. Rows, columns and the written list of columns are covered separately. Figures that run in order over time have a whole handling of their own, so does watching many things across many moments at once, and both of those are covered separately. Choosing between two rows sitting on one key, working out what a blank cell means, and asking why two stalls vanished out of a file are three more subjects covered separately. Turning long form into wide form with a tool belongs to programming for finance and is covered there.

Where did every number come from?

Ten named stalls, four numbered months and one small file built on purpose to be broken: every figure above drops out of those three.

What is claimedWhere it comes fromWhat can be checked independently
The ten stalls, the four months and every rupee figureMade up for teaching, then worked out again by a checking script rather than typed by handNothing outside these notes, because no covered market at Neelbagh has ever traded.
The three shapes, and the two layouts a panel can be written inOrdinary working vocabulary with no single safe attributionAny general text on keeping records will name the same three shapes and the same two layouts.
The counts 40, 36 and 32Worked out again from ten stalls, four months and the rows the market office wroteCounting the cells in the grid drawn above gives the same three answers.
The ten empty cells and their four reasonsDerived cell by cell from the file and the two stalls that closed, never asserted as a totalFour never existed, four were deleted, one was never written and one is a blank cell in a real row.

The Neelbagh market, the Neelbagh stall record, the market office that keeps it, its day book and the ten stalls from NB-01 Kadamba Idli to NB-10 Amber Rolls are invented.
Educational material. Not advice on any investment, tax, budget or market position.

Covered in this topic

Subtopics

Time-Series DataPanel Data
← 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.