Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Correlation Coefficients
Replies: 1   Last Post: Mar 15, 2013 5:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Derek Goring

Posts: 3,644
Registered: 12/7/04
Re: Correlation Coefficients
Posted: Mar 15, 2013 5:20 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Saturday, March 16, 2013 2:26:07 AM UTC+13, Lola wrote:
> Hello,
>
> I've obatin the correlation coefficient of two time series using xcorr. The best correlation coefficient has a time lag of 2 month. I want to estimate the significance level and the confidence interval. The only way I found to get the significance level is by the p-value of the corrcoef but it needs time series without time lag. Does anyone have an idea?
>
> Thanks


So, you need to time-lag one of the vectors before using corrcoef.
[R,p]=corrcoef(x(1:end-lag),y(lag+1:end));




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.