Skip to Content

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

TermMeaning
Long-form panelA 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 timeThe 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 timeThe 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 timeThe period a fact applies to, such as a quarter end. It can precede publication, so it never establishes availability.
RevisionOne version of a fact. A restatement has the same effective time as the original and a later availability time.
Decision timeThe time a signal or portfolio decision is formed. Everything it uses must already be available.
Execution timeThe time a trade is assumed to execute. Cost models compare market data’s availability with it.
Entry timeThe observation at which a label’s position is entered.
Label endThe observation at which a label’s return is measured. The exit.
Label intervalThe 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 intervalAn interval that includes its start and excludes its end, written [start, end). Adjacent intervals share no point. Used for labels, folds and membership.
HorizonThe number of observations per instrument between a label’s start and its end. "5D" is five observations, not five calendar days.
Censored labelA 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 identifierThe 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 safeUsing 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 ageFor 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 membershipTime-bounded evidence that an instrument belongs to the research universe, given as half-open valid_from and valid_to intervals with an availability time.
SurvivorshipWhether 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 returnThe 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 adjustmentWhat a price series includes: raw, split_adjusted, total_return_adjusted or unknown. A declaration Lacuna records and cannot detect.
Declared policyA 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.
MaterializationCollecting a lazy frame into an in-memory table. Methods need whole tables, so Lacuna materializes lazy input once and records that it did.
Adapter copyHow an input was brought into Polars: zero_copy, potentially_zero_copy, one_copy or materializing. Recorded in the result’s parameters.

Signal research

TermMeaning
SignalA number per instrument per time, used to rank or forecast.
Forward returnA label: exit price over entry price, minus one, with entry, exit and horizon stated.
LabelThe outcome a signal is judged against: here, a forward return with its interval.
Cross-sectionThe 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 horizonThe 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 ratioThe mean of the per-period ICs divided by their standard deviation. Not annualized.
QuantileOne 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.
SpreadThe return of the top quantile minus that of the bottom quantile.
MonotonicityHow consistently quantile returns rise with signal rank, measured as a rank correlation.
TurnoverHow 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.
DecayHow a signal’s IC and spread change as the label horizon lengthens.
Half-lifeThe horizon at which a fitted exponential curve of the signal’s decay falls to half its initial value.
NeutralizationReplacing a signal with its residuals from a regression on stated exposures, fitted within each group (by default each time).
BucketA group a signal row is assigned to by an explicit rule: quantiles, equal widths, fixed edges or a threshold.
Portfolio projectionTurning bucket assignments into long and short target weights and measuring the forward-return contribution of each leg.

Validation and inference

TermMeaning
PurgingRemoving training rows whose label intervals overlap a test row’s, so the training set holds no information about test outcomes.
EmbargoExcluding a stated number of observations after a test block from training, to guard against dependence that purging does not remove.
FoldOne train/test split, stored as row positions in the table you passed.
Purged k-foldChronological k-fold cross-validation with purging and an optional embargo.
Combinatorial purged cross-validationA scheme that holds out every combination of time groups and reassembles the test blocks into several complete chronological paths.
Walk-forwardTraining windows that precede each test window in time, either growing (expanding) or sliding (rolling).
BootstrapResampling a series to approximate the sampling distribution of a statistic.
Block bootstrapA 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 testA 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 ratioThe probability that a true Sharpe ratio exceeds a benchmark, given the sample’s length, skewness and kurtosis.
Deflated Sharpe ratioA probabilistic Sharpe ratio measured against the expected best Sharpe ratio among the trials tried, rather than against a fixed benchmark.
Minimum track-record lengthThe number of observations needed for an observed Sharpe ratio to exceed a benchmark at the chosen confidence.
Family-wise error rateThe probability of at least one false rejection among a declared family of tests. Controlled by bonferroni and holm.
False discovery rateThe expected share of false rejections among the rejections made. Controlled by benjamini_hochberg and benjamini_yekutieli.
Probability of backtest overfittingThe 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 checkWhite’s test of whether the best of a declared family of strategies beats a benchmark once the search is accounted for.
Superior predictive abilityHansen’s studentized variant of the reality check, less sensitive to poor strategies in the family.
Parameter surfaceA metric evaluated over a complete grid of parameter settings, used to see whether a good setting sits in a stable neighborhood or is isolated.
TrialOne 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

