Glossary
Short definitions of the terms Lacuna uses, each linked to the page that explains it.
Definitions here describe what the terms mean in Lacuna’s API. Where a term has a wider meaning in finance, only the narrower sense Lacuna uses is given. Each term links to the page that covers it.
Time and data
| Term | Meaning |
|---|---|
| Long-form panel | A table with one row per instrument per time, identified by that pair. Lacuna reads prices, signals and labels in this shape, never as a wide matrix. |
| Observation time | The time a measurement is recorded against, such as a bar’s close. The time column of prices and signals, and observation_time in labels. |
| Availability time | The earliest moment a record could have been known to you. A record may be used at a decision only if its availability time is no later than the decision time. Parameters named available_time and *_available_time carry it. |
| Effective time | The period a fact applies to, such as a quarter end. It can precede publication, so it never establishes availability. |
| Revision | One version of a fact. A restatement has the same effective time as the original and a later availability time. |
| Decision time | The time a signal or portfolio decision is formed. Everything it uses must already be available. |
| Execution time | The time a trade is assumed to execute. Cost models compare market data’s availability with it. |
| Entry time | The observation at which a label’s position is entered. |
| Label end | The observation at which a label’s return is measured. The exit. |
| Label interval | The half-open interval from label_start to label_end over which a label’s outcome is determined. Purging removes training rows whose intervals overlap test rows’. |
| Half-open interval | An interval that includes its start and excludes its end, written [start, end). Adjacent intervals share no point. Used for labels, folds and membership. |
| Horizon | The number of observations per instrument between a label’s start and its end. "5D" is five observations, not five calendar days. |
| Censored label | A label that cannot be built because its entry or exit observation or price is missing: the sample ends first, or a price in between is null. Lacuna drops it and counts it as censored_rows; the end of the sample is always censoring, under either policy. A delisting return can replace a missing exit price. Otherwise missing="raise" raises on null or NaN source prices and on labels whose entry and exit observations exist but give no return. It never fills a label otherwise. |
| Instrument identifier | The value in the instrument column that identifies a row’s entity. Lacuna treats it as an opaque key, so it must be stable. A reused ticker is not. |
| Point-in-time safe | Using only records whose availability time is no later than each decision. Lacuna can establish this for the timestamps you supply, not for whether those timestamps are accurate. |
| Information age | For a record matched by an as-of join, the decision time minus the record’s availability time, in the unit of the time column. |
| Universe membership | Time-bounded evidence that an instrument belongs to the research universe, given as half-open valid_from and valid_to intervals with an availability time. |
| Survivorship | Whether a historical universe includes instruments that later left it. A source declares confirmed_safe, confirmed_biased or unknown. Lacuna records the declaration and checks interval integrity. It cannot verify the declaration. |
| Delisting return | The return realized when an instrument stops trading, supplied in a column you name. Used as a label’s return when its exit price is missing. |
| Price adjustment | What a price series includes: raw, split_adjusted, total_return_adjusted or unknown. A declaration Lacuna records and cannot detect. |
| Declared policy | A statement you make that Lacuna records and holds you to but cannot verify against the world, such as price_adjustment, an availability timestamp or a survivorship status. |
| Materialization | Collecting a lazy frame into an in-memory table. Methods need whole tables, so Lacuna materializes lazy input once and records that it did. |
| Adapter copy | How an input was brought into Polars: zero_copy, potentially_zero_copy, one_copy or materializing. Recorded in the result’s parameters. |
Signal research
| Term | Meaning |
|---|---|
| Signal | A number per instrument per time, used to rank or forecast. |
| Forward return | A label: exit price over entry price, minus one, with entry, exit and horizon stated. |
| Label | The outcome a signal is judged against: here, a forward return with its interval. |
| Cross-section | The set of instruments observed at one time, or at one time within a group. The unit over which IC and quantiles are computed. |
| Information coefficient (IC) | The correlation between a signal and its subsequent label over one cross-section. Spearman (rank) by default; Pearson on request. |
| Headline horizon | The one horizon that the headline metrics of ic, quantiles and bucket_returns describe, recorded as headline_horizon. It is the first horizon in a LabelResult’s declared order. A bare label table with several horizons declares none, so its headline metrics are null and an UNKNOWN finding says so. |
| IC information ratio | The mean of the per-period ICs divided by their standard deviation. Not annualized. |
| Quantile | One of a set of balanced groups formed by ranking a signal within a cross-section, by the midpoint position of each instrument’s rank. Quantile returns ask whether higher signal ranks earn more. |
| Spread | The return of the top quantile minus that of the bottom quantile. |
| Monotonicity | How consistently quantile returns rise with signal rank, measured as a rank correlation. |
| Turnover | How much a signal’s ranks, values or quantile membership change between observations a set number of observations apart. Quantile membership uses the same buckets as quantile returns. |
| Decay | How a signal’s IC and spread change as the label horizon lengthens. |
| Half-life | The horizon at which a fitted exponential curve of the signal’s decay falls to half its initial value. |
| Neutralization | Replacing a signal with its residuals from a regression on stated exposures, fitted within each group (by default each time). |
| Bucket | A group a signal row is assigned to by an explicit rule: quantiles, equal widths, fixed edges or a threshold. |
| Portfolio projection | Turning bucket assignments into long and short target weights and measuring the forward-return contribution of each leg. |
Validation and inference
| Term | Meaning |
|---|---|
| Purging | Removing training rows whose label intervals overlap a test row’s, so the training set holds no information about test outcomes. |
| Embargo | Excluding a stated number of observations after a test block from training, to guard against dependence that purging does not remove. |
| Fold | One train/test split, stored as row positions in the table you passed. |
| Purged k-fold | Chronological k-fold cross-validation with purging and an optional embargo. |
| Combinatorial purged cross-validation | A scheme that holds out every combination of time groups and reassembles the test blocks into several complete chronological paths. |
| Walk-forward | Training windows that precede each test window in time, either growing (expanding) or sliding (rolling). |
| Bootstrap | Resampling a series to approximate the sampling distribution of a statistic. |
| Block bootstrap | A bootstrap that resamples runs of consecutive values to preserve serial dependence. The kinds are moving, circular and stationary (random block lengths); iid resamples single values. |
| Permutation test | A test that compares a statistic with its values under a stated exchangeability scheme, such as sign flips, shuffling within dates or groups, or block reordering. |
| Probabilistic Sharpe ratio | The probability that a true Sharpe ratio exceeds a benchmark, given the sample’s length, skewness and kurtosis. |
| Deflated Sharpe ratio | A probabilistic Sharpe ratio measured against the expected best Sharpe ratio among the trials tried, rather than against a fixed benchmark. |
| Minimum track-record length | The number of observations needed for an observed Sharpe ratio to exceed a benchmark at the chosen confidence. |
| Family-wise error rate | The probability of at least one false rejection among a declared family of tests. Controlled by bonferroni and holm. |
| False discovery rate | The expected share of false rejections among the rejections made. Controlled by benjamini_hochberg and benjamini_yekutieli. |
| Probability of backtest overfitting | The share of combinatorial in-sample/out-of-sample splits in which the in-sample best strategy ranks at or below the median out of sample. Estimated by combinatorially symmetric cross-validation. |
| Reality check | White’s test of whether the best of a declared family of strategies beats a benchmark once the search is accounted for. |
| Superior predictive ability | Hansen’s studentized variant of the reality check, less sensitive to poor strategies in the family. |
| Parameter surface | A metric evaluated over a complete grid of parameter settings, used to see whether a good setting sits in a stable neighborhood or is isolated. |
| Trial | One fully specified configuration of a method on a stated input. Its trial_id is a fingerprint of the family, experiment name, parameters, method, method version, and data and code fingerprints. Selection and multiple-testing methods count trials, so the ones you discarded matter. |
Event studies
| Term | Meaning |
|---|---|
| Event window | The run of price observations from a fixed number before an event’s anchor to a fixed number after it, one row per offset, with the price and the response at each. |
| Anchor | The time an event’s window is centered on. By default the event’s available_time; optionally its event_time. |
| Aligned anchor time | The first price observation at or after the anchor, which is what offset 0 actually refers to. |
| Event response | An event’s price relative to its anchor price, minus one, at each offset. lc.events.event_response averages these and puts a stationary-bootstrap interval around the mean, resampling events clustered by anchor time. |
| Overlapping windows | Windows of two events on the same instrument that share observations, so their responses are not independent. Raises by default; kept and tagged with a cluster if you ask. |
Robustness and costs
| Term | Meaning |
|---|---|
| Parameter perturbation | Evaluating a result at randomly sampled values near the chosen parameters to see whether it survives small changes. |
| Subperiod analysis | Evaluating declared windows separately to see whether the result is consistent in sign and not dominated by one window. |
| Universe perturbation | Re-evaluating on alternative sets of eligible instruments. |
| Regime | A market-state label for each time. Declared point_in_time when it uses only information available then, or retrospective when it does not. The declaration is recorded and cannot be verified. |
| Cost model | An object with an estimate(trades, market) method that returns a CostEstimate of path-independent, trade-level costs: commission, spread, slippage, impact or borrow. |
| Break-even cost | The all-in cost in basis points at which a chosen metric crosses a threshold. |
| Participation rate | A trade’s quantity divided by the market volume over a declared horizon. |
| Capacity | How a strategy’s results change as capital grows, with liquidity treated as unknown where it is missing. |
| Stress | Re-evaluating a strategy under a deterministic grid of spread, slippage and commission levels, or under explicit correlated cost scenarios. |
Evidence and reproducibility
| Term | Meaning |
|---|---|
| AnalysisResult | The structure analytical methods return, or hold as evidence inside a typed container: metrics, tables, findings, warnings and metadata. Not every function returns one. |
| Metric | A named scalar in a result. None where undefined. |
| Table | A named list of row dictionaries in a result, read with result.table(name). |
| Finding | A structured statement about the evidence, with a code, a state, a severity and its supporting figures. |
| Finding state | The outcome of a check: PASS, WARN, FAIL, UNKNOWN or NOT_APPLICABLE. |
| Severity | How much a finding matters, from INFO to CRITICAL, independent of its state. |
| UNKNOWN | The evidence needed to decide a check is missing. Never a pass. Answered by supplying the evidence. |
| NOT_APPLICABLE | The check does not apply to this method or scope. It is left out of scoring. |
| Warning | A string in result.warnings that states a limitation of the method itself. |
| Provenance | The record of how a result was made: method, version, resolved parameters, seed, input description. Held in result.metadata. |
| Method version | An integer that identifies a calculation’s mathematics. It changes when the numbers’ meaning changes. |
| Schema version | The version of a result’s serialized layout. Currently "1". |
| Seed | The integer that fixes a random method’s stream. The same seed, input and method version give the same numbers. If you omit it, a random one is drawn and recorded. |
| Input fingerprint | A digest of a method’s input, kept in the result’s metadata by methods that compute one. It detects a changed input; it does not prove equivalence of anything unrecorded. |
| Typed container | A small immutable container that holds rows, folds or paths together with an AnalysisResult in evidence, such as LabelResult or SplitResult. |
| Audit | A set of deterministic rules run over the evidence you supply, producing a finding per rule and a score. |
| Audit rule | One versioned check, with a weight and a declared set of required evidence. |
| Robustness score | A 0 to 100 summary of an audit: each applicable rule earns its weight for PASS, half for WARN and nothing for FAIL or UNKNOWN. A summary of the findings, not a measure of research quality. |
| Evidence coverage | The share of an audit’s applicable weight that had evidence to assess, which is every rule that is not UNKNOWN. |
| Audit profile | A versioned list of the evidence a standardized audit expects for a scope (signal, strategy or options), each item required, optional or not applicable. It defines coverage, not quality. |
| Report | A rendering of an audit’s stored evidence as JSON, Markdown or HTML. JSON is the canonical record. |
| Experiment registry | An append-only local record of every attempt to run a trial, including failures, and of the selections made among them. |
| Attempt | One execution of a trial, with a status of completed, failed or cancelled. Attempts are never edited. |
| Selection | A recorded choice among the full set of eligible trials, with its metric, direction and tie-breaking rule. |
| Fingerprint | A versioned SHA-256 digest of canonical JSON under a namespace, used to identify an input or a trial. |
| Reproducibility bundle | A single .lacuna archive holding an audit’s canonical report, evidence and a manifest of digests. It carries derived evidence, not the source data or code, unless you put them there yourself. |
| Artifact integrity | That a bundle’s files match the sizes and SHA-256 digests its manifest declares. Verification proves the contents are unchanged, not who made them. |
Runtime and extensions
| Term | Meaning |
|---|---|
| Backend | The implementation that computed a result: the compiled Rust extension or the Python and NumPy reference. Methods that offer a choice take use_native and record the backend in the result’s parameters. |
| Adapter | Code that maps an external table or vendor schema into Lacuna’s contracts and records what it did, without adding research choices. |
| Plugin | An installed package that extends Lacuna through an entry point. It is discovered without being imported, and runs only after you select and activate it. It runs in your process with your permissions. |
| Plugin descriptor | The identity, protocol version and capabilities an activated plugin declares. |
| Study | A SignalStudy: a signal table, a price table and the timing facts about them, from which labels, diagnostics and an audit are produced. |
| Options extension | The separately installed lacuna-options package, with tools for empirical options research such as option-chain validation and delta buckets. Not part of the core install. |