Analyze ETF correlations and market relationships with Sourcetable AI. Calculate R-squared values, optimize portfolio allocations, and identify correlation breakdowns automatically.
Andrew Grosser
February 24, 2026 • 13 min read
Since the 2000s, R-squared analysis has been a standard tool for evaluating ETF diversification quality, with the 2008 financial crisis exposing how correlations among apparently uncorrelated assets spiked to near 1.0 during stress periods. You've built a diversified ETF portfolio expecting different assets to behave independently during market stress. Then a correction hits, and everything drops together. Your carefully constructed diversification evaporates when you need it most. This correlation breakdown represents one of the biggest risks in modern portfolio management.
R-squared ETF trading strategies solve this problem by measuring how closely ETFs move together relative to a benchmark or each other. The R-squared coefficient ranges from 0 to 1, where 1.0 means perfect correlation and 0 means no relationship. Traders use R-squared values above 0.85 to identify highly correlated assets for pair trading, arbitrage opportunities, or diversification analysis. Values below 0.70 signal genuine diversification potential sign up free.
Traditional correlation analysis in Excel requires pulling historical price data, calculating daily returns, running regression functions, and updating formulas constantly. Miss one data point or formula error, and your entire analysis becomes unreliable. Sourcetable transforms this process—upload your ETF data and ask questions like 'What's the R-squared between SPY and QQQ over 90 days?' The AI instantly calculates correlations, identifies regime changes, and visualizes relationship strength without a single formula.
Whether you're building market-neutral strategies, optimizing portfolio diversification, or identifying arbitrage opportunities between correlated ETFs, R-squared analysis provides the statistical foundation for smarter trading decisions. Get started at sign up free.
Excel forces you into a rigid workflow: download price histories from multiple sources, align dates across different ETFs, calculate percentage returns, build correlation matrices, run regression analysis with LINEST or RSQ functions, and create charts manually. Each step introduces potential errors. A single misaligned date throws off your entire correlation calculation.
Sourcetable's AI understands financial relationships. Upload ETF price data from any source and ask 'Calculate rolling 60-day R-squared between TLT and SPY.' The AI automatically aligns dates, handles missing data, computes returns, runs the regression, and displays results with confidence intervals. No VLOOKUP formulas, no INDEX-MATCH combinations, no manual chart building.
The real advantage shows when analyzing multiple ETF pairs simultaneously. In Excel, you'd build separate worksheets for each pair, copy formulas across dozens of cells, and manually update ranges. Sourcetable processes 20 ETF pairs in seconds with a single question: 'Show me R-squared values for all sector ETFs versus SPY over the past year.' The AI generates a complete correlation matrix with statistical significance indicators.
When correlations change—and they always do during market regime shifts—Sourcetable's AI detects breakdowns automatically. Ask 'When did the correlation between GLD and TLT break down?' and receive exact dates with supporting visualizations. This kind of dynamic analysis would require complex VBA macros in Excel. With Sourcetable, it's a natural language question.
Portfolio managers tracking correlation risk across 50+ ETF positions save hours daily. Instead of maintaining massive Excel workbooks with fragile formula chains, they ask Sourcetable's AI to monitor correlation changes and alert when relationships deviate from historical norms. The AI becomes your quantitative analyst, running sophisticated statistical tests without requiring a statistics degree.
R-squared correlation trading unlocks multiple strategic advantages: identify genuine diversification, spot arbitrage opportunities between highly correlated ETFs, build market-neutral pairs trades, and detect regime changes before they impact your portfolio. Professional traders use R-squared analysis to separate true alpha from beta exposure.
Sourcetable calculates R-squared values across unlimited ETF pairs simultaneously. Upload your watchlist of 30 ETFs and ask 'Which pairs have R-squared above 0.90?' The AI instantly identifies highly correlated pairs suitable for pairs trading or redundant positions that reduce true diversification. In Excel, this same analysis requires building 435 individual correlation calculations (30 choose 2 combinations) with separate regression formulas for each pair.
The AI handles different time periods effortlessly. Compare 30-day, 90-day, and 252-day R-squared values to identify whether correlations are strengthening or weakening. A pair showing 0.95 R-squared over 30 days but only 0.65 over 252 days signals a recent regime change worth investigating. Sourcetable generates these multi-period comparisons automatically while Excel requires duplicate worksheets and manual period adjustments.
Market correlations shift during stress events. The classic example: gold (GLD) and Treasury bonds (TLT) typically show low correlation, but during liquidity crises, both can sell off together as investors raise cash. Sourcetable's AI monitors rolling R-squared values and flags when relationships deviate significantly from historical averages.
Ask 'Alert me when SPY-TLT correlation exceeds 0.50' and Sourcetable tracks this relationship continuously. When the threshold triggers, you receive context: current R-squared value, historical average, standard deviation from the mean, and a visualization showing the correlation trend. This early warning system helps you adjust hedges before correlation breakdowns damage portfolio protection strategies.
True diversification requires low correlations between portfolio components. Upload your current ETF holdings and ask 'What's the average R-squared between my positions?' If Sourcetable reports an average above 0.80, your portfolio lacks genuine diversification—you're holding multiple positions that move together, increasing concentration risk without additional return potential.
The AI suggests improvements: 'Replace XLK with which sector ETF to minimize portfolio correlation?' Sourcetable analyzes all sector alternatives, calculates resulting portfolio R-squared values, and recommends the substitution that maximizes diversification. This optimization would require hours of manual calculation in Excel, testing each possible combination individually.
Pairs trading profits from temporary divergences between historically correlated assets. The strategy requires identifying pairs with high R-squared values (above 0.85), then trading the spread when prices diverge beyond normal ranges. Sourcetable identifies qualified pairs, calculates the spread, and determines statistical significance of current deviations.
Ask 'Show me ETF pairs with R-squared above 0.90 where current spread exceeds 2 standard deviations' and Sourcetable returns actionable opportunities with entry and exit levels. The AI calculates the spread's historical mean and standard deviation, current Z-score, and expected reversion timeline based on past divergence periods. Excel users spend hours building these calculations manually for each potential pair.
Not all correlations are statistically meaningful. A high R-squared over 20 trading days might be random noise, while the same value over 250 days represents a genuine relationship. Sourcetable automatically calculates p-values and confidence intervals for every R-squared measurement, helping you distinguish signal from noise.
The AI explains results in plain language: 'The R-squared of 0.87 between XLE and XOP is statistically significant at the 99% confidence level over 180 days.' You get both the correlation strength and the statistical reliability without manually running t-tests or consulting statistical tables. This rigor ensures your trading decisions rest on solid quantitative foundations.
Sourcetable transforms complex statistical analysis into conversational questions. The process takes minutes instead of hours, with AI handling all calculations, data alignment, and visualization automatically.
Import price histories from any source: CSV exports from your broker, Bloomberg terminals, Yahoo Finance downloads, or direct API connections. Sourcetable accepts any format—dates in different columns, prices labeled inconsistently, missing data points—the AI normalizes everything automatically. Upload 10 ETFs or 100, the process remains identical.
Your data might include daily closes, adjusted prices, volumes, and other metrics. Sourcetable identifies the relevant columns without manual specification. The AI recognizes ticker symbols, date formats, and price data regardless of how your source structures the information. No more reformatting spreadsheets to match template requirements.
Type questions exactly as you'd ask a quantitative analyst: 'What's the 90-day R-squared between SPY and IWM?' or 'Show me rolling 60-day correlations for TLT versus all equity sector ETFs.' Sourcetable's AI understands financial terminology, time periods, and analytical requirements without rigid command syntax.
The AI handles complexity automatically. Ask 'Which ETF pairs in my portfolio have increasing correlation over the past quarter?' and Sourcetable calculates current versus prior-period R-squared values for all combinations, identifies pairs with rising correlations, and ranks them by magnitude of change. This single question replaces dozens of Excel formulas and manual comparisons.
Sourcetable returns complete statistical analysis with context. For an R-squared query, you receive the correlation coefficient, p-value for statistical significance, confidence intervals, sample size, and a scatter plot with regression line. The AI explains what the numbers mean: 'R-squared of 0.92 indicates SPY explains 92% of QQQ's variance. This strong relationship is statistically significant with p < 0.001.'
Visualizations appear automatically. Scatter plots show the relationship between ETF returns, time series charts display rolling R-squared values over your specified period, and heatmaps reveal correlation structures across multiple assets. Every chart is publication-ready, no formatting required. Click to export analysis as PDF reports for investment committees or client presentations.
Static correlations hide regime changes. Ask 'Show me 60-day rolling R-squared between GLD and SPY over the past 5 years' and Sourcetable generates a time series revealing how the relationship evolved. You'll see periods where gold and stocks moved together during market stress, and other periods where they diverged as expected for a diversifying asset.
The AI identifies inflection points automatically. Sourcetable flags dates when rolling R-squared crossed key thresholds (0.50, 0.70, 0.85) and correlates these changes with market events. 'R-squared jumped from 0.35 to 0.78 on March 15, 2020'—the COVID market crash when all correlations spiked. This context helps you understand when and why relationships break down.
Portfolio analysis requires understanding all pairwise relationships. Ask 'Create an R-squared matrix for XLF, XLE, XLK, XLV, XLI, and XLY' and Sourcetable generates a complete 6x6 correlation matrix with color-coded cells highlighting strong relationships (red for R-squared > 0.85) and weak ones (green for R-squared < 0.50).
The matrix updates dynamically. Change the time period from 90 days to 180 days with a follow-up question, and Sourcetable recalculates all 15 pairwise correlations instantly. Compare matrices across different periods to identify whether sector correlations are rising (market risk increasing) or falling (diversification improving). Excel users would rebuild the entire matrix manually for each period change.
Use R-squared analysis to validate strategy assumptions. For pairs trading, ask 'Backtest a strategy: go long the lagging ETF and short the leading ETF when the spread exceeds 2 standard deviations, for all pairs with R-squared above 0.90.' Sourcetable identifies qualifying pairs, calculates historical spreads, simulates entries and exits, and returns performance metrics: win rate, average profit per trade, maximum drawdown, and Sharpe ratio.
The AI handles the statistical complexity: calculating z-scores, determining entry and exit thresholds, accounting for transaction costs, and measuring risk-adjusted returns. You focus on strategy logic while Sourcetable executes the quantitative heavy lifting. Refine parameters with follow-up questions: 'What if we use 2.5 standard deviations instead?' and receive updated results immediately.
R-squared analysis powers diverse trading strategies across different market participants. From individual investors optimizing diversification to hedge funds executing sophisticated arbitrage, correlation measurement provides the quantitative foundation for smarter position management.
An investor holds SPY (S&P 500), QQQ (Nasdaq 100), and IWM (Russell 2000), believing they've diversified across large-cap, tech, and small-cap equities. They upload holdings to Sourcetable and ask 'What's the R-squared between my three equity positions?' The AI reveals SPY and QQQ show 0.89 correlation, meaning they move together 89% of the time—minimal diversification benefit.
Sourcetable suggests alternatives: 'Replace QQQ with EFA (international developed markets) to reduce portfolio R-squared from 0.87 to 0.62.' The investor asks 'Show me the correlation matrix with EFA substituted' and sees immediately how international exposure reduces overall portfolio correlation. This evidence-based approach to diversification beats the common mistake of holding multiple similar ETFs that feel different but move together.
A sector rotation trader wants to identify when individual sectors decouple from the broader market, signaling potential outperformance or underperformance. They track rolling 30-day R-squared values between each sector SPDR ETF (XLF, XLE, XLK, etc.) and SPY. When a sector's R-squared drops below 0.70, it's moving independently—potentially starting a new trend.
In Sourcetable, they ask 'Alert me when any sector ETF's 30-day R-squared with SPY drops below 0.70.' When XLE (energy) correlation falls to 0.65, they investigate: 'Show me XLE versus SPY scatter plot and recent price divergence.' The AI reveals XLE rising while SPY stays flat—energy is breaking out independently. This early signal helps them overweight energy before the broader market recognizes the trend.
The strategy also works in reverse. When a previously independent sector's R-squared rises back above 0.85, it's rejoining the market trend—time to take profits and find the next low-correlation opportunity. Sourcetable monitors all 11 sector ETFs continuously, alerting when correlation thresholds trigger without requiring constant manual checks.
A quantitative trader runs a pairs trading strategy on sector ETFs, profiting from temporary divergences between highly correlated pairs. The strategy requires finding pairs with R-squared above 0.90, then trading the spread when it deviates beyond normal ranges. In Sourcetable, they ask 'Which sector ETF pairs have 90-day R-squared above 0.90 and current spread z-score above 2.0?'
The AI identifies XLF (financials) and XLI (industrials) with R-squared of 0.93 and current spread at 2.3 standard deviations—XLF has outperformed XLI by an unusual amount. The trader asks 'Show me the XLF-XLI spread over the past year with entry signals.' Sourcetable displays the spread time series with horizontal lines marking 2.0 and -2.0 standard deviations, highlighting that spreads this wide historically revert within 15-20 trading days.
They enter the trade: short XLF, long XLI, waiting for the spread to revert to the mean. Sourcetable tracks position P&L daily and alerts when the spread crosses back below 1.0 standard deviations—the exit signal. Over time, the trader asks 'What's my win rate and average profit for pairs trades with R-squared above 0.90?' to evaluate whether the correlation threshold optimally balances opportunity frequency and trade quality.
A portfolio manager holds a large equity position and uses TLT (long-term Treasuries) as a hedge, assuming bonds will rise when stocks fall. They verify hedge effectiveness by asking Sourcetable 'What's the R-squared between SPY and TLT during the five largest SPY drawdowns over the past 10 years?' This stress-period analysis reveals whether the hedge actually works when needed.
The AI shows R-squared was -0.65 during the 2020 COVID crash (strong negative correlation—hedge worked), but only -0.20 during the 2022 inflation selloff (weak negative correlation—hedge failed as both stocks and bonds fell). This insight prompts the manager to ask 'What asset showed the strongest negative correlation to SPY during 2022?' Sourcetable identifies the U.S. dollar (UUP) maintained -0.70 R-squared during that period.
Armed with this analysis, they adjust hedging strategy: use TLT during deflationary scares (strong negative correlation expected) but switch to UUP during inflationary environments (more reliable negative correlation). Sourcetable monitors current market regime indicators and suggests which hedge likely provides better protection based on historical correlation patterns in similar environments.
If your question is not covered here, you can contact our team.
Contact Us