Direct answer
A worked example of a correlation tool shows, with explicit numbers and assumptions, how you compute and interpret the correlation between two time series. In practice, you typically transform raw prices into comparable measures (most often returns) and then calculate a correlation coefficient. The result describes whether the two series tend to move together over the chosen period; it does not imply a predictable signal or cause.
Mechanism or definition
A correlation tool usually estimates the statistical correlation between two sequences, often using Pearson’s correlation coefficient. In plain terms:
- You choose two time series, X and Y, measured over the same dates or timestamps.
- You compute paired values (Xₜ, Yₜ) for t = 1…T.
- You calculate a single number that summarizes the co-movement across that window.
Common assumptions you must state for a worked example:
- Same timestamps: each Xₜ lines up with the correct Yₜ.
- Comparable units: prices are not always comparable; you may use returns instead of raw levels.
- Window choice: correlation depends on the start/end dates and the sampling frequency.
Evidence or example (fully worked, hypothetical)
Assume we want to compare the co-movement of two hypothetical instruments, A and B, over four periods. We will use simple returns and then compute Pearson correlation.
Assumptions (state these before calculating):
- No real-time data is used; numbers are hypothetical and fixed.
- Periods are aligned: period 1 for A matches period 1 for B, etc.
- We use simple returns: rₜ = (Pₜ − Pₜ₋₁) / Pₜ₋₁.
Step 1: Hypothetical prices
- Instrument A prices: P(A): 100 → 102 → 101 → 105
- Instrument B prices: P(B): 200 → 198 → 202 → 204
Step 2: Compute simple returns For A:
- rA1 = (102−100)/100 = 0.02
- rA2 = (101−102)/102 ≈ −0.0098039
- rA3 = (105−101)/101 ≈ 0.03960396
For B:
- rB1 = (198−200)/200 = −0.01
- rB2 = (202−198)/198 ≈ 0.02020202
- rB3 = (204−202)/202 ≈ 0.00990099
So we have paired return observations:
- X = [0.02, −0.0098039, 0.03960396]
- Y = [−0.01, 0.02020202, 0.00990099]
Step 3: Compute Pearson correlation (summary) Pearson correlation uses centered values relative to each series’ mean. With only three paired observations, the estimate is sensitive to each point. Using the standard Pearson formula (implemented in any spreadsheet or calculator), you would obtain some value between −1 and +1 that reflects how similarly the returns move.
How to interpret it under these assumptions:
- If the computed correlation is positive, A and B tended to rise/fall together (in this window).
- If negative, they tended to move in opposite directions.
- If near zero, there was little linear co-movement in this small sample.
Important: correlation here is computed purely from the assumed data and the selected return definition; changing assumptions changes the number.
Limitations and risks
- Sample size and stability: With few observations (as in the example), correlation can swing a lot. A different window may yield a different result.
- Relationship may be non-stationary: Even if two series correlated in the past, the underlying relationship can change when market conditions shift.
- Linear-mechanism limitation: Pearson correlation summarizes linear co-movement. If two series move together nonlinearly, correlation may understate the relationship.
- Operational frictions are ignored by design: Correlation computed from idealized returns does not include transaction costs, spreads, execution timing, or data-quality issues that can materially change realized results.
Verification or next question
To independently verify a worked example, you need to replicate the steps:
- Confirm the exact return definition (simple vs log returns).
- Ensure timestamps align and you use the same number of periods for both series.
- Recompute paired returns and then calculate Pearson correlation for the same window.
A next question you can ask is: “How does the correlation change if I use log returns, a different window length, or a different sampling frequency?” Those tests evaluate sensitivity to assumptions rather than predicting future behavior.