Finding corrolation between 2 (or more data sets - stockprices)

pudle

New Member
Joined
Jul 19, 2012
Messages
8
Im just getting to grips with macros and VBA in excel im trying to find an automated way to see if there are any correlations between 2 (or more stock) prices

ie. Stock A's price moves -> Stock B's price tends to do this

Im at a bit of a loss as to were to start with this, could someone point me in the right direction ?

--

I was also looking at doing this with R, but i feel allot more comfortable with with VBA at the moment so id like to try to do it with them if possible
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Excel has a number of built in stats functions, there's no need to use VBA for this. Just use the =CORREL() function
 
Upvote 0
Thanks @ahoyNC and @ChrisM - Ive gave both of those a try aswell as the PEARSON() function and with my data they reported that there is a correlation (around 0.8), but is there a way to get a report back that could show me triggers and patterns in the data

ie.
- In the simplest terms im trying to find if there are reliable or predictable instances where dataA moves and it triggers a move in dataB
- or if dataA does this dataB tends to do this..
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

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