Skip to content
Scopwis
Workflows

Data mining and prediction

Data mining is a first-class Scopwis workspace. It exposes the registered deterministic analysis catalog instead of making advanced methods discoverable only through hidden Agent tools.

Method families

The current catalog covers workflows such as:

  • profiling, robust summaries, missingness, duplicate keys, and tail behavior;
  • clustering, density segmentation, PCA, and cluster-quality diagnostics;
  • anomaly and local-density outlier screening;
  • relationships, nonlinear dependence, partial correlation, lead/lag, and stability;
  • time-series trend, seasonality, change points, rolling bands, and forecasting;
  • drift and distribution-shift attribution;
  • binary ranking, calibration, classification and regression diagnostics;
  • experiment/group comparison and robust effect sizes;
  • event/state, survival, retention, and gap analysis;
  • factor generation, factor mining, signal evaluation, policy simulation, and quantitative performance.

The catalog grows through registered method contracts. UI labels are product-level entry points; the authoritative executable method IDs and parameter schemas come from the Server.

Start a method

  1. Open Data mining.
  2. Filter by category or search for a method.
  3. Select a starter.
  4. Review and edit the generated request.
  5. Press Start analysis.

The catalog supports category, name, and method-ID filtering. On compact screens, selecting a method opens its detail page; returning to the catalog keeps the edited request for that method.

Selecting a method does not execute anything by itself. The explicit start action sends the request through the same AgentPlan, authorization, query-safety, artifact, and critic gates used by Analyze.

Prediction is leakage-controlled

Predictive and time-series methods must respect chronological boundaries. Forecasting and rolling methods use explicit training/history windows; future observations cannot influence earlier baselines. Methods that cannot satisfy the required ordering, sample, or quality contract fail closed instead of silently changing the analysis.

A predictive output is evidence about the configured method and validation window. It is not automatically a production deployment decision.

Rolling quantile bands

Use rolling_quantile_band to compare each value with the preceding 5–500 observations. The input must contain 6–10,000 rows in strictly increasing time order. Choose lower_percent from 1–49 and upper_percent from 51–99; the defaults are 5 and 95. Set top_n from 1–200 to control how many breaches are returned.

The method checks every window, then returns the largest exceedances first. Equal exceedances retain original row order. Lowering top_n reduces retained ranking candidates and output construction; it does not sample the input or stop validation early. A flat historical band remains valid. Non-finite inputs or an unrepresentable band width/exceedance stop the analysis instead of producing a report with silent null values. A breach is a descriptive comparison, not a diagnosis of its cause.

Chronological conformal intervals

chronological_conformal_interval builds prediction intervals for strictly future scoring rows. It splits the input into a historical calibration port with actual and prediction columns and a future scoring port with only a prediction column. The interval half-width comes only from the finite-sample conformal rank of calibration absolute residuals: the ceil((n+1)(1-alpha))-th smallest residual, with alpha bounded to 0.01–0.5 (default 0.1). Each scoring row receives lower = prediction - half_width and upper = prediction + half_width.

Both time columns must be strictly increasing, and every scoring time must be later than every calibration time. A rank that would exceed the calibration sample, a zero-spread residual distribution, non-finite values, or an unrepresentable bound fails closed with a structured error instead of emitting null values. Time-ordered data is not exchangeable, so the output always sets coverage_guarantee_claimed=false; the interval is leakage-controlled empirical uncertainty evidence, not a guaranteed coverage claim.

Partial dependence

partial_dependence_profile summarizes a declared numeric prediction surface. The input is a single query artifact with numeric feature and prediction columns: each row is one declared prediction at one feature value. Provide an explicit numeric grid (2–200 points), or let the method derive a deterministic bounded grid from the observed unique feature values. max_grid_points (2–200, default 50) caps the grid and min_coverage (0–1, default 0) sets the minimum eligible-row fraction.

For each covered grid point the method reports grid_value, mean_prediction, points_averaged, and share, plus coverage, eligible_rows, total_rows, grid_points, reported_points, grid_truncated, and rows_outside_grid. Rows whose feature value is not on the grid are counted as ineligible rather than reassigned. Zero coverage, fewer than two covered grid points, non-finite values, or an over-budget input fails closed with a structured error. Partial dependence is a marginal/conditional association summary of the declared surface, not a causal effect, not a feature-importance ranking, and not evidence of mechanism.

Permutation importance

