Returns, not prices
In this buildPrices are non-stationary: they wander without a fixed average. Two unrelated series that both trend upward, such as the Nifty and the US money supply, show a high correlation of price levels purely by accident. Correlating returns avoids this.
Every price series is turned into daily log returns, ln(P_t / P_t−1), before any correlation is computed. Yields are already rates, so for them the engine uses the daily change in the yield instead.
Source: Dossier C1 (Why returns, not prices); F10 (Returns)
Aligning trading days
In this buildTwo markets keep different holiday calendars and, in the Gulf, even different weeks. Only dates on which both series have a close are used. A closed market's last price is never carried forward, because that would record a fake 0% return on the holiday.
Source: Dossier C2 (Holiday misalignment); F10 (Alignment)
The non-synchronous trading problem
Partly builtTokyo closes (12:00 IST) before Europe opens, and India closes (15:30 IST) before New York opens (20:00 IST in US winter). A close-to-close return for the same calendar date therefore mixes different news. For Asia against the US, same-date correlation is biased toward zero and the next-day (lag 1) correlation is inflated.
The dossier lists five mitigations in order of preference. This build applies the first two automatically:
- Weekly returns, Wednesday close to Wednesday close, as the default for pairs in different time zones. In use.
- The larger of the lag 0 and lag ±1 daily correlations, with the lag shown to you (for example, "Nifty today follows the S&P 500 yesterday"). In use.
- Concurrently traded proxies, such as GIFT Nifty against US index futures. Not automatic; where a proxy is in the instrument list you can compare it directly.
- Splitting returns into the overnight gap and the day session. Not built yet.
- Synchronised snapshots, for example every price at 16:00 London. Needs licensed intraday data; planned for V2.
Source: Dossier C2
Two estimates: weekly and daily
In this buildρ_w is the Pearson correlation of aligned weekly (Wednesday to Wednesday) returns over the last 3 years.
ρ_d* is the Pearson correlation of aligned daily returns over the last year, taken at whichever of lag −1, 0 or +1 day gives the largest absolute value. The chosen lag is reported with the result.
A rolling 90-day correlation series, at the chosen lag over 3 years, feeds the stability measure below. Spearman rank correlation, beta and R² are shown alongside as checks; they do not enter the score.
Source: Dossier C3 step 1; C2 mitigations 1 and 2
Shrinking toward zero
In this buildEach estimate is pulled toward zero by one standard error: ρ_s = sign(ρ) · max(0, |ρ| − SE). A correlation that is smaller than its own uncertainty becomes zero. Of the two shrunk estimates, the one with the larger absolute value is the base of the score, and the result says whether it came from weekly or daily data.
Source: Dossier C3 step 2
Stability
In this buildStability S = 1 − min(1, IQR / 0.6), where IQR is the interquartile range of the rolling 90-day correlation. A relationship that keeps its strength scores close to 1; one that swings widely scores close to 0.
If the rolling correlation flips sign within the window, S is capped at 0.5. The dossier does not define a flip precisely. This build counts one when at least 5% of the rolling values sit beyond 0.1 on the side opposite the median [assumption: the app's own threshold].
The badge reads stable when S ≥ 0.7, changing when S ≥ 0.4 and unstable below that. The three labels come from the dossier; the cut-offs are this build's.
Source: Dossier C3 steps 3 and 6
The composite Relevance Score
In this buildScore = round(100 × |ρ_s| × (0.6 + 0.4 · S)). Strength sets most of the score; stability can lower it by up to 40%.
Labels: 0–19 no meaningful relationship, 20–39 weak, 40–59 moderate, 60–79 strong, 80–100 very strong. The word "inverse" is added when the correlation is negative.
Worked example with made-up numbers: ρ_s = 0.50 and S = 0.75 give 100 × 0.50 × (0.6 + 0.3) = 45, which is moderate.
Source: Dossier C3 steps 4 and 5
Confidence
In this buildConfidence intervals use the Fisher z-transform. The badge combines the sample size with the width of the 95% interval: high when there are at least 150 observations and the interval is narrower than 0.3, medium when it is narrower than 0.5, low otherwise. The cut-offs are this build's; the dossier only names the inputs.
Source: Dossier C3 step 6 (Confidence based on N and the CI); C1 (Fisher-z confidence intervals)
Lead-lag
In this buildDaily correlations are computed at every lag from −5 to +5 days over the last year. The result says "X tends to move first by about N days" only when the best lag's correlation beats the lag 0 correlation by more than 0.1 and is significant at the 5% level. Otherwise no lead is claimed.
Lead-lag between markets in different time zones is often an artefact of closing times. The result also says which market closed first.
Source: Dossier C1 (Cross-correlation at lags −5…+5); C3 step 6
Minimum samples and overlap
In this buildA result needs at least 60 aligned daily observations or 52 aligned weekly observations. Below that the Explorer shows "Only N overlapping observations; result not shown" instead of a score.
When the common trading days cover less than half of the busier series' days in the window, a warning is shown: these markets rarely trade on the same days.
Source: Dossier C2 (Sample size); F10 (Guardrails); F4 M1-15
Multiple testing (Benjamini–Hochberg)
In this buildTest enough pairs and some will look significant by chance: at the 5% level, a 70-pair matrix would show about 3 or 4 false positives even if nothing were related. The correlation matrix therefore adjusts p-values with the Benjamini–Hochberg procedure, which controls the share of false discoveries, before marking a cell significant.
Source: Dossier C2 (Multiple testing); F10 (Guardrails)
Currency denomination
Not built yetThe Nifty measured in US dollars contains the USD/INR return as well as the Nifty's own move, so the same pair can correlate differently in rupees and in dollars. The dossier asks for a choice between local-currency and USD returns.
This build computes every series in the currency it is quoted in. The local versus USD option is not built yet. The cointegration test flags pairs whose levels are in different currencies or units, because currency swings then enter the result.
Source: Dossier C2 (Currency denomination); F10 (optional FX conversion)
Granger causality: predictive precedence, not causation
In this buildThe advanced view runs a bivariate Granger test on aligned daily returns over 1 year (headline) and 3 years. It fits a two-equation vector autoregression with 1 to 5 lags, picks the lag order by the Bayesian information criterion, and F-tests both directions at the 5% level.
"A Granger-causes B" only means that A's past moves help predict B's next moves beyond B's own history. It does not mean A causes B: both may react to a third factor, and the effect is often a matter of which market closed later. When the later-closing market appears to lead the earlier-closing one, the result says that part of the precedence is a time-zone effect.
Source: Dossier C1 (Granger causality, VAR, V1); Appendix D
Engle–Granger cointegration
In this buildCointegration asks whether two price levels stay in a long-run relationship, such as COMEX gold and MCX gold, even though each wanders on its own. It is the one test here that uses levels rather than returns, and it does so properly.
Step 1 regresses one series' log price on the other's over 3 years. Step 2 runs an augmented Dickey–Fuller test on the residuals and compares the statistic with MacKinnon (2010) critical values. Because the result depends on which series is on the left, both orderings are run and the pair counts as cointegrated only if both pass at 5%. For cointegrated pairs the result also gives a half-life: how many trading days a gap from the long-run relationship takes to close halfway.
Yields enter as levels rather than log levels, and series with zero or negative values are not tested.
Source: Dossier C1 (Engle–Granger cointegration on log prices, V1); Appendix D
The three-month rule for named securities
In this buildUnder SEBI's finfluencer framework, people who are not registered may educate but must not use market price data from the preceding three months to name a security or imply its future price.
Any pair that includes a single company therefore uses data that ends 92 days before the data date. The result shows the end date and the reason. This is a conservative reading pending legal review, not a legal opinion.
Source: Dossier D2.3 (SEBI finfluencer framework); D2.4
Licence gating
In this buildShowing NSE, BSE or MCX prices, real-time or delayed, on a public site needs a data agreement with the exchange or an authorised vendor, and index values carry their own licences.
Each instrument therefore carries a licence class. Public-domain series (FRED) may show price overlays. Licensed series show derived statistics only. Instruments that need an authorised vendor show "no licensed data yet" instead of a result. This build also uses prototype data that is not licensed for public display; every result says so.
Source: Dossier D1; D2.1 (Exchange data licensing); F10 (Never show prices more precisely than licences allow)
Mechanism text
In this buildWhen a pair is in the curated library, the result shows the economic mechanism, the usual direction and strength, the lead-lag, when the link breaks, a confidence grade and a citation. Otherwise it says that no established economic link was found and the statistic should be treated as possibly coincidental.
Source: Dossier C3 step 6 (Mechanism); B8; F13 (Explainer library)
What the score is not
In this buildThe score describes how two return series moved together in a past sample. Read it with these limits:
- Not a forecast. Correlations shift, and the stability badge exists because many links weaken or flip.
- Not causation. Correlation and Granger precedence both describe co-movement and timing, not cause.
- Not advice or a trading signal. The product never says what to do with a security and names no price levels.
- Not a measure of size. A strong correlation can come with small moves; beta and R² describe size and share explained.
- Not a crash measure. Tail and downside co-movement (copulas, DCC-GARCH) are planned for V2.
Source: Dossier TL;DR; D2.3–D2.4; Caveats
See it on real pairs
- S&P 500 vs Nifty 50: the textbook non-synchronous pair.
- COMEX gold vs MCX gold: a long-run price link (cointegration).
- Infosys ADR vs Infosys NSE: a named security, so the data ends three months back.
- Open the Explorer: run any pair.