Generally assumed that Russian's economy (and so rouble's exchange rate) highly dependend on oil price due to Russia export structure (Russia mainly export hydrocarbons). Some analysts like to say that “oil should cost 3000 roubles” (or some other number, depending on analitic), meaning that if oil price in USD go down, then rouble should go down in value.
This small application tries to illustrate this statement by building linear models:
on user's defined interval.
High correlation between rouble exchage rate and oil price in 01.2013-10.2015
Low correlation between rouble exchage rate and oil price between 01.2005-01.2007
Relative low correlation between rouble exchage rate and oil price in 08.2015
plotFromTo(as.Date("2015-08-01", "%Y-%m-%d"), as.Date("2015-09-01", "%Y-%m-%d"))