Home » date » 2009 » Nov » 25 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 25 Nov 2009 03:38:28 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy.htm/, Retrieved Wed, 25 Nov 2009 11:39:28 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99.9 98.6 107.2 95.7 93.7 106.7 86.7 95.3 99.3 101.8 96 91.7 95.3 96.6 107.2 108 98.4 103.1 81.1 96.6 103.7 106.6 97.6 87.6 99.4 98.5 105.2 104.6 97.5 108.9 86.8 88.9 110.3 114.8 94.6 92 93.8 93.8 107.6 101 95.4 96.5 89.2 87.1 110.5 110.8 104.2 88.9 89.8 90 93.9 91.3 87.8 99.7 73.5 79.2 96.9 95.2 95.6 89.7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.424701-2.91160.002742
2-0.021552-0.14780.441586
3-0.06177-0.42350.336941
40.0348650.2390.406064
5-0.011522-0.0790.468688
60.0183740.1260.450148
70.0627550.43020.334498
8-0.162278-1.11250.135786
90.1547561.0610.147067
10-0.056244-0.38560.35077
110.0887350.60830.272947
12-0.36406-2.49590.008066
130.2592131.77710.041014
140.122580.84040.202479
15-0.138654-0.95060.173344
16-0.026434-0.18120.428486
170.0492110.33740.368669
180.0764580.52420.301313
19-0.129399-0.88710.189768
200.1293790.8870.189804
21-0.079425-0.54450.294333
22-0.097885-0.67110.252731
230.1461921.00220.160679
24-0.036503-0.25030.401742
25-0.03594-0.24640.403225
26-0.062904-0.43120.334131
270.1174540.80520.212373
28-0.083338-0.57130.285246
290.0392590.26910.394498
30-0.077153-0.52890.299671
310.1355540.92930.178738
32-0.050687-0.34750.364887
330.017810.12210.451671
340.0323010.22140.412853
35-0.091733-0.62890.266234
36-0.027932-0.19150.424482


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.424701-2.91160.002742
2-0.246359-1.6890.048927
3-0.230953-1.58330.060026
4-0.147329-1.010.158824
5-0.119818-0.82140.207775
6-0.072997-0.50040.309549
70.0465640.31920.375485
8-0.142642-0.97790.166565
90.0353780.24250.404707
100.0093090.06380.474693
110.1157160.79330.215793
12-0.364585-2.49950.007994
13-0.130544-0.8950.187683
140.1479151.01410.157874
15-0.023184-0.15890.437198
16-0.127526-0.87430.193207
170.0248620.17040.432696
180.1936241.32740.095391
190.0028560.01960.49223
20-0.037055-0.2540.400287
210.1156140.79260.215995
22-0.09648-0.66140.255781
23-0.014985-0.10270.459305
24-0.178828-1.2260.113157
250.0047970.03290.486951
260.025880.17740.429969
27-0.103488-0.70950.240766
28-0.156698-1.07430.144093
290.0833990.57180.285107
30-0.024907-0.17080.432576
31-0.036014-0.24690.403029
32-0.009274-0.06360.474786
330.1732951.18810.120391
34-0.02487-0.17050.432673
35-0.038901-0.26670.395436
36-0.15538-1.06520.146106
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy/1ag6e1259145505.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy/1ag6e1259145505.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy/2evwy1259145505.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t12591455652jwb93orb24plhy/2evwy1259145505.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by