I have a table as such with lots of different data values for different currency pairs
<tbody>
</tbody>
I want to run a regression analysis between 2 pairs of currencies, dependent on what I specify, with an outcome using t-test to see whether results are significant or not. I want this to be run via macro, where I type in an input cell the 2 pairs I wish to run the regression analysis on, the macro recognises the pairs I write and runs a regression for this based on those pairs 'rate' data. Then using t statistics produces an output saying whether it is significant or no (correlation).
Finally, whatever I choose to run a regression on, in a third sheet the history of outcomes are listed and accumulates as a database every time I run the macro for a new attempt. Seems like a lot but any help would be appreciated!
Thanks
GBP/USD | EUR/USD | USD/JPY | USD/CAD | |||||||
DATE | RATE | DATE | RATE | DATE | RATE | DATE | RATE | |||
01/07/2014 | 1.6475 | 01/07/2014 | 1.3178 | 01/07/2014 | 103.67 | 01/07/2014 | 1.092 | |||
02/07/2014 | 1.6409 | 02/07/2014 | 1.346 | 02/07/2014 | 103.8 | 02/07/2014 | 1.079 | |||
03/07/2014 | 1.6578 | 03/07/2014 | 1.344 | 03/07/2014 | 103.93 | 03/07/2014 | 1.0789 | |||
04/07/2014 | 1.658 | 04/07/2014 | 1.362133 | 04/07/2014 | 104.06 | 04/07/2014 | 1.0702 | |||
05/07/2014 | 1.309 | 05/07/2014 | 1.375233 | 05/07/2014 | 104.19 | 05/07/2014 | 1.06365 | |||
06/07/2014 | 1.66 | 06/07/2014 | 1.388333 | 06/07/2014 | 104.32 | 06/07/2014 | 1.0571 | |||
07/07/2014 | 1.502233 | 07/07/2014 | 1.401433 | 07/07/2014 | 104.45 | 07/07/2014 | 1.05055 | |||
08/07/2014 | 1.475576 | 08/07/2014 | 1.414533 | 08/07/2014 | 104.58 | 08/07/2014 | 1.044 | |||
09/07/2014 | 1.448919 | 09/07/2014 | 1.427633 | 09/07/2014 | 104.71 | 09/07/2014 | 1.03745 | |||
10/07/2014 | 1.422262 | 10/07/2014 | 1.440733 | 10/07/2014 | 104.84 | 10/07/2014 | 1.0309 | |||
11/07/2014 | 1.395605 | 11/07/2014 | 1.453833 | 11/07/2014 | 104.97 | 11/07/2014 | 1.02435 | |||
12/07/2014 | 1.368948 | 12/07/2014 | 1.466933 | 12/07/2014 | 105.1 | 12/07/2014 | 1.0178 | |||
13/07/2014 | 1.34229 | 13/07/2014 | 1.480033 | 13/07/2014 | 105.23 | 13/07/2014 | 1.01125 | |||
14/07/2014 | 1.315633 | 14/07/2014 | 1.493133 | 14/07/2014 | 105.36 | 14/07/2014 | 1.0047 | |||
15/07/2014 | 1.288976 | 15/07/2014 | 1.506233 | 15/07/2014 | 105.49 | 15/07/2014 | 0.99815 | |||
16/07/2014 | 1.262319 | 16/07/2014 | 1.519333 | 16/07/2014 | 105.62 | 16/07/2014 | 0.9916 | |||
17/07/2014 | 1.235662 | 17/07/2014 | 1.532433 | 17/07/2014 | 105.75 | 17/07/2014 | 0.98505 | |||
18/07/2014 | 1.209005 | 18/07/2014 | 1.545533 | 18/07/2014 | 105.88 | 18/07/2014 | 0.9785 | |||
19/07/2014 | 1.182348 | 19/07/2014 | 1.558633 | 19/07/2014 | 106.01 | 19/07/2014 | 0.97195 |
<tbody>
</tbody>
I want to run a regression analysis between 2 pairs of currencies, dependent on what I specify, with an outcome using t-test to see whether results are significant or not. I want this to be run via macro, where I type in an input cell the 2 pairs I wish to run the regression analysis on, the macro recognises the pairs I write and runs a regression for this based on those pairs 'rate' data. Then using t statistics produces an output saying whether it is significant or no (correlation).
Finally, whatever I choose to run a regression on, in a third sheet the history of outcomes are listed and accumulates as a database every time I run the macro for a new attempt. Seems like a lot but any help would be appreciated!
Thanks