Cross-Correlation in Excel

Remois

New Member
Joined
Nov 12, 2016
Messages
2
Hi all,

How can we analyze the cross-correlations (8 lags, 8 leads) between variable B and the 4 other variables (C, D, E, F)?

Variable A represents the date of the corresponding observation. We would like to calculate the cross correlation of variable B versus the remaining 4 variables (i.e. C, D, E, F). We tried to solve this issue with =CORREL(OFFSET(

Dataset structure (example data):


BCDEFLags
1995-Q11.001.001.001.00
1995-Q20.01%2.002.002.002.00-8
1995-Q30.02%3.003.003.003.00-7
1995-Q40.03%4.004.004.004.00-6
1996-Q10.04%5.005.005.005.00-5
1996-Q20.05%6.006.006.006.00-4
1996-Q30.06%7.007.007.007.00-3
1996-Q40.07%8.008.008.008.00-2
1997-Q10.08%9.009.009.009.00-1
1997-Q20.09%10.0010.0010.0010.000
1997-Q30.10%11.0011.0011.0011.001
1997-Q40.11%12.0012.0012.0012.002
1998-Q10.12%13.0013.0013.0013.003
1998-Q20.13%14.0014.0014.0014.004
1998-Q30.14%15.0015.0015.0015.005
1998-Q40.15%16.0016.0016.0016.006
1999-Q10.16%17.0017.0017.0017.007
1999-Q20.17%18.0018.0018.0018.008

<colgroup><col><col><col span="4"><col></colgroup><tbody>
</tbody>


In the end, the solution should look like this:


C D E F


Lag-8 X X X X
Lag-7 X X X X
Lag-6 X X X X
Lag-5 X X X X
Lag-4 X X X X
Lag-3 X X X X
Lag-2 X X X X
Lag-1 X X X X
Lag0 X X X X

Lag1 X X X X
Lag2 X X X X
Lag3 X X X X
Lag4 X X X X
Lag5 X X X X
Lag6 X X X X
Lag7 X X X X
Lag8 X X X X

Many thanks for your support.


 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi, welcome to the board.

I have absolutely no idea what you want to do here.
Please can you explain more clearly ?
Don't worry too much about explaining what your data means in the real world, just focus on exactly what data you have now, and what exactly do you want to do with it.

Are your variables C, D, E and F really all identical on each row ?
If NO, what do they REALLY look like ?

Do you really want a table full of "X" characters
If NO, what do you REALLY want ?
If you want numbers, what exactly should those numbers be, for the sample data you post ?
 
Upvote 0
Hi Gerald,

Thank you for your prompt reply.

Regarding your first question: the values in columns C to F represent sample data (large figures, we just used simplification).

Regarding your second question: the values 'X' should represent the cross correlations of each variable (i.e. C, D, E and F) with respect to variable B. This is what we want to get in the end. I have tried to solve this issue by applying the function =CORREL(OFFSET(...),OFFSET(..)), but failed each time.

I hope, you understand my clarifications.

Regards
 
Upvote 0

Forum statistics

Threads
1,215,650
Messages
6,126,012
Members
449,280
Latest member
Miahr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top