The most important feature does not explain every trade
Separate global model reliance from the explanation of one prediction. Work through permutation scores, local contributions, correlated inputs and market sessions.

The chart says volatility. The trade says something else.
Inés is reviewing a hypothetical trading model after an unusual prediction. The dashboard places recent volatility at the top of its importance ranking. She opens the observation responsible for the prediction, checks its inputs and finds that volatility was exactly at the reference level. The immediate temptation is to call the explanation inconsistent. Why would the most important variable have nothing interesting to say about this particular decision?
The apparent contradiction disappears when she separates two questions. One asks how much the fitted model’s measured performance changes when information is disrupted across a collection of observations. The other asks how a particular output differs from a declared reference. A population summary and an explanation of one case are different objects. Neither becomes more reliable simply because its chart looks intuitive.
This article develops a small, entirely hypothetical investigation. The numbers are arithmetic examples, not measured TradeAndRoll results or evidence that a feature predicts financial returns. The practical aim is to produce an explanation that someone else can audit: which model, which observations, which score, which reference and which transformations created the statement that a variable was important.
Inés also needs to connect a prediction to an actual trading instruction. A model output may pass through a threshold, a position limit, a spread filter and an existing-position check before anything reaches a broker. Explaining the numerical prediction does not automatically explain the final order. Keeping that distinction visible will prevent her from giving a convincing account of the wrong part of the system.
Start by naming the object you are explaining
The word importance is too broad to function as a complete research question. A variable can be important for reducing squared prediction error, for ranking rare events, for moving one score away from its baseline, or for determining whether a hard rule allows an order. These meanings can coexist without producing the same ordering of variables. The first useful change to the report is therefore a sentence stating what the analysis actually measures.
Inés writes: “For the frozen model M, on evaluation population P, measure the increase in mean squared error when column j is randomly reassigned between observations.” That is a global reliance experiment. Beside it she writes a separate request: “For observation r, explain the difference between the model output and the output at reference input b.” The second request is local, with a specific comparison point. Neither sentence claims to identify a cause of market movement.
She records the model file identifier, feature calculation version and evaluation population definition before generating the charts. This is not clerical decoration. If an updated model uses the same feature names with different transformations, a familiar-looking ranking may describe a different calculation. Likewise, a later evaluation population can change the ranking without any change to the fitted coefficients.
The scope belongs in the caption, not only in a technical appendix. A reader should see whether a graph covers every eligible observation, executed trades only, one session or one exceptional day. A chart headed “Top drivers” invites conclusions its underlying calculation may not support. A longer but precise label often saves more confusion than another page of mathematical notation.
A model simple enough to inspect by hand
Use a hypothetical numerical score with two already transformed inputs. Call them v, a volatility descriptor, and m, a momentum descriptor. The fitted formula is score = 0.4 + 0.8v + 0.2m. The score is an abstract model output. It is not a probability, a percentage return or a recommendation to enter a position. The reference observation has v = 0 and m = 0, so its score is 0.4.
Consider two individual observations. In observation A, v = 0 and m = 2. The score is 0.8. Relative to the reference, the volatility contribution is zero and the momentum contribution is 0.4. In observation B, v = 1 and m = 0. Its score is 1.2, with a volatility contribution of 0.8 and no momentum contribution. The same fitted model has a different local explanation for each case.
This decomposition is exact because we deliberately chose an additive linear formula and a declared reference. We are not claiming that every explainer or nonlinear model behaves this way. The SHAP documentation’s linear-model example also makes the reference and output scale explicit when discussing linear contributions. Our calculation needs no software package: each contribution is its coefficient multiplied by the change from the reference input.
Notice that a zero contribution does not mean the input was missing, unrecorded or impossible to matter. It means this input matched the chosen reference in this particular calculation. If Inés changes the reference, she must expect the allocation to change. A contribution is incomplete without its comparison point. Calling it the permanent importance of volatility would erase that essential condition.
Compute a global disruption without hiding the rows
Now use four evaluation observations with v values −1, −1, 1, 1 and m values −1, 1, −1, 1. Define the hypothetical target to equal the formula’s output exactly. The four targets are therefore −0.6, −0.2, 1.0 and 1.4. The undisrupted model has mean squared error zero on these invented rows. This construction keeps the arithmetic transparent; it does not simulate the noise or difficulty of a real market forecasting task.
For one selected permutation, replace the volatility sequence with 1, 1, −1, −1, leaving momentum and targets untouched. Each prediction changes by 1.6 in absolute value. Squaring gives 2.56 for every row, so the resulting mean squared error is 2.56. Next restore the original inputs and reverse momentum within each volatility pair. Each prediction now changes by 0.4 in absolute value, giving mean squared error 0.16.
Under these particular disruptions, volatility produces sixteen times the error increase of momentum. This supports a statement about the frozen formula, these four observations, squared error and these permutations. It does not contradict observation A, where volatility’s local contribution was zero. One calculation asks what happens when information is broken across a population; the other compares the original input with a reference.
In a real analysis, Inés would repeat the random assignments rather than report one convenient arrangement. She would preserve every repetition and its seed, while avoiding the claim that many shuffles create many independent market histories. Repeated shuffling measures sensitivity to the disruption mechanism. It does not by itself quantify uncertainty from fitting the model, choosing the population or experiencing a different future market.
An importance score needs a direction and a unit
Performance measures do not all improve in the same direction. Higher accuracy is usually preferred, while lower prediction error is usually preferred. Inés avoids a sign mistake by reporting the original score, the disrupted score and the arithmetic convention. For an error measure, she defines importance as disrupted error minus original error. For a higher-is-better score, she would reverse the subtraction. A bare positive number is not enough to reconstruct what happened.
She also keeps the unit. Mean squared error is expressed in squared target units, while mean absolute error uses target units. In the four-row example, the selected volatility permutation increases mean absolute error by 1.6; the momentum permutation increases it by 0.4. Their ratio is four rather than sixteen. The ranking happens to remain the same, but the apparent scale of the difference depends on the score.
A cost-sensitive score can reorder variables because it asks another question. An input that helps many ordinary observations may dominate a broad average, while another input matters mainly during a small set of costly mistakes. Neither score is inherently the honest one. The research purpose determines the relevant objective, and the report should show why that objective was chosen before the ranking was inspected.
Prediction importance is not automatically monetary importance. Converting an error improvement into a trading result requires a decision rule, position sizing, execution assumptions and costs. If Inés wants to study the downstream trading policy, she must explicitly rerun that policy under a well-defined experiment. Relabelling a statistical importance chart with currency symbols would conceal a missing chain of reasoning rather than complete it.
The evaluation population can change the winner
Imagine two hypothetical groups evaluated under the same model and scoring convention. In a quiet group, disrupting volatility increases the chosen error by 0.04 and disrupting momentum increases it by 0.25. In a turbulent group, the increases are 1.00 and 0.09 respectively. These invented values illustrate an aggregation problem: one feature matters more in one group, while the other matters more in the other.
If the evaluation sample contains eighty percent quiet observations and twenty percent turbulent observations, the weighted increases are 0.232 for volatility and 0.218 for momentum. Volatility narrowly leads. If the mixture changes to ninety percent quiet and ten percent turbulent, the corresponding averages are 0.136 and 0.234. Momentum now leads, even though neither group’s conditional values changed.
The calculation assumes that the groupwise disruption and weighting make these averages comparable. An unrestricted permutation across both groups could create different mixed combinations and would be a different experiment. Inés therefore labels the example as a weighted summary of within-group results, rather than pretending any permutation procedure will reproduce it automatically. The mechanism matters as much as the final arithmetic.
A ranking can move because the audience changed. In market research, the audience is the set of observations over which the model is assessed. A shift in session mix, instrument coverage or eligible signal frequency may alter a global summary without exposing a software bug. Before explaining a ranking change with a story about market structure, Inés first checks whether she is comparing the same population.
A plausible input combination is part of the experiment
Unrestricted shuffling is easy to describe, but market inputs often travel together. A session descriptor, a volatility estimate and a liquidity measure may have a structured relationship. Moving one column between arbitrary rows can create combinations rarely or never observed. The model’s reaction to those combinations can be informative about its behavior, but the result needs to be described as a response to that particular disruption.
Inés considers shuffling within a declared session group. This preserves the session assignment while breaking some within-session relationships. It asks a narrower question: how much does the model rely on variation in this input among observations with that session label? A smaller score after restricted shuffling does not mean the unrestricted analysis was calculated incorrectly. It may mean that much of the original disruption crossed the group structure now being preserved.
Conditional replacement is more demanding still. It attempts to vary an input while respecting selected relationships with other inputs. That requires an additional model or sampling rule, and the quality of that rule becomes part of the analysis. There is no magic phrase that makes a generated replacement realistic. Inés checks ranges, joint combinations and the number of comparable observations before interpreting a conditional result.
Every restriction changes the question. A within-session shuffle, a contiguous-block shuffle and an unconstrained row shuffle should not be mixed into one ranking without explanation. Inés keeps each as a separately named experiment. The purpose is to learn whether her conclusion survives reasonable alternative disruptions, not to choose whichever version produces the most attractive ordering of variables.
Correlated features can share or conceal reliance
Suppose two columns contain exactly the same transformed value z. Model M1 uses only the first: score = z1. Model M2 uses their average: score = 0.5z1 + 0.5z2. On the original data, the models make identical predictions. Yet shuffling the second column has no effect on M1 and can affect M2. An importance ranking can therefore differ between models that currently produce the same outputs.
This is not a contradiction. The ranking inspects the particular fitted calculation, including how it distributes reliance among available inputs. The scikit-learn guide to permutation importance stresses this model-specific interpretation and discusses the complications created by correlated features. Our duplicate-column example isolates the issue without requiring a noisy empirical dataset or a claim that one model is superior.
Inés can disrupt both columns together while preserving their equality. That studies reliance on the shared information as a group. It is different from shuffling each column independently, which breaks equality and creates inconsistent pairs. Group importance also does not tell her how much credit to allocate to each member. The group is the unit of analysis precisely because the individual allocation may be unstable or ambiguous.
If the practical question is whether a column can be removed and the model retrained successfully, she needs a separate experiment. Inspecting a frozen model and comparing refitted models are not interchangeable. The article on redundant trading features develops the feature-set question. Here, Inés keeps the original model frozen so she can interpret what her inspection actually establishes.
Explaining a score is not explaining an order
Return to observation A, whose score was 0.8. Suppose the hypothetical policy permits a candidate entry when the score is at least 0.7. The score clears that threshold. But imagine that the policy also rejects entries when the current spread exceeds a specified limit, and the spread check fails. No order is sent. A contribution chart for the score can be perfectly accurate while giving an incomplete account of the final decision.
Inés records a decision trace with separate stages: eligible observation, feature snapshot, model output, threshold result, execution checks and final instruction. She does not assign invented numerical contributions to every hard rule. Some stages are discrete gates, and a concise explanation such as “spread exceeded the configured limit” is more faithful than forcing them into the same additive graphic as the model’s score.
The distinction also matters when an order is blocked because a position already exists. The feature explanation describes the candidate signal, while the position rule describes portfolio state. If the investigation begins with an executed-trades file only, blocked candidates may be absent. Inés then lacks the population needed to explain why some signals became trades and others did not. She documents that limitation instead of reconstructing missing decisions from imagination.
The last decision in the chain deserves its own evidence. An analyst should be able to trace a trade back to both the prediction and the surrounding rules. This is especially useful when a user adapts supplied research code to another execution environment. A change in broker conventions or position handling can alter the final instruction while leaving the predictive model completely unchanged.
The reference can change the story without changing the prediction
Observation A still has v = 0, m = 2 and score 0.8. With reference (0, 0), its baseline is 0.4 and the contributions are zero and 0.4. Now choose reference (0.5, 0). That reference produces score 0.8. Relative to it, volatility contributes −0.4 and momentum contributes +0.4. The contributions cancel, and the final output remains 0.8.
Both decompositions reconcile exactly. One compares the observation with a neutral transformed origin; the other compares it with a different volatility level. Neither is entitled to call itself the unique reason for the prediction without explaining the comparison. A visually striking positive contribution can partly reflect a low reference, just as a negative contribution can reflect an unusually high reference value.
Inés chooses her reference according to the purpose of the investigation. A long-run development reference may help compare reports over time. A session-specific reference may answer why this case differs from other cases in the same session. Those are different questions. She avoids quietly switching between them simply to obtain a more intuitive narrative for an awkward observation.
Reference stability and reference relevance are a tradeoff to document. A fixed reference can become distant from current observations; a continuously updated reference can make explanations difficult to compare across time. The report should preserve the reference dataset or its construction rule, the period it covers and any weighting. Without that information, a later reviewer cannot tell whether the model changed or only the comparison point moved.
Local explanations also need neighborhood checks
An explanation of one exact input can be arithmetically correct while telling little about nearby plausible observations. Inés therefore studies a small neighborhood defined before inspecting the result. For the simple formula, increasing v by 0.1 changes the score by 0.08, while increasing m by 0.1 changes it by 0.02. These are sensitivities of the fitted formula in its transformed input units, not estimated effects of intervening on a market.
With a nonlinear model, she would preserve the surrounding conditions and inspect whether small admissible changes produce abrupt output changes. A threshold can create a sharp change in the final instruction even when the underlying score varies smoothly. If the score is 0.699 and the threshold is 0.7, a tiny numerical difference may change the candidate decision. The explanation should identify that proximity rather than invent a dramatic economic story.
The word admissible is essential. Independently changing a derived indicator while holding its source data and related indicators fixed may create an impossible feature vector. Inés distinguishes a mathematical input sensitivity from a replay in which source observations are changed and all dependent features are recomputed. Both can help diagnose behavior, but they test different objects and should not share an ambiguous caption.
This neighborhood exercise also catches unit mistakes. A change of 0.1 in a standardized input is different from a change of 0.1 in a raw price or percentage. An explanation should preserve the feature dictionary. The dictionary connects displayed names to transformations, units, lookback windows and information timestamps. A familiar variable name is not a substitute for that operational definition.
Summaries should expose disagreement, not smooth it away
Imagine that volatility has large positive local contributions in some observations and large negative contributions in others. The signed average could be close to zero. A mean absolute contribution would remain large. Neither summary is wrong; one describes average direction relative to a reference, while the other describes average magnitude. Inés reports which aggregation she uses and avoids treating the two numbers as rival estimates of a single quantity.
She also separates frequency from size. A feature may contribute modestly to nearly every output, while another makes large contributions to a small subset. A single ranking cannot fully describe that pattern. A useful report might show the proportion of cases with substantial contributions, the distribution of magnitudes and selected cases representing common and unusual behavior. Selection rules for those cases belong in the report too.
Cherry-picking is particularly easy with explanations because almost any complex model offers visually interesting examples. Inés does not select only the trade whose story matches her intuition. She includes a routine case, a surprising case and a case where the explanation is difficult to interpret. The aim is to expose the limits of the method as well as demonstrate its mechanics.
A coherent narrative is not a validation result. The narrative can guide the next test, identify a feature-timing problem or reveal an unexpected dependence. It cannot replace an evaluation of predictive performance on the intended population. A model that explains its mistakes elegantly still makes those mistakes; interpretability and usefulness need to be assessed with evidence appropriate to each claim.
Build an explanation packet that survives a second reader
Inés packages the frozen model identifier, feature definitions, population manifest, original score, disruption procedure and repeated results. For local cases, she adds the exact transformed inputs, reference construction, output scale and reconciliation check. The packet does not need every development notebook, but it does need enough information for another person to reproduce the reported numbers without guessing hidden defaults.
A short reconciliation table is especially valuable. For the local linear example, baseline plus contributions must equal the reported score. For the permutation experiment, the unmodified model must reproduce the baseline score before any disruption is applied. These are mechanical checks, not guarantees of scientific correctness, but they prevent a large category of misleading charts caused by mismatched model versions or stale prediction files.
She records what the packet does not establish. It does not identify a causal driver of returns, prove future performance, justify a feature’s collection cost or show that removing the feature will preserve a refitted model’s behavior. Stating these boundaries once, precisely, is more useful than adding vague disclaimers to every graph. Each proposed extension can then be turned into a separate research question.
The final finding should name a decision. Perhaps the model relies unexpectedly on a session field, prompting a timing audit. Perhaps global results are stable but one local case reveals a threshold-sensitive instruction. Perhaps importance varies so much by population that a single headline ranking is abandoned. These outcomes improve the research process even when they do not produce a new trading strategy.
When a negative importance is useful information
Suppose another hypothetical inspection starts with mean squared error 0.30. After disrupting one input, the error is 0.27. Under Inés’s declared convention, the importance is −0.03. It is tempting to delete the variable immediately, but the result is narrower: this particular disruption improved the frozen model’s score on this population. The calculation does not yet explain whether the change is repeatable, whether the variable is harmful in other periods or whether removing it before refitting would help.
She first verifies the baseline predictions and the alignment of targets. A stale prediction file or an accidental row sort can produce impressive but meaningless differences. Next she examines repeated disruptions and the observations responsible for the change. If one unusual target dominates squared error, the aggregate improvement might describe sensitivity to that single case. That is a reason to inspect the case and report its influence, not a reason to quietly remove it from the evaluation.
She then asks whether the variable was defined and available correctly. A feature with a shifted timestamp may be badly aligned rather than economically useless. An imputation convention may have changed between fitting and evaluation. A sign reversal in a data transformation may damage a previously sensible input. These possibilities require a data and implementation audit; an importance chart alone cannot distinguish them. The investigation should preserve the original result while testing each concrete explanation separately.
Another possibility is that the fitted model overreacts to a real but unstable relationship. Inés can propose a new candidate that handles the input differently, but that candidate belongs to a subsequent development exercise. The existing evaluation has already informed the change. She cannot remove the input, refit repeatedly on the same inspected observations and then call the final improvement an untouched confirmation. An explanation can become a development decision, and the information boundary moves with that decision.
The report therefore distinguishes three statements. The observed statement is that error decreased from 0.30 to 0.27 under a specified disruption. The diagnostic question is why. The proposed action might be to audit the feature pipeline or compare a future candidate. Keeping those levels separate makes a negative result useful without turning it into an automatic feature-selection rule or an unsupported claim about future returns.
There is a practical ownership question as well. If the model came from another researcher, Inés should ask for the relevant input definition and version before inventing a repair. A documented transformation may explain an apparent anomaly immediately. If the necessary records are unavailable, the correct conclusion can be that the explanation cannot be reconciled with the supplied material. That limitation is actionable: it identifies exactly which missing artifact prevents a stronger assessment.
She preserves a small failure example alongside any later correction. The example contains original inputs, transformed values, expected output and actual output. This makes the discovered issue testable in future releases. A paragraph saying that the importance looked strange is much less useful than a reproducible case showing the discrepancy. The negative importance has then served as a diagnostic clue, while the actual evidence for the correction comes from the independently checked computation.
Ask AI to reconcile evidence before asking for a story
A useful AI request starts with the frozen formula or model interface, the actual input definitions and the precise question. Inés asks for two separate outputs: a global reliance experiment using a declared score and a local reconciliation for selected observations. She instructs the assistant to show baseline, transformed inputs, units and any assumptions about replacement or reference data. She also asks it to flag fields it cannot recover from the supplied files.
Her hypothetical prompt is: “Explain these model outputs without claiming a market cause. First reproduce the original scores. Then compute the specified permutation experiment and retain all repetitions. For the selected observation, show the declared reference and verify that the contribution total reconciles with the output. Keep the final order rules separate from the model explanation. Mark missing information explicitly.” The request is concrete enough that a failed reconciliation becomes visible.
She reviews the generated analysis by checking the arithmetic on a tiny example before scaling it. A sophisticated plot is unnecessary until the simple case behaves correctly. She also examines whether the assistant silently standardized variables again, replaced unavailable targets or described a numerical score as a probability. These errors can survive a polished explanation because the prose is often easier to make coherent than the underlying evidence.
If you want material for this kind of inspection, the free TradeAndRoll demo provides ten Forex systems with rules, source code, demo CSV data and research ideas. Start with one precisely defined question about a system you can inspect. An explanation earns its place by making the next check clearer, whether that check confirms a calculation, uncovers a mismatch or shows that the available files cannot support the claim you hoped to make.