TermMeaning
Event windowThe 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.
AnchorThe time an event’s window is centered on. By default the event’s available_time; optionally its event_time.
Aligned anchor timeThe first price observation at or after the anchor, which is what offset 0 actually refers to.
Event responseAn 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 windowsWindows 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

TermMeaning
Parameter perturbationEvaluating a result at randomly sampled values near the chosen parameters to see whether it survives small changes.
Subperiod analysisEvaluating declared windows separately to see whether the result is consistent in sign and not dominated by one window.
Universe perturbationRe-evaluating on alternative sets of eligible instruments.
RegimeA 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 modelAn 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 costThe all-in cost in basis points at which a chosen metric crosses a threshold.
Participation rateA trade’s quantity divided by the market volume over a declared horizon.
CapacityHow a strategy’s results change as capital grows, with liquidity treated as unknown where it is missing.
StressRe-evaluating a strategy under a deterministic grid of spread, slippage and commission levels, or under explicit correlated cost scenarios.

Evidence and reproducibility

TermMeaning
AnalysisResultThe structure analytical methods return, or hold as evidence inside a typed container: metrics, tables, findings, warnings and metadata. Not every function returns one.
MetricA named scalar in a result. None where undefined.
TableA named list of row dictionaries in a result, read with result.table(name).
FindingA structured statement about the evidence, with a code, a state, a severity and its supporting figures.
Finding stateThe outcome of a check: PASS, WARN, FAIL, UNKNOWN or NOT_APPLICABLE.
SeverityHow much a finding matters, from INFO to CRITICAL, independent of its state.
UNKNOWNThe evidence needed to decide a check is missing. Never a pass. Answered by supplying the evidence.
NOT_APPLICABLEThe check does not apply to this method or scope. It is left out of scoring.
WarningA string in result.warnings that states a limitation of the method itself.
ProvenanceThe record of how a result was made: method, version, resolved parameters, seed, input description. Held in result.metadata.
Method versionAn integer that identifies a calculation’s mathematics. It changes when the numbers’ meaning changes.
Schema versionThe version of a result’s serialized layout. Currently "1".
SeedThe 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 fingerprintA 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 containerA small immutable container that holds rows, folds or paths together with an AnalysisResult in evidence, such as LabelResult or SplitResult.
AuditA set of deterministic rules run over the evidence you supply, producing a finding per rule and a score.
Audit ruleOne versioned check, with a weight and a declared set of required evidence.
Robustness scoreA 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 coverageThe share of an audit’s applicable weight that had evidence to assess, which is every rule that is not UNKNOWN.
Audit profileA 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.
ReportA rendering of an audit’s stored evidence as JSON, Markdown or HTML. JSON is the canonical record.
Experiment registryAn append-only local record of every attempt to run a trial, including failures, and of the selections made among them.
AttemptOne execution of a trial, with a status of completed, failed or cancelled. Attempts are never edited.
SelectionA recorded choice among the full set of eligible trials, with its metric, direction and tie-breaking rule.
FingerprintA versioned SHA-256 digest of canonical JSON under a namespace, used to identify an input or a trial.
Reproducibility bundleA 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 integrityThat 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

TermMeaning
BackendThe 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.
AdapterCode that maps an external table or vendor schema into Lacuna’s contracts and records what it did, without adding research choices.
PluginAn 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 descriptorThe identity, protocol version and capabilities an activated plugin declares.
StudyA SignalStudy: a signal table, a price table and the timing facts about them, from which labels, diagnostics and an audit are produced.
Options extensionThe 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.