permutation_importance_profile measures bounded permutation importance for a declared numeric prediction surface. The input is a single query artifact with 2–16 declared numeric feature columns and a numeric prediction column, plus an optional target (actual) column. For each feature the method bins the feature into at most max_bins (2–20, default 8) equal-width bins, computes the binned variance explained of the outcome (baseline_score), then repeats a fixed-seed deterministic shuffle n_repeats (1–20, default 5) times to compute permuted_score. The reported importance is the drop baseline_score − permuted_score.

Feature, prediction, and target values must be finite. A feature with fewer than two distinct values, a zero-variance outcome, non-finite values, or an over-budget row/feature/repeat/bin count fails closed with a structured error. The seed is fixed, so repeated runs over the same surface are identical. Permutation importance is a bounded model-free association measure over the declared surface, not a causal effect, not a model-internal mechanism, and not evidence of deployment value. With a target column the outcome is the declared actual; otherwise it is the declared prediction.

Declared feature importance

declared_feature_importance validates and normalizes a caller-declared feature-importance vector. The input is a single query artifact with a feature label column and a non-negative numeric importance column. The method reports each feature's raw importance and its share of the declared total, sorted by importance descending and feature name ascending, plus the declared provenance. Feature labels must be non-empty and unique, importances must be finite and non-negative, and the total must be finite and greater than zero; otherwise the method fails closed.

The importances are declared by the caller and only validated and normalized by Scopwis; they are not computed by Scopwis and are not necessarily tree-derived. They describe declared model-internal association or prediction contribution, not causal effects and not evidence of mechanism. The repository's current tree/ensemble models (SmartCore random forests) do not expose feature importances, so a true tree-derived importance is not part of the first phase.

Comparing distribution shifts

quantile_shift_profile compares the P05/P25/P50/P75/P95 values and interquartile range (IQR) of explicit baseline and current artifacts. The IQR ratio remains defined for every positive baseline IQR, including very small values; changing measurement units must not turn nonzero variation into a zero-baseline diagnosis. Only an exactly zero baseline IQR produces zero_baseline_iqr=true and a null ratio. A zero current IQR with a positive baseline produces a ratio of zero.

Differences or ratios outside the finite numeric range stop the method with a structured execution error. They are not silently replaced with nulls in a successful artifact or report. The result describes the supplied distributions; it does not correct the data or establish the cause of a shift.

Categorical mutual information

categorical_mutual_information measures the dependence between two explicit categorical fields. The input is a single query artifact with two bounded-cardinality label columns and an explicit missing policy. The method reports mutual information in nats, the entropy of each field, normalized mutual information, and conditional entropy. A constant field leaves normalized mutual information undefined, so it stays null rather than being reported as zero. The result is an information-dependence measure, not a direction, a mechanism, or a causal claim.

Precision-recall profile

precision_recall_profile evaluates an explicit binary label against a [0,1] score. Thresholds are the distinct score values, and every row sharing a score enters the same threshold as one group, so raw row order never breaks a tie and no best threshold is selected on the same sample. The method reports Average Precision, trapezoidal PR-AUC, and the base rate. It evaluates the declared score; it is not a deployment decision.

Multivariate energy drift

multivariate_energy_drift compares explicit baseline and current multivariate numeric artifacts. Every feature is standardized with its baseline mean and standard deviation, then the method reports empirical energy distance plus per-feature baseline and current means and standardized shift. A zero-variance baseline feature, non-finite values, or an over-budget sample fails closed with a structured error. The result is distribution-shift evidence, not concept drift and not a cause.

Constant factor inputs

Pearson diagnostics in factor mining and combination report zero whenever either finite input series is constant. This includes large repeated values such as [1e100; 10]: rounding during mean calculation must not create a false correlation of 1. Changing series keep the existing correlation calculation and sample-standard-deviation threshold of 1e-12. The result remains a measure of association.

Correlation diagnostics under large measurement units

Pearson diagnostics in factor mining and neutralization reduce in a scaled coordinate system, so a finite correlation survives measurement units large enough to overflow raw covariance or standard-deviation products. For example, [1e200 - 1e190, 1e200, 1e200 + 1e190] stays correlated with itself at approximately 1 and with its negation at approximately -1; a small relative spread alone does not make a series constant. These numeric safeguards do not change the interpretation of a correlation.

Interpreting mining output

Registered methods return structured artifacts with diagnostics and limitations. Scopwis does not turn correlation into causation, anomaly score into fraud, drift into a root cause, or a backtest into a trading recommendation.

For a decision-ready narrative, continue in Analyze and ask the Agent to synthesize the mining artifact with the rest of the evidence. For a visual deliverable, ask for a report.

Type to search the English documentation.