Tools that show their working, built to be read as much as used.
I am a development economist and a licensed social justice worker. This is where the experiments live: econometrics that runs in the page, poverty and inequality from grouped data, survey audits, women's and climate data pulled live, and legal calculators that cite the paragraph beside every rupee.
This is a working notebook. Hover over any card for what it does in plain words; open "how it's built" for the method and what it was checked against, and "known limits" for what the tool leaves out. A tool that outgrows this page gets a name and a home of its own and stops being listed here: my ventures, writing and background are at idealog.works, and the open-source code behind them is indexed at openstacks.dev.
Difference-in-differences, event studies, synthetic control and regression discontinuity: simulate a panel with a known effect, upload a CSV, or pull a live World Bank country panel and name the treated country.
World Bank API · cluster-robust SEs · wild cluster bootstrap · Goodman-Bacon decomposition · Sun–Abraham · placebo inference · IK bandwidth
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. When a policy reaches some places and not others, the question is what would have happened without it. These four methods each build a counterfactual from the untreated units and measure the gap. The simulator plants a known effect so you can watch each estimator recover it, or fail when its assumption is violated.
DiD. Two-way fixed effects removed by alternating demeaning, OLS on the residualised variables by Cholesky, cluster-robust sandwich with the fixest small-sample convention, t on G−1 degrees of freedom. A wild cluster bootstrap p-value with the null imposed and Rademacher weights, over every sign pattern when there are 11 clusters or fewer. With staggered adoption, the Goodman-Bacon (2021) decomposition of the coefficient into its two-group comparisons and their weights.
Event study. Binned relative-time indicators with k = −1 omitted and a pre-period Wald test; the Sun–Abraham (2021) option averages cohort × relative-time coefficients with cohort-share weights and delta-method standard errors.
Synthetic control. Simplex weights by accelerated projected gradient with the exact projection of Duchi et al. (2008); placebo-in-space RMSPE ratios; an over-fitting warning when donors outnumber pre-periods.
Regression discontinuity. Local linear fits with a triangular kernel and HC1 errors, the Imbens–Kalyanaraman (2012) plug-in bandwidth, a bandwidth-sensitivity band, placebo cutoffs and a McCrary density test.
Verified: TWFE coefficient and SE match an explicit-dummies regression written separately in Python to six and four decimals; the wild bootstrap p-value matches a Python loop over every sign pattern and, up to its treatment of ties, the wildboottest package; the Bacon weights match weights computed from subsample variances and add back to the coefficient; the RD simulator's interval covers the planted jump.
Known limits. The regression discontinuity interval is the conventional one: the bias-corrected interval of Calonico, Cattaneo and Titiunik is not implemented, and the McCrary density test is a simplified version on binned counts. Standard errors are clustered at the unit level. The wild cluster bootstrap gives a p-value and no interval, and with G clusters it cannot go below 2/2G. The Goodman-Bacon decomposition needs a balanced panel, treatment that switches on once and stays on, and no unit treated from the first period; it has no covariates. Synthetic control uses pre-period outcomes as its only predictors, and when donors outnumber pre-periods the weights are not unique and the placebo p-value should not be read. The World Bank panel shows the mechanics and supports no causal claim by itself.
What POVCAL did with grouped data: Lorenz curves fitted to decile shares pulled live from the World Bank's Poverty and Inequality Platform, then Gini, Theil, Atkinson, Palma and FGT poverty at any line, the Datt–Ravallion decomposition and a growth incidence curve.
PIP API · GQ and Beta Lorenz curves · Shapley decomposition
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. Published inequality data usually comes as ten numbers, the share of income going to each tenth of the population. From those ten numbers and the average, this page reconstructs the whole distribution and reads off how many people fall below any poverty line, how unequal the country is, and whether growth between two surveys reached the poor. One click compares its answers with the World Bank's own.
Lorenz curves after Datt (1998): General Quadratic and Beta forms fitted by OLS to the cumulative decile points, validity checked on a 2,000-point grid and against the theoretical conditions; the valid curve with the smaller squared error wins.
Measures from the fitted quantile function y(p) = μ·L′(p) on a 4,000-point grid: Gini, Theil T, mean log deviation, Atkinson at three aversions, Palma, P90/P10, median; headcount by bisection, FGT1 and FGT2 by integration, Watts.
Change over time: Datt–Ravallion growth and redistribution with its residual, the Shapley version without one, and the Ravallion–Chen growth incidence curve.
Verified: on India 2022 the page gives Gini 0.256 and a $3.00 headcount of 5.1% against PIP's microdata 0.255 and 5.3%; the GQ results match Datt's closed forms to four decimals.
Known limits. Ten grouped points determine three parameters, so the fitted curves are least reliable in the tails, and the Atkinson(2) index and the ends of the growth incidence curve depend on those tails. PIP labels each survey as income or consumption and as national, urban or rural; an income survey and a consumption survey should not be compared as if they measured the same thing.
The Alkire–Foster index from your own file: one row per person, a 0 or 1 for each deprivation, your weights and cutoff. Headcount, intensity and the adjusted headcount; what each indicator and each group contributes; the shares who are vulnerable and in severe poverty; and the same figures at other cutoffs.
In plain words. A household can be above an income line and still have no toilet, no school-going child and a malnourished one. This page counts people who are deprived in several such things at once, says how deprived they are, and shows which deprivations and which groups account for most of the total.
A person's score is the weighted sum of their deprivations, with weights rescaled to add to one; poor at or above the cutoff k; M₀ = H × A (Alkire and Foster 2011).
Indicator shares from censored headcounts, which weighted and summed give M₀; group shares from population share times the group's M₀.
A score that reaches the cutoff only up to floating-point rounding counts as reaching it, so 0.7 + 0.1 + 0.1 + 0.1 meets a cutoff of 1.
Verified: a four-person case worked by hand; every figure on the simulated example against a Python calculation in exact fractions, for three states and five cutoffs; both decomposition identities hold.
Known limits. Each 0 or 1 is taken as given: building the indicators from a survey is the hard part and happens before the file is made. A row with a missing indicator is left out, where the global index applies its own rules. There are no standard errors, so a gap between small groups may be noise. Only M₀ is computed. The example uses NITI Aayog's twelve indicators and weights, and its three states are given the headcounts NITI Aayog reports for Bihar, Odisha and Kerala in 2019-21; the people in it are invented. The results have not been compared with a published index computed from survey microdata.
Oaxaca–Blinder decomposition of a wage gap on your own microdata: how much is education, experience, sector and location, and how much is the same characteristics being paid differently. Four reference-coefficient choices, three-fold form, bootstrap standard errors.
HC1 regressions · Jann (2008) pooled reference · bootstrap
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. Women earn less than men in every labour force survey India has run. This page splits the gap into the part that comes from differences in what women and men bring to the market and the part that comes from how the market pays them for it, and shows how much the answer depends on choices that are usually hidden.
Two-fold: (X̄A − X̄B)′β* + [X̄A′(βA − β*) + X̄B′(β* − βB)], with β* from the pooled regression with a group dummy (Jann 2008), the pooled regression without it (Neumark 1988), or either group.
Three-fold: endowments, coefficients and interaction. Detailed contributions per variable, with the Oaxaca–Ransom warning that dummy-variable rows depend on the base category.
Bootstrap standard errors resample workers and rerun both regressions and the decomposition each time; text columns are expanded to dummies against their most common category.
Verified: totals reproduced exactly by an independent plain-Python implementation on the same simulated sample.
Known limits. It decomposes the gap in mean wages and says nothing about the gap at other points of the wage distribution. The unexplained contribution of each dummy variable depends on which category is the base (Oaxaca and Ransom 1999); the totals do not. Rows with a missing value are dropped, with a count.
Who pays a tax and who receives a transfer, from a table of income groups: the concentration coefficient and Kakwani index of each instrument, the fall in the Gini split into vertical equity and reranking, and how many Gini points each tax or transfer accounts for with the others in place. Opens on MoSPI's HCES 2023-24: the free food and goods from welfare schemes across rural India's states.
In plain words. A subsidy or a tax has a total in the budget, and it also falls on some people more than others. Type in what each income group pays and receives, and the page says whether each item favours the poor or the rich, how much the whole set narrows the gap between them, and which item does most of the narrowing.
Groups are ranked by income before taxes and transfers. A Gini or a concentration coefficient is one minus twice the area under the curve through the group points, weighted by population.
Kakwani index CT − GX for a tax and GX − CB for a transfer; redistributive effect GX − GN, split into vertical equity and reranking; vertical equity printed a second time from (t·KT + b·KB)/(1 − t + b).
The marginal contribution of an instrument is the Gini of final income without it, less the Gini with it; the page flags an instrument whose Kakwani index and marginal contribution disagree.
Verified: every coefficient on the example matches a Python calculation by a different formula (mean absolute difference, covariance with the mid-rank) to ten decimals; Kakwani's and Lambert's identities hold; a case built to rerank gives 0.25, 0.13 and 0.08.
Known limits. Everyone in a group is treated as having the group's mean income, so every Gini is lower than microdata would give and reranking inside a group cannot be seen. The table is taken as given: who bears an indirect or a corporate tax is an assumption made before it is filled in. There is no behavioural response. Services such as schooling and health care count only if they have been valued and entered as transfers. The results have not been compared with a published incidence study, and the example describes no country.
How strong a left-out variable would have to be to overturn a regression estimate. From a coefficient, its standard error and the degrees of freedom: the Cinelli–Hazlett robustness value, the partial R² of the treatment, and the estimate that would remain if the confounder were as strong as a covariate you name.
Cinelli and Hazlett (2020) · partial R² · bounds from a benchmark covariate
First committed November 2026.
Open the tool →
In plain words. Every regression that claims a cause leaves something out. This page does not ask whether something was left out. It asks how much the left-out thing would have to explain, of both the treatment and the outcome, before the result disappears, and it lets you compare that with a variable you did measure.
The robustness value is ½(√(f⁴ + 4f²) − f²) with f = q|t| ÷ √df. At a significance level, f is reduced by the critical t at df − 1 over √(df − 1), and the second bound of the 2020 paper takes over when the estimate is precise enough for it to bind.
Student's t by the continued fraction for the incomplete beta function, and its quantile by bisection.
A confounder k times as strong as a covariate is turned into two partial R² values with the bounds in section 4.4 of the paper, and then into an adjusted estimate, standard error, t and interval.
Verified: the Darfur example returns the 13.9%, 7.6% and 2.2% the paper prints and its adjusted estimate of 0.0752 with interval 0.032 to 0.118; t quantiles match scipy to nine decimals; the bounds match a second implementation in Python.
Known limits. One linear regression coefficient with conventional standard errors. With clustered or robust errors the page uses the t-statistic and degrees of freedom you enter and makes no further adjustment. It does not cover instrumental variables, logit or probit. The robustness value describes the estimate and says nothing about whether such a confounder exists. Oster's δ is not computed.
The jump in an outcome at a threshold, such as a test score, an age or a vote share. A local linear fit on each side at the MSE-optimal bandwidth, with the robust bias-corrected interval, as the rdrobust package computes it. Load a CSV, or start from the Lok Sabha example: did a party that barely won a seat in 2019 hold it in 2024?
Calonico, Cattaneo and Titiunik (2014) · mserd bandwidth · nearest-neighbour variance · GPL-3.0 port of rdrobust
First committed November 2026.
Open the tool →
In plain words. When a programme goes to everyone above a cut-off, the people just below it are the closest thing to a control group. The page fits a line on each side close to the cut-off, measures the gap where they meet, and says how sure it can be about that gap.
A JavaScript port of rdrobust 2.1.1's default path: sharp design, local linear with a triangular kernel, the three-step MSE-optimal common bandwidth with regularisation on standardised variables, nearest-neighbour residuals with three matches, and the mass-point adjustment.
The bias correction subtracts a local quadratic estimate of the bias at bandwidth b, and the robust standard error includes the variance of that correction.
A table of estimates at half to twice the selected bandwidth, and a chart of counts near the cutoff.
Verified: bandwidths, all three estimates, standard errors, p-values and intervals match rdrobust 2.1.1 to 1e-8 on seven data sets: Lok Sabha seats from 2019 to 2024, the US Senate data, a simulated design, integer test scores with heavy ties, data with ties just under rdrobust's mass-point threshold, a sparse discrete running variable and a straight line where a pilot bandwidth is capped.
Known limits. Sharp designs only: no fuzzy or kink designs, covariates, clusters, weights, other kernels or other bandwidth rules. The density chart is a picture and not the Cattaneo, Jansson and Ma test. The bins in the plot are for display. The code is GPL-3.0 because it ports rdrobust; the rest of the site is MIT.
02
Women & climate
The evidence that decides women's working lives, pulled live
Two things I work on most, wired to public data that updates on its own.
Women's health, work, assets, agency and safety across India's states and the five NFHS rounds, pulled live from the DHS Program API: state rankings with change since the previous round, and who is behind by wealth, residence, education and age.
In plain words. Pick anaemia, bank accounts, spousal violence, child marriage or any of twenty indicators and see every state's number, how far it moved since the last survey, and whether the poorest or least educated women are the ones still behind. Nothing is typed in by hand: every figure comes from the survey's own API with its sample size.
Pulls api.dhsprogram.com/rest/dhs/data for India, all rounds, all breakdowns, and resolves NFHS-5's nested regions and renamed states before matching across rounds.
The API carries sample sizes but not NFHS's published confidence intervals, so the page draws Wilson intervals on the unweighted n inflated by a design effect the reader sets, and labels them approximate.
Says when a module has no all-India total in the API (domestic violence) rather than inventing one.
Verified: anaemia among women renders 57.0% for NFHS-5 and 53.1% for NFHS-4, matching the published fact sheets.
Known limits. The DHS API does not carry the design-based confidence intervals that NFHS publishes in its reports. The intervals drawn are Wilson intervals on the unweighted sample size, inflated by a design effect the reader sets (1.5 by default), and they are approximate. Some modules, the domestic violence module among them, have no all-India total in the API.
Hour-by-hour heat stress for outdoor workers from live weather: WBGT for any place in India this week, the occupational work–rest limits by workload, safe working hours per day, wages lost, and how the count of dangerous-heat days has changed since 1991.
In plain words. Heat takes hours and wages from outdoor workers long before it puts anyone in a clinic. The people who work through an Indian summer, on farms, at kilns, on construction sites and on public-works schemes where women are most of the workforce, lose hours and wages as the air gets hotter and wetter. This page says which hours are safe to work this week, what the lost hours cost, and whether the summers are getting worse where you are.
WBGT in the sun from the Australian Bureau of Meteorology approximation (0.567·T + 0.393·e + 3.94); in shade and at night from Stull's natural wet-bulb, 0.7·Tw + 0.3·T.
Each hour gets the largest work allocation the ACGIH threshold limit values (acclimatised) or action limits (unacclimatised) permit for the chosen workload; hours lost are summed over the workday and priced at the wage you enter.
Thirty-five years of daily maxima and mean humidity from the ERA5-based archive give March–June counts of days over the continuous-work and almost-no-work limits, with a least-squares trend and its 95% interval.
Verified: 35 °C at 50% humidity gives WBGT 34.8 °C, matching the Bureau of Meteorology's tables; the allocation function returns the ACGIH table's values.
Known limits. The wet-bulb globe temperature in the sun is an approximation that assumes moderately high radiation and light wind, so it is a screening value and no substitute for a measurement on site. Reanalysis cells are roughly 10 km wide, so a city's series is an area average and understates the urban heat island. The work limits are for healthy, hydrated, lightly clothed adults and do not cover pregnancy, chronic illness or protective clothing.
What unpaid domestic and care work is worth at market wages, for women and men in every Indian state. Minutes a day from the Time Use Survey, casual and regular wages from the Periodic Labour Force Survey, for 2024 and for 2019, with the two years set side by side in 2024 prices and every step from wage to hourly rate left open to change.
TUS 2024 unit-level data · TUS 2019 report · PLFS wages · CPI · replacement cost
First committed November 2026.
Open the tool →
In plain words. Women in India spend about five and a half hours a day cooking, cleaning and caring for others without pay, and men about forty minutes. This page asks what those hours would cost if someone were paid the going wage in that state to do them, and shows the answer for one person for a day and for a year.
Minutes are per person per day for ICATUS major divisions 3 and 4, with a time slot shared equally among the activities reported in it, computed from the unit-level data with the survey multipliers for 36 states and union territories.
The hourly rate is the casual daily wage over the hours the same workers reported on a casual day, or the regular monthly wage over their hours in the survey week times 52 ÷ 12, both from the PLFS unit-level data. Value is minutes ÷ 60 × rate, and × 365 for a year. A wage from fewer than 30 workers in the sample is not used.
One wage for both sexes by default. Each sex at its own wage is an option, and it builds the wage gap into the value.
For 2019 the minutes and their standard errors are read from the survey report, and the wages are computed from the PLFS unit-level data for January to December 2019. 2019 rupees are restated with the all-India CPI. A change in minutes is marked clear at 1.96 standard errors.
Verified: the all-India minutes computed from the unit-level data equal the eight figures MoSPI publishes; every wage on the page equals the series as read, and the regular wages recomputed from the unit-level data agree with them to 0.02%; the valuation is worked by hand. For 2019: the all-India minutes equal the four MoSPI publishes, the wages computed by quarter agree with MoSPI's to 0.15% for regular and 1.75% for casual work, and the comparison is checked against values worked in Python.
Known limits. A generalist replacement cost: care of a child is priced like sweeping. Small states rest on few households, and the standard errors shown ignore stratification. Eighteen casual-wage cells and two regular-wage cells rest on fewer than 30 workers and give no value: the published casual wage for women comes from one woman in Chandigarh and one in Mizoram, and Lakshadweep has none. A regular employee's hours are those in all work in the survey week, which includes any second job. No state total is given, because that needs population by age. The 2019 unit-level file has no times in it, so the 2019 minutes are the report's, in whole minutes, with the survey office's standard errors, which are larger than the ones computed here for 2024; the test of a change mixes the two. The 2019 wage cells count every urban visit and the 2024 cells the first visit only, so a state's regular wage can move with the sample. One national price index is used for every state.
03
Field & appraisal
What a monitoring and evaluation team needs before, during and after
Planning a trial, checking the data that comes back, and putting a number on whether it was worth it.
Power and minimum detectable effect for individual and cluster designs, with intra-cluster correlation, covariate adjustment, attrition, take-up and multiple outcomes; then a seeded, stratified randomiser for a baseline CSV with a balance table and a randomisation record.
Bloom / Duflo–Glennerster–Kremer formulas · permuted blocks · Welch and joint F balance tests
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. Before a trial starts, two questions: how small an effect this sample could detect once villages cluster, some people drop out and not everyone takes the programme up; and who gets treatment. The page answers the first with curves you can move, and does the second with a draw that is stratified, reproducible from a seed, and documented for the pre-analysis plan.
MDE = (t1−α/2 + t1−β)·√[1/(P(1−P))]·√[σ²(1−R²)·(1+(m−1)ρ)/N], t quantiles from the regularised incomplete beta function; required sample by bisection.
Randomisation within strata by permuted blocks with a seeded generator, allocation remainders carried across strata so small strata still add up to the target split, cluster-level draws supported.
Balance table with Welch p-values and a joint F-test; a randomisation record with the seed, algorithm and a SHA-256 digest of the input file.
Verified: MDE 0.177 for N = 1,000 matches the closed form; 18/18 cluster splits and 40/30/30 three-arm splits come out exact.
Known limits. The power formula assumes clusters of equal size and one level of clustering. Several primary outcomes are handled by Bonferroni, which is conservative when the outcomes are correlated. Attrition is applied as one share of the whole sample. The balance table tests one covariate at a time, so about one in twenty will differ at the 5% level by chance.
Sample size for a survey estimate or a change between two rounds, with design effect, finite population correction and non-response; proportional, Neyman and equal allocation across strata; then a seeded draw of clusters with probability proportional to size from your own frame, with the weight each interview carries and a sampling record.
In plain words. A survey that describes a population needs three decisions before fieldwork: how many households to interview, how to divide them between places, and which villages to go to. The page works each one out with the arithmetic shown, and draws the villages so that larger ones are more likely to be chosen and the draw can be repeated from its seed.
n₀ = z²p(1−p)/e² or z²σ²/e², corrected for a finite population, multiplied by 1 + (m−1)ρ and divided by the response rate; for a change between two rounds, (z1−α/2 + z1−β)² times the summed variances over the squared difference. Normal quantiles by bisection on the power series of the distribution function.
Allocation in proportion to Nh, to NhSh (Neyman) or equally, with a minimum and the stratum population as bounds, rounded by largest remainder, and the standard error of the stratified mean under each.
Systematic PPS in file order, with certainty selections removed and the interval recomputed; a start for each stratum from a seeded generator; weights as the inverse of the two-stage probability; a record with the seed and a SHA-256 digest of the frame.
Verified: sizes, allocations and standard errors match values computed separately in Python (385 for p = 0.5 and e = 0.05; 833 with a design effect of 1.95 and 90% response); the draw matches a second implementation over several hundred random frames, selection frequencies match k·Mi/M, and the weights add back to the frame total.
Known limits. The design effect 1 + (m−1)ρ assumes clusters of equal size and leaves out the loss of precision from unequal weights. The finite population correction is applied before the design effect; some texts apply them in the other order. A comparison between two rounds treats them as independent samples, so it overstates what a panel of the same households needs. Allocation is for one outcome. Systematic selection gives no joint selection probabilities, so variance has to be estimated by the with-replacement approximation. The page draws clusters; listing and choosing households within one is fieldwork.
Two checks on a trial's results. P-values for a family of outcomes adjusted by Bonferroni, Holm, Benjamini–Hochberg and sharpened q-values, with a count of what still stands. And Lee and Manski bounds on the effect when the two arms lose different shares of their sample, with bootstrap intervals.
Holm · Benjamini–Hochberg · Anderson sharpened q · Lee bounds · Manski bounds
First committed November 2026.
Open the tool →
In plain words. Test twenty outcomes and one will look like a success by luck alone. The first tab says which results survive once the number of tests is allowed for. The second asks what happens if the people who dropped out of one group differed from those who dropped out of the other, and gives the range the true effect could lie in.
Holm by a running maximum of p·(M − rank + 1), Benjamini–Hochberg by a running minimum of p·M/rank, and the sharpened q-value as the smallest level on a 0.001 grid at which the two-stage Benjamini–Krieger–Yekutieli procedure rejects.
Lee bounds trim the arm that kept more people by the difference in response rates over the higher rate, with a fractional weight on the observation at the cut; Manski bounds fill missing outcomes with the lowest and highest possible values.
Intervals by a seeded percentile bootstrap that resamples people within each arm with their missing outcomes.
Verified: Bonferroni, Holm and Benjamini–Hochberg match statsmodels on three families; sharpened q-values match a separate Python routine; the Lee bounds match cases worked by hand and a Python routine by a different method on the simulated example, where they contain the true effect.
Known limits. The adjustments take p-values as given and ignore how the outcomes are correlated, so Holm is conservative when they move together; Westfall–Young and Romano–Wolf need the data. Leaving tested outcomes off the list makes every adjusted value too small. The Lee bounds assume treatment moves people only into response or only out of it, which cannot be tested here, and use no covariates to tighten them. The bootstrap interval is wider than the Imbens–Manski interval and is wrong for a cluster-randomised trial, because it resamples individuals.
The checks a monitoring team runs before anyone estimates anything: duplicate and near-duplicate interviews, Benford's law, age heaping, straightlining, interview length and timing, missingness, and an enumerator profile that says who to call back.
Nigrini MAD · Whipple and Myers · Welch z-scores · Markdown and CSV export
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. Field surveys go wrong in predictable ways: an interviewer copies yesterday's form under a new number, invents incomes, rounds every age to a five, answers a whole block with the same tick, or finishes a forty-minute interview in eight. Drop in the CSV and the page finds each pattern, names the enumerator, and writes the call-back list.
Exact duplicates by hashing every column except ID and timestamps; near-duplicates by pairwise comparison within an enumerator at 90% identical fields.
Benford judged by Nigrini's mean-absolute-deviation cut-offs, per-enumerator by χ² p-value because MAD is unreliable at small n; Whipple's index on the UN scale and Myers' blended index; straightlining against a chance benchmark.
Every metric z-scored across enumerators; two flags puts a name on the list. Nothing is uploaded anywhere.
Verified: the seeded demo plants six problems across five enumerators and the audit recovers all six, attributed to the right people.
Known limits. Every verdict is a threshold on a statistic. A flag is a reason to call back and proves nothing about an enumerator. Column roles are guessed from header names and value patterns and need checking before the report is read. Benford's law is offered only for amounts whose 5th to 95th percentile spans at least fifty-fold, because it does not apply to bounded numbers.
Net present value, benefit–cost ratio, IRR, payback and cost per outcome for a programme's cost, benefit and outcome streams, with Monte Carlo on every input and a tornado chart of which assumptions drive the answer.
Triangular draws · bisection IRR · one-at-a-time tornado
First committed September 2026, last changed November 2026.
Open the tool →
In plain words. Every donor asks whether a programme was worth it; almost nobody shows how sure they are. Enter what it costs, what it returns and how confident you are of each, and the page gives the usual numbers plus the probability the programme pays off and the two or three assumptions on which that hangs.
PV by year with year 0 undiscounted; IRR by bisection with a warning when net flows change sign more than once; cost per outcome shown with outcomes undiscounted and discounted.
Monte Carlo draws each stream from a triangular distribution on its range and the discount rate uniformly; the tornado sets each input to its low and high with everything else fixed.
Streams are independent by design, and the page says what that leaves out.
Verified: PV, NPV, BCR, IRR and cost per outcome on the illustrative example reproduced to the cent in an independent Python calculation.
Known limits. The simulation treats cost and benefit streams as independent, so inputs that move together would give a wider distribution than the one shown. Benefits are not weighted by who receives them. When the net flow changes sign more than once, the internal rate of return may not be unique.
Height-for-age, weight-for-height, weight-for-age and BMI-for-age for children under five, against the WHO 2006 Child Growth Standards. One child at a time, or a pasted list with the share stunted, wasted and underweight.
In plain words. A child's weight and height mean little without knowing what healthy children of the same age and sex weigh and measure. This page places a child against the World Health Organization's standard and says how far below or above the middle the child is, in the unit nutrition surveys use.
z = ((y ÷ M)L − 1) ÷ (L × S) with L, M and S for each day of age from 0 to 1,856 and each 0.1 cm of length or height, from WHO's expanded tables.
Beyond three standard deviations the weight-based indicators use WHO's rule: one unit for each further distance equal to the gap between the second and third standard deviation.
Length under 24 months and height from 24, with 0.7 cm added or taken off for a child measured the other way. Scores outside WHO's plausibility limits are flagged and left out of prevalence.
Verified: for four rows of each of WHO's ten tables, all nine printed values from −4 to +4 standard deviations return their own number to within 0.01, 360 values in all; five children match a second implementation in Python.
Known limits. Birth to five years only: the 2007 reference for ages 5 to 19, head circumference and arm circumference are not included. There is no field for oedema, and a child with bilateral oedema is severely malnourished whatever the weight. Age entered in months is converted at 30.4375 days a month. Prevalence from a list is unweighted and has no confidence interval.
Restate a rupee amount at the prices of another month, calendar year or financial year with the all-India Consumer Price Index, and move between rupees and 2021 PPP dollars, the unit of the World Bank's poverty lines.
MoSPI CPI, base 2012 joined to base 2024 · World Bank 2021 PPP
First committed November 2026.
Open the tool →
In plain words. A thousand rupees in 2013 bought what nearly two thousand buys now. This page does that sum for any two months or years since 2013, and it turns rupees into the international dollars in which global poverty lines are written.
Amount × index of the target period ÷ index of the source period. A year is the average of its twelve months, and a year with a month missing is not offered.
The base-2012 series ends in December 2025 and the base-2024 series begins in January 2025. They are joined at the ratio of their 2025 averages.
A 2021 PPP dollar is the amount restated at 2021 prices and divided by the World Bank's 2021 factor for household consumption, or for GDP.
Verified: year-on-year inflation recomputed from the index equals MoSPI's published rate for one month in each of twelve years and for September 2026 across the join; every conversion matches a calculation in Python.
Known limits. All-India, combined, general index only: no rural, urban, state or food series, and nothing before January 2013. The two series have different baskets, and their ratio moves between 1.894 and 1.903 across 2025, so a conversion across January 2026 is uncertain by about a quarter of one per cent. The PPP factor is a national average and knows nothing of price differences within India. The data is a snapshot read on 11 November 2026 and does not update itself.
04
Law & economics
Where a court or a statute has turned a valuation into a schedule
A schedule can be coded, and the code can cite the paragraph. Where the law is unsettled, the page says so and offers both readings.
Fatal-accident awards under the Motor Vehicles Act, step by step with the authority for each line: the Sarla Verma multiplier, Pranay Sethi future prospects and conventional heads with their 10% triennial enhancement, consortium per dependant, and interest.
First committed September 2026, last changed October 2026.
Open the tool →
In plain words. When someone dies in a road accident, tribunals value the income the family has lost using rules the Supreme Court has fixed. Enter the age, income and family, and the page produces the award the way a tribunal would write it, with the case and paragraph next to every figure.
Sarla Verma paras 30–32 and 42 (deductions, multiplier table); Pranay Sethi para 61 (future prospects by employment and age, conventional heads, 10% every three years from 31 October 2017); consortium to each dependant per Magma (2018), Somwati (2020) and Sameem Begum (2026), with the contrary 2023 line offered too.
Enhancement computed as 1.1⌊months/36⌋, which reproduces the ₹16,500 / ₹44,000 and ₹18,150 / ₹48,400 figures the courts have applied since.
Verified: reproduces a published worked example (₹8,64,864 loss of dependency) and the ₹48,400 consortium applied by the Supreme Court in August 2026.
Known limits. Fatal-accident claims under section 166 only. Injury claims, contributory negligence, the section 164 no-fault scheme and a child's death are outside it. The Sarla Verma table stops at age 70, so a multiplier must be entered above that. Where benches differ, on consortium to each dependant or once and on the date the 10% enhancement is measured to, the page states the choice it makes. The most recent decision it cites is Sameem Begum v K. Venkat Swamy (Supreme Court, 14 August 2026). Not legal advice.
The RFCTLARR Act 2013 formula line by line: section 26 market value, the First Schedule multiplication factor, section 29 assets, 100% solatium, the 12% additional amount, and every Second Schedule rehabilitation entitlement, with a comparison to the 1894 Act.
sections 26, 29, 30 · First and Second Schedules · annuity present value
First committed September 2026.
Open the tool →
In plain words. When the state takes land, the 2013 Act says exactly how the price is built: the best of three market benchmarks, doubled or less depending on how rural the land is, plus what stands on it, plus the same again as solatium, plus 12% a year for the wait, and then a separate list of what each displaced family is owed. Enter the land and the family; the page does the sum and names the section beside every line.
Market value as the higher of the circle rate, the average of the top 50% of sale deeds and any consented amount (section 26); the state's factor for rural land; assets under section 29; solatium and the 12% addition under section 30.
Second Schedule items 1 to 10 with the Act's minimums; the annuity option valued as a present value on a discount rate and CPI indexation the reader sets, next to its nominal total.
The unsettled base for the 12% addition (bare market value or multiplied value) is left to a selector, so the reader chooses rather than the page.
Verified: every First Schedule line reproduced by hand on the default inputs; Second Schedule amounts checked against the schedule text.
Known limits. It applies the central Act's minimums and the multiplication factor the reader enters. States have amended the Act, exempted categories of project, notified their own factors and raised Second Schedule amounts, and none of that is built in. Sections 41 and 42 (Scheduled Areas), section 46, section 80 (interest on delay) and income tax beyond the section 96 exemption are outside it. Not legal advice.
Translates Hindi Supreme Court and High Court petitions into formal legal English, so yaachikaakarta becomes "Petitioner" and anuchhed becomes "Article", and the output reads like it was drafted in English.
Sarvam AI · GPT-OSS 120B via Groq · Netlify Functions
First committed March 2026, last changed September 2026.
Open the tool →
In plain words. Paste the Hindi text of a petition and get back English that a lawyer would recognise as a petition, with the right terms of art, rather than a literal translation.
Text is chunked and sent to sarvam-translate:v1 in formal mode, then revised by GPT-OSS 120B on Groq with a prompt that fixes legal terminology.
Keys stay server-side in a Netlify Function; the browser only talks to that function. Stage: prototype, awaiting a blind comparison against a human legal translator.
Known limits. A prototype. The output has not yet been compared blind against a human legal translator. It works from Hindi to English only. The text of the document is sent to Sarvam AI and Groq; the file itself stays in the browser. On scanned pages the result depends on the quality of the scan. A lawyer should review the translation before it is filed anywhere.
A candidate's running account under section 77 of the Representation of the People Act: entries by head against the Rule 90 ceiling, burn rate and a projection to counting day, the section 78 lodging deadline, and flags for cash above the threshold, spending outside the period and expenditure by others.
In plain words. Every candidate must keep a day-by-day account of what the campaign spends, and the total has a legal cap. Type in each bill as it comes; the page keeps the total, shows how fast the money is going, says where the campaign will land on counting day at that pace, and tells you the last day to file the account. Nothing leaves your browser.
Ceiling pre-filled by house and state from the Rule 90 amendment of 6 January 2022 (₹95 / ₹75 lakh; ₹40 / ₹28 lakh), editable because the state banding is reproduced from the notification pattern rather than read from each notification.
Accounting period from nomination to declaration, both inclusive; burn rate over elapsed accounting days; the projection is linear; the step chart marks the poll day. A hand-written CSV parser handles quoted commas so descriptions round-trip.
Verified: the example ledger's fourteen entries sum to ₹21,01,000 by hand; a ₹12,000 cash entry raises the flag.
Known limits. The ceilings follow Rule 90 as amended on 6 January 2022 and the state bands of the 2014 and 2022 notifications; check the notification for the election in hand and edit the ceiling if it differs. The page does not apply the district rate card. The cash threshold is the Commission's instruction as commonly stated, and the compendium of instructions controls. Not legal advice.
Beneficiaries × uptake × unit cost for each promise, with low and high ranges, against a state's revenue receipts, expenditure, GSDP and fiscal deficit: a multi-year path against the 3% norm, a Monte Carlo band and a tornado of which assumption matters.
triangular Monte Carlo · one-at-a-time tornado · RBI State Finances inputs
First committed September 2026.
Open the tool →
In plain words. A party promises free electricity, or a monthly transfer to women, or a loan waiver. Each promise has a cost: the number of people covered, times the share who will claim, times the amount each gets. This page adds those costs up and sets the sum beside the state's own budget, so you can see whether the promises cost a tenth of the revenue or half of it, and what the deficit would be if they were simply borrowed.
Each promise carries low, likely and high for beneficiaries, uptake and unit cost; recurring promises grow at a unit-cost rate, one-off promises are spread over their years. Aggregates are entered by hand from the state budget or the RBI study; the default is an illustrative state, labelled as such.
4,000 draws from independent triangular distributions give the 5th to 95th percentile of the first-year bill and the share of draws that breach the deficit norm; the tornado moves one input at a time from low to high and ranks by swing.
Verified: the six example promises reproduce by hand (₹31,500 crore, 15.7% of revenue receipts, deficit 3.0% to 5.0% of GSDP).
Known limits. It leaves out the revenue side of a promise, any behavioural response and the Centre's share in centrally sponsored schemes. The simulation treats promises as independent, so its band is narrower than reality. The state's budget figures are typed in by hand for one year, and the deficit path is a baseline scaled with GSDP and should not be read as a forecast.
Interest the way Indian statutes prescribe it, with the section quoted: MSMED Act s.16 (three times the bank rate, monthly rests), CPC s.34 on decrees, Arbitration Act s.31(7) on awards, the Negotiable Instruments Act limits on a bounced cheque, and plain simple or compound with the schedule.
First committed September 2026, last changed October 2026.
Open the tool →
In plain words. When a buyer pays a small supplier late, or a court decrees a sum, or an arbitrator awards one, the law fixes the interest, and the rules differ. Pick the situation, enter the amount and the dates, and the page computes the interest month by month with the section it is applying printed beside the working.
MSMED: the 45-day cap on the agreed period, interest from the day after, compound with monthly rests at 3 × the RBI bank rate the reader enters. CPC: three simple-interest periods with the 6% post-decree ceiling and the commercial-transaction proviso. Arbitration: post-award at current rate + 2 on the sum plus pre-award interest (Hyder Consulting, 2015), with the principal-only alternative shown.
Every compounding schedule prints each period's opening balance, interest and closing balance; stub periods are simple; day count actual over 365.
Verified: all five default cases reproduce in Python to the rupee (MSMED ₹86,430; decree ₹2,65,315; award ₹8,74,473).
Known limits. The RBI bank rate is typed in as a dated list; the page does not fetch it. Section 16 of the MSMED Act applies only where the supplier is a registered micro or small enterprise. The section 138 figures are ceilings and a common working, and compensation is in the court's discretion. The limitation periods under section 142 are not computed. Not legal advice.
A year of hourly PM2.5, PM10 and NO₂ for any Indian city or coordinate, live from Open-Meteo's CAMS archive, reduced to what the standards ask: annual means against WHO 2021 and NAAQS 2009, days over each 24-hour limit, month by month, and the cigarette equivalent.
Open-Meteo air quality API (CAMS) · WHO 2021 · NAAQS 2009 · Berkeley Earth rule
First committed September 2026.
Open the tool →
In plain words. Pick a city. The page fetches every hour of the past year's fine-particle pollution, works out the daily averages, counts how many days broke the Indian limit and the WHO guideline, and says how many cigarettes a year of that air is comparable to. The figures are model estimates rather than readings from a roadside monitor, and the page says so.
8,760 hourly rows fetched in one request with an IST timezone; daily means of 24 hourly values; a day breaches a 24-hour limit when its mean exceeds it; the cigarette equivalent is the sum of daily PM2.5 divided by 22.
Hand-rolled SVG for the daily line and the monthly bars with hover; tolerant of a series the API does not return.
Verified: a recorded Delhi year reproduces in Python (365 days, 86.2 µg/m³ annual mean, 260 days over India's 24-hour limit, 1,431 cigarette equivalents).
Known limits. The values are Copernicus CAMS model reanalyses and forecasts on a grid of roughly 11 km, served by Open-Meteo. They are smoother than a CPCB monitor beside a road and do not replace one. The archive starts in August 2022. The cigarette equivalent is Berkeley Earth's way of communicating exposure and is no dose-response model.
A representation, memorandum or petition drafted in the accepted form: addressee, subject, facts, grounds, prayer, annexures and a signatory sheet, in four variants from a municipal office to the Lok Sabha, with print, Word and Markdown export and a link that carries the draft to co-signatories.
Article 350 · House petition rules · .doc export without a library · draft encoded in the URL
First committed September 2026.
Open the tool →
In plain words. Officials read the shape of a petition before they read its words. Fill in who it goes to, what it is about, what happened, why they should act and what you want, add the names, and the page lays it out the way a clerk expects to see it, ready to print or send as a Word file.
Four templates share one form model; facts and grounds number continuously, the prayer restarts, annexures are lettered. The Word export is an HTML document served with Word's MIME type, which Word and LibreOffice open with the layout intact, so no library is needed.
The shareable link packs the draft into the URL fragment as base64url JSON, so a co-signatory sees the same draft with no server. The draft is also kept in local storage and can be exported as JSON.
Verified: the example renders every section and the signatory table headless; the House form switches opening, closing and countersignature line.
Known limits. It drafts representations, memoranda and administrative petitions. It does not draft a pleading: a writ petition, an appeal, an application under a statute or a plaint has its own form, court rules and verification. The guidance on petitions to a House describes general practice, so check the current rules of the House concerned. The Word download is an HTML file with a .doc extension.
A Word file set to a court's paper rules in the browser: A4, the prescribed margins, font, size and line spacing, with quotations and indents set smaller and single-spaced. Supreme Court, Delhi, Bombay and Gujarat presets, each with its circular quoted, and a before-and-after check read back from the new file.
SC circular 5.3.2020 · DHC PD 90/2022 · Bombay HC 2021 · Gujarat C.2002/2026 · OOXML rewritten in place
First committed September 2026, last changed October 2026.
Open the tool →
In plain words. Courts now want filings on A4 with a set font, size, spacing and margins, and a draft typed in Word's defaults meets none of them. Open the draft here, choose the court, and download a copy that does. The page shows what the document had, what the rule asks for, and what the new file has, and lets you say which indented paragraphs are really quotations.
The .docx is unzipped in the browser and its XML edited in place: page size and margins on every section (landscape sections stay landscape), fonts and sizes in the defaults, the styles and the text itself, with theme-font attributes removed so the new face wins. New elements go in the order the schema requires. Nothing is uploaded.
A value a rule does not state is left alone: Bombay prescribes font, size and inner and outer margins, so it gets mirrored margins and no line spacing. Quotations are found by indentation (net of any hanging indent) and style name, and the reader confirms each one.
Verified: a Letter-size, Calibri, 1.15-spaced test file with pasted Arial, a block quote, hand numbering and a landscape section comes out at A4, 4/4/2/2 cm, Times New Roman 14 at 1.5 lines, the quote at 12 single, with no schema-order violations.
Known limits. It takes .docx files and has four presets: the Supreme Court, Delhi, Bombay and Gujarat. A value a circular does not state is left as the document had it, so Bombay gets no line spacing and no top or bottom margin. The Supreme Court preset rests on two reproductions of the circular of 5 March 2020. The date and notification numbers quoted for Bombay are unconfirmed against the gazette. Quotations are found by indentation and style name, and the reader has to confirm each one.
Drop a PDF and get a page-turning book with a hard cover and facing spreads that flip under the mouse or a finger, then download it as one HTML file with the pages and the page-turn engine inside. The file works offline, on a phone, and on any web host. The PDF never leaves the browser.
PDF.js rendering in a Web Worker · StPageFlip · self-contained export with JPEG pages inlined
First committed September 2026.
Open the tool →
In plain words. The flipbook services charge a subscription, watermark the result and keep your file on their servers. This does the same thing in the browser: an annual report, a magazine or a child's picture book becomes a book you can leaf through, and the file you download needs nothing else to open.
Each PDF page is drawn to a canvas at the width you choose (1000 to 2400px) and stored as a JPEG at the quality you set; title and author are read from the PDF's own metadata. The book is a StPageFlip instance with hard cover, facing spreads, single pages on narrow screens, keyboard and thumbnail navigation.
Export fetches the page-flip library text and writes it into the file together with the page images as data URLs, so the result is one HTML document with no external requests; a 20-page A4 report at 1400px is about 2 MB.
Verified: a seven-page PDF generated headless renders in full, the title is read from its metadata, buttons, keys and thumbnails turn pages, and the exported file opens from disk with no network request and turns pages.
Known limits. Each page is stored as a JPEG image, so text in the exported book cannot be selected, searched or read by a screen reader, and links in the PDF do not work. The file grows with the page count: a 20-page A4 report at 1400 pixels comes to about 2 MB. The exported book works offline; this page needs a connection to load its two libraries.
06
Personal
Built for the two children in the house, and the shelves they read from
A Class 1 CBSE worksheet generator with a structured course beside it: English phonics and reading, Hindi, Maths and EVS. Fresh questions every time, on-screen marking with confetti, printable sheets with answer keys, and sixteen decodable readers with read-along audio.
First committed August 2026, last changed December 2026.
Open the app →
In plain words. A six-year-old's practice app. It never shows the same worksheet twice, it checks answers on screen, and its course introduces sounds before letters in the order that makes readable words fastest. Every lesson has a note for the grown-up on how to teach the rule.
36 activity types generated from rules, seeded per sheet so a printed answer key matches its worksheet; 162 lessons across four paths, each opening the next at 80%.
Decodable readers use only the sounds taught so far, with word-timed audio; installable PWA with a small service worker, progress stored on the device.
Known limits. Made for one six-year-old in Class 1 of a CBSE school, so the scope and the order follow his syllabus. Read-aloud sends the sentence to Sarvam AI through the site's server and works only at littlek.in and the Netlify address. Progress is stored on the device and does not move to another one. The daily reminder, if switched on, stores a push subscription on the server.
Year-round CBSE Class 8 revision: a mind map and notes for every chapter of science, maths, social science, English, Hindi, Sanskrit and computing, hundreds of questions with instant marking and explanations, printable worksheets, mock papers in the CBSE pattern, and a mistakes book. Plus a layer that flags where the textbook is wrong and says what to write in the exam anyway.
First committed August 2026, last changed November 2026.
Open the app →
In plain words. A thirteen-year-old's exam companion. Pick a chapter, read the notes, answer questions and see why an answer is right or wrong, then let the mistakes book bring back what you got wrong until the answers stick.
All content in one HTML file as structured data, a doodle per chapter as inline SVG; one marking engine across question types; spaced repetition on the mistakes book; content checked against the NCERT texts. Mind maps render twice from one data shape, an SVG tree where there is room and a nested list on a phone, with colour kept out of every text label so nothing can fail contrast in either theme. Corrections carry a dated source, a named case or a statute.
Known limits. It covers CBSE Class 8 only. The Sanskrit chapters follow Ruchira Part 3, while the board's circular Acad-48/2025 of 28 July 2025 names Deepakam; the CBSE tab in the app says so. English covers grammar, usage and writing and leaves out the literature reader. Progress and the mistakes book are stored on the device.
Catalogue the books in a house: add by ISBN or title with authors, year, subjects and covers from Open Library, or by hand, list or CSV; shelve them, track who is reading what and who borrowed which book, and see the shelves as a subject map. Kept in the browser only.
Open Library books and search APIs · Goodreads CSV import · force-directed subject map in plain SVG
First committed September 2026.
Open the tool →
In plain words. A house with a few hundred books has a library and no catalogue. Type an ISBN and the book appears with its cover; tell it which room it lives in and who has borrowed it; and look at the whole collection as a map of subjects rather than a list. The replacement for the family library that used to live on this page, without the family's data.
Records come from openlibrary.org's books and search endpoints (both send CORS headers); covers from covers.openlibrary.org. Duplicates are refused by ISBN or by title and first author. A hand-written CSV parser handles Goodreads' quoted ISBN cells.
The map is a seeded force layout (repulsion, spring on shared subjects, centring) run for 220 iterations in the page and drawn as static SVG with hover; subjects shared by more than forty books are ignored as uninformative.
Verified headless against recorded Open Library responses: ISBN lookup, title search, every view, filters and persistence.
Known limits. The catalogue is kept in this browser's local storage and nowhere else, so clearing site data deletes it; the JSON export is the only backup and the way to move it to another machine. Book details and covers come from Open Library and are as complete as its record. The subject map is capped at 300 books.
Method
Every tool can be read in full, and every result is checked against something outside the tool. How it's built sets out each test, the reference it is checked against and the faults it was proved to catch.
Most of these tools compute in the page, and what you type stays in your browser. These send something out: the Court Petition Translator sends the text of the document to Sarvam AI and Groq, the Household Library Builder sends the ISBN or title you look up to Open Library, and the read-aloud in Little K Learn & Play sends the sentence to Sarvam AI. The data tools ask a public API for a country, an indicator or a pair of coordinates.
Compute in the browserCholesky solves, alternating-projection demeaning, cluster-robust sandwiches, simplex projection, Lorenz-curve fitting, incomplete beta functions, numerical integration and bisection are written in plain JavaScript in the page. Survey data, panels and microdata never leave the machine.
Live where it should beFive public data APIs: the World Bank indicators and Poverty and Inequality Platform, the DHS Program, Open-Meteo and Open Library. The Court Petition Translator and Little K Learn & Play also reach a translation and a speech service through this site's server: the translator sends the text of the document to Sarvam AI and Groq, and the read-aloud sends the sentence to Sarvam AI.
Checked against something outsideTWFE against an explicit-dummies regression in Python; GQ poverty measures against Datt's closed forms and PIP's microdata; the wage-gap decomposition and the cost-benefit sums against independent implementations; Whipple, Myers and Benford against limiting cases; the legal calculators against published worked examples and the schedule text.
Written to be readEvery tool carries a method note beside its output, and where a method or a judgment is unsettled the tool says so. Source: github.com/Varnasr/Experiments, MIT